vue-项目-商品详情

<template>
  <div class="maincont">
  <header>
    <a href="javascript:history.back(-1)" class="back-off fl"><span class="glyphicon glyphicon-menu-left"></span></a>
    <div class="head-mid">
      <h1>产品详情</h1>
    </div>
  </header>
  <div id="sliderA" class="slider">
    <template v-for="(v,k) in goods_info.goods_big_imgs">
      <img :src="v" />
    </template>
  </div><!--sliderA/-->
  <table class="jia-len">
    <tr>
      <th><strong class="orange">¥{{goods_info.goods_selfprice}}</strong></th>
      <td>
        <input type="text" class="spinnerExample" />
      </td>
    </tr>
    <tr>
      <td>
        <strong>{{goods_info.goods_name}}</strong>
        <p class="hui">{{goods_info.goods_name}}</p>
      </td>
      <td align="right">
        <a href="javascript:;" class="shoucang"><span class="glyphicon glyphicon-star-empty"></span></a>
      </td>
    </tr>
  </table>
  <div class="height2"></div>
  <h3 class="proTitle">商品规格</h3>
  <ul class="guige">
    <li class="guigeCur"><a href="javascript:;">50ML</a></li>
    <li><a href="javascript:;">100ML</a></li>
    <li><a href="javascript:;">150ML</a></li>
    <li><a href="javascript:;">200ML</a></li>
    <li><a href="javascript:;">300ML</a></li>
    <div class="clearfix"></div>
  </ul><!--guige/-->
    <table class="jrgwc">
      <tr>
        <th>
          <a href="../../index.html"><span class="glyphicon glyphicon-home"></span></a>
        </th>
        <td><a href="car.html">加入购物车</a></td>
      </tr>
    </table>
  <div class="height2"></div>
  <div class="zhaieq">
    <a href="javascript:;" class="zhaiCur">商品简介</a>
    <a href="javascript:;">商品参数</a>
    <a href="javascript:;" style="background:none;">订购列表</a>
    <div class="clearfix"></div>
  </div><!--zhaieq/-->
  <div class="proinfoList">
    <img src="@/assets/images/image4.jpg" width="636" height="822" />
  </div><!--proinfoList/-->
  <div class="proinfoList">
    暂无信息....
  </div><!--proinfoList/-->
  <div class="proinfoList">
    暂无信息......
  </div><!--proinfoList/-->

    <tab-bar></tab-bar>
  </div><!--maincont-->
</template>
<script>
import  "@/assets/css/bootstrap.min.css"
import  "@/assets/css/style.css"
import  "@/assets/css/response.css"
import  "@/assets/js/jquery.min.js"
import  "@/assets/js/jquery.excoloSlider.js"
import  "@/assets/js/style.js"
import TabBar from "./Public/TabBar";
import Common from "../Mixins/Common";
export default {
  name: 'Reg',
  components: { TabBar:TabBar},
  mixins:[ Common ],
  data () {
    return {
      goods_info:[]
    }
  },
  methods:{

  },
  watch:{

  },
  mounted(){
    console.log( this.$route.query.goods_id );
    this.ajaxPost( '/api/productDetail' , {goods_id:this.$route.query.goods_id} ).then( api_response=>{
      console.log( api_response );
      this.goods_info = api_response.data;
    }).then(function () {
      $("#sliderA").excoloSlider(
        {
          prevButtonImage: "@/assets/images/prev.png",
          nextButtonImage: "@/assets/images/next.png",
          pagerImage: "@/assets/images/pagericon.png"
        }
      );
    });
  }
}

</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

button{
  margin-top: 5px;
  border: 0;
  width: 100%;
  background-color: rgba(0, 161, 255, 0.29);
}
.nodata{
  color: #cccccc;
  background-color:#3c763d;
}
</style>





评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

奇葩也是花

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值