Commit ecd0b0a22c92bc7d0255060918a618b456f604d0

Authored by yvan.ni
1 parent 5271092e

商品未启用要用白色底

packageC/pages/presell/goodsInfo/goodsInfo.js
... ... @@ -595,13 +595,13 @@ Page({
595 595 this.data.show_prew_img = 0; return false;
596 596 }
597 597  
  598 + /*--
598 599 //优惠券要实时更新
599 600 getApp().getConfig2(function (e) {
600 601 var json_d = JSON.parse(e.switch_list);
601 602 th.setData({ is_closecoupon: json_d.is_closecoupon })
602 603 th.setData({ is_open_offline: json_d.is_pricing_open })
603   - }, 1)
604   -
  604 + }, 1)--*/
605 605  
606 606 var ui = setInterval(function () {
607 607 goods_list = th.selectComponent("#goods_list");
... ... @@ -717,7 +717,6 @@ Page({
717 717 } else {
718 718 if (e) {
719 719 e.distance = null;
720   -
721 720 that.set_def_storage(e);
722 721 }
723 722 }
... ... @@ -752,14 +751,13 @@ Page({
752 751 ee.setData({
753 752 data: t.data.data,
754 753 sele_g: t.data.data,
755   - userInfo: getApp().globalData.userInfo
  754 + userInfo: getApp().globalData.userInfo,
756 755 });
757 756  
758 757 //获取门店
759 758 ee.get_sto();
760 759 ee.get_sku(o.stoid, t.data.data, gid);
761 760  
762   -
763 761 ee.data.g_buy_num = new Map();
764 762  
765 763 if (ee.data.cat_name == '') {
... ... @@ -3966,12 +3964,10 @@ Page({
3966 3964 }
3967 3965 })
3968 3966  
3969   -
3970 3967 if(!gnext){
3971 3968 return false;
3972 3969 }
3973 3970  
3974   -
3975 3971 var userInfo = getApp().globalData.userInfo;
3976 3972 var pre_data = {store_id: os.stoid, is_end: 0, timetype: 1, isuse: 1, prom_type: 8, prom_id: presell_id};
3977 3973 if (userInfo) {
... ... @@ -3988,7 +3984,7 @@ Page({
3988 3984 })
3989 3985  
3990 3986 pre_arr = e.data.data.pageData[idx];
3991   - th.setData({pre_arr: pre_arr})
  3987 + th.setData({pre_arr: pre_arr,show:1})
3992 3988 th.data.prom_buy_limit = pre_arr.vip_butyqty;
3993 3989 }
3994 3990 })
... ...
packageC/pages/presell/goodsInfo/goodsInfo.wxml
... ... @@ -2,6 +2,9 @@
2 2 <wxs module="filters" src="../../../../utils/filter.wxs"></wxs>
3 3 <wxs module="g_filters" src="g_filter.wxs"></wxs>
4 4 <wxs module="tool" src="filter.wxs"></wxs>
  5 +
  6 +
  7 +<block wx:if="{{show}}">
5 8 <!-- 商品内容区域,普通商品,秒杀,拼团 -->
6 9 <view class="container">
7 10 <view class="type-navbar">
... ... @@ -525,6 +528,10 @@
525 528 </view>
526 529 <!-- 制作一个圆球导航 -->
527 530 <nav_box></nav_box>
  531 +</block>
  532 +
  533 +
  534 +
528 535 <!-- --弹起来,选择规格数量,普通商品购买和秒杀---- -->
529 536 <view hidden="{{!openSpecModal}}">
530 537 <view bindtap="closeSpecModal" class="cover-layer"></view>
... ... @@ -922,4 +929,5 @@
922 929  
923 930 </view>
924 931 </view>
925   -</view>
926 932 \ No newline at end of file
  933 +</view>
  934 +
... ...