作者 lihongjuan

1

@@ -19,7 +19,6 @@ @@ -19,7 +19,6 @@
19 showbanben: false, 19 showbanben: false,
20 kindlist:[], 20 kindlist:[],
21 score_category_id:'' 21 score_category_id:''
22 -  
23 } 22 }
24 }, 23 },
25 onLoad() { 24 onLoad() {
@@ -86,9 +86,11 @@ @@ -86,9 +86,11 @@
86 <!-- <view class="huiyuanprice">会员价:¥{{goodtail.vip_price}}</view> --> 86 <!-- <view class="huiyuanprice">会员价:¥{{goodtail.vip_price}}</view> -->
87 </view> 87 </view>
88 <view class="heziright flexone"> 88 <view class="heziright flexone">
89 - <view class="heziprice stock">库存:{{goodtail.score_goods_spec.stock_num}}件</view> 89 + <!-- goodtail.store_goods_spec.stock_num -->
  90 + <view class="heziprice stock">库存:{{goodtail.store_goods_spec.stock_num}}件</view>
90 <view class="heziprice">已售{{goodtail.sales}}件</view> 91 <view class="heziprice">已售{{goodtail.sales}}件</view>
91 </view> 92 </view>
  93 +
92 </view> 94 </view>
93 </view> 95 </view>
94 96
@@ -102,7 +104,8 @@ @@ -102,7 +104,8 @@
102 <!-- 包邮 店铺满100元包邮 --> 104 <!-- 包邮 店铺满100元包邮 -->
103 </view> 105 </view>
104 <view class="send" v-if="type==3"> 106 <view class="send" v-if="type==3">
105 - 运费{{shoppostage.postage}} <text style='margin-left:20rpx;'>店铺满{{mianpostage.free_postage}}包邮</text> 107 +
  108 + 运费{{shoppostage.postage}} <text style='margin-left:20rpx;'>店铺满{{shoppostage.free_postage}}包邮</text>
106 <!-- 包邮 店铺满100元包邮 --> 109 <!-- 包邮 店铺满100元包邮 -->
107 </view> 110 </view>
108 <view class="tapnav flextwo"> 111 <view class="tapnav flextwo">
@@ -320,9 +323,11 @@ @@ -320,9 +323,11 @@
320 this.getjifengoodtail(); 323 this.getjifengoodtail();
321 } else if (this.type == 3) { 324 } else if (this.type == 3) {
322 console.log(88877665) 325 console.log(88877665)
323 - this.getshopgoodtail(); 326 + console.log(options.obj)
324 this.shoppostage=JSON.parse(options.obj); 327 this.shoppostage=JSON.parse(options.obj);
  328 + console.log(this.shoppostage)
325 console.log(JSON.stringify(this.shoppostage)) 329 console.log(JSON.stringify(this.shoppostage))
  330 + this.getshopgoodtail();
326 } 331 }
327 // 获取购物车气泡 332 // 获取购物车气泡
328 this.getcartnum(); 333 this.getcartnum();
@@ -330,7 +335,7 @@ @@ -330,7 +335,7 @@
330 this.getcommentlist(); 335 this.getcommentlist();
331 // 获取邮费 336 // 获取邮费
332 this.getyoufei(); 337 this.getyoufei();
333 - this.getinfo() 338 + // this.getinfo()
334 339
335 }, 340 },
336 341
@@ -477,12 +482,12 @@ @@ -477,12 +482,12 @@
477 app.post(url, params).then((res) => { 482 app.post(url, params).then((res) => {
478 console.log('商品详情',res); 483 console.log('商品详情',res);
479 that.goodtail = res.data.data; 484 that.goodtail = res.data.data;
  485 + console.log('详情328934894',that.goodtail)
  486 + that.$forceUpdate()
480 that.status = res.data.data.status; 487 that.status = res.data.data.status;
481 if (that.status == 1) { 488 if (that.status == 1) {
482 that.getTime() 489 that.getTime()
483 } 490 }
484 -  
485 -  
486 }).catch((err) => { 491 }).catch((err) => {
487 console.log(err) 492 console.log(err)
488 493
@@ -582,8 +587,9 @@ @@ -582,8 +587,9 @@
582 console.log(params) 587 console.log(params)
583 app.post(url, params).then((res) => { 588 app.post(url, params).then((res) => {
584 console.log('商品详情',res); 589 console.log('商品详情',res);
585 - that.goodtail = res.data.data  
586 590
  591 + that.goodtail = res.data.data
  592 +console.log('详情3343',that.goodtail.store_goods_spec.stock_num)
587 }).catch((err) => { 593 }).catch((err) => {
588 console.log(err) 594 console.log(err)
589 }) 595 })
@@ -827,7 +833,6 @@ @@ -827,7 +833,6 @@
827 this.buynowk() 833 this.buynowk()
828 } 834 }
829 } 835 }
830 -  
831 }, 836 },
832 // 加入购物车 837 // 加入购物车
833 addcartk() { 838 addcartk() {
@@ -339,6 +339,7 @@ @@ -339,6 +339,7 @@
339 free_postage:this.shopdetail.free_postage, 339 free_postage:this.shopdetail.free_postage,
340 postage:this.shopdetail.postage 340 postage:this.shopdetail.postage
341 } 341 }
  342 + console.log(obj)
342 obj=JSON.stringify(obj) 343 obj=JSON.stringify(obj)
343 // type 1 面访商品 2积分商城商品 344 // type 1 面访商品 2积分商城商品
344 uni.navigateTo({ 345 uni.navigateTo({