Commit 7ff7aa7f14f5e0e4d5c9ebe7d734dc567a56d725

Authored by season
2 parents f6fea197 1807b98c

Merge branch 'qa' of http://git.vipzhuang.cn/wxd/MShopWeApp

Showing 54 changed files with 8384 additions and 5029 deletions
app.json
... ... @@ -3,7 +3,6 @@
3 3 "pages/index/index/index",
4 4 "pages/goods/categoryList/categoryList",
5 5 "pages/cart/cart/cart",
6   - "pages/cart/cart4/cart4",
7 6 "pages/goods/goodsInfo/goodsInfo",
8 7 "pages/goods/goodsList/goodsList",
9 8 "pages/user/index/index",
... ... @@ -237,7 +236,9 @@
237 236 "pages/order/refund_order/refund_order",
238 237 "pages/payment/payment/payment",
239 238 "pages/user/my_service/tment_details",
240   - "pages/user/my_service/tment_eval"
  239 + "pages/user/my_service/tment_eval",
  240 + "pages/user_template/index",
  241 + "pages/team/team_show/team_show"
241 242 ]
242 243 }
243 244 ],
... ...
components/add_purchase/add_purchase.js
... ... @@ -18,7 +18,7 @@ Component({
18 18 properties: {
19 19  
20 20 },
21   -
  21 +
22 22 lifetimes: {
23 23 // attached: function () {
24 24 // // this.clearTime()
... ... @@ -289,7 +289,7 @@ Component({
289 289 that.setData({
290 290 listServiceItem: t.data.data.listServiceItem,
291 291 });
292   - };
  292 + };
293 293 that.setData({
294 294 'sele_g.goods_name': t.data.data.serviceName,
295 295 'sele_g.shop_price': t.data.data.money,
... ... @@ -1276,7 +1276,7 @@ Component({
1276 1276 let sele_g_new = t.data.data
1277 1277 let sele_g = th.data.sele_g
1278 1278 if (sele_g_new && sele_g_new.original_img && !sele_g.original_img) {
1279   - sele_g.original_img=sele_g_new.original_img
  1279 + sele_g.original_img = sele_g_new.original_img
1280 1280 }
1281 1281 th.setData({
1282 1282 sele_g
... ... @@ -1458,7 +1458,7 @@ Component({
1458 1458 if (!th.data.sele_g) return false;
1459 1459  
1460 1460 var g_distr_type = th.data.sele_g.distr_type;
1461   - if ( g_distr_type && g_distr_type != 0) {
  1461 + if (g_distr_type && g_distr_type != 0) {
1462 1462 dd = {
1463 1463 store_id: o.stoid,
1464 1464 distr_type: g_distr_type,
... ... @@ -1490,7 +1490,7 @@ Component({
1490 1490 }
1491 1491 wx.showLoading({
1492 1492 title: '加载中.',
1493   - mask:true
  1493 + mask: true
1494 1494 });
1495 1495 //----------获取门店----------------
1496 1496 getApp().request.promiseGet("/api/weshop/pickup/list", {
... ... @@ -3739,7 +3739,7 @@ Component({
3739 3739 sele_spec: function (e) {
3740 3740  
3741 3741 //如果只有一个规格直接结束
3742   - if ((this.data.sku_g && this.data.sku_g.length==1) || (this.data.sku_g_pt && this.data.sku_g_pt.length==1)) {
  3742 + if ((this.data.sku_g && this.data.sku_g.length == 1) || (this.data.sku_g_pt && this.data.sku_g_pt.length == 1)) {
3743 3743 return
3744 3744 }
3745 3745 if (this.data.sp_seleing) {
... ... @@ -5239,7 +5239,7 @@ Component({
5239 5239 ob[txt] = this.data.iurl + "/miniapp/images/default_g_img.gif";
5240 5240 this.setData(ob);
5241 5241 },
5242   - async getUserBuyPromNum(prom_id,is_zh) {
  5242 + async getUserBuyPromNum(prom_id, is_zh) {
5243 5243 var userInfo = getApp().globalData.userInfo;
5244 5244 var url = `/api/weshop/ordergoods/getUserBuyPromNum?store_id=${os.stoid}&user_id=${userInfo.user_id}&prom_type=7&prom_id=${prom_id}`;
5245 5245 let res = await getApp().request.promiseGet(url, {
... ... @@ -5252,10 +5252,19 @@ Component({
5252 5252 this.setData({
5253 5253 userbuynum
5254 5254 })
5255   - if(is_zh) this.data.user_zh_buy_num=userbuynum;
  5255 + if (is_zh) this.data.user_zh_buy_num = userbuynum;
5256 5256 // return userbuynum
5257 5257 },
5258   -
  5258 + //-- 根据ID拿出门店 --
  5259 + get_pick_from_list(pid) {
  5260 + var all_pick_list = this.data.all_pick_list;
  5261 + for (var i in all_pick_list) {
  5262 + var item = all_pick_list[i];
  5263 + if (item.pickup_id == pid) {
  5264 + return item;
  5265 + }
  5266 + }
  5267 + },
5259 5268  
5260 5269 }
5261 5270 })
... ...
components/com_top_nav/com_top_nav.js
... ... @@ -23,7 +23,7 @@ Component({
23 23 },
24 24 ready: function() {
25 25 let height= getApp().globalData.navBarHeight;
26   - let menuInfo = getApp().globalData.menuInfo;
  26 + let menuInfo = getApp().globalData.menuInfo || {height:0};
27 27 let user_no='';
28 28 if(getApp().globalData.userInfo){
29 29 user_no=getApp().globalData.userInfo.erpvipno
... ...
components/diy_user_info/diy_user_info.js 0 → 100644
  1 +const rq = require("../../utils/request.js");
  2 +const ut = require("../../utils/util.js");
  3 +const {barcode,qrcode} = require("../../utils/index.js");
  4 +var s = getApp().globalData.setting;
  5 +var r=s;
  6 +Component({
  7 + properties: {
  8 + object: {
  9 + type: Object,
  10 + value: null
  11 + },
  12 + qy_data:{
  13 + type: Object,
  14 + value: null
  15 + },
  16 + pulscardname:{
  17 + type:String,
  18 + value:"--"
  19 + },
  20 + rfmName:{
  21 + type:String,
  22 + value:"--"
  23 + },
  24 + yuer:{
  25 + type:Number,
  26 + value:0
  27 + },
  28 + byquan:{
  29 + type:Number,
  30 + value:0
  31 + },
  32 + udata:{
  33 + type: Object,
  34 + value: null
  35 + },
  36 +
  37 + },
  38 + data: {
  39 + // 这里是一些组件内部数据
  40 + iurl: s.imghost,
  41 + defaultAvatar: s.imghost + "/miniapp/images/no-head.jpg",
  42 + userInfo:null,
  43 +
  44 + sys_switch:null,
  45 + tc_hide:true, //会员卡的弹出层隐藏
  46 + brcode:'',
  47 + showvipcode:false,
  48 +
  49 + },
  50 +
  51 + ready: function() {
  52 + var th=this;
  53 + if(getApp().globalData.userInfo){
  54 + this.setData({userInfo:getApp().globalData.userInfo});
  55 + }
  56 + /*-------系统是否开通等级卡,会员是等级卡-----*/
  57 + getApp().getConfig2(function (e) {
  58 + var t_swi = e.switch_list;
  59 + if (t_swi) t_swi = JSON.parse(t_swi)
  60 + if (t_swi) {
  61 + th.setData({sys_switch: t_swi});
  62 + }
  63 + var getuserqy_color=e.userqy_color;
  64 + if (getuserqy_color) getuserqy_color = JSON.parse(getuserqy_color)
  65 + if(getuserqy_color){
  66 + th.setData({userqy_color:getuserqy_color})
  67 + }
  68 + })
  69 +
  70 + },
  71 +
  72 + pageLifetimes: {
  73 + //要处理一下,游客登录后的界面的变化,主要还该是改变会员
  74 + show: function () {
  75 + if(!this.data.userInfo && getApp().globalData.userInfo){
  76 + this.setData({userInfo:getApp().globalData.userInfo});
  77 + }
  78 + }
  79 + },
  80 +
  81 + methods: {
  82 + //登陆会员
  83 + login_user(){
  84 + getApp().goto('/packageE/pages/togoin/togoin');
  85 + },
  86 + //------卡片的显示和关闭--------
  87 + show_tc: function () {
  88 + var that=this;
  89 + if (!this.data.userInfo) return false;
  90 + var getnowtime;
  91 + getApp().request.get("/api/weshop/users/getServerTime", {
  92 + success: function (res) {
  93 + if (res.data.code == 0)
  94 + {
  95 + getnowtime=res.data.data;
  96 + if (!getnowtime)
  97 + {
  98 + ut.m_toast("获取服务时间失败");
  99 + return;
  100 + }
  101 + //base64_encode($user.mobile.'|'.date('Y-m-d H:i:s')
  102 + var val = that.data.userInfo.mobile + "|" +getnowtime+"|"+that.data.getusercode_vailtime;
  103 + val = "^" + ut.base64_encode(val);
  104 +
  105 + qrcode('qrcode', val, 350, 350, that);
  106 + let userInfo = getApp().globalData.userInfo;
  107 + barcode('barcode', userInfo.userQrcode, 480,140,that);
  108 + that.setData({
  109 + tc_hide: false,
  110 + brcode:userInfo.userQrcode
  111 + });
  112 + }
  113 + }
  114 + })
  115 + },
  116 + showtext:function(){
  117 + this.setData({
  118 + showvipcode:true
  119 + })
  120 + },
  121 + //隐藏会员卡
  122 + hide_tc: function () {
  123 + this.setData({
  124 + tc_hide: true,
  125 + });
  126 + },
  127 +
  128 + //--跳转到预存款页面--
  129 + deposit: function () {
  130 + if (!this.data.userInfo)
  131 + {
  132 + this.login_user();
  133 + return false;
  134 + }
  135 + wx.navigateTo({
  136 + url: '/packageD/pages/user/deposit/deposit',
  137 + })
  138 + },
  139 + //--跳转到余额页面--
  140 + balance: function () {
  141 + if (!this.data.userInfo)
  142 + {
  143 + this.login_user();
  144 + return false;
  145 + };
  146 + wx.navigateTo({
  147 + url: '/packageD/pages/user/member/menber',
  148 + })
  149 + },
  150 + //--跳转到优惠券--
  151 + coupon: function () {
  152 + var th = this;
  153 + if (!this.data.userInfo)
  154 + {
  155 + this.login_user();
  156 + return false;
  157 + };
  158 + // th.sendsm();
  159 + wx.navigateTo({
  160 + url: '/packageD/pages/user/coupons/coupons',
  161 + })
  162 + },
  163 + //--跳转到积分--
  164 + integral: function () {
  165 + if (!this.data.userInfo)
  166 + {
  167 + this.login_user();
  168 + return false;
  169 + }
  170 + wx.navigateTo({
  171 + url: '/packageD/pages/user/integral/integral',
  172 + })
  173 + },
  174 +
  175 + jump: function () {
  176 + let isRfm = wx.getStorageSync('isRfm')
  177 + //升级为RFM就不跳转成长值详情
  178 + if (!isRfm) {
  179 + getApp().goto("/packageE/pages/user/grow_value/grow_value")
  180 + }
  181 + },
  182 +
  183 + //跳转到链接
  184 + goto: function (e) {
  185 + console.log(e);
  186 + console.log('跳转');
  187 + var url = e.currentTarget.dataset.url;
  188 + wx.navigateTo({ url: url })
  189 +
  190 + },
  191 +
  192 + go_info:function (){
  193 + getApp().goto("/packageG/pages/user/userinfo/userinfo");
  194 + }
  195 +
  196 +
  197 + }
  198 +})
0 199 \ No newline at end of file
... ...
components/diy_user_info/diy_user_info.json 0 → 100644
  1 +{
  2 + "component": true
  3 + }
0 4 \ No newline at end of file
... ...
components/diy_user_info/diy_user_info.wxml 0 → 100644
  1 +<view class="xc-user" >
  2 + <view class="xc-head rel">
  3 + <block wx:if="{{object.bg_type==1}}">
  4 + <image class="xc-background" src="{{iurl}}{{ad_img?ad_img:'/miniapp/images/user_index_powder.jpg'}}">
  5 + <block wx:if="{{object.style==0}}">
  6 + <include src="style1.wxml"></include>s
  7 + </block>
  8 + <block wx:if="{{object.style==1}}">
  9 + <include src="style2.wxml"></include>s
  10 + </block>
  11 + <block wx:if="{{object.style==2}}">
  12 + <include src="style3.wxml"></include>s
  13 + </block>
  14 +
  15 + </image>
  16 + </block>
  17 + <block wx:else>
  18 + <view class="xc-background" style="background-color:{{object.bg_color}}">
  19 + <block wx:if="{{object.style==0}}">
  20 + <include src="style1.wxml"></include>
  21 + </block>
  22 + <block wx:if="{{object.style==1}}">
  23 + <include src="style2.wxml"></include>
  24 + </block>
  25 + <block wx:if="{{object.style==2}}">
  26 + <include src="style3.wxml"></include>
  27 + </block>
  28 + </view>
  29 + </block>
  30 + </view>
  31 +</view>
  32 +
  33 +<block wx:if="{{is_no_plus}}">
  34 + <view class="xc-add-member-frame flex-level rel addplus" wx:if="{{is_dengji==2 && show_buy_plus }}">
  35 + <view class="xc-add-member flex-center-around ">
  36 + <view class="flex jc-center ai-center">
  37 + <image class="xc-icon" src="{{iurl}}/miniapp/images/user/user_vip.png"></image>
  38 + <view class="member fs28 "> 加入plus会员预计可省3031元</view>
  39 + </view>
  40 + <view class="xc-opening-button t-c" data-url="/pages/user/plus/plus" bindtap="goto">
  41 + <view class="xc-opening fs28">立即开通</view>
  42 + </view>
  43 + </view>
  44 + </view>
  45 +
  46 + <view class="xc-add-member-frame flex-level rel addplus" wx:if="{{is_dengji==3 && show_buy_plus}}">
  47 + <view class="xc-add-member flex-center-around ">
  48 + <view class="flex jc-center ai-center">
  49 + <image class="xc-icon" src="{{iurl}}/miniapp/images/user/user_vip.png"></image>
  50 + <view class="member fs28 "> 加入plus会员预计可省3031元</view>
  51 + </view>
  52 + <view class="xc-opening-button t-c" data-url="/packageE/pages/user/cardinfo/cardinfo" bindtap="goto">
  53 + <view class="xc-opening fs28">立即续费</view>
  54 + </view>
  55 + </view>
  56 + </view>
  57 +</block>
  58 +
  59 +
  60 +
  61 +<!--弹出层内容,其中的“我知道”中绑定让弹出层消失的函数:bindtap="hide"-->
  62 +<view class="tc_view" hidden='{{tc_hide}}' bindtap='hide_tc'>
  63 + <view class="modal-box" hidden="{{flag}}" bindtap="hide" catchtouchmove="true"></view>
  64 + <view class="modal-body" catchtouchmove="true">
  65 + <view class="modal-content">
  66 + <view class="flex">
  67 + <image src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}" class="hd_img"></image>
  68 + <view class="ctent_txt">
  69 + <view class='txt1'>{{userInfo.nickname}}
  70 + <image wx:if="{{userInfo.sex==2}}" class="arrow-right" style="width: 35rpx; height:35rpx; top: 5rpx" src="{{iurl}}/miniapp/images/user/wum.png"></image>
  71 + <image wx:else class="arrow-right fu" style="width: 35rpx; height:35rpx;top:5rpx" src="{{iurl}}/miniapp/images/user/man.png"></image>
  72 + </view>
  73 + <view wx:if="{{userInfo.address}}" class='txt2'>{{userInfo.address}}</view>
  74 + </view>
  75 + </view>
  76 + <view class="canvas_box">
  77 + <!--<image class='g_img' src='https://mshop.yolipai.net//index.php?m=Home&c=Index&a=qr_code&data={{userInfo.mobile}}'></image>-->
  78 + <canvas class="g_img" canvas-id="qrcode" />
  79 + </view>
  80 + <view style="width: 100%;display: flex;justify-content: center;">
  81 + <canvas class="barcode" style="width: 100%;height: 140rpx;" canvas-id="barcode" />
  82 + </view>
  83 + <view wx:if="{{showvipcode}}" class="fs24" style="width: 100%;color: #898989;display: flex;text-align: center;align-content: center;justify-content: center;">
  84 + {{brcode}}
  85 + </view>
  86 + <view wx:else catchtap="showtext" class="fs24" style="width: 100%;color: #898989;display: flex;text-align: center;align-content: center;justify-content: center;">
  87 + 点击可查看条形数据
  88 + </view>
  89 + </view>
  90 + </view>
  91 +</view>
0 92 \ No newline at end of file
... ...
components/diy_user_info/diy_user_info.wxss 0 → 100644
  1 +@import '../../app.wxss';
  2 +.addplus {
  3 + width: 100%;
  4 +}
  5 +.xc-add-member-farem {
  6 + width: 100%;
  7 + height: 84rpx;
  8 +}
  9 +.xc-add-member {
  10 + background-size: 100%;
  11 + margin-top: 10rpx;
  12 + color: rgb(238, 205, 172);
  13 + width: 730rpx;
  14 + height: 90rpx;
  15 + border-radius: 15rpx 15rpx 0 0;
  16 + background: url("data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/4QN6aHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjUtYzAxNCA3OS4xNTE0ODEsIDIwMTMvMDMvMTMtMTI6MDk6MTUgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MDhlYTAxZTktZGVjMy00MTc1LWE4MzEtNWQ0NjFhNWIzOGRjIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjdEMDAzN0JDRjNBQTExRTk4QjYzRjhEM0E3NkM1REQ0IiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjdEMDAzN0JCRjNBQTExRTk4QjYzRjhEM0E3NkM1REQ0IiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDQyAoV2luZG93cykiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4NGY5ODE2MS1mMjVjLWIzNDItOGYxNi1lMTNkY2Q2ZDJiMDgiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MDhlYTAxZTktZGVjMy00MTc1LWE4MzEtNWQ0NjFhNWIzOGRjIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3Jk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") no-repeat center;
  17 +}
  18 +.xc-add-member .xc-icon {
  19 + width: 30rpx;
  20 + height: 30rpx;
  21 +}
  22 +.xc-add-member .member {
  23 + margin-left: 10rpx;
  24 +}
  25 +
  26 +.xc-opening {
  27 + border-radius: 20rpx;
  28 + background: rgb(238, 205, 172);
  29 + height: 34rpx;
  30 + line-height: 34rpx;
  31 + color: #000;
  32 + padding-left: 15rpx;
  33 + padding-right: 17rpx;
  34 + padding: 5rpx 18rpx 5rpx 15rpx;
  35 +}
  36 +
  37 +
  38 +/*-- 头部 --*/
  39 +.xc-user .xc-head {
  40 + height: 380rpx;
  41 +}
  42 +
  43 +.xc-background {
  44 + width:100%;
  45 + height: 100%;
  46 +}
  47 +
  48 +.xc-user-frame {
  49 + width: 83%;
  50 + height: 35%;
  51 + top: 44rpx;
  52 + left: 56rpx;
  53 +}
  54 +.xc-user-left {
  55 + height: 110rpx;
  56 + margin-top: 10rpx;
  57 + margin-left: 5rpx;
  58 +}
  59 +.xc-user-img {
  60 + width: 110rpx;
  61 + height: 110rpx;
  62 +}
  63 +
  64 +/*等级卡有关*/
  65 +.plusMax {
  66 + background: linear-gradient(to bottom, #4c3217, #010100);
  67 + height: 40rpx;
  68 + border-radius: 20rpx;
  69 + line-height: 40rpx;
  70 + padding-left: 15rpx;
  71 + padding-right: 15rpx;
  72 + font-size: 20rpx;
  73 + position: absolute;
  74 + left: 50%;
  75 + bottom: -20rpx;
  76 + white-space: nowrap;
  77 + transform: translate(-50%, 0);
  78 + color: #fff;
  79 +}
  80 +.fuls {
  81 + width: 25rpx;
  82 + height: 25rpx;
  83 + margin-right: 5rpx;
  84 +}
  85 +.xc-uesr-name {
  86 + color: #fff;
  87 + font-size: 32rpx;
  88 + margin-top: 17rpx;
  89 + margin-left: 20rpx;
  90 +}
  91 +.hvip {
  92 + display: inline-block;
  93 + font-size: 20rpx;
  94 + height: 40rpx;
  95 + line-height: 40rpx;
  96 + color: #e7bf77;
  97 + background: #383838;
  98 + padding: 0 15rpx;
  99 + border-radius: 20rpx;
  100 + margin-left: 5rpx;
  101 +}
  102 +.vip-mem {
  103 + width: 26rpx;
  104 + height: 23rpx;
  105 + vertical-align: top;
  106 + margin-top: 8rpx;
  107 + margin-right: 5rpx;
  108 +}
  109 +.grow-up-val {
  110 + /* padding:1rpx 13rpx 1rpx 13rpx; */
  111 + border-radius: 20rpx;
  112 + background: #ffbdce;
  113 + padding-left: 16rpx;
  114 + padding-right: 16rpx;
  115 + padding-bottom: 3rpx;
  116 + margin-right: 5rpx;
  117 +}
  118 +.xc-assets {
  119 + width: 94%;
  120 + bottom: 26rpx;
  121 + color: #fff;
  122 + line-height: 46rpx;
  123 + margin-left: 10rpx;
  124 +}
  125 +
  126 +
  127 +.xc-qrcode-frame {
  128 + /* border-radius: 10rpx;
  129 + border: 5rpx solid #fe9db5;
  130 + background: #fe9db5;
  131 + width: 70rpx;
  132 + height: 70rpx; */
  133 + top: 40rpx;
  134 + right: 40rpx;
  135 +}
  136 +
  137 +.xc-qrcode {
  138 + border-radius: 10rpx;
  139 + border: 5rpx solid #fe9db5;
  140 + background: #fe9db5;
  141 + width: 70rpx;
  142 + height: 70rpx;
  143 +}
  144 +
  145 +/*---弹出层---*/
  146 +.modal-box {
  147 + position: fixed;
  148 + width: 100%;
  149 + height: 100%;
  150 + top: 0px;
  151 + background: rgba(0, 0, 0, 0.4);
  152 + overflow: hidden;
  153 +}
  154 +
  155 +.modal-body {
  156 + position: fixed;
  157 + top: 0;
  158 + bottom: 0;
  159 + left: 0;
  160 + right: 0;
  161 + margin: auto;
  162 + z-index: 100;
  163 + background: #fff;
  164 + /* margin-left: 73rpx; */
  165 + width: 600rpx;
  166 + height: 860rpx;
  167 + border-radius: 8px;
  168 + text-align: center;
  169 +}
  170 +
  171 +.modal-content {
  172 + width: 480rpx;
  173 + margin: 0 auto;
  174 + margin-top: 60rpx;
  175 + overflow: hidden;
  176 +}
  177 +
  178 +.modal-content .hd_img {
  179 + width: 170rpx;
  180 + height: 170rpx;
  181 + border-radius: 5px;
  182 +}
  183 +
  184 +.ctent_txt {
  185 + margin-left: 30rpx;
  186 + text-align: left;
  187 +}
  188 +
  189 +.txt1 {
  190 + font-size: 34rpx;
  191 + font-weight: bold;
  192 +}
  193 +
  194 +.txt2 {
  195 + font-size: 30rpx;
  196 + color: #999;
  197 + margin-top: 20rpx;
  198 +}
  199 +
  200 +.arrow-right {
  201 + width: 20rpx;
  202 + height: 40rpx;
  203 + position: relative;
  204 + top: 13rpx;
  205 + margin-left: 20rpx;
  206 +}
  207 +
  208 +.m_ta {
  209 + margin-top: 50rpx;
  210 +}
  211 +
  212 +.g_img {
  213 + width: 350rpx;
  214 + height: 350rpx;
  215 +}
  216 +
  217 +.s_sao {
  218 + font-size: 27rpx;
  219 + margin-top: 25rpx;
  220 +}
  221 +
  222 +.gr_box {
  223 + position: relative;
  224 + height: 16rpx;
  225 + background-color: #fff;
  226 + border-radius: 8rpx;
  227 + overflow: hidden;
  228 +}
  229 +.gr_box_item{
  230 + height: 16rpx;
  231 + background-color: #999;
  232 +}
  233 +
  234 +.canvas_box{
  235 + display: flex;
  236 + align-items: center;
  237 + justify-content: center;
  238 + /* margin-top: 20rpx; */
  239 +}
  240 +.numfont {
  241 + font-size: 28rpx;
  242 +}
0 243 \ No newline at end of file
... ...
components/diy_user_info/style1.wxml 0 → 100644
  1 +<view class="flex-space-between abs xc-user-frame">
  2 +
  3 + <!-- 会员有登陆登陆的情况 -->
  4 + <view class="xc-user-left flex" wx:if="{{userInfo}}">
  5 +
  6 +
  7 + <view style="position:relative;">
  8 + <image class="xc-user-img {{object.head_pic_type?'circle':''}} " bindtap="go_info" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image>
  9 + <block wx:if="{{pulscardname && sys_switch.rank_switch > 0 && object.is_plus }}">
  10 + <view data-url="/pages/user/plus/plus" catchtap="goto" class="flex-center plusMax">
  11 + <image class="fuls" src="{{iurl}}/miniapp/images/userinfo/userinfo/privilege_t.png"></image>
  12 + <view>{{pulscardname}}</view>
  13 + </view>
  14 + </block>
  15 + </view>
  16 +
  17 + <view class="xc-uesr-name" style="color:{{object.word_color}}">
  18 + <view class="flex ai-center">
  19 + <text class="ellipsis-1" style="max-width: 290rpx;display: inline-block">{{userInfo.nickname}}</text>
  20 +
  21 + <view class="hvip" wx:if='{{qy_data && qy_data.GradeName && qy_data.is_init && object.is_qy}}'>
  22 + <image class="vip-mem" src="{{iurl}}/miniapp/images/vip_hg0.png"></image>{{qy_data.GradeName}}
  23 + </view>
  24 + </view>
  25 + <view class="flex fs24 xc-grow-ups" style="margin-left:8rpx;margin-top:6rpx" wx:if="{{qy_data && qy_data.is_init && qy_data.gradeId && object.is_cz}}" bindtap='jump'>
  26 + <block wx:if="{{qy_data.cz_val<qy_data.full_cz_val}}">
  27 + {{" "}}
  28 + <text class="grow-up-val" style="background:{{userqy_color.secord_bgcolor?userqy_color.secord_bgcolor:'#fe9db5'}};color:{{userqy_color.font_color}}">{{rfmName}}</text>
  29 + <view style='margin-left:5rpx; color:{{userqy_color.font_color}} '>{{qy_data.cz_val}} / {{qy_data.need_money}}</view>
  30 + </block>
  31 + <block wx:else>
  32 + {{" "}}
  33 + <text style="color:{{userqy_color.font_color}}">
  34 + <text class="grow-up-val" style="background:{{userqy_color.secord_bgcolor?userqy_color.secord_bgcolor:'#fe9db5'}};">{{rfmName}}</text>{{cz_val}}
  35 + </text>
  36 +
  37 + </block>
  38 + </view>
  39 + </view>
  40 +
  41 + </view>
  42 +
  43 + <!-- 会员没有登陆的情况 -->
  44 + <view class="xc-user-left flex" wx:else bindtap="login_user">
  45 + <image class="xc-user-img circle" src="{{defaultAvatar}}"></image>
  46 + <view class="xc-uesr-name" style="color:{{object.word_color}}">请点击注册</view>
  47 + </view>
  48 +</view>
  49 +
  50 +
  51 +<view wx:if="{{userInfo && object.is_user_card}}" class="xc-qrcode-frame abs" style="top:46rpx">
  52 + <image bindtap='show_tc' class=" xc-qrcode " style="border: 5rpx solid {{object.user_bg_color}};background: {{object.user_bg_color}};" src="{{iurl}}/miniapp/images/qrcode1.png"></image>
  53 + <view style="font-size:12px;color:{{object.word_color}}">会员卡</view>
  54 +</view>
  55 +
  56 +<view class="flex-vertical abs xc-grow-frame rel" style="display: none">
  57 + <view class="xc-grow-up">{{rfmName}}</view>
  58 + <view class="xc-line-not rel">
  59 + <image class="xc-bj-img abs" src="{{iurl}}/miniapp/images/baijing.png"></image>
  60 + <image class="xc-zs-img abs" src="{{iurl}}/miniapp/images/zhuangshi.png"></image>
  61 + <view class="xc-line-Yes abs" style="width:{{length}}rpx;"></view>
  62 + </view>
  63 + <view class="xc-grow-val">0/0</view>
  64 +</view>
  65 +
  66 +
  67 +<!-- 底部显示余额,储值卡,积分,优惠券等 -->
  68 +<view class="flex-equality abs xc-assets" style="color:{{object.word_color}}">
  69 +
  70 + <block wx:for="{{object.show_arr}}">
  71 + <block wx:if="{{item.show}}">
  72 + <block wx:if="{{item.type=='user_money'}}">
  73 + <view class="t-c typefont" bindtap='balance'>{{yuer?yuer:0}}
  74 + <view class='numfont'>余额</view>
  75 + </view>
  76 + </block>
  77 + <block wx:if="{{item.type=='yc' && !is_close_chuzhi}}">
  78 + <view class="t-c typefont" bindtap='deposit'>{{udata.Balance?udata.Balance:0}}
  79 + <view class='numfont'>储值款</view>
  80 + </view>
  81 + </block>
  82 + <block wx:if="{{item.type=='jf'}}">
  83 + <view class="t-c typefont" bindtap='integral'>{{udata.Integral?udata.Integral:0}}
  84 + <view class='numfont'>积分</view>
  85 + </view>
  86 + </block>
  87 + <block wx:if="{{item.type=='quan'}}">
  88 + <view class="t-c typefont" bindtap='coupon'>{{udata.CashCount+byquan?udata.CashCount+byquan:0}}
  89 + <view class='numfont'>优惠券</view>
  90 + </view>
  91 + </block>
  92 + </block>
  93 +
  94 +
  95 + </block>
  96 +</view>
0 97 \ No newline at end of file
... ...
components/diy_user_info/style2.wxml 0 → 100644
  1 +<!-- 会员有登陆登陆的情况 -->
  2 +<view class="xc-user-frame abs" wx:if="{{userInfo}}" style="top:20rpx">
  3 +
  4 + <view class="flex jc-center">
  5 + <view style="position:relative;">
  6 + <image class="xc-user-img {{object.head_pic_type?'circle':''}}" bindtap="go_info" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image>
  7 + <block wx:if="{{pulscardname && sys_switch.rank_switch > 0 && object.is_plus }}">
  8 + <view data-url="/pages/user/plus/plus" catchtap="goto" class="flex-center plusMax" style="bottom:-12rpx">
  9 + <image class="fuls" src="{{iurl}}/miniapp/images/userinfo/userinfo/privilege_t.png"></image>
  10 + <view>{{pulscardname}}</view>
  11 + </view>
  12 + </block>
  13 + </view>
  14 + </view>
  15 +
  16 + <view class="xc-uesr-name" style="color:{{object.word_color}}">
  17 + <view class="flex ai-center jc-center">
  18 + <text class="ellipsis-1" style="max-width: 290rpx;display: inline-block">{{userInfo.nickname}}</text>
  19 +
  20 + <view class="hvip" wx:if='{{qy_data && qy_data.GradeName && qy_data.is_init && object.is_qy}}'>
  21 + <image class="vip-mem" src="{{iurl}}/miniapp/images/vip_hg0.png"></image>{{qy_data.GradeName}}
  22 + </view>
  23 + </view>
  24 + <view class="flex fs24 xc-grow-ups jc-center" style="margin-left:8rpx;margin-top:4rpx" wx:if="{{qy_data && qy_data.is_init && qy_data.gradeId && object.is_cz}}" bindtap='jump'>
  25 + <block wx:if="{{qy_data.cz_val<qy_data.full_cz_val}}">
  26 + {{" "}}
  27 + <text class="grow-up-val" style="background:{{userqy_color.secord_bgcolor?userqy_color.secord_bgcolor:'#fe9db5'}}; color:{{userqy_color.font_color}}">{{rfmName}}</text>
  28 + <view style='margin-left:5rpx; color:{{userqy_color.font_color}}'>{{qy_data.cz_val}} / {{qy_data.need_money}}</view>
  29 + </block>
  30 + <block wx:else>
  31 + {{" "}}
  32 + <text class="grow-up-val" style="background:{{userqy_color.secord_bgcolor?userqy_color.secord_bgcolor:'#fe9db5'}}; color:{{userqy_color.font_color}}">{{rfmName}}</text> {{cz_val}}
  33 + </block>
  34 + </view>
  35 + </view>
  36 +
  37 +</view>
  38 +
  39 +
  40 +<view wx:else class="flex-space-between abs xc-user-frame">
  41 + <!-- 会员没有登陆的情况 -->
  42 + <view class="xc-user-left flex" bindtap="login_user">
  43 + <image class="xc-user-img circle" src="{{defaultAvatar}}"></image>
  44 + <view class="xc-uesr-name" style="color:{{object.word_color}}">请点击注册</view>
  45 + </view>
  46 +</view>
  47 +
  48 +
  49 +<view wx:if="{{userInfo && object.is_user_card}}" class="xc-qrcode-frame abs ">
  50 + <image bindtap='show_tc' class=" xc-qrcode " style="border: 5rpx solid {{object.user_bg_color}};background: {{object.user_bg_color}};" src="{{iurl}}/miniapp/images/qrcode1.png"></image>
  51 + <view style="font-size:12px;color:{{object.word_color}}">会员卡</view>
  52 +</view>
  53 +
  54 +<view class="flex-vertical abs xc-grow-frame rel" style="display: none">
  55 + <view class="xc-grow-up">{{rfmName}}</view>
  56 + <view class="xc-line-not rel">
  57 + <image class="xc-bj-img abs" src="{{iurl}}/miniapp/images/baijing.png"></image>
  58 + <image class="xc-zs-img abs" src="{{iurl}}/miniapp/images/zhuangshi.png"></image>
  59 + <view class="xc-line-Yes abs" style="width:{{length}}rpx;"></view>
  60 + </view>
  61 + <view class="xc-grow-val">0/0</view>
  62 +</view>
  63 +
  64 +
  65 +<!-- 底部显示余额,储值卡,积分,优惠券等 -->
  66 +<view class="flex-equality abs xc-assets" style="color:{{object.word_color}}">
  67 +
  68 + <block wx:for="{{object.show_arr}}">
  69 + <block wx:if="{{item.show}}">
  70 + <block wx:if="{{item.type=='user_money'}}">
  71 + <view class="t-c typefont" bindtap='balance'>{{yuer?yuer:0}}
  72 + <view class='numfont'>余额</view>
  73 + </view>
  74 + </block>
  75 + <block wx:if="{{item.type=='yc' && !is_close_chuzhi}}">
  76 + <view class="t-c typefont" bindtap='deposit'>{{udata.Balance?udata.Balance:0}}
  77 + <view class='numfont'>储值款</view>
  78 + </view>
  79 + </block>
  80 + <block wx:if="{{item.type=='jf'}}">
  81 + <view class="t-c typefont" bindtap='integral'>{{udata.Integral?udata.Integral:0}}
  82 + <view class='numfont'>积分</view>
  83 + </view>
  84 + </block>
  85 + <block wx:if="{{item.type=='quan'}}">
  86 + <view class="t-c typefont" bindtap='coupon'>{{udata.CashCount+byquan?udata.CashCount+byquan:0}}
  87 + <view class='numfont'>优惠券</view>
  88 + </view>
  89 + </block>
  90 + </block>
  91 +
  92 +
  93 + </block>
  94 +</view>
0 95 \ No newline at end of file
... ...
components/diy_user_info/style3.wxml 0 → 100644
  1 +<!-- 会员有登陆登陆的情况 -->
  2 +<block wx:if="{{userInfo}}">
  3 + <view class="xc-user-frame abs" style="width:700rpx;left:25rpx;top:32rpx">
  4 + <view class="xc-uesr-name" style="color:{{object.word_color}}" >
  5 + <view class="flex ai-center">
  6 + <text class="ellipsis-1" style="max-width: 290rpx;display: inline-block">{{userInfo.nickname}}</text>
  7 + </view>
  8 + <view class="flex fs24 xc-grow-ups ai-center" style="margin-top:4rpx">
  9 + <view class="hvip" wx:if='{{qy_data && qy_data.GradeName && qy_data.is_init && object.is_qy}}' style="margin-right:6rpx">
  10 + <image class="vip-mem" src="{{iurl}}/miniapp/images/vip_hg0.png"></image>{{qy_data.GradeName}}
  11 + </view>
  12 + <image bindtap='show_tc' class="xc-qrcode" wx:if="{{userInfo && object.is_user_card}}"
  13 + style="border: 5rpx solid {{object.user_bg_color}};background: {{object.user_bg_color}};width:40rpx; height:40rpx;" src="{{iurl}}/miniapp/images/qrcode1.png"></image>
  14 + </view>
  15 +
  16 + <!-- 显示成长值,综合分 -->
  17 + <block wx:if="{{qy_data && qy_data.is_init && qy_data.gradeId && object.is_cz}}">
  18 + <view class="fs22" style="margin-top:15rpx;color:{{userqy_color.font_color}} ">距{{qy_data.nextGradeName}}还有{{qy_data.need_money-qy_data.cz_val}}</view>
  19 + <view class="gr_box" style="margin-top:10rpx">
  20 + <view class="gr_box_item" style="width:{{(qy_data.cz_val*100)/qy_data.need_money}}%;background:{{userqy_color.secord_bgcolor?userqy_color.secord_bgcolor:'#fe9db5'}}"></view>
  21 + </view>
  22 + </block>
  23 +
  24 + </view>
  25 + </view>
  26 +
  27 + <view class="xc-qrcode-frame abs" style="right:50rpx;top:38rpx">
  28 + <view style="position:relative;">
  29 + <image class="xc-user-img {{object.head_pic_type?'circle':''}}" bindtap="go_info" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image>
  30 + <block wx:if="{{pulscardname && sys_switch.rank_switch > 0 && object.is_plus }}">
  31 + <view data-url="/pages/user/plus/plus" catchtap="goto" class="flex-center plusMax" style="bottom:-12rpx">
  32 + <image class="fuls" src="{{iurl}}/miniapp/images/userinfo/userinfo/privilege_t.png"></image>
  33 + <view>{{pulscardname}}</view>
  34 + </view>
  35 + </block>
  36 + </view>
  37 + </view>
  38 +
  39 +
  40 +
  41 +</block>
  42 +
  43 +
  44 +
  45 +<!-- 显示头像 -->
  46 +<view wx:else class="flex-space-between abs xc-user-frame" >
  47 + <!-- 会员没有登陆的情况 -->
  48 + <view class="xc-user-left flex" bindtap="login_user">
  49 + <image class="xc-user-img circle" src="{{defaultAvatar}}"></image>
  50 + <view class="xc-uesr-name" style="color:{{object.word_color}}">请点击注册</view>
  51 + </view>
  52 +</view>
  53 +
  54 +
  55 +
  56 +<view class="flex-vertical abs xc-grow-frame rel" style="display: none">
  57 + <view class="xc-grow-up">{{rfmName}}</view>
  58 + <view class="xc-line-not rel">
  59 + <image class="xc-bj-img abs" src="{{iurl}}/miniapp/images/baijing.png"></image>
  60 + <image class="xc-zs-img abs" src="{{iurl}}/miniapp/images/zhuangshi.png"></image>
  61 + <view class="xc-line-Yes abs" style="width:{{length}}rpx;"></view>
  62 + </view>
  63 + <view class="xc-grow-val">0/0</view>
  64 +</view>
  65 +
  66 +
  67 +<!-- 底部显示余额,储值卡,积分,优惠券等 -->
  68 +<view class="flex-equality abs xc-assets" style="color:{{object.word_color}}">
  69 +
  70 + <block wx:for="{{object.show_arr}}">
  71 + <block wx:if="{{item.show}}">
  72 + <block wx:if="{{item.type=='user_money'}}">
  73 + <view class="t-c typefont" bindtap='balance'>{{yuer?yuer:0}}
  74 + <view class='numfont'>余额</view>
  75 + </view>
  76 + </block>
  77 + <block wx:if="{{item.type=='yc' && !is_close_chuzhi}}">
  78 + <view class="t-c typefont" bindtap='deposit'>{{udata.Balance?udata.Balance:0}}
  79 + <view class='numfont'>储值款</view>
  80 + </view>
  81 + </block>
  82 + <block wx:if="{{item.type=='jf'}}">
  83 + <view class="t-c typefont" bindtap='integral'>{{udata.Integral?udata.Integral:0}}
  84 + <view class='numfont'>积分</view>
  85 + </view>
  86 + </block>
  87 + <block wx:if="{{item.type=='quan'}}">
  88 + <view class="t-c typefont" bindtap='coupon'>{{udata.CashCount+byquan?udata.CashCount+byquan:0}}
  89 + <view class='numfont'>优惠券</view>
  90 + </view>
  91 + </block>
  92 + </block>
  93 +
  94 +
  95 + </block>
  96 +</view>
0 97 \ No newline at end of file
... ...
components/diy_user_my_rights/diy_user_my_rights.js 0 → 100644
  1 +var os = getApp().globalData.setting;
  2 +Component({
  3 + properties: {
  4 + object: {
  5 + type: Object,
  6 + value: null
  7 + },
  8 + qy_data:{
  9 + type: Object,
  10 + value: null
  11 + },
  12 + b_gift:{
  13 + type: Object,
  14 + value: null
  15 + },
  16 + },
  17 + data: {
  18 + iurl:os.imghost,
  19 + qy_list:[]
  20 + },
  21 + methods: {
  22 +
  23 + //
  24 + clike_banne: function () {
  25 + var th = this;
  26 + var actId = th.properties.b_gift.actId;
  27 + var giftbagid = th.properties.b_gift.giftbagid;
  28 +
  29 + if (actId != "" && giftbagid != "") {
  30 + getApp().goto("/pages/giftpack/birthdaygift/birthdaygift?actId=" + actId + "&gifbagid=" + giftbagid + "&orderType=" + 3);
  31 + } else {
  32 + getApp().showWarning("请稍后重试");
  33 + }
  34 + },
  35 +
  36 + //--跳转到权益页面--
  37 + go_qy: function () {
  38 + if (!getApp().globalData.userInfo) return false;
  39 + var url = "/pages/user/userqy/userqy";
  40 + getApp().goto(url);
  41 + },
  42 + },
  43 + observers: {
  44 + // 监听 num1 和 num2 数据的变化
  45 + 'qy_data': function(obj){
  46 + console.log(1111);
  47 + console.log(obj);
  48 + if(obj){
  49 + //4个4个一组
  50 + let arr = new Array();
  51 + let ater=this.properties.object.show_num;
  52 + let arr_data= this.properties.qy_data.old_qy_list
  53 + for (let i = 0; i < arr_data.length; i += ater) {
  54 + arr.push(arr_data.slice(i, i + ater));
  55 + }
  56 + this.setData({qy_list:arr})
  57 + }
  58 + }
  59 + },
  60 +
  61 +})
0 62 \ No newline at end of file
... ...
components/diy_user_my_rights/diy_user_my_rights.json 0 → 100644
  1 +{
  2 + "component": true
  3 + }
0 4 \ No newline at end of file
... ...
components/diy_user_my_rights/diy_user_my_rights.wxml 0 → 100644
  1 +<!-- 我的权益 -->
  2 +<view class="xc-my-equity-frame" wx:if="{{qy_data && qy_data.is_init}}">
  3 + <view class="xc-equity-title flex-level" bindtap="go_qy" wx:if="{{object.is_title}}">
  4 + <view class="xc-title-frame flex-space-between">
  5 + <view class="flex-vertical xc-title-content">
  6 + <image class="xc-title-img" src="{{iurl}}/miniapp/images/medal.png"></image>
  7 + <view class="three-level-word">我的权益</view>
  8 + </view>
  9 + </view>
  10 + <view wx:if="{{qy_data.is_grad_get}}" class="three-level-word xc-more-frame flex-vertical">
  11 + <view class="three-level-word xc-more">更多</view>
  12 + <view class="bg_right xc-more-click bcolor"></view>
  13 + </view>
  14 + <view wx:else class="three-level-word xc-more-frame flex-vertical" style="justify-content: flex-end">
  15 + <image style="width: 40rpx; height: 40rpx; margin-right: 20rpx" src="{{iurl}}/miniapp/images/loader.gif"></image>
  16 + </view>
  17 + </view>
  18 +
  19 + <block wx:if="{{qy_data && qy_data.is_grad_get}}">
  20 + <block wx:if="{{qy_data && qy_data.qy_list && qy_data.gradeId}}">
  21 + <view class="xc-specific-more-frame flex-vertical" wx:if="{{qy_data.qy_list}}">
  22 +
  23 + <view bindtap="click_pre">
  24 + <view class="bg_left xc-left bcolor"></view>
  25 + </view>
  26 +
  27 + <swiper current="{{sw_index}}" style='width:82.7%; height:108rpx' bindchange='onSli' indicator-dots="{{false}}" autoplay="{{false}}">
  28 + <swiper-item wx:for="{{qy_list}}" wx:for-item="aitem" wx:for-index="pidx">
  29 + <view class="flex xc-middle">
  30 +
  31 + <view class="xc-center-frame t-c" wx:for="{{aitem}}" data-img="{{item.PrivilegeImageUrl}}" data-no="{{item.PrivilegeType}}"
  32 + data-ind="{{index}}" data-find="{{pidx}}" bindtap="go_qy_url">
  33 + <!-- <text>qy_list.privilegeICOUrl</text> -->
  34 + <image wx:if="{{object.is_icon}}" class="xc-center-img {{item.ishas==1?'':'img_gray'}}" src="{{item.PrivilegeICOUrl}}"></image>
  35 + <view class="four-level-word ellipsis-1">{{item.PrivilegeName}}</view>
  36 + </view>
  37 + </view>
  38 + </swiper-item>
  39 +
  40 + </swiper>
  41 +
  42 + <view bindtap="click_next">
  43 + <view class="bg_right xc-right bcolor mt"></view>
  44 + </view>
  45 + </view>
  46 + </block>
  47 + <view wx:else style="text-align: center">
  48 + 未找到数据
  49 + </view>
  50 + </block>
  51 +</view>
  52 +
  53 + <!-- 生日营销 is_banner-->
  54 +<block wx:if="{{b_gift}}">
  55 + <view class="t-c banner-frame" bindtap="clike_banne">
  56 + <image class="banner-img" src="{{b_gift.actImg==''?iurl+'/miniapp/images/user/banner-img.jpg':iurl+b_gift.actImg}}">
  57 + </image>
  58 + </view>
  59 +</block>
0 60 \ No newline at end of file
... ...
components/diy_user_my_rights/diy_user_my_rights.wxss 0 → 100644
  1 +@import '../../app.wxss';
  2 +/* 我的权益 */
  3 +.xc-my-equity-frame {
  4 + width: 100%;
  5 + height: 248rpx;
  6 +}
  7 +
  8 +.xc-equity-title {
  9 + width: 100%;
  10 + height: 79rpx;
  11 + border-bottom: 1rpx solid #f2f2f2;
  12 +}
  13 +
  14 +.xc-title-frame {
  15 + width: 85%;
  16 + height: 100%;
  17 +}
  18 +
  19 +.xc-title-img {
  20 + width: 50rpx;
  21 + height: 50rpx;
  22 + margin-left: 20rpx;
  23 +}
  24 +
  25 +.xc-title-content {
  26 + height: 100%;
  27 +}
  28 +
  29 +.xc-more {
  30 + color: #878787;
  31 +}
  32 +
  33 +.xc-more-frame {
  34 + width: 16.1%;
  35 + height: 100%;
  36 +}
  37 +
  38 +
  39 +.xc-more-click {
  40 + width: 15rpx;
  41 + height: 15rpx;
  42 + margin-left: 10rpx;
  43 + color: #898989;
  44 +}
  45 +
  46 +.bg_right.bcolor,
  47 +.bg_left.bcolor {
  48 + border-color: #333;
  49 +}
  50 +
  51 +.bg_right.mt {
  52 + margin-top: -9rpx;
  53 +}
  54 +
  55 +.bg_right.mt2 {
  56 + margin-top: -5rpx;
  57 +}
  58 +
  59 +
  60 +.xc-specific-more-frame {
  61 + width: 100%;
  62 + height: 169rpx;
  63 + padding-left: 43rpx;
  64 +}
  65 +
  66 +.xc-specific-more-frame .xc-left {
  67 + width: 20rpx;
  68 + height: 20rpx;
  69 +}
  70 +
  71 +.xc-specific-more-frame .xc-middle {
  72 + width: 100%;
  73 + margin-left: 2%;
  74 + height:100%;
  75 + align-items: center;
  76 +}
  77 +.xc-center-frame {
  78 + width: 20%;
  79 + margin-right: 5%;
  80 +}
  81 +.xc-center-img {
  82 + width: 60rpx;
  83 + height: 60rpx;
  84 +}
  85 +
  86 +/*---生日营销的显示 ---*/
  87 +.banner-img {
  88 + width: 95%;
  89 + height: 140rpx;
  90 + border-radius: 10px 10px 0px 0px;
  91 + margin-bottom: -5rpx;
  92 +
  93 +}
  94 +
  95 +.banner-frame {
  96 + width: 100%;
  97 + background: #f2f2f2;
  98 + padding-top: 20rpx;
  99 +}
  100 +
  101 +button::after {
  102 + border: 0
  103 +}
  104 +
  105 +
... ...
components/diy_user_order/diy_user_order.js 0 → 100644
  1 +var os = getApp().globalData.setting;
  2 +Component({
  3 + properties: {
  4 + object: {
  5 + type: Object,
  6 + value: null
  7 + },
  8 + // 统计相关的
  9 + toji:{
  10 + type: Object,
  11 + value: null
  12 + },
  13 +
  14 + },
  15 + data: {
  16 + iurl:os.imghost,
  17 + },
  18 + methods: {
  19 +
  20 + //跳转到订单的优化
  21 + go_order: function (e) {
  22 + if (!getApp().globalData.user_id)
  23 + {
  24 + getApp().goto('/packageE/pages/togoin/togoin');
  25 + return false;
  26 + };
  27 + var url = e.currentTarget.dataset.url;
  28 + wx.navigateTo({
  29 + url: url,
  30 + })
  31 + },
  32 + }
  33 +})
0 34 \ No newline at end of file
... ...
components/diy_user_order/diy_user_order.json 0 → 100644
  1 +{
  2 + "component": true
  3 + }
0 4 \ No newline at end of file
... ...
components/diy_user_order/diy_user_order.wxml 0 → 100644
  1 +<view class="xc-after-sale rel">
  2 + <!-- 顶上的一栏 -->
  3 + <view class="xc-equity-title flex-level" wx:if="{{object.is_title}}">
  4 + <view class="xc-title-frame flex ai-center">
  5 + <view class="flex-vertical xc-title-content" bindtap="go_order" data-url="/pages/user/order_list/order_list">
  6 + <image class="xc-title-img" src="{{iurl}}/miniapp/images/hdindan.png" style="width: 50rpx; height: 55rpx;margin-right: 5rpx"></image>
  7 + <view class="three-level-word">我的订单</view>
  8 + </view>
  9 + <!-- 物流信息提醒 -->
  10 + <view class="fs26 c-5 pdl60" wx:if="{{countDadaOrder && countDadaOrder != 0}}" bindtap="go_order" data-url="/pages/user/order_list/order_list?index=1"><text class="iconfont icon-dingwei"></text>您有<text class="c-red">{{countDadaOrder}}</text>个同城配送订单</view>
  11 + </view>
  12 + <view class="three-level-word xc-more-frame flex-vertical" bindtap="go_order" data-url="/pages/user/order_list/order_list">
  13 + <view class="three-level-word xc-more">更多</view>
  14 + <view class="bg_right xc-more-click bcolor"></view>
  15 + </view>
  16 + </view>
  17 + <!-- 内容的一栏 -->
  18 + <view class="xc-after-sale-left flex-center-around">
  19 + <block wx:for="{{object.list}}">
  20 + <!-- 判断自定义的判断显示-->
  21 + <block wx:if="{{item.show}}">
  22 + <block wx:if="{{item.name=='待付款'}}">
  23 + <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=1">
  24 + <image mode="heightFix" wx:if="{{object.is_icon}}" class="xc-no-money" src="{{item.src}}"></image>
  25 + <view class=" xc-word-color four-level-word">待付款</view>
  26 + <text class="order-num" hidden='{{toji.wait_pay>0?"":"true"}}'>{{toji.wait_pay}}</text>
  27 + </view>
  28 + </block>
  29 + <block wx:if="{{item.name=='待发货'}}">
  30 + <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=2">
  31 + <image mode="heightFix" wx:if="{{object.is_icon}}" class="xc-send" src="{{item.src}}"></image>
  32 + <view class="xc-word-color four-level-word">待发货</view>
  33 + <text class="order-num" hidden='{{toji.wait_send>0?"":"true"}}'>{{toji.wait_send}}</text>
  34 + </view>
  35 +
  36 + </block>
  37 + <block wx:if="{{item.name=='待收货'}}">
  38 + <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=3">
  39 + <image mode="heightFix" wx:if="{{object.is_icon}}" class="xc-await" src="{{item.src}}"></image>
  40 + <view class="xc-word-color four-level-word">待收货</view>
  41 + <text class="order-num" hidden='{{toji.wait_receive>0?"":"true"}}'>{{toji.wait_receive}}</text>
  42 + </view>
  43 +
  44 + </block>
  45 + <block wx:if="{{item.name=='待评论'}}">
  46 + <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=4">
  47 + <image mode="heightFix" wx:if="{{object.is_icon}}" class="xc-no-money" src="{{item.src}}"></image>
  48 + <view class="xc-word-color four-level-word">待评论</view>
  49 + <text class="order-num" hidden='{{toji.wait_pj>0?"":"true"}}'>{{toji.wait_pj}}</text>
  50 + </view>
  51 +
  52 + </block>
  53 + <block wx:if="{{item.name=='售后/退款'}}">
  54 + <view class="t-c margin-auto rel" style='margin-left:30rpx;' bindtap="go_order" data-url="/packageF/pages/user/return_goods_list/return_goods_list">
  55 + <image mode="heightFix" wx:if="{{object.is_icon}}" class="xc-no-money" src="{{item.src}}"></image>
  56 + <view style='height:36rpx;'> </view>
  57 + <view class="xc-word-color four-level-word abs">售后/退款</view>
  58 + </view>
  59 + </block>
  60 + </block>
  61 + </block>
  62 + </view>
  63 + <view style="clear: both"></view>
  64 +</view>
... ...
components/diy_user_order/diy_user_order.wxss 0 → 100644
  1 +@import '../../app.wxss';
  2 +.xc-after-sale {
  3 + width: 100%;
  4 +}
  5 +.xc-after-sale-left {
  6 + width: 96%;
  7 + height: 100%;
  8 + margin-top: 40rpx;
  9 + margin-bottom: 25rpx;
  10 +}
  11 +
  12 +.xc-equity-title {
  13 + width: 100%;
  14 + height: 79rpx;
  15 + border-bottom: 1rpx solid #f2f2f2;
  16 +}
  17 +.xc-title-img {
  18 + width: 50rpx;
  19 + height: 50rpx;
  20 + margin-left: 20rpx;
  21 +}
  22 +
  23 +
  24 +.xc-title-frame {
  25 + width: 85%;
  26 + height: 100%;
  27 +}
  28 +.xc-title-content {
  29 + height: 100%;
  30 +}
  31 +.xc-more-frame {
  32 + width: 16.1%;
  33 + height: 100%;
  34 +}
  35 +.xc-more {
  36 + color: #878787;
  37 +}
  38 +
  39 +.xc-more-click {
  40 + width: 15rpx;
  41 + height: 15rpx;
  42 + margin-left: 10rpx;
  43 + color: #898989;
  44 +}
  45 +
  46 +
  47 +.bg_right.bcolor,
  48 +.bg_left.bcolor {
  49 + border-color: #333;
  50 +}
  51 +
  52 +.bg_right.mt {
  53 + margin-top: -9rpx;
  54 +}
  55 +
  56 +.bg_right.mt2 {
  57 + margin-top: -5rpx;
  58 +}
  59 +
  60 +.xc-no-money {
  61 + width: auto;
  62 + height: 50rpx;
  63 +}
  64 +
  65 +.xc-send {
  66 + width: auto;
  67 + height: 50rpx;
  68 +}
  69 +.xc-await {
  70 + width: auto;
  71 + height: 50rpx;
  72 +}
  73 +
  74 +
  75 +.xc-word-color {
  76 + color: #595758;
  77 + top: 61rpx;
  78 + width: 110rpx;
  79 + right: -28rpx;
  80 +}
  81 +.order-num {
  82 + position: absolute;
  83 + right: 0rpx;
  84 + top: -18rpx;
  85 + width: 35rpx;
  86 + height: 35rpx;
  87 + line-height: 35rpx;
  88 + font-size: 22rpx;
  89 + border-radius: 50%;
  90 + background-color: rgba(217, 81, 99, 0.9);
  91 + color: #fff;
  92 +}
... ...
components/diy_user_tools_services/diy_user_tools_services.js 0 → 100644
  1 +const ut = require("../../utils/util.js");
  2 +var os = getApp().globalData.setting;
  3 +Component({
  4 + properties: {
  5 + object: {
  6 + type: Object,
  7 + value: null
  8 + },
  9 + f_user_tool: {
  10 + type: Object,
  11 + value: null
  12 + },
  13 + c_list: {
  14 + type: Object,
  15 + value: null
  16 + },
  17 + qy_data: {
  18 + type: Object,
  19 + value: null
  20 + },
  21 + // 这里定义了innerText属性,属性值可以在组件使用时指定
  22 + //-- 是不是初始化了 --
  23 + is_dengji:{
  24 + type:Number,
  25 + value:0
  26 + },
  27 + //-- 是不是有助力活动 --
  28 + is_assistance:{
  29 + type:Number,
  30 + value:0
  31 + },
  32 + enableMeiye:{
  33 + type:Number,
  34 + value:0
  35 + }
  36 + },
  37 +
  38 + data: {
  39 + iurl:os.imghost,
  40 + sys_switch:null,
  41 + userInfo:null,
  42 + hiddenCS: true,
  43 + },
  44 +
  45 + ready: function() {
  46 +
  47 + var th=this;
  48 +
  49 + if(getApp().globalData.userInfo){
  50 + this.setData({userInfo:getApp().globalData.userInfo});
  51 + }
  52 +
  53 + /*-------系统是否开通等级卡,会员是等级卡-----*/
  54 + getApp().getConfig2(function (e) {
  55 + var t_swi = e.switch_list;
  56 + if (t_swi) t_swi = JSON.parse(t_swi)
  57 + if (t_swi) {
  58 + th.setData({sys_switch: t_swi});
  59 + }
  60 + })
  61 + let img_host=this.data.iurl;
  62 +
  63 + },
  64 +
  65 + methods: {
  66 + // 这里是一个自定义方法
  67 + goto_nav: function (e) {
  68 + var th = this;
  69 + var url = e.currentTarget.dataset.url;
  70 + if (th.data.userInfo != null) {
  71 + console.log('跳转');
  72 + getApp().goto(url);
  73 + } else {
  74 + wx.navigateTo({
  75 + url: '/packageE/pages/togoin/togoin',
  76 + })
  77 + }
  78 + },
  79 + //跳转到链接
  80 + goto: function (e) {
  81 + console.log(e);
  82 + console.log('跳转');
  83 + var url = e.currentTarget.dataset.url;
  84 + wx.navigateTo({ url: url })
  85 + // getApp().goto(url);
  86 + },
  87 + //--跳转到权益页面--
  88 + go_qy: function () {
  89 + if (!this.data.userInfo) return false;
  90 + var url = "/pages/user/userqy/userqy";
  91 + getApp().goto(url);
  92 + },
  93 +
  94 + openCS() {
  95 + let self=this;
  96 + // 判断会员状态
  97 + let user_info = getApp().globalData.userInfo;
  98 + if (user_info == null || user_info.mobile == undefined || user_info.mobile == '' || user_info.mobile == null) {
  99 + wx.navigateTo({
  100 + url: '/packageE/pages/togoin/togoin',
  101 + })
  102 + return false;
  103 + };
  104 + // csType/在线客服设置:
  105 + // 0关闭(如果有设置热线电话,则显示拨打热线电话)、
  106 + // 1小程序客服、
  107 + // 2企业微信客服
  108 + if (this.data.sys_switch) {
  109 + let csType = this.data.sys_switch.weapp_customertype;
  110 + if (csType == 0) {
  111 + // 拨打电话号码
  112 + this.contactService();
  113 + } else {
  114 + this.getTel()
  115 + .then(() => {
  116 + self.setData({
  117 + hiddenCS: false,
  118 + });
  119 + });
  120 + }
  121 + }
  122 + },
  123 +
  124 + //---------联系客服------------
  125 + contactService: function () {
  126 + getApp().com_call(this);
  127 + },
  128 +
  129 + //关闭客服操作菜单
  130 + closeCS() {
  131 + this.setData({
  132 + hiddenCS: true,
  133 + });
  134 + },
  135 +
  136 + //添加卡包
  137 + addcard: function () {
  138 + var res = this.data.add_card_data;
  139 + if (!res) return false;
  140 +
  141 + var arr = new Array(6)
  142 + arr[0] = res.code;
  143 + arr[1] = res.timestamp;
  144 + arr[2] = res.jsapiTicket;
  145 + arr[3] = res.openid;
  146 + arr[4] = res.cardid;
  147 + arr[5] = res.nonceStr;
  148 + var c = arr.sort();
  149 + var newstr = "";
  150 + for (var i = 0; i < c.length; i++) {
  151 + newstr += c[i];
  152 + }
  153 +
  154 + var sh1 = ut.sha1(newstr);
  155 + wx.addCard({
  156 + cardList: [
  157 + {
  158 + cardId: res.cardid,
  159 + cardExt: '{"code": "' + res.code + '", "openid": "' + res.openid + '","timestamp": "' + res.timestamp + '","nonce_str":"' + res.nonceStr + '","outer_str":"web", "signature":"' + sh1 + '"}'
  160 + }
  161 +
  162 + ],
  163 + success: function (res) { },
  164 + cancel: function (res) { }
  165 + });
  166 + },
  167 +
  168 + // 获取客服热线
  169 + getTel() {
  170 + var self = this;
  171 + return new Promise((resolve, reject) => {
  172 + var s = getApp();
  173 + s.getConfig(function (t) {
  174 + if (t.store_tel == undefined) {
  175 + getApp().request.get("/api/weshop/store/get/" + os.stoid, {
  176 + isShowLoading: 1,
  177 + data: {},
  178 + success: function (rs) {
  179 + getApp().globalData.config = rs.data.data;
  180 + if (rs.data.data.store_tel == null && rs.data.data.store_tel == undefined) {
  181 + getApp().showWarning("商家未设置电话");
  182 + return false;
  183 + } else {
  184 + self.setData({
  185 + store_tel: rs.data.data.store_tel,
  186 + });
  187 + // s.confirmBox("客服热线:" + rs.data.data.store_tel);
  188 + };
  189 +
  190 + }
  191 + })
  192 + } else {
  193 + self.setData({
  194 + store_tel: t.store_tel,
  195 + });
  196 + // s.confirmBox("客服热线:" + t.store_tel);
  197 + }
  198 + resolve();
  199 + });
  200 + });
  201 + },
  202 +
  203 +
  204 +
  205 + },
  206 +
  207 + observers: {
  208 + // 监听 num1 和 num2 数据的变化
  209 + 'f_user_tool': function(obj){
  210 + console.log(1111);
  211 + console.log(obj);
  212 + if(obj){
  213 + var f_user_tool=JSON.parse(JSON.stringify(obj));
  214 + var list=this.properties.object.list;
  215 +
  216 + if(list && list.length) {
  217 + //进行循环
  218 + for (let iu = 0; iu < list.length; iu++) {
  219 + let fd = f_user_tool.find(function (e) {
  220 + return e.id == list[iu].id;
  221 + })
  222 + if (fd) {
  223 + list[iu].icoimg = fd.icoimg;
  224 + list[iu].new_weappurl = fd.new_weappurl;
  225 + } else {
  226 + list.splice(iu, 1);
  227 + iu--;
  228 + }
  229 + }
  230 + }else{
  231 + list=[];
  232 + }
  233 + //-- 如果是有新的tool要添加进去 --
  234 + for (let ig = 0; ig <f_user_tool.length ; ig++) {
  235 + let fd= list.find(function (e){
  236 + return e.id==f_user_tool[ig].id;
  237 + })
  238 + if(fd) continue;
  239 + let ob={
  240 + show:true,id:fd.id,icoimg:fd.icoimg,name:item.name,new_weappurl:item.new_weappurl
  241 + }
  242 + list.push(ob);
  243 + }
  244 +
  245 +
  246 + this.setData({user_tool:list})
  247 + }
  248 + }
  249 + },
  250 +})
0 251 \ No newline at end of file
... ...
components/diy_user_tools_services/diy_user_tools_services.json 0 → 100644
  1 +{
  2 + "component": true
  3 + }
0 4 \ No newline at end of file
... ...
components/diy_user_tools_services/diy_user_tools_services.wxml 0 → 100644
  1 +<!-- 工具与服务 -->
  2 +<view class="xc-tool-service">
  3 + <view class="xc-tool-service-title flex-vertical" wx:if="{{object.is_title}}">
  4 + <image class="xc-tool-service-img" src="{{iurl}}/miniapp/images/gj.png"></image>
  5 + <view class="three-level-word xc-tool-service-word">工具与服务</view>
  6 + </view>
  7 + <view class="xc-project-frame" wx:if="{{user_tool}}">
  8 + <!-- 跳转页面 -->
  9 + <view class="center_v" style="display: flex;flex-wrap: wrap;align-items: center;">
  10 + <!-- 循环使用自定义菜单,显示和掩藏 -->
  11 + <block wx:for="{{user_tool}}">
  12 + <!-- 判断自定义的判断显示-->
  13 + <block wx:if="{{item.show}}">
  14 + <!-- 有链接地址的时候 -->
  15 + <block wx:if="{{item.new_weappurl}}">
  16 + <block wx:if="{{item.name=='PLUS会员'}}">
  17 + <view class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto" wx:if="{{is_dengji==1}}">
  18 + <image wx:if="{{object.is_icon}}" class="xc-center-img " src="{{iurl+item.icoimg}}"></image>
  19 + <view class="fs26">PLUS会员</view>
  20 + </view>
  21 + </block>
  22 + <block wx:elif="{{item.name=='助力活动'}}">
  23 + <view class="item t-c" data-url="/pages/user/assistance/assistance" bindtap="goto_nav" wx:if="{{is_assistance==1}}">
  24 + <image wx:if="{{object.is_icon}}" class="xc-center-img" src="{{iurl}}/miniapp/images/friendhelp/icon-zl.png"></image>
  25 + <view class="four-level-word">助力活动</view>
  26 + </view>
  27 + </block>
  28 + <block wx:elif="{{item.name=='我的权益'}}">
  29 + <view class="item t-c" bindtap="go_qy" wx:if="{{qy_data && qy_data.qy_list!=null && qy_data.is_init && qy_data.gradeId}}">
  30 + <image wx:if="{{object.is_icon}}" class="xc-center-img" src="{{iurl+item.icoimg}}"></image>
  31 + <view class="fs26">我的权益</view>
  32 + </view>
  33 + </block>
  34 + <block wx:elif="{{item.name=='套盒商品'}}">
  35 + <view class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto" wx:if="{{enableMeiye}}">
  36 + <image wx:if="{{object.is_icon}}" class="xc-center-img" src="{{iurl+item.icoimg}}"></image>
  37 + <view class="fs26">套盒商品</view>
  38 + </view>
  39 + </block>
  40 +
  41 + <block wx:elif="{{item.name=='瘦身日记'}}">
  42 + <view wx:if="{{has_rj>0}}" class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto_nav">
  43 + <image wx:if="{{object.is_icon}}" class="xc-center-img" src="{{iurl+item.icoimg}}"></image>
  44 + <view class="fs26">{{item.name}}</view>
  45 + </view>
  46 + </block>
  47 +
  48 + <block wx:else>
  49 + <view class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto_nav">
  50 + <image wx:if="{{object.is_icon}}" class="xc-center-img" src="{{iurl+item.icoimg}}"></image>
  51 + <view class="fs26">{{item.name}}</view>
  52 + </view>
  53 + </block>
  54 + </block>
  55 + <!-- 没有链接地址的时候 -->
  56 + <block wx:else>
  57 + <block wx:if="{{item.name=='联系客服'}}">
  58 +
  59 + <view class="item t-c" bindtap="openCS">
  60 + <image wx:if="{{object.is_icon}}" class="xc-center-img " src="{{iurl+item.icoimg}}"></image>
  61 + <view class="fs26">联系客服</view>
  62 + </view>
  63 +
  64 + </block>
  65 + <block wx:elif="{{item.name=='收入卡包'}}">
  66 + <view class="item t-c" bindtap="addcard" wx:if="{{add_card_data}}">
  67 + <image wx:if="{{object.is_icon}}" class="xc-center-img " src="{{iurl+item.icoimg}}"></image>
  68 + <view class="four-level-word">收入卡包</view>
  69 + </view>
  70 + </block>
  71 + </block>
  72 + </block>
  73 + </block>
  74 + </view>
  75 + </view>
  76 +</view>
  77 +
  78 +<include src="../../components/com_servicer/com_servicer.wxml"/>
0 79 \ No newline at end of file
... ...
components/diy_user_tools_services/diy_user_tools_services.wxss 0 → 100644
  1 +@import '../../app.wxss';
  2 +.xc-center-img {
  3 + width: 60rpx;
  4 + height: 60rpx;
  5 +}
  6 +
  7 +/* 工具与服务 */
  8 +.xc-tool-service {
  9 + width: 100%;
  10 + border-bottom: 20rpx solid #f2f2f2;
  11 + padding-bottom: 30rpx;
  12 +}
  13 +
  14 +.xc-tool-service .xc-tool-service-title {
  15 + width: 100%;
  16 + height: 90rpx;
  17 +
  18 +}
  19 +
  20 +
  21 +.xc-tool-service-img {
  22 + width: 38rpx;
  23 + height: 38rpx;
  24 + margin-left: 30rpx;
  25 +}
  26 +
  27 +.xc-tool-service-word {
  28 + margin-left: 10rpx;
  29 +}
  30 +
  31 +.xc-project-frame {
  32 + width: 100%;
  33 +}
  34 +
  35 +.xc-project-frame .item {
  36 + width: 25%;
  37 + margin-top: 30rpx;
  38 + display: inline-block;
  39 + line-height: 40rpx;
  40 + margin-left: 0 !important;
  41 + margin-right: 0 !important;
  42 +}
0 43 \ No newline at end of file
... ...
packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js
... ... @@ -5038,14 +5038,14 @@ Page({
5038 5038  
5039 5039 } else {
5040 5040 wx.navigateTo({
5041   - url: "/pages/team/team_show/team_show?tg_id=" + id,
  5041 + url: "/packageG/pages/team/team_show/team_show?tg_id=" + id,
5042 5042 });
5043 5043 }
5044 5044 }
5045 5045 //--跳转到参团--
5046 5046 else {
5047 5047 wx.navigateTo({
5048   - url: "/pages/team/team_show/team_show?tg_id=" + id,
  5048 + url: "/packageG/pages/team/team_show/team_show?tg_id=" + id,
5049 5049 });
5050 5050 }
5051 5051 }
... ...
packageE/pages/cart/cart2/cart2.js
... ... @@ -555,8 +555,9 @@ Page({
555 555 })
556 556 if (pt_res) {
557 557 for (let io = 0; io <new_arr.length ; io++) {
558   - new_arr[io].account_yc = this.arr_get_goods_n(new_arr[io], pt_res).fisrt_account;
559   - new_arr[io].account_yc_yu = this.arr_get_goods_n(new_arr[io], pt_res).fisrt_account_yu;
  558 + //要防止空对象,用 || 0
  559 + new_arr[io].account_yc = this.arr_get_goods_n(new_arr[io], pt_res).fisrt_account || 0;
  560 + new_arr[io].account_yc_yu = this.arr_get_goods_n(new_arr[io], pt_res).fisrt_account_yu || 0;
560 561 }
561 562 }
562 563  
... ... @@ -2593,8 +2594,8 @@ Page({
2593 2594 if (pt_res) {
2594 2595 for (var io in item_map.goods) {
2595 2596 //平摊赋值
2596   - item_map.goods[io].account_fir = th.arr_get_goods(item_map.goods[io].goods_id, pt_res).fisrt_account;
2597   - item_map.goods[io].account_yu_fir = th.arr_get_goods(item_map.goods[io].goods_id, pt_res).fisrt_account_yu;
  2597 + item_map.goods[io].account_fir = th.arr_get_goods(item_map.goods[io].goods_id, pt_res).fisrt_account || 0;
  2598 + item_map.goods[io].account_yu_fir = th.arr_get_goods(item_map.goods[io].goods_id, pt_res).fisrt_account_yu || 0;
2598 2599 if (!th.data.ispt_goods) {
2599 2600 item_map.goods[io].account = item_map.goods[io].account_fir;
2600 2601 item_map.goods[io].account_yu = item_map.goods[io].account_yu_fir;
... ... @@ -4833,8 +4834,8 @@ Page({
4833 4834  
4834 4835 if (pt_res) {
4835 4836 //平摊赋值
4836   - goods.account = pt_res[0].fisrt_account;
4837   - goods.account_yu = pt_res[0].fisrt_account_yu;
  4837 + goods.account = pt_res[0].fisrt_account || 0;
  4838 + goods.account_yu = pt_res[0].fisrt_account_yu || 0;
4838 4839 item.is_discount_amount = 1;
4839 4840 }
4840 4841 }
... ... @@ -7118,14 +7119,15 @@ Page({
7118 7119 for (var i in arr) {
7119 7120 if (arr[i].goods_id == goods_id) return arr[i];
7120 7121 }
  7122 + return {};
7121 7123 },
7122 7124  
7123   -
7124   - //从优惠的映射中拿出商品从表的item
  7125 + //从优惠的映射中拿出商品从表的item,要防止空对象的时候,空就返回空对象
7125 7126 arr_get_goods_n: function (good, arr) {
7126 7127 for (var i in arr) {
7127 7128 if (arr[i].goods_id == good.goods_id && arr[i].prom_id == good.prom_id && arr[i].prom_type == good.prom_type ) return arr[i];
7128 7129 }
  7130 + return {};
7129 7131 },
7130 7132  
7131 7133  
... ...
packageE/pages/cart/cart2_inte/cart2_inte.js
... ... @@ -1032,17 +1032,8 @@ Page({
1032 1032  
1033 1033  
1034 1034  
1035   - var yc_order_m=order_m;
  1035 + var yc_order_m=order_m;
1036 1036  
1037   - //--看一下有没有订单优惠--0
1038   - total_m = parseFloat(total_m) + parseFloat(th.data.formData.shipping_price);
1039   - order_m = parseFloat(order_m) + parseFloat(th.data.formData.shipping_price);
1040   - var atxt = "formData.total_amount";
1041   - th.setData({ [atxt]: total_m, })
1042   -
1043   - var txt = "formData.user_money";
1044   - var txt2 = "formData.order_amount";
1045   - var txt4 = "formData.integral";
1046 1037  
1047 1038 if (th.data.bn_goods.keyid) {
1048 1039 let cart_yc = await th.beforAdvancesum({
... ... @@ -1140,6 +1131,17 @@ Page({
1140 1131 }
1141 1132  
1142 1133  
  1134 + //--看一下有没有订单优惠--0
  1135 + total_m = parseFloat(total_m) + parseFloat(th.data.formData.shipping_price);
  1136 + order_m = parseFloat(order_m) + parseFloat(th.data.formData.shipping_price);
  1137 + var atxt = "formData.total_amount";
  1138 + th.setData({ [atxt]: total_m, })
  1139 +
  1140 + var txt = "formData.user_money";
  1141 + var txt2 = "formData.order_amount";
  1142 + var txt4 = "formData.integral";
  1143 +
  1144 +
1143 1145 var txt5 = "formData.use_commission";
1144 1146 if(th.data.bn_use_commission){
1145 1147 order_m=(parseFloat(order_m)- parseFloat(th.data.bn_goods.use_commission)).toFixed(2);
... ...
packageF/pages/team/team_more/team_more.js
... ... @@ -204,7 +204,7 @@ Page({
204 204 //--跳转到参团--
205 205 else if(e.data.code == 0){
206 206 wx.navigateTo({
207   - url: "/pages/team/team_show/team_show?tg_id="+tid+"&goods_id="+th.data.pt_act.goods_id,
  207 + url: "/packageG/pages/team/team_show/team_show?tg_id="+tid+"&goods_id="+th.data.pt_act.goods_id,
208 208 });
209 209 }
210 210  
... ...
packageG/pages/team/team_show/team_show.js 0 → 100644
  1 +var t = require("../../../../utils/util.js"),
  2 + ut = t,
  3 + e = require("../../../../utils/common.js"),
  4 + a = require("../../../../utils/wxParse/wxParse.js"),
  5 + s = getApp(),
  6 + i = s.request,
  7 + rq = i,
  8 + oo = s.globalData,
  9 + o = s.globalData.setting,
  10 + os = o;
  11 +var regeneratorRuntime = require('../../../../utils/runtime.js');
  12 +
  13 +
  14 +Page({
  15 + data: {
  16 +
  17 + num: 1, //输入框值 加减之间的值
  18 + minusStatus: 'disable', //禁用按钮
  19 + ii_endname: 'disable', //吐司的禁用按钮
  20 + pd_xx: false, //弹框
  21 + buy_start_date: null, //转换完的时间
  22 + ssl: null,
  23 + yijian: false, //一键参加按钮显示隐藏
  24 +
  25 + //选择门店
  26 + qh: true, //取货
  27 + xz: false, //选择
  28 + one: false, //第一层显示隐藏
  29 + se: false, //已选择的值
  30 + list: false, //第二层显示隐藏
  31 + ssl_child: null, //第二层的值
  32 + sele_dl_name: "", //选择的值
  33 + end_name: "", //最后显示的值
  34 +
  35 + ii: 0, //选择门店显示隐藏
  36 + zk: true, //展开列表显示隐藏
  37 + stoid: o.stoid,
  38 + hiddenName: false, //收起列表显示隐藏
  39 + teamlist: null, //活动主表
  40 + teamgroup: null, //活动从表
  41 + goods: null, //商品数据
  42 + pindGoods: null, //拼单数据
  43 + imageurl: os.imghost, //有礼派图片地址
  44 + team_id: 0, //支付是否成功
  45 + listno: "", //订单编号
  46 +
  47 + //选择的门店id
  48 + pick_id:0,
  49 + //会员团满团时的判断
  50 + tg_arr:null,
  51 + //是否显示
  52 + is_show:0,
  53 + //是不是团结束
  54 + is_group_end:0,
  55 + //团结束的提示语句
  56 + end_text:"",
  57 + //是开团或者参团,0参团,1开团(但是,商家团还是参团)
  58 + is_kt_or_ct:0,
  59 + //判断redis的数组
  60 + redis_arr:null,
  61 +
  62 + iurl:os.imghost,
  63 +
  64 +
  65 + openSpecModal: !1,
  66 + openSpecModal_pt: !1, //拼单的弹起,
  67 +
  68 +
  69 + //门店相关
  70 + ismend: 0,
  71 + is_sec_mend: 0,
  72 + sto_sele_name: "", //选中的门店名称
  73 + sto_sele_id: "", //选中的门店id
  74 + sto_sele_distr: "", //选择的门店的配送方式
  75 + is_show_sto_cat: 1, //是否显示门店分类
  76 + only_pk: null,
  77 + all_sto: null,
  78 + sec_sto: null, //选择了的门店分类
  79 + pickpu_list: null, //读出的所有门店list
  80 + def_pickpu_list: null, //一开始5个门店list
  81 + sec_pick_index: 0, //第二级门店选择ID
  82 + fir_pick_index: 0, //第一级门店选择ID
  83 + all_pick_list:null,//所有的门店先记录起来
  84 + bconfig:null,
  85 + def_pick_store: null, // 默认的门店
  86 + fir_def_store:null, //客户默认的门店的
  87 + lat: null, //维度
  88 + lon: null, //经度
  89 +
  90 + is_get_local_ok: 0, //获取坐标是否完成
  91 +
  92 + sort_store: 0, //门店分类
  93 + choice_sort_store: 0, //选择分类门店
  94 + template_id:[],//订阅消息id
  95 + },
  96 + onLoad: async function(options) {
  97 + wx.setNavigationBarTitle({ title: "拼团订单",})
  98 + //var postdata=getApp().globalData.to_group;
  99 + if(options.transfer){
  100 + let obj=getApp().globalData.ts_trans_data;
  101 + options= JSON.parse(JSON.stringify(obj));
  102 + getApp().globalData.ts_trans_data=null;
  103 + }
  104 +
  105 + var postdata=options;
  106 +
  107 +
  108 + var tg_id = postdata.tg_id, first_leader=options.first_leader,goods_id=options.goods_id;
  109 + //如果tg_id是空的话
  110 + if(tg_id==null ||goods_id==null){
  111 + var tg_id_str=decodeURIComponent(postdata.scene);
  112 + tg_id_str=tg_id_str.split("_");
  113 + console.log(tg_id_str.length);
  114 + //tg_id_str[0] teamgroup.id tg_id_str[1] user_id tg_id_str[2] goods_id
  115 + switch(tg_id_str.length){
  116 + case 1:
  117 + tg_id=tg_id_str[0];
  118 + break;
  119 + case 2:
  120 + tg_id=tg_id_str[0];
  121 + first_leader=tg_id_str[1];
  122 + break;
  123 + case 3:
  124 + tg_id=tg_id_str[0];
  125 + first_leader=tg_id_str[1];
  126 + goods_id=tg_id_str[2];
  127 + break;
  128 + }
  129 + }
  130 + //--判断一下是不是导购--
  131 + if(first_leader){
  132 + getApp().globalData.first_leader=first_leader;
  133 + //调用接口判断是不是会员
  134 + getApp().request.promiseGet("/api/weshop/shoppingGuide/get/"+os.stoid+"/"+first_leader,{}).then(res=>{
  135 + if(res.data.code==0){
  136 + getApp().globalData.guide_id=res.data.data.id;
  137 + getApp().globalData.guide_pick_id= res.data.data.pickup_id
  138 + }
  139 + })
  140 + }
  141 + this.setData({tg_id: tg_id,goods_id});
  142 + getApp().globalData.to_group=null;
  143 +
  144 + var th=this;
  145 + getApp().getConfig2(function(e) {
  146 + var json_d = JSON.parse(e.switch_list);
  147 + th.setData({ bconfig: e,sys_switch:json_d});
  148 + th.wait_for_store_config(); //获取默认的门店
  149 + })
  150 + try {
  151 + let template_id =await getApp().get_template_id('1023')
  152 + this.setData({
  153 + template_id
  154 + })
  155 + } catch (error) {}
  156 +
  157 + },
  158 +
  159 + //显示加载
  160 + onShow:function(){
  161 + //-- 看一下隐私政策要不要显示 --
  162 + var privacy_pop = this.selectComponent("#privacy_pop"); //组件的id
  163 + if (privacy_pop) {
  164 + privacy_pop.check_pri_show();
  165 + }
  166 +
  167 + getApp().check_can_share();
  168 + var tg_id = this.data.tg_id,th=this;
  169 + this.init(tg_id);
  170 + },
  171 +
  172 + //c点击打开拼团弹窗
  173 + cpd: function() {
  174 + this.setData({ pd_xx: true,})
  175 + },
  176 +
  177 + //点击关闭拼团弹窗
  178 + close_pt_xx: function() {
  179 + this.setData({ pd_xx: false, })
  180 + },
  181 + //天天拼团订阅消息提醒
  182 + sendsm: function (ee) {
  183 + let th = this;
  184 + var template_id = this.data.template_id;
  185 + // //授权订阅
  186 + wx.requestSubscribeMessage({
  187 + tmplIds: template_id,
  188 + success(res) {
  189 + th.cyijian(ee);
  190 + },
  191 + fail(res) {
  192 + th.cyijian(ee);
  193 + }
  194 + })
  195 + },
  196 + //按钮点击一键参加团按钮
  197 + cyijian: function(e) {
  198 + //--先判断会员状态--
  199 + var user_info=getApp().globalData.userInfo;
  200 + if(user_info==null || user_info.mobile==undefined || user_info.mobile=="" || user_info.mobile==null){
  201 + wx.navigateTo({ url: '/packageE/pages/togoin/togoin', })
  202 + return false;
  203 + }
  204 +
  205 + var is_kt_or_ct=e.currentTarget.dataset.isct;
  206 + this.setData({
  207 + yijian: true,is_kt_or_ct:is_kt_or_ct,
  208 + })
  209 + },
  210 + //关闭展开列表
  211 + click: function(e) {
  212 + this.setData({
  213 + hiddenName: !this.data.hiddenName,
  214 + zk: !this.data.zk,
  215 + })
  216 + },
  217 + //打开收起拼团列表
  218 + czk: function(e) {
  219 + this.setData({
  220 + zk: !this.data.zk,
  221 + hiddenName: !this.data.hiddenName,
  222 + })
  223 + },
  224 + //关闭购买页面
  225 + cbcou: function(e) {
  226 + this.setData({
  227 + yijian: false,
  228 + })
  229 +
  230 + },
  231 + //qh点击取货
  232 + cqh: function(e) {
  233 + if(this.data.ssl) {
  234 + this.setData({
  235 + qh: false,
  236 + xz: true,
  237 + one: true,
  238 + })
  239 + }else{
  240 + this.setData({
  241 + qh: false,
  242 + xz: true,
  243 + one: false,
  244 + list:1,
  245 + })
  246 + }
  247 +
  248 + },
  249 +
  250 + //cxz点击选择门店
  251 + cxz: function(e) {
  252 + this.setData({
  253 + qh: true,
  254 + xz: false,
  255 + one: false,
  256 + })
  257 + },
  258 + //ccc点击选择的
  259 + sel: function(e) {
  260 + this.setData({
  261 + list: false,
  262 + se: false,
  263 + one: true,
  264 + xz: true,
  265 + })
  266 + },
  267 + //list点击底二层
  268 + clist: function(e) {
  269 + var i = e.currentTarget.dataset.end;
  270 + var pick_id = e.currentTarget.dataset.pick_id;
  271 + var pick_dis = e.currentTarget.dataset.pick_dis;
  272 +
  273 + this.setData({
  274 + end_name: i,
  275 + pick_id: pick_id,
  276 + ii: 1,
  277 + qh: true,
  278 + se: false,
  279 + list: false,
  280 + pick_dis: pick_dis
  281 + })
  282 + },
  283 +
  284 + //点击第一层
  285 + setchild: function(e) {
  286 + var ind = e.currentTarget.dataset.bindex;
  287 + var nn = e.currentTarget.dataset.bname;
  288 + console.log(nn);
  289 + var list = this.data.ssl[ind].s_arr;
  290 + this.setData({
  291 + ssl_child: list,
  292 + sele_dl_name: nn,
  293 + xz: false,
  294 + one: false,
  295 + list: true,
  296 + se: true
  297 + });
  298 + },
  299 +
  300 + //事件处理函数
  301 + /*点击减号*/
  302 + bindMinus: function() {
  303 + var num = this.data.num;
  304 + if (num > 1) {
  305 + num--;
  306 + }
  307 + var minusStatus = num > 1 ? 'normal' : 'disable';
  308 + this.setData({
  309 + num: num,
  310 + minusStatus: minusStatus,
  311 + })
  312 + },
  313 +
  314 + /*点击加号*/
  315 + bindPlus: function() {
  316 + var th=this;
  317 + var num = this.data.num;
  318 + var ii = this.data.ii;
  319 + var minusStatus = num > 1 ? 'normal' : 'disable';
  320 +
  321 + num++;
  322 + //要判断库存数量,限购数量
  323 + th.check_num(num,minusStatus);
  324 +
  325 + },
  326 +
  327 + async check_num(num,minusStatus){
  328 +
  329 + var gd=this.data.goods;
  330 + var th=this;
  331 + var user_id=getApp().globalData.user_id;
  332 + var promgoodsbuynum=0;
  333 + var goodsbuynum=0;
  334 + getApp().request.promiseGet("/api/weshop/ordergoods/getUserBuyGoodsNum", {
  335 + data: {
  336 + store_id: os.stoid,
  337 + user_id: user_id,
  338 + goods_id: gd.goods_id,
  339 + prom_type: gd.prom_type,
  340 + prom_id: gd.prom_id, isnew:1
  341 +
  342 + },
  343 + }).then(res=>{
  344 + var buy_num_data=res.data.data;
  345 + if(buy_num_data.promgoodsbuynum) promgoodsbuynum=buy_num_data.promgoodsbuynum;
  346 + goodsbuynum=buy_num_data.goodsbuynum;
  347 + })
  348 +
  349 + //先判断限购
  350 + if (num+goodsbuynum>gd.viplimited && gd.viplimited>0) {
  351 + getApp().confirmBox("超出商品限购");
  352 + return false;
  353 + }
  354 + if (num+promgoodsbuynum>th.data.teamlist.buy_limit && th.data.teamlist.buy_limit>0) {
  355 + getApp().confirmBox("超出活动限购");
  356 + return false;
  357 + }
  358 + //判断库存
  359 + if ( num>gd.store_count) {
  360 + getApp().confirmBox("超出商品库存");
  361 + return false;
  362 + }
  363 + var r_num=0;
  364 + await getApp().request.promiseGet("/api/weshop/activitylist/getActLen/" + os.stoid + "/6/" + th.data.teamlist.id, {
  365 + 1: 1
  366 + }).then(res => {
  367 + var em = res;
  368 + if (em.data.code == 0) {
  369 + r_num=em.data.data;
  370 + }
  371 + })
  372 + //--判断库存---
  373 + if ( num>r_num) {
  374 + getApp().confirmBox("超出商品库存");
  375 + return false;
  376 + }
  377 +
  378 + this.setData({
  379 + num: num,
  380 + minusStatus: minusStatus,
  381 + })
  382 +
  383 + },
  384 +
  385 + /*输入框事件*/
  386 + bindManual: function(e) {
  387 + var num = e.detail.value;
  388 + var minusStatus = num > 1 ? 'normal' : 'disable';
  389 + this.setData({
  390 + num: num,
  391 + minusStatus: minusStatus
  392 + })
  393 + },
  394 +
  395 + //---------------初始化代码----------------
  396 + async init(tg_id) {
  397 + var goods_id = 0, //商品ID,
  398 + pageteam = null, //
  399 + original_img = null, //商品图片
  400 + ee = this,
  401 + ordertx = [],
  402 + teamlist = null, //活动表
  403 + goods = null, //商品
  404 + teamgroup = null, //活動从表
  405 + max_num = 0,
  406 + min_price = 0,
  407 + th=this,
  408 + that=th,
  409 + flag=null;
  410 + await getApp().request.promiseGet("/api/weshop/teamlist/pageteam/2",{
  411 + data:{
  412 + store_id: os.stoid,
  413 + is_end: 0,
  414 + is_show: 1,
  415 + user_id: getApp().globalData.user_id,
  416 + pageSize:1000
  417 + }
  418 + }).then(res=>{
  419 + let pd_list=res.data.data.pageData;
  420 + if(res.data.code==0 && pd_list.length>0){
  421 + flag =pd_list.some(pd=>{
  422 + // if(th.data.goods_id){
  423 + return pd.goods_id==th.data.goods_id;
  424 + // }
  425 + })
  426 + }
  427 + })
  428 + if(!flag){
  429 + wx.showToast({title: "当前会员身份不符,无法参与", icon: 'none', duration: 3000});
  430 + setTimeout(function () {
  431 + ut.wx_back();
  432 + }, 1000)
  433 + return false;
  434 + }
  435 +
  436 + //获取活动从表信息team_id,listno团编号(券号)
  437 + await getApp().request.promiseGet("/api/weshop/teamgroup/get/"+os.stoid+"/"+tg_id, {
  438 + }).then(res => {
  439 +
  440 + if(res.data.code !=0 ){
  441 + getApp().showWarning(res.data.msg);
  442 + th.go_back();
  443 + return false;
  444 + }
  445 +
  446 + if(res.data && res.data.data ) {
  447 +
  448 + teamgroup = res.data.data;
  449 + //获取当前时间,并且判断剩余时间
  450 + var nt = ut.gettimestamp();
  451 + var buy_start_date = ut.formatTime(teamgroup.buy_start_date, "yyyy-MM-dd hh:mm:ss");
  452 + ee.setData({
  453 + pindGoods: teamgroup,
  454 + buy_start_date: buy_start_date
  455 + });
  456 +
  457 + if(nt>teamgroup.kt_end_time) {
  458 + th.setData({is_group_end:1,end_text:"团期已经结束"})
  459 + }
  460 + if(teamgroup.state==1) {
  461 + th.setData({is_group_end:1,end_text:"团期已经结束"})
  462 + }
  463 + if(teamgroup.state==3 || teamgroup.state==4 || teamgroup.state==5 ) {
  464 + th.setData({is_group_end:2,end_text:"团期已满"})
  465 + }
  466 +
  467 + }
  468 + })
  469 +
  470 + if(!teamgroup || !teamgroup.listno){
  471 + ut.m_toast('未找到团号');
  472 + th.go_back();
  473 + return false;
  474 + }
  475 +
  476 + //判断是不是要继续的开关
  477 + var is_ok=1;
  478 +
  479 + //要先读取订单,看自己有没有买过该团的商品
  480 + await getApp().request.promiseGet("/api/weshop/order/page", {
  481 + data: {
  482 + pt_prom_id:teamgroup.team_id,
  483 + user_id: oo.user_id,
  484 + store_id: os.stoid,
  485 + pageSize: 1,
  486 + page: 1
  487 + }
  488 + }).then(res => {
  489 + var e=res;
  490 + if (e.data.code != 0) {
  491 + getApp().showWarning("读取订单失败");
  492 + th.go_back();
  493 + is_ok=0;
  494 + return fasle;
  495 + }
  496 + //--跳转到已经购买的情况--
  497 + if (e.data.data.pageData.length > 0) {
  498 + var odr = e.data.data.pageData[0];
  499 + //还未支付
  500 + if (odr.pt_status == 0 && odr.order_status == 1) {
  501 + wx.navigateTo({
  502 + url: "/pages/user/order_detail/order_detail?order_id=" + odr.order_id,
  503 + });
  504 + is_ok=0;
  505 + }else if (odr.pt_status == 1 && odr.order_status == 1){
  506 + wx.navigateTo({
  507 + url: "/packageG/pages/team/team_success/team_success?ordersn=" + odr.order_sn,
  508 + });
  509 + is_ok=0;
  510 + }
  511 + }
  512 + })
  513 + if(!is_ok) return false;
  514 +
  515 + //获取活动表的信息根据活动team_id
  516 + await getApp().request.promiseGet("/api/weshop/teamlist/get/" + os.stoid + "/" + teamgroup.team_id, {
  517 + data: {}
  518 + }).then(res => {
  519 + if (res.data.code == 0) {
  520 + teamlist = res.data.data;
  521 + goods_id = res.data.data.goods_id;
  522 + //----------查看阶梯团------------
  523 + if (teamlist.ct_rylist != "" && teamlist.ct_rylist != null && teamlist.ct_rylist != undefined) {
  524 + var ct_rylist = JSON.parse(teamlist.ct_rylist);
  525 + var max = 0; var pri = 0;
  526 + ct_rylist.forEach(function (val, ind) {
  527 + if (val.rynum > max) {
  528 + max = val.rynum;
  529 + pri = val.price;
  530 + }
  531 + })
  532 + max_num = max;
  533 + min_price = pri;
  534 + }
  535 +
  536 + }
  537 + })
  538 +
  539 + if(!teamlist){
  540 + getApp().showWarning("未找到活动");
  541 + is_ok=0;
  542 + }else{
  543 + if(teamlist.is_end==1){
  544 + getApp().showWarning("拼单活动已经结束"); is_ok=0;
  545 + }
  546 + var now=ut.gettimestamp();
  547 + if(teamlist.end_time<now && is_ok){
  548 + getApp().showWarning("拼单活动已经结束"); is_ok=0;
  549 + }
  550 + }
  551 + if(!is_ok) {
  552 + th.go_back();
  553 + return false;
  554 + }
  555 +
  556 + //多少人参团头像
  557 + await getApp().request.promiseGet("/api/weshop/order/pagePtList", {
  558 + data: {
  559 + store_id: o.stoid,
  560 + pt_listno: teamgroup.listno,
  561 + }
  562 + }).then(res => {
  563 + ordertx = res.data.data.pageData;
  564 + })
  565 +
  566 + //获取商品信息
  567 + await getApp().request.promiseGet("/api/weshop/goods/get/" + os.stoid + "/" + goods_id, {
  568 + }).then(res => {
  569 + //商品地址
  570 + original_img = ee.data.imageurl + res.data.data.original_img,
  571 + goods = res.data.data
  572 + })
  573 +
  574 + //显示商品规格
  575 + var gg = "";
  576 + if(goods.goods_spec=="null" || goods.goods_spec==null ) goods.goods_spec="";
  577 + if(goods.goods_color=="null" || goods.goods_color==null) goods.goods_color="";
  578 +
  579 + if (goods.goods_spec != "" && goods.goods_color != "") {
  580 + gg = goods.goods_spec + "/" + goods.goods_color;
  581 + } else if (goods.goods_spec != "" || goods.goods_color != "") {
  582 + gg = goods.goods_spec + goods.goods_color;
  583 + } else {
  584 + gg = "规格1";
  585 + }
  586 + goods.gg = gg;
  587 +
  588 + //只装5个
  589 + var ordertx2 = [], sf_num = 0, ct_nun = teamlist.ct_num;
  590 + if (max_num) {
  591 + ct_nun = parseInt(max_num);
  592 + if (ct_nun < ordertx.length) ct_nun = ordertx.length;
  593 + }
  594 +
  595 + if (ct_nun > 5) ct_nun = 5;
  596 + for (var i = 0; i < ct_nun; i++) {
  597 + if (i >= ordertx.length) sf_num++
  598 + else
  599 + ordertx2.push(ordertx[i]);
  600 + }
  601 +
  602 + var sf_arr = [];
  603 + for (var i = 0; i < sf_num; i++) {
  604 + sf_arr.push(i);
  605 + }
  606 +
  607 +
  608 +
  609 + if(th.data.is_group_end==1 || th.data.is_group_end==2 ){
  610 + getApp().confirmBox(th.data.end_text);
  611 + wx.redirectTo({
  612 + url: "/pages/goods/goodsInfo/goodsInfo?goods_id=" + goods.goods_id,
  613 + });
  614 + return false;
  615 + }
  616 +
  617 + //--当是会员团的时候才显示倒计时多久可以参团--
  618 + if(teamlist.kttype==2) {
  619 + //显示判断多久才能购买商品,获取没有支付的会员
  620 + await getApp().request.promiseGet("/api/weshop/teamgroup/getTeamUser/" + os.stoid + "/" + teamgroup.id, {
  621 + 1: 1
  622 + }).then(res => {
  623 + var em = res;
  624 + if (em.data.code == 0) {
  625 + var tg_list = em.data.data.split("|");
  626 + var t_obj = {};
  627 + t_obj.order_id = tg_list[0];
  628 + t_obj.time = parseFloat(tg_list[1]) + 5 * 60; //五分钟后
  629 + t_obj.user_name = tg_list[2];
  630 + th.setData({tg_arr: t_obj})
  631 + }
  632 + })
  633 + }
  634 +
  635 + //获取大家都在团信息
  636 + await getApp().request.promiseGet("/api/weshop/teamlist/pageteam/"+os.stoid, {
  637 + data: {
  638 + pageSize: 2,
  639 + page: 1,
  640 + store_id: 1,
  641 + is_end: 0,
  642 + is_show: 1
  643 + }
  644 + }).then(res => {
  645 + if(ut.ajax_ok(res)){
  646 + pageteam = res.data.data.pageData;
  647 + }
  648 + });
  649 +
  650 + //-- 获取用户的默认门店 --
  651 + getApp().get_user_store(function(ee) {
  652 + if(!ee) {
  653 + th.data.fir_def_store={}; //赋值空对象
  654 + return false;
  655 + }
  656 +
  657 + if(getApp().globalData.is_dj_pk) th.setData({has_def:1})
  658 + //--定时器推迟一下--
  659 +
  660 + var appd=getApp().globalData;
  661 + var w_time = setInterval(function() {
  662 + if (that.data.is_get_local_ok == 0) return false;
  663 + if(!th.data.goods) return false;
  664 + var g_distr_type=th.data.goods.distr_type;
  665 + //--如果默认门店的配送方式不对,就不能被选择--
  666 + if(ee.distr_type!=0 && g_distr_type!=0 && ee.distr_type!=g_distr_type ){
  667 + //th.data.fir_def_store={}; //赋值空对象
  668 + //return false;
  669 + ee.is_no_dis=1;
  670 + }
  671 +
  672 + clearInterval(w_time);
  673 +
  674 + var distance = null;
  675 + var e=JSON.parse(JSON.stringify(ee));
  676 +
  677 + //如果有开启近距离的话,同时距离优不一样了
  678 + if (that.data.lat != null) {
  679 + //如果经纬度有变化的话
  680 + if( appd.lat==that.data.lat && appd.lon==that.data.lon && e.distance>0 ){
  681 + that.data.fir_def_store=e;
  682 + that.setData({
  683 + def_pick_store: e,
  684 + sto_sele_name: e.pickup_name,
  685 + sto_sele_id: e.pickup_id,
  686 + sto_sele_distr: e.distr_type
  687 + })
  688 + }else{
  689 + //要用接口是获取距离,js的计算不准
  690 + getApp().request.promiseGet("/api/weshop/pickup/list",{
  691 + data:{store_id:os.stoid,pickup_id:e.pickup_id,lat:th.data.lat,lon: th.data.lon,is_pos: 1},
  692 + }).then(res=>{
  693 + if(ut.ajax_ok(res)){
  694 + e=res.data.data.pageData[0];
  695 + if (e){
  696 + appd.pk_store=e;
  697 + that.data.fir_def_store=e;
  698 + that.setData({
  699 + def_pick_store: e,
  700 + sto_sele_name: e.pickup_name,
  701 + sto_sele_id: e.pickup_id,
  702 + sto_sele_distr: e.distr_type
  703 + })
  704 + }
  705 +
  706 + }
  707 + })
  708 + }
  709 +
  710 + //e.distance = distance;
  711 + appd.lat=that.data.lat;
  712 + appd.lon=that.data.lon;
  713 +
  714 + }else{
  715 + if (e) {
  716 + e.distance = null;
  717 + that.data.fir_def_store=e;
  718 + that.setData({
  719 + def_pick_store: e,
  720 + sto_sele_name: e.pickup_name,
  721 + sto_sele_id: e.pickup_id,
  722 + sto_sele_distr: e.distr_type
  723 + })
  724 + }
  725 + }
  726 +
  727 + }, 500)
  728 +
  729 + });
  730 +
  731 + //获取下redis长度,如果团已经弄完,或者拼单已经卖完
  732 + //设置值
  733 + ee.setData({
  734 + ordertx2: ordertx2,
  735 + ordertx: ordertx,
  736 + teamlist: teamlist,
  737 + teamgroup: teamgroup,
  738 + goods: goods,
  739 + pageteam: pageteam,
  740 + image: original_img,
  741 + is_show:1,
  742 + sf_arr: sf_arr
  743 + });
  744 + ee.countDown2();
  745 + //---设置门店---
  746 + ee.get_sto();
  747 + //---定时设置一下待支付的订单---
  748 + ee.time_out();
  749 + },
  750 +
  751 + onHide:function(){
  752 + this.setData({is_show:0,});
  753 + },
  754 + go_back:function(){
  755 + if(getCurrentPages()>1)
  756 + wx.navigateBack({delta: 1})
  757 + else
  758 + wx.navigateTo({
  759 + url: "/pages/index/index/index"
  760 + });
  761 + },
  762 + //---小于10的格式化函数----
  763 + timeFormat(param) {
  764 + return param < 10 ? '0' + param : param;
  765 + },
  766 + countDown2() {
  767 + var th = this;
  768 + // 获取当前时间,同时得到活动结束时间数组
  769 + var newTime = ut.gettimestamp();
  770 + var o = this.data.pindGoods;
  771 + var endTime = o.kt_end_time;
  772 +
  773 + let obj = null;
  774 + // 如果活动未结束,对时间进行处理
  775 + if (endTime - newTime > 0) {
  776 + let time = (endTime - newTime);
  777 + // 获取天、时、分、秒
  778 + let day = parseInt(time / (60 * 60 * 24));
  779 + let hou = parseInt(time % (60 * 60 * 24) / 3600);
  780 + let min = parseInt(time % (60 * 60 * 24) % 3600 / 60);
  781 + let sec = parseInt(time % (60 * 60 * 24) % 3600 % 60);
  782 + obj = {
  783 + day: this.timeFormat(day),
  784 + hou: this.timeFormat(hou),
  785 + min: this.timeFormat(min),
  786 + sec: this.timeFormat(sec)
  787 + }
  788 + } else {
  789 + //活动已结束,全部设置为'00'
  790 + obj = {
  791 + day: '00',
  792 + hou: '00',
  793 + min: '00',
  794 + sec: '00'
  795 + }
  796 + }
  797 + var txt = "pindGoods.djs";
  798 + th.setData({
  799 + obj: obj
  800 + });
  801 + setTimeout(th.countDown2, 1000);
  802 + },
  803 +
  804 + //------去支付,购买-------
  805 + go_pay:function () {
  806 + var th=this;
  807 + var def_pick_store=this.data.def_pick_store;
  808 + if(def_pick_store && def_pick_store.pickup_id) {
  809 + th.data.pick_id=def_pick_store.pickup_id; //选择门店
  810 + th.data.end_name=def_pick_store.pickup_name;
  811 + }
  812 + if (!th.data.pick_id) return s.my_warnning("请选择门店", 0, th);
  813 + if (th.data.pick_id==0) return s.my_warnning("请选择门店", 0, th);
  814 +
  815 + //----判断起购数----
  816 + var qnum=parseFloat(th.data.teamlist.minbuynum);
  817 + if(qnum>0 && qnum>th.data.num ){
  818 + getApp().confirmBox("拼团商品至少要买"+qnum+"件!");
  819 + return false;
  820 + }
  821 + //先判断团的redis数量
  822 + this.buy_check_redis(function () {
  823 + var arr=th.data.redis_arr;
  824 + if(th.data.num>arr[0]){
  825 + if(arr[0]>0){
  826 + getApp().showWarning("超出活动库存");
  827 + }else{
  828 + getApp().showWarning("拼单已经抢光");
  829 + }
  830 + return false;
  831 + }
  832 + if(th.data.teamlist.kttype==2 && 1>arr[1]){
  833 + getApp().showWarning("拼团已满");
  834 + return false;
  835 + }
  836 +
  837 + //--------------此时操作的数据------------
  838 + var newd = {
  839 + goods_id: th.data.goods.goods_id,
  840 + goods_num: th.data.num,
  841 + pick_id: th.data.pick_id,
  842 + user_id: oo.user_id,
  843 + store_id: th.data.stoid,
  844 + goods_name: th.data.goods.goods_name,
  845 + goods_sn: th.data.goods.goods_sn,
  846 + };
  847 +
  848 + //---是不是从收藏夹出来的---
  849 + if(th.data.c_guide_id){
  850 + newd['guide_id'] = th.data.c_guide_id;
  851 + newd['guide_type']=2;
  852 +
  853 + }else{
  854 + if(getApp().globalData.guide_id){
  855 + newd['guide_id'] = getApp().globalData.guide_id;
  856 + newd['guide_type']=0;
  857 +
  858 + }
  859 + }
  860 +
  861 + //-----拼团-----
  862 + newd.goods_price = th.data.teamlist.price;
  863 + newd.prom_type = 6;
  864 + newd.prom_id = th.data.teamlist.id;
  865 + newd.kt_type = th.data.teamlist.kttype; //开团类型
  866 + newd.is_pt_tz = 0;
  867 + newd.pick_name = th.data.end_name;
  868 + newd.pick_dis = 1;
  869 + newd.is_normal = 0;
  870 + //判断开团还是参团
  871 + switch (th.data.is_kt_or_ct) {
  872 + case "0":
  873 + //如果不是商家团,就要带团期号
  874 + if(th.data.teamlist.kttype>1){
  875 + newd.qh=th.data.teamgroup.listno;
  876 + }
  877 + break;
  878 + case "1":
  879 + //阶梯团和会员团都要设置is_pt_tz
  880 + if (newd.kt_type > 1) {
  881 + newd.is_pt_tz = 1; //开团类型
  882 + }
  883 + break;
  884 + }
  885 + newd['pick_dis'] = th.data.pick_dis;
  886 +
  887 + if(getApp().globalData.guide_id){
  888 + newd['guide_id'] = getApp().globalData.guide_id;
  889 + newd['guide_type']=0;
  890 + }
  891 +
  892 + s.set_b_now(newd);
  893 + wx.navigateTo({
  894 + url: "/packageE/pages/cart/cart2_pt/cart2_pt?is_bnow=1&goods_id=" + th.data.goods.goods_id,
  895 + });
  896 + });
  897 + },
  898 +
  899 + //购买前的判断redis
  900 + async buy_check_redis(func){
  901 + //获取redis中的数量
  902 + var r_num=0,prom_type=6,prom_id=this.data.teamlist.id;
  903 + await getApp().request.promiseGet("/api/weshop/activitylist/getActLen/" + os.stoid + "/" + prom_type + "/" + prom_id, {
  904 + 1: 1
  905 + }).then(res => {
  906 + var em = res;
  907 + if (em.data.code == 0) {
  908 + r_num=em.data.data;
  909 + }
  910 + })
  911 +
  912 + //只有会员团要判断团的人数
  913 + var gr_num=0,grp_id=this.data.teamgroup.id;
  914 + if(this.data.teamlist.kttype==2){
  915 + await getApp().request.promiseGet("/api/weshop/activitylist/getActTuanLen/" + os.stoid + "/" + grp_id, {
  916 + 1: 1
  917 + }).then(res => {
  918 + var em = res;
  919 + if (em.data.code == 0) {
  920 + gr_num=em.data.data;
  921 + }
  922 + })
  923 + }
  924 + var arr=[];arr.push(r_num);arr.push(gr_num);
  925 + this.data.redis_arr=arr;
  926 + func();
  927 + },
  928 +
  929 + //定时设置一下待支付的订单
  930 + time_out:function () {
  931 + var list=this.data.tg_arr,th=this;
  932 + if(!list) return false;
  933 + // 获取当前时间,同时得到活动结束时间数组
  934 + var newTime = ut.gettimestamp();
  935 + var endTime = list.time;
  936 +
  937 + let obj = null;
  938 + // 如果活动未结束,对时间进行处理
  939 + if (endTime - newTime > 0) {
  940 + let time = (endTime - newTime);
  941 + // 获取天、时、分、秒
  942 + let day = parseInt(time / (60 * 60 * 24));
  943 + let hou = parseInt(time % (60 * 60 * 24) / 3600);
  944 + let min = parseInt(time % (60 * 60 * 24) % 3600 / 60);
  945 + let sec = parseInt(time % (60 * 60 * 24) % 3600 % 60);
  946 + obj = {
  947 + day: th.timeFormat(day),
  948 + hou: th.timeFormat(hou),
  949 + min: th.timeFormat(min),
  950 + sec: th.timeFormat(sec)
  951 + }
  952 + } else {
  953 + //活动已结束,全部设置为'00'
  954 + obj = {
  955 + day: '00',
  956 + hou: '00',
  957 + min: '00',
  958 + sec: '00'
  959 + }
  960 +
  961 + //调用接口清理订单,并且返回redis数量
  962 + th.back_order(function () {
  963 + th.setData({ tg_arr: null});
  964 + });
  965 + return false;
  966 + }
  967 + var txt = "pindGoods.djs";
  968 + th.setData({
  969 + r_obj: obj
  970 + });
  971 + setTimeout(th.time_out, 1000);
  972 + },
  973 +
  974 + //清理订单,并且返回redis数量ss
  975 + back_order:function (func) {
  976 + var th=this;
  977 + //---取消订单---
  978 + getApp().request.delete("/api/weshop/order/cancelTeamOrder/"+th.data.stoid+"/"+th.data.tg_arr.order_id,{
  979 + data:{},
  980 + success: function(t) {
  981 + if(t.data.code==0){
  982 + th.setData({tg_arr:null})
  983 + }
  984 + },
  985 + })
  986 + },
  987 +
  988 + go_goodsinfo:function (e) {
  989 + var gid=e.currentTarget.dataset.gid;
  990 + var url="/pages/goods/goodsInfo/goodsInfo?goods_id="+gid;
  991 + wx.navigateTo({ url: url, }) //跳到非tabbar页
  992 + },
  993 +
  994 + gohome:function(){
  995 + getApp().goto("/pages/index/index/index");
  996 + },
  997 +
  998 + //-----图片失败,默认图片-----
  999 + bind_bnerr: function (e) {
  1000 + var _errImg = e.target.dataset.errorimg;
  1001 + var _errObj = {};
  1002 + _errObj[_errImg] = this.data.iurl + "/miniapp/images/default_g_img.gif";
  1003 + this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ;
  1004 + },
  1005 +
  1006 + //------ 分享配置 --------
  1007 + onShareAppMessage: function (e) {
  1008 + getApp().globalData.no_clear=1;
  1009 + var curPage=this;
  1010 + var pagePath = curPage.route; //当前页面url
  1011 + if (pagePath.indexOf('/') != 0) {
  1012 + pagePath = '/' + pagePath;
  1013 + }
  1014 + var url=pagePath;
  1015 +
  1016 + //--分享图片--
  1017 + img=th.data.iurl+th.data.teamlist.share_imgurl;
  1018 + //--把会员分享出去--
  1019 + if(getApp().globalData.user_id){
  1020 + if(url.indexOf("?")>0)
  1021 + url+="&first_leader="+getApp().globalData.user_id;
  1022 + else
  1023 + url+="?first_leader="+getApp().globalData.user_id;
  1024 + }
  1025 +
  1026 + if(url.indexOf('goods_id')==-1){
  1027 + url+="&goods_id="+this.data.goods.goods_id;
  1028 + }
  1029 + if(url.indexOf('tg_id')==-1){
  1030 + url+="&tg_id="+this.data.teamgroup.id;
  1031 + }
  1032 +
  1033 +
  1034 + return {
  1035 + path:url,
  1036 + title: "商品分类",
  1037 + imageUrl: img,
  1038 + }
  1039 + },
  1040 +
  1041 +
  1042 +
  1043 +
  1044 +
  1045 + closeSpecModal: function() {
  1046 + this.setData({
  1047 + yijian: false
  1048 + });
  1049 + },
  1050 +
  1051 + close_popup: function() {
  1052 + this.setData({
  1053 + showStore: true
  1054 + });
  1055 + },
  1056 +
  1057 +
  1058 +
  1059 + //-- 选择门店。此时的门店选择与门店有关系 --
  1060 + choice_store: function(ee) {
  1061 +
  1062 + //--先判断会员状态--
  1063 + var user_info = getApp().globalData.userInfo;
  1064 + if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) {
  1065 + wx.navigateTo({
  1066 + url: '/packageE/pages/togoin/togoin',
  1067 + })
  1068 + return false;
  1069 + }
  1070 +
  1071 + var th = this;
  1072 + var bconfig = th.data.bconfig;
  1073 +
  1074 + //如果开启了,则不在选择门店
  1075 + if(this.data.sys_switch.is_pricing_open_store && getApp().globalData.pk_store){
  1076 + return false;
  1077 + }
  1078 +
  1079 + if(!th.data.only_pk && !th.data.def_pickpu_list){
  1080 + getApp().confirmBox("门店库存不足", null, 25000, !1);
  1081 + return false;
  1082 + }
  1083 + if(th.data.only_pk && !th.data.only_pk.length){
  1084 + getApp().confirmBox("门店库存不足", null, 25000, !1);
  1085 + return false;
  1086 + }
  1087 + if(th.data.def_pickpu_list && !th.data.def_pickpu_list.length){
  1088 + getApp().confirmBox("门店库存不足", null, 25000, !1);
  1089 + return false;
  1090 + }
  1091 +
  1092 + if ( bconfig && bconfig.is_sort_storage) {
  1093 + wx.getLocation({
  1094 + type: 'gcj02',
  1095 + success: function(res) {
  1096 +
  1097 + th.data.lat = res.latitude;
  1098 + th.data.lon = res.longitude;
  1099 + th.data.is_get_local_ok = 1;
  1100 + th.setData({
  1101 + is_gps: 1
  1102 + });
  1103 + //th.onShow();
  1104 + th.get_sto();
  1105 + },
  1106 + fail: function(res) {
  1107 + //th.onShow();
  1108 + th.data.is_get_local_ok = 1;
  1109 + th.get_sto();
  1110 + if (res.errCode == 2) {
  1111 + th.setData({
  1112 + is_gps: 0
  1113 + });
  1114 + if (th.data.is_gps == 0) {
  1115 + getApp().confirmBox("请开启GPS定位", null, 25000, !1);
  1116 + }
  1117 + } else {
  1118 + th.setData({
  1119 + is_gps: "3"
  1120 + });
  1121 + }
  1122 +
  1123 + }
  1124 + })
  1125 + }else{
  1126 + th.data.is_get_local_ok = 1;
  1127 + th.get_sto();
  1128 + }
  1129 +
  1130 + this.setData({
  1131 + store: 1,
  1132 + yijian: false,
  1133 + choice_sort_store:0
  1134 + })
  1135 +
  1136 + },
  1137 +
  1138 +
  1139 + //选择更多门店
  1140 + more_store: function() {
  1141 + this.setData({ sort_store: 1});
  1142 + },
  1143 +
  1144 + // 返回按钮
  1145 + returns: function() {
  1146 + this.setData({
  1147 + sort_store: 0,choice_sort_store: 0
  1148 + });
  1149 + },
  1150 +
  1151 +
  1152 + //-- 等待获取定位系统 --
  1153 + wait_for_store_config: function() {
  1154 + var th = this;
  1155 + var t_time = setInterval(function() {
  1156 + if (th.data.bconfig == null) false;
  1157 + var e = th.data.bconfig;
  1158 + if (e && e.is_sort_storage) {
  1159 + wx.getLocation({
  1160 + type: 'gcj02',
  1161 + success: function(res) {
  1162 + th.data.lat = res.latitude;
  1163 + th.data.lon = res.longitude;
  1164 + th.data.is_get_local_ok = 1;
  1165 + },
  1166 + fail: function(res) {
  1167 + if (res.errCode == 2) {
  1168 + th.setData({
  1169 + is_gps: 0
  1170 + });
  1171 + if (th.data.is_gps == 0) {
  1172 + getApp().confirmBox("请开启GPS定位", null, 10000, !1);
  1173 + }
  1174 +
  1175 + } else {
  1176 + th.setData({
  1177 + is_gps: "3"
  1178 + });
  1179 + }
  1180 +
  1181 + th.data.is_get_local_ok = 1;
  1182 + }
  1183 + })
  1184 + } else {
  1185 + th.data.is_get_local_ok = 1;
  1186 + }
  1187 + clearInterval(t_time);
  1188 + }, 500)
  1189 + },
  1190 +
  1191 +
  1192 + //---------拿出门店分类和门店------------
  1193 + get_sto(e) {
  1194 + var th = this,that=this;
  1195 + var timer_get = setInterval(function() {
  1196 + if (th.data.is_get_local_ok == 0) return false;
  1197 + if (!th.data.goods) return false;
  1198 + var dd = null,
  1199 + i = getApp().request;
  1200 + var g_distr_type = th.data.goods.distr_type;
  1201 + if (g_distr_type != 0) {
  1202 + dd = {
  1203 + store_id: o.stoid,
  1204 + distr_type: g_distr_type,
  1205 + isstop: 0,
  1206 + is_pos: 1,
  1207 + pageSize: 2000
  1208 + }
  1209 + } else {
  1210 + dd = {
  1211 + store_id: o.stoid,
  1212 + isstop: 0,
  1213 + is_pos: 1,
  1214 + pageSize: 2000
  1215 + }
  1216 + }
  1217 + //如果有距离的话
  1218 + if (th.data.lat != null) {
  1219 + dd.lat = th.data.lat;
  1220 + dd.lon = th.data.lon;
  1221 + }
  1222 + clearInterval(timer_get);
  1223 +
  1224 + //如果会员是有默认的门店话
  1225 + if(!th.data.def_pick_store && th.data.fir_def_store){
  1226 + th.setData({def_pick_store:th.data.fir_def_store});
  1227 + }
  1228 +
  1229 + //----------获取门店----------------
  1230 + getApp().request.promiseGet("/api/weshop/pickup/list", {
  1231 + data: dd,
  1232 + }).then(res => {
  1233 + var e = res;
  1234 + if (e.data.code == 0 && e.data.data && e.data.data.pageData && e.data.data.pageData.length>0) {
  1235 +
  1236 + var pickup_ids=null;
  1237 + //指定门店判断, 不是普通购买的时候,秒杀的时候,秒杀有指定门店
  1238 + if( th.data.teamlist.pick_up_lists){
  1239 + pickup_ids=th.data.teamlist.pick_up_lists
  1240 + }
  1241 +
  1242 + //-- 如果有指定门店的时候 --
  1243 + if(pickup_ids){
  1244 + var ok_arr=[];
  1245 + for (let i in e.data.data.pageData) {
  1246 + let ite = e.data.data.pageData[i];
  1247 + //-- 查找一下门店有没有在 --
  1248 + var idx=pickup_ids.findIndex(function (e){
  1249 + return e.pickup_id==ite.pickup_id;
  1250 + })
  1251 + if(idx>-1){
  1252 + ok_arr.push(ite)
  1253 + }
  1254 + }
  1255 +
  1256 + //判断会员的默认的门店是不是匹配指定的门店
  1257 + if (th.data.def_pick_store && JSON.stringify(th.data.def_pick_store) != '{}'){
  1258 + //-- 查找一下门店有没有在 --
  1259 + var idx1=pickup_ids.findIndex(function (e){
  1260 + return e.pickup_id==th.data.def_pick_store.pickup_id;
  1261 + })
  1262 +
  1263 + if(idx1<0){
  1264 + th.data.def_pick_store.is_no_dis_act=1;
  1265 + }else{
  1266 + th.data.def_pick_store.is_no_dis_act=0;
  1267 + }
  1268 +
  1269 + that.setData({
  1270 + def_pick_store: th.data.def_pick_store
  1271 + })
  1272 +
  1273 + }
  1274 + e.data.data.pageData=ok_arr; //数组重新赋值
  1275 + e.data.data.total=ok_arr.length; //数组的长度
  1276 + }
  1277 + else{
  1278 + //-- 多规格指定门店优化 --
  1279 + if (th.data.def_pick_store && JSON.stringify(th.data.def_pick_store) != '{}'){
  1280 + th.data.def_pick_store.is_no_dis_act=0;
  1281 + that.setData({
  1282 + def_pick_store: th.data.def_pick_store
  1283 + })
  1284 + }
  1285 + }
  1286 +
  1287 +
  1288 +
  1289 + var his_cate_num=0;
  1290 + for(let i in e.data.data.pageData){
  1291 + let item=e.data.data.pageData[i];
  1292 + if(item.category_id>0){
  1293 + his_cate_num=1;break;
  1294 + }
  1295 + }
  1296 + e.his_cate_num=his_cate_num;
  1297 +
  1298 + //如果有开启距离的功能,没有设置默认门店,要用最近的门店作为默认门店
  1299 + if(dd.lat && !th.data.def_pick_store && th.data.bconfig && th.data.bconfig.is_sort_storage){
  1300 + th.setData({
  1301 + def_pick_store:e.data.data.pageData[0],
  1302 + sto_sele_name: e.data.data.pageData[0].pickup_name,
  1303 + sto_sele_id: e.data.data.pageData[0].pickup_id,
  1304 + sto_sele_distr: e.data.data.pageData[0].distr_type
  1305 + });
  1306 + th.data.fir_def_store=e.data.data.pageData[0];
  1307 + }
  1308 +
  1309 + //-- 如果有默认选择门店的时候,要把默认门店放在第一位 --
  1310 + if (th.data.def_pick_store && JSON.stringify(th.data.def_pick_store)!='{}'){
  1311 + for (var k = 0; k < e.data.data.pageData.length; k++) {
  1312 + if (e.data.data.pageData[k].pickup_id == th.data.def_pick_store.pickup_id) {
  1313 + e.data.data.pageData.splice(k, 1); //删除
  1314 + break;
  1315 + }
  1316 + }
  1317 + e.data.data.pageData.splice(0, 0, th.data.def_pick_store); //添加
  1318 + }
  1319 +
  1320 +
  1321 + th.setData({all_pick_list:e.data.data.pageData});
  1322 +
  1323 +
  1324 + setTimeout(function(){
  1325 + th.deal_pickup(e); //--普通门店排版--
  1326 + },800)
  1327 +
  1328 + }
  1329 + })
  1330 + }, 200)
  1331 +
  1332 + },
  1333 +
  1334 + //------------处理门店,拼团活动只有线上库存---------------
  1335 + deal_pickup(e){
  1336 + var th=this;
  1337 + var g_distr_type=th.data.goods.distr_type;
  1338 + //单总量超出5个的时候
  1339 + if (e.data.data.total > 10 && e.his_cate_num) {
  1340 + getApp().request.get("/api/weshop/storagecategory/page", {
  1341 + data: {
  1342 + store_id: o.stoid,
  1343 + pageSize: 1000,
  1344 + orderField:"sort",
  1345 + orderType:'asc',
  1346 + },
  1347 + success: function(ee) {
  1348 + if (ee.data.code == 0) {
  1349 +
  1350 + var check_all_cate=0;
  1351 + if (ee.data.data && ee.data.data.pageData && ee.data.data.pageData.length > 0){
  1352 + for(let i in ee.data.data.pageData){
  1353 + let item=ee.data.data.pageData[i];
  1354 + if(item.is_show==1){
  1355 + check_all_cate=1;break
  1356 + }
  1357 + }
  1358 + }
  1359 +
  1360 +
  1361 +
  1362 + if (check_all_cate) {
  1363 +
  1364 + var sto_cate = ee.data.data.pageData;
  1365 + var sto_arr = e.data.data.pageData;
  1366 + var newarr = new Array();
  1367 + var qita = new Array();
  1368 +
  1369 + var is_del_pk=0;
  1370 + //----要进行门店分组--------
  1371 + for (var i = 0; i < sto_arr.length; i++) {
  1372 + //找一下这个门店有没有在分类数组内
  1373 + var find2 = 0,find2name = "",sort=0;
  1374 + is_del_pk=0;
  1375 + for (var m = 0; m < sto_cate.length; m++) {
  1376 + if (sto_arr[i].category_id == sto_cate[m].cat_id) {
  1377 + if(sto_cate[m].is_show!=1){
  1378 + is_del_pk=1; sto_arr.splice(i,1);
  1379 + i--;
  1380 + }else {
  1381 + find2 = sto_cate[m].cat_id;
  1382 + find2name = sto_cate[m].cat_name;
  1383 + sort = sto_cate[m].sort;
  1384 + is_del_pk=0;
  1385 + }
  1386 + break;
  1387 + }
  1388 + }
  1389 + if(is_del_pk) continue;
  1390 +
  1391 + if (newarr.length > 0) {
  1392 + var find = 0;
  1393 + //如果有找到,那门店就在这个分组内,否则,分类就要排在其他
  1394 + if (find2 != 0) {
  1395 + for (var ii = 0; ii < newarr.length; ii++) {
  1396 + if (sto_arr[i].category_id == newarr[ii].cat_id) {
  1397 + newarr[ii].s_arr.push(sto_arr[i]);
  1398 + find = 1;
  1399 + break;
  1400 + }
  1401 + }
  1402 + if (find == 0) {
  1403 + var arr0 = new Array();
  1404 + arr0.push(sto_arr[i]);
  1405 + var item = {
  1406 + cat_id: find2,
  1407 + name: find2name,
  1408 + sort:sort,
  1409 + s_arr: arr0
  1410 + };
  1411 + newarr.push(item);
  1412 + }
  1413 + } else {
  1414 + qita.push(sto_arr[i]);
  1415 + }
  1416 + } else {
  1417 + //如果有找到,那门店就在这个分组内,否则,分类就要排在其他
  1418 + if (find2 != 0) {
  1419 + var arr0 = new Array();
  1420 + arr0.push(sto_arr[i]);
  1421 + var item = {
  1422 + cat_id: find2,
  1423 + name: find2name,
  1424 + sort:sort,
  1425 + s_arr: arr0
  1426 + };
  1427 + newarr.push(item);
  1428 + } else {
  1429 + qita.push(sto_arr[i]);
  1430 + }
  1431 + }
  1432 + }
  1433 +
  1434 + var def_arr = new Array();
  1435 + //-- 开始就看10个门店 --
  1436 + for (var k = 0; k < 10; k++) {
  1437 + if (k == sto_arr.length) break;
  1438 + def_arr.push(sto_arr[k]);
  1439 + }
  1440 +
  1441 + th.setData({
  1442 + def_pickpu_list: def_arr,
  1443 + pickpu_list: ee.data.data.pageData
  1444 + });
  1445 +
  1446 + //门店分类要排序下
  1447 + function compare(property){
  1448 + return function(a,b){
  1449 + var value1 = a[property];
  1450 + var value2 = b[property];
  1451 + return value1 - value2;
  1452 + }
  1453 + }
  1454 + if(newarr.length>0)
  1455 + newarr.sort(compare("sort"));
  1456 +
  1457 +
  1458 + //----安排其他的分类-----
  1459 + if (qita.length > 0) {
  1460 + var item = {
  1461 + cat_id: -1,
  1462 + name: "其他",
  1463 + s_arr: qita
  1464 + };
  1465 + newarr.push(item);
  1466 + }
  1467 +
  1468 + var sd={
  1469 + all_sto: newarr,
  1470 + is_show_sto_cat:1
  1471 + }
  1472 + if(!sto_arr || sto_arr.length<=10){
  1473 + sd.is_show_sto_cat=-1;
  1474 + sd.only_pk=sto_arr;
  1475 + }
  1476 + th.setData(sd);
  1477 +
  1478 + } else {
  1479 + th.setData({
  1480 + is_show_sto_cat: -1,
  1481 + only_pk: e.data.data.pageData
  1482 + });
  1483 + //-----如果没有默认门店,要取第一个门店作为默认店.此时没有门店分类的情况------
  1484 + if (!th.data.def_pick_store) {
  1485 + th.setData({def_pick_store:e.data.data.pageData[0]})
  1486 + }
  1487 + }
  1488 + } else {
  1489 + th.setData({
  1490 + is_show_sto_cat: -1,
  1491 + only_pk: e.data.data.pageData
  1492 + });
  1493 + //-----如果没有默认门店,要取第一个门店作为默认店.此时没有门店分类的情况------
  1494 + if (!th.data.def_pick_store) {
  1495 + th.setData({def_pick_store:e.data.data.pageData[0]})
  1496 + }
  1497 +
  1498 + }
  1499 + }
  1500 + });
  1501 + } else {
  1502 + th.setData({
  1503 + is_show_sto_cat: 0,
  1504 + only_pk: e.data.data.pageData
  1505 + });
  1506 + //-----如果没有默认门店,要取第一个门店作为默认店------
  1507 + if (!th.data.def_pick_store && th.data.bconfig && th.data.bconfig.is_sort_storage) {
  1508 + th.setData({
  1509 + def_pick_store:e.data.data.pageData[0],
  1510 + sto_sele_name: e.data.data.pageData[0].pickup_name,
  1511 + sto_sele_id: e.data.data.pageData[0].pickup_id,
  1512 + sto_sele_distr: e.data.data.pageData[0].distr_type
  1513 + })
  1514 + }
  1515 + }
  1516 + },
  1517 +
  1518 +
  1519 +
  1520 + //---选择分类门店---
  1521 + choice_sort_store: function(e) {
  1522 + var index = e.currentTarget.dataset.index;
  1523 + var region_name = e.currentTarget.dataset.region;
  1524 + var item = this.data.all_sto[index];
  1525 + this.setData({
  1526 + region_name: region_name,
  1527 + sort_store: 0,
  1528 + choice_sort_store: 1,
  1529 + sec_sto: item,
  1530 + sec_pick_index: 0,
  1531 + });
  1532 + },
  1533 +
  1534 + choose_for_store_fir: function(e) {
  1535 + var index_c = e.currentTarget.dataset.ind;
  1536 + var th=this;
  1537 + th.setData({
  1538 + fir_pick_index: index_c
  1539 + })
  1540 + },
  1541 +
  1542 + //---点击二级之后的选择---
  1543 + choose_for_store: function(e) {
  1544 + var index_c = e.currentTarget.dataset.ind;
  1545 + var th=this;
  1546 + th.setData({
  1547 + sec_pick_index: index_c,
  1548 + fir_pick_index: index_c
  1549 + })
  1550 +
  1551 + },
  1552 +
  1553 + //确定def_pick为选择的门店
  1554 + sure_pick: function(e) {
  1555 + var th = this;
  1556 + var item = null;
  1557 +
  1558 + if (th.data.choice_sort_store == 0) {
  1559 + var index = th.data.fir_pick_index;
  1560 + if (th.data.is_show_sto_cat == 1) {
  1561 + item = th.data.def_pickpu_list[index];
  1562 + } else {
  1563 + item = th.data.only_pk?th.data.only_pk[index]:null; //当没有门店分类的时候
  1564 + }
  1565 +
  1566 + } else {
  1567 + var index = th.data.sec_pick_index;
  1568 + item = th.data.sec_sto.s_arr[index];
  1569 + }
  1570 + if(!item) return false;
  1571 +
  1572 +
  1573 + th.setData({
  1574 + def_pick_store: item,
  1575 + sto_sele_name: item.pickup_name,
  1576 + sto_sele_id: item.pickup_id,
  1577 + sto_sele_distr: item.distr_type,
  1578 + store: 0,
  1579 + choice_sort_store: 0,
  1580 + fir_pick_index: 0
  1581 + });
  1582 +
  1583 +
  1584 + th.setData({
  1585 + yijian: 1, //打开拼团购买界面
  1586 + store: 0, //关闭门店
  1587 + choice_sort_store: 0, //关闭门店2级
  1588 + sort_store: 0, //关闭门店2级
  1589 + });
  1590 +
  1591 +
  1592 + },
  1593 +
  1594 +
  1595 +
  1596 + //把选择的门店设置成默认的门店def_pick
  1597 + set_def_pick: function(e) {
  1598 + var th = this;
  1599 + var item = null;
  1600 + if (th.data.choice_sort_store == 0) {
  1601 + var index = th.data.fir_pick_index;
  1602 + if (th.data.is_show_sto_cat == 1) {
  1603 + item = th.data.def_pickpu_list[index];
  1604 + } else {
  1605 + item = th.data.only_pk?th.data.only_pk[index]:null; //当没有门店分类的时候
  1606 + }
  1607 + } else {
  1608 + var index = th.data.sec_pick_index;
  1609 + item = th.data.sec_sto.s_arr[index];
  1610 + }
  1611 +
  1612 + if(!item) return false;
  1613 +
  1614 +
  1615 + var store_id = o.stoid;
  1616 + var user_id = getApp().globalData.user_id;
  1617 + var def_pickup_id = item.pickup_id;
  1618 +
  1619 + getApp().request.put('/api/weshop/users/update', {
  1620 + data: {
  1621 + user_id,
  1622 + def_pickup_id
  1623 + },
  1624 + success: function(res) {
  1625 + if (res.data.code == 0) {
  1626 + if (th.data.choice_sort_store == 0) th.setData({
  1627 + fir_pick_index: 0
  1628 + });
  1629 + getApp().globalData.pk_store = item;
  1630 + } else {
  1631 + getApp().my_warnning("设置默认门店地址失败",0,th)
  1632 + }
  1633 +
  1634 + }
  1635 + });
  1636 +
  1637 + th.setData({
  1638 + def_pick_store: item,
  1639 + sto_sele_name: item.pickup_name,
  1640 + sto_sele_id: item.pickup_id,
  1641 + sto_sele_distr: item.distr_type,
  1642 + store: 0,
  1643 + choice_sort_store: 0
  1644 + });
  1645 +
  1646 + //4就是拼团
  1647 + th.setData({
  1648 + yijian: 1, //打开拼团购买界面
  1649 + store: 0, //关闭门店
  1650 + choice_sort_store: 0, //关闭门店2级
  1651 + sort_store: 0, //关闭门店2级
  1652 + });
  1653 +
  1654 + },
  1655 +
  1656 +
  1657 + //-- 关闭选择门店 --
  1658 + close_popup: function(e) {
  1659 + var th=this;
  1660 + this.setData({
  1661 + store: 0,
  1662 + choice_sort_store: 0,
  1663 + sort_store: 0,
  1664 + fir_pick_index:0,
  1665 + sec_pick_index:0,
  1666 + yijian: 1, //打开拼团购买界面
  1667 + })
  1668 +
  1669 + },
  1670 +
  1671 + //-- 弹出框的同意的优化,重新获取定位 ---
  1672 + agree_pri:function (){
  1673 + var th=this;
  1674 + var bconfig = th.data.bconfig;
  1675 + if (bconfig && bconfig.is_sort_storage) {
  1676 + wx.getLocation({
  1677 + type: 'gcj02',
  1678 + success: function (res) {
  1679 + th.data.lat = res.latitude;
  1680 + th.data.lon = res.longitude;
  1681 + th.data.is_get_local_ok = 1;
  1682 + th.setData({
  1683 + is_gps: 1
  1684 + });
  1685 + //th.onShow();
  1686 + th.get_sto();
  1687 + },
  1688 + fail: function (res) {
  1689 + //th.onShow();
  1690 + th.data.is_get_local_ok = 1;
  1691 + th.get_sto();
  1692 + if (res.errCode == 2) {
  1693 + th.setData({
  1694 + is_gps: 0
  1695 + });
  1696 + if (th.data.is_gps == 0) {
  1697 + getApp().confirmBox("请开启GPS定位", null, 25000, !1);
  1698 + }
  1699 + } else {
  1700 + th.setData({
  1701 + is_gps: "3"
  1702 + });
  1703 + }
  1704 +
  1705 + }
  1706 + })
  1707 + }
  1708 + },
  1709 +
  1710 +
  1711 +
  1712 +
  1713 +})
0 1714 \ No newline at end of file
... ...
packageG/pages/team/team_show/team_show.json 0 → 100644
  1 +{
  2 + "windom": {
  3 + "navigationBarTitleText": "拼团订单",
  4 + "backgroundTextStyle": "light",
  5 + "navigationBarTextStyle": "white",
  6 + "navigationBarBackgroundColor": "#ffffff",
  7 + "backgroundColor": "#eeeeee"
  8 + },
  9 + "usingComponents": {
  10 + "warn": "/components/long_warn/long_warn",
  11 + "privacy_pop": "/components/privacy_pop/privacy_pop"
  12 + }
  13 +}
0 14 \ No newline at end of file
... ...
packageG/pages/team/team_show/team_show.wxml 0 → 100644
  1 +<!-- 判断隐私是不是显示 -->
  2 +<privacy_pop id="privacy_pop" bind:agree_pri="agree_pri"></privacy_pop>
  3 +
  4 +<wxs module="filters" src="../../../../utils/filter.wxs"></wxs>
  5 +<!---- //文字"-->
  6 +<view wx:if="{{is_show}}">
  7 +
  8 + <!--图片区域-->
  9 + <view class='center'>
  10 + <view class='cenleft'>
  11 + <image src='{{image}}' binderror='bind_bnerr' data-errorimg='image'></image>
  12 + </view>
  13 + <view class='cenright'>
  14 + <view class='cenrt'>
  15 +
  16 + <view class='xc-goods-details ellipsis-2 fs28'>
  17 + <span>{{goods.goods_name}}</span>
  18 + </view>
  19 + </view>
  20 + <view class='cenrcen flex-vertical-between'>
  21 + <view>
  22 + <view class="fs40 xc-wc" style='font-size:40rpx'>
  23 + <span class="fs28" style="font-weight:500;">¥</span>{{teamlist.price}}</view>
  24 + <view class="fs22 word-line xc-wc">
  25 + ¥{{goods.shop_price}}
  26 + </view>
  27 + </view>
  28 + <view class="xc-wc fs24">
  29 + <view>
  30 + <view class="">已拼{{teamlist.buy_num}}件</view>
  31 + <view class="flex xc-valframe t-c">
  32 + <view class="xc-frame-img">
  33 + <image class="picture" src="{{imageurl}}/miniapp/images/bai-ren.png"></image>
  34 + </view>
  35 + <view style='margin-left:9rpx;'>
  36 + {{teamlist.ct_num}}人拼
  37 + </view>
  38 + </view>
  39 + </view>
  40 + </view>
  41 + </view>
  42 + </view>
  43 + </view>
  44 +
  45 + <view class='body oh'>
  46 + <!-- 等待团员 -->
  47 + <!-- <view class='bodytop' wx:if="{{teamlist.kt_type==3}}"> -->
  48 + <!-- 拼团成功 -->
  49 + <view class="xc-ptcomplete flex-level fs28" wx:if="{{val==2}}">
  50 +
  51 + <view class="xc-wc">拼团成功</view>,为您节省<text class="xc-wc">25</text>元
  52 + <view class="xc-img-frame oh" wx:if="{{val==2}}">
  53 + <image class="img" src="{{imageurl}}/miniapp/images/xc_qtcg.png"></image>
  54 + </view>
  55 + </view>
  56 + <!-- 拼团失败 -->
  57 + <view class="xc-ptcomplete flex-level fs28" wx:if="{{val==3}}">
  58 + <view class="xc-wc xc-end">拼团失败</view>
  59 + <view class="xc-img-frames oh iw" wx:if="{{val==3}}">
  60 + <image class="img " src="{{imageurl}}/miniapp/images/xc-qtshibai.png"></image>
  61 + </view>
  62 + </view>
  63 + <!--头像-->
  64 + <view class="flex_tou">
  65 + <view class='bodyimg flex-level' wx:for="{{ordertx2}}" wx:key>
  66 + <view class='d'>
  67 + <image src='{{item.head_pic}}'></image>
  68 + <span wx:if="{{item.is_pt_tz==1}}">团长</span>
  69 + </view>
  70 + </view>
  71 + <view class='d' wx:for="{{sf_arr}}">
  72 + <image src='{{iurl}}/miniapp/images/shafa.png' style='width:100%; height:100%'></image>
  73 + </view>
  74 + <view class='xc-ellipsis-img' wx:if="{{ordertx.length>5}}">
  75 + <image style='width:56rpx;height:56rpx;margin-left:10rpx;' src="{{imageurl}}/miniapp/images/xc_ellipsis.png"></image>
  76 + </view>
  77 +
  78 +
  79 + </view>
  80 +
  81 + <view class='bodytime'>
  82 + <!--/ //旁边直线-->
  83 + <view class='bodytimeleft'>
  84 + <view class='xian'></view>
  85 + </view>
  86 + <!--/ // //时间-->
  87 + <!--许程 <view class='bodytimecen' wx:if='{{obj}}'> -->
  88 + <view class='bodytimecen'>
  89 + 剩余
  90 + <span wx:if="{{obj.day!=0}}"> {{obj.day}} </span>:
  91 + <span> {{obj.hou}} </span>:
  92 + <span> {{obj.min}} </span>:
  93 + <span> {{obj.sec}} </span>结束
  94 + </view>
  95 +
  96 +
  97 + <!----/ 旁边直线---->
  98 + <view class='bodytimeright'>
  99 + <view class='xian'></view>
  100 + </view>
  101 + </view>
  102 +
  103 + <view style='height:50rpx;width:100%' wx:if="{{val==1}}"></view>
  104 + <!--如果团还没有满-->
  105 + <block wx:if="{{tg_arr==null}}">
  106 + <!--按钮-->
  107 + <view wx:if="{{is_group_end==0}}" class='bodybutton white fs32'>
  108 + <view class="xc-good-friend" bindtap='sendsm' data-isct="0">去参团</view>
  109 + <view class="xc-home-page" bindtap='gohome'>返回首页</view>
  110 + </view>
  111 + <view wx:elif="{{teamlist.kttype>1}}" class='bodybutton' bindtap='sendsm' data-isct="1">
  112 + <view class="xc-good-friend">一键参团</view>
  113 + <view class="xc-home-page" bindtap='gohome'>返回首页</view>
  114 + </view>
  115 + <view wx:else class='bodybutton' bindtap='sendsm' data-isct="1">
  116 + <view class="xc-good-friend">一键参团</view>
  117 + <view class="xc-home-page" bindtap='gohome'>返回首页</view>
  118 + </view>
  119 + </block>
  120 + <block wx:else>
  121 + <view class="show_zf_dd">
  122 + <view>会员'{{tg_arr.user_name}}'待付款,若{{r_obj.min}}分{{r_obj.sec}}秒后该会员未支付您可以继续参团哦!</view>
  123 + </view>
  124 +
  125 + <view class='bodybutton white fs32'>
  126 + <view class="xc-good-friend co-w" data-isct="0">去参团</view>
  127 + <view class="xc-home-page" bindtap='gohome'>返回首页</view>
  128 + </view>
  129 +
  130 + </block>
  131 +
  132 + </view>
  133 + <!--展开拼团列表-->
  134 + <view class='mck'>
  135 + <view class='bodyfoot'>
  136 + <view class='bodyselect' wx:if="{{zk}}" bindtap='czk'>
  137 + <span>展开拼团列表
  138 + <view class='down-arrow'></view>
  139 + </span>
  140 + </view>
  141 + <!----收起拼团列表---->
  142 + <view class='zhangxi' wx:if="{{hiddenName}}">
  143 +
  144 + <view class='zspan' bindtap='click'>收起拼团列表
  145 + <view class='down-arrow1'></view>
  146 + </view>
  147 +
  148 + <view class="ia" wx:for="{{ordertx}}" wx:for-index="ky">
  149 + <view class='img'>
  150 + <image src='{{item.head_pic}}'></image>
  151 + <span>{{item.nickname}}</span>
  152 + </view>
  153 + <view class='zssj' wx:if="{{ky==0}}">{{item.add_time_date}} 开团</view>
  154 + <view class='zssj' wx:else>{{item.add_time_date}} 参团</view>
  155 + </view>
  156 + </view>
  157 + </view>
  158 + </view>
  159 + <!----//拼团玩法---->
  160 + <!-- <view class='pintuan' bindtap="cpd">
  161 + <view class='pintuanzhou'>拼团玩法</view>
  162 + <view class='pintuanyou'>开团/参团>邀请参团>人满成团</view>
  163 + </view> -->
  164 + <!--大家都在团-->
  165 + <view class='goodslist'>
  166 + <view class='goodslisttop'>
  167 + <span class='goodslistspan'>大家都在团</span>
  168 + <view class='goodslisttopright'></view>
  169 + </view>
  170 + <view class="changxin">
  171 + <view class='onegoods' wx:for='{{pageteam}}' wx:key="{{index}}" bindtap="go_goodsinfo" data-gid="{{item.goods_id}}">
  172 + <view class='onegoodsimg'>
  173 + <image src="{{imageurl+item.share_imgurl}}"></image>
  174 + </view>
  175 + <view class='onegoodsdesc'>
  176 + <text>{{item.goods_name}}</text>
  177 + </view>
  178 + <view class='price'>
  179 + <view class='jgleft'>¥{{item.price}}</view>
  180 + <view class='jgright'>{{item.ct_num}}人
  181 + <span>参团</span>
  182 + </view>
  183 + </view>
  184 + </view>
  185 + </view>
  186 + </view>
  187 +</view>
  188 +
  189 +<!--弹出购物模块-->
  190 +<view class="pop_up" wx:if="{{yijian}}">
  191 + <view>
  192 +
  193 + <!----弹起来,选择规格数量,拼单商品购买------>
  194 + <!-- <view> -->
  195 + <!-- <view hidden="{{!openSpecModal_pt}}"> -->
  196 + <view bindtap="closeSpecModal" class="cover-layer"></view>
  197 + <view class="spec-model">
  198 + <view class="pding">
  199 + <icon bindtap="closeSpecModal" class="modal-close" color="gray" size="22" type="cancel"></icon>
  200 + <!-- 商品名称 -->
  201 + <view class="spec-goods">
  202 + <image class="wh100 spec-img xc-distance-bottom" src="{{image}}" binderror="pop_err_img" data-errorimg="data.original_img"></image>
  203 + <view class="spec-goods-info">
  204 + <view class="spec-goods-name ellipsis-1">{{goods.goods_name}}</view>
  205 + <view class="flex ai_end xc-val-money">
  206 + <view class="spec-goods-price">
  207 + <span class='t1'>¥</span><text class='t2'>{{teamlist.kttype==3?teamlist.yf_price:teamlist.price}}</text>
  208 + </view>
  209 + </view>
  210 + <view class="flex">
  211 + <view class="spec-goods-stock">已售:{{teamlist.buy_num}}</view>
  212 + <view class="spec-goods-stock">可售:{{teamlist.goods_num-teamlist.buy_num}}</view>
  213 + </view>
  214 + </view>
  215 + </view>
  216 +
  217 + <view style="clear: both"></view>
  218 + <view style="margin-top: 20rpx">
  219 + <view class="flex-space-between address ai_end xc-width ">
  220 +
  221 + <view class="flex ai_end" wx:if="{{def_pick_store && def_pick_store.pickup_name}}">
  222 + <text class="fs30 xc-black3 shop_name">{{def_pick_store.pickup_name}}</text>
  223 +
  224 + <view class="distance fs24 xc-ash" wx:if="{{def_pick_store.distance!=null}}">
  225 + 距离:{{def_pick_store.distance>1000?filters.toFix(def_pick_store.distance/1000,2)+"km":filters.toFix(def_pick_store.distance,0)+"m"}}
  226 + </view>
  227 + </view>
  228 +
  229 +
  230 + <view class="flex" bindtap="choice_store" wx:else>
  231 + <image class="stores-img" src="{{iurl}}/miniapp/images/stores.png"></image>
  232 + <view class="fs28 xc-ash-9f">选择门店</view>
  233 + </view>
  234 +
  235 + <view hidden="{{has_def && sys_switch.is_pricing_open_store}}" class="red-co fs28" bindtap="choice_store">更多门店<text class="right-arrow"></text></view>
  236 +
  237 +
  238 + </view>
  239 + <view class="no_store" wx:if="{{def_pick_store && def_pick_store.is_no_dis}}">(配送不匹配)</view>
  240 + <view class="no_store" wx:elif="{{def_pick_store && def_pick_store.is_no_dis_act}}">(该店不可售)</view>
  241 + <view class="fs24 xc-ash-9f xc-distance-top " wx:elif="{{def_pick_store && def_pick_store.fulladdress}}">地址:{{def_pick_store.fulladdress}}</view>
  242 +
  243 + </view>
  244 + <!-- 商品的属性项目 -->
  245 + <view>
  246 + <view hidden="{{ismend==1}}" class="spec-name">商品规格</view>
  247 + <block>
  248 + <view hidden="{{ismend==1}}" class="flex">
  249 + <view class="spec_bt act" >{{goods.gg}}
  250 + </view>
  251 + </view>
  252 + </block>
  253 + <view class="clear"></view>
  254 + </view>
  255 +
  256 + <view>
  257 + <view class="b_num" hidden="{{ismend==1}}" style="margin-top: 20rpx">
  258 + <view>购买数量</view>
  259 + <view class="count">
  260 + <view bindtap="{{num <= 1 ? '':'bindMinus'}}" class="sub {{num <= 1 ? 'active':''}}">-</view>
  261 + <!-- <view class='{{minusStatus}}' bindtap="bindMinus" class="sub">-</view> -->
  262 + <input bindblur="bindManual" class="xc-val-fream" type="number" value="{{num}}">1</input>
  263 + <view bindtap="bindPlus" class="add">+</view>
  264 + </view>
  265 + </view>
  266 +
  267 + <!-- <view class="clear"></view> -->
  268 +
  269 + </view>
  270 + </view>
  271 +
  272 + <view class="pt_qd">
  273 + <view wx:if="{{def_pick_store && def_pick_store.is_no_dis}}" class="spec-cart-btn spec-buy w100" data-action="buy" style="background-color: #dcdcdc;color: #999;">配送不匹配</view>
  274 + <view wx:elif="{{def_pick_store && def_pick_store.is_no_dis_act}}" class="spec-cart-btn spec-buy w100" data-action="buy" style="background-color: #dcdcdc;color: #999;">该店不可售</view>
  275 + <view wx:else bindtap="go_pay" class="spec-cart-btn spec-buy w100" data-action="buy">确定</view>
  276 + </view>
  277 +
  278 + </view>
  279 + <!-- </view> -->
  280 +
  281 + </view>
  282 +</view>
  283 +
  284 +<!-- 选择门店的弹框,1.1版最新的 -->
  285 +<block wx:if="{{store==1}}">
  286 + <view class="mongolia-layer" bindtap="close_popup"></view>
  287 + <view class="popup-frame">
  288 + <block wx:if="{{sort_store==0}}">
  289 + <!-- 头部 标题 -->
  290 + <view class="popup-top flex-space-between">
  291 + <text class="fs32 nearby_store">{{choice_sort_store==0?'附近的门店':region_name}}</text>
  292 + <view>
  293 + <view>
  294 + <icon bindtap="close_popup" class="modal-closes" color="black" size="22" type="cancel"></icon>
  295 + </view>
  296 + <view class="felx choose_more" bindtap="more_store" wx:if="{{is_show_sto_cat>0}}">
  297 + <text class="fs26 red-co">{{choice_sort_store==0?'更多门店':'返回'}}</text>
  298 + <view class="bg_rights"></view>
  299 + </view>
  300 + </view>
  301 + </view>
  302 + <!-- 门店列表,最外层的门店列表,一开始 -->
  303 + <view class="store-list">
  304 + <!--如果还没有点击更多门店的时候 -->
  305 + <block wx:if="{{choice_sort_store==0}}">
  306 + <!-- 需要for循环 -->
  307 + <block wx:if="{{is_show_sto_cat==1}}">
  308 + <view class="store_choose flex" wx:for="{{def_pickpu_list}}" bindtap="choose_for_store_fir" data-ind="{{index}}">
  309 + <view class="store flex-vertical">
  310 + <!-- 需要点击事件 -->
  311 + <block wx:if="{{index==fir_pick_index}}">
  312 + <view class="circle white xc-hook fs20 red-b">Г</view>
  313 + </block>
  314 + <block wx:else>
  315 + <view class="circle xc-hooks"></view>
  316 + </block>
  317 + <view class="address-frame xc-ash">
  318 + <view class="flex-vertical-between butttem5">
  319 + <view class="flex xc-ash">
  320 + <view class="fs30 xc-black3 address_name">{{item.pickup_name}}
  321 + <text class="c-red22" wx:if="{{item.is_no_dis}}">(配送不匹配)</text>
  322 + <text class="c-red22" wx:elif="{{item.is_no_dis_act}}">(该店不可售)</text>
  323 + </view>
  324 + </view>
  325 + <view>
  326 + <view class="distance fs24 address-val"wx:if="{{item.distance!=null}}">
  327 + 距离:{{item.distance>1000?filters.toFix(item.distance/1000,2)+'km':filters.toFix(item.distance,0)+"m"}}</view>
  328 + </view>
  329 + </view>
  330 + <view class="fs24 xc-ash-9f">地址:{{item.fulladdress}}</view>
  331 + </view>
  332 + </view>
  333 + </view>
  334 + </block>
  335 + <block wx:else>
  336 + <view class="store_choose flex" wx:for="{{only_pk}}" bindtap="choose_for_store_fir" data-ind="{{index}}">
  337 + <view class="store flex-vertical">
  338 + <!-- 需要点击事件 -->
  339 + <block wx:if="{{index==fir_pick_index}}" >
  340 + <view class="circle white xc-hook fs20 red-b">Г</view>
  341 + </block>
  342 + <block wx:else>
  343 + <view class="circle xc-hooks"></view>
  344 + </block>
  345 +
  346 + <view class="address-frame xc-ash">
  347 + <view class="flex-vertical-between ">
  348 + <view class="flex xc-ash">
  349 + <view class="fs30 xc-black3 address_name">{{item.pickup_name}}
  350 + <text class="c-red22" wx:if="{{item.is_no_dis}}">(配送不匹配)</text>
  351 + <text class="c-red22" wx:elif="{{item.is_no_dis_act}}">(该店不可售)</text>
  352 + </view>
  353 + </view>
  354 + <view>
  355 + <view class="distance fs24 address-val"
  356 + wx:if="{{item.distance!=null}}">距离:{{item.distance>1000?filters.toFix(item.distance/1000,2)+"km":filters.toFix(item.distance,0)+"m"}}
  357 + </view>
  358 + </view>
  359 + </view>
  360 + <view class="fs24 xc-ash-9f">地址:{{item.fulladdress}}</view>
  361 + </view>
  362 + </view>
  363 + </view>
  364 + </block>
  365 + </block>
  366 + <block wx:else> <!-- 如果是点击选择门店分类后显示分类下的门店 -->
  367 + <view class="store_choose flex" wx:for="{{sec_sto.s_arr}}" data-ind="{{index}}" bindtap="choose_for_store">
  368 + <view class="store flex-vertical">
  369 + <!-- 需要点击事件 -->
  370 + <block wx:if="{{index==sec_pick_index}}">
  371 + <view class="circle white xc-hook fs20 red-b">Г</view>
  372 + </block>
  373 + <block wx:else>
  374 + <view class="circle xc-hooks"></view>
  375 + </block>
  376 +
  377 + <view class="address-frame xc-ash">
  378 + <view class="flex-vertical-between ">
  379 + <view class="flex xc-ash">
  380 + <view class="fs28 xc-black3 address_name">{{item.pickup_name}}
  381 + <text class="c-red22" wx:if="{{item.is_no_dis}}">(配送不匹配)</text>
  382 + <text class="c-red22" wx:elif="{{item.is_no_dis_act}}">(该店不可售)</text>
  383 + </view>
  384 + </view>
  385 + <view>
  386 + <view class="distance fs24 address-val"wx:if="{{item.distance!=null}}">
  387 + 距离:{{item.distance>1000?filters.toFix(item.distance/1000,2)+"km":filters.toFix(item.distance,0)+"m"}}</view>
  388 + </view>
  389 + </view>
  390 + <view class="fs24 xc-ash-9f">地址:{{item.fulladdress}}</view>
  391 + </view>
  392 + </view>
  393 + </view>
  394 + </block>
  395 +
  396 + </view>
  397 +
  398 + <!-- 门店列表底部 -->
  399 + <view class="store-bottom-frame">
  400 + <view class="store-bottom flex-vertical-between">
  401 + <view class="determine red-b fs28 white t-c" bindtap="sure_pick"
  402 + data-openindstore="{{open_ind_store}}">确定</view>
  403 + <view class="default t-c fs28" bindtap="set_def_pick"data-openindstore="{{open_ind_store}}">设为默认</view>
  404 + </view>
  405 + </view>
  406 +
  407 + </block>
  408 +
  409 +
  410 + <block wx:else>
  411 + <view class="popup-top flex-space-between">
  412 + <text class="fs32 nearby_store">门店分类选择</text>
  413 + <view>
  414 + <view><icon bindtap="close_popup" class="modal-closes" color="black" size="22" type="cancel"></icon></view>
  415 + <view class="felx choose_mores" bindtap="returns"><text class="fs26 red-co">返回</text></view>
  416 + </view>
  417 + </view>
  418 + <view class="sort_store_list">
  419 + <view class="sort-store-frame" wx:for="{{all_sto}}" data-index="{{index}}" bindtap="choice_sort_store" data-region="{{item.name}}">
  420 + <view class="sort-store flex-vertical-between" >
  421 + <view class="fs30" di>{{item.name}}</view>
  422 + <view class="black_rights-frame">
  423 + <view class="black_rights"></view>
  424 + </view>
  425 + </view>
  426 + </view>
  427 +
  428 + </view>
  429 + </block>
  430 + </view>
  431 +</block>
  432 +
  433 +
  434 +
  435 +
  436 +
  437 +
  438 +<!-- <view class='buy-option'> -->
  439 +<!--头部图片-->
  440 +<!-- <view class='buy-top'>
  441 + <view class='buy-image mimg'>
  442 + <image src='{{image}}'></image>
  443 + <view>
  444 + <view>
  445 + <span class='t1'>¥</span><text class='t2'>{{teamlist.kttype==3?teamlist.yf_price:teamlist.price}}</text>
  446 + </view>
  447 + <view class="ellipsis-2">
  448 + {{goods.goods_name}}
  449 + </view>
  450 + </view>
  451 +
  452 + </view>
  453 +
  454 + <view class='buy-cou' bindtap='cbcou'>⊗</view>
  455 + <view class='clear'></view>
  456 + </view> -->
  457 +
  458 +<!--取货门店-->
  459 +<!-- <view class='quhuo' wx:if="{{qh}}" bindtap='cqh'> -->
  460 +<!--当ii==0请选择门店显示,ii==1最后名字显示-->
  461 +<!-- <text>取货门店</text><view class='end_name' wx:if="{{ii==1 }}">({{end_name}})</view><view wx:if="{{ii==0 }}" class='ttxz'>(请选择门店)</view>
  462 + </view> -->
  463 +<!--选择门店-->
  464 +<!-- <view class='xuanze1' wx:if="{{xz}}" bindtap='cxz'>
  465 + <text decode='true'>&lt; 选择门店</text>
  466 + </view>
  467 + <view class='x-z'> -->
  468 +<!--第一层-->
  469 +<!-- <block wx:if="{{one}}">
  470 + <view class="fir_view">
  471 + <view>
  472 + <view class='xuanze' bindtap='setchild' data-bindex='{{bindex}}' data-bname='{{item.name}}' wx:for-index="bindex" wx:for="{{ssl}}" wx:key>
  473 + <text decode='true'>{{item.name}}</text>
  474 + </view>
  475 + </view>
  476 + </view>
  477 + </block> -->
  478 +<!--选择的-->
  479 +<!-- <view class='xuanze1' wx:if="{{se}}" bindtap='sel'><text decode='true'>&lt;</text> {{sele_dl_name}}</view> -->
  480 +<!--第二层list-->
  481 +<!-- <block wx:if="{{list}}">
  482 + <scroll-view scroll-y="true" style="max-height: 460rpx">
  483 + <view class='xuanze' wx:for="{{ssl_child}}" wx:key bindtap='clist'
  484 + data-pick_dis="{{item.distr_type}}"
  485 + data-end='{{item.pickup_name}}' data-pick_id='{{item.pickup_id}}'>
  486 + <text decode='true'>{{item.pickup_name}}</text>
  487 + </view>
  488 + </scroll-view>
  489 + </block>
  490 + </view> -->
  491 +
  492 +<!--数量-->
  493 +<!-- <view class='buy-button' wx:if="{{qh}}">
  494 + <text>数量</text>
  495 + <view class='stepper sum'>
  496 + <text class='{{minusStatus}}' type='number' bindtap='bindMinus' class="jiajian">-</text>
  497 + <input bindinput='bindManual' value='{{num}}'></input>
  498 + <text bindtap='bindPlus' class="jiajian">+</text>
  499 + </view>
  500 + <view class='clear'></view>
  501 + </view> -->
  502 +
  503 +<!-- <view class="clear"></view>
  504 + </view> -->
  505 +<!--支付-->
  506 +<!-- <view class='btn' bindtap="go_pay">立即支付</view> -->
  507 +<!-- </view>
  508 +</view> -->
  509 +
  510 +<!--mask吐司内容-->
  511 +<view class="toast_mask" wx:if="{{isShowToast}}"></view>
  512 +
  513 +<!--以下为toast显示的内容-->
  514 +<view class="toast_content_box" wx:if="{{isShowToast}}">
  515 + <view class="toast_content">
  516 + <view class="toast_content_text">
  517 + {{toastText}}
  518 + </view>
  519 + </view>
  520 +</view>
  521 +
  522 +<!--拼团玩法弹出框-->
  523 +<!----弹起的---->
  524 +<block wx:if="{{pd_xx}}">
  525 + <view class="bview"></view>
  526 + <view class="juzhong">
  527 + <view class="xq">
  528 + <view class="title" bindtap="close_pt_xx">拼团玩法介绍
  529 + <image src="{{iurl}}/miniapp/images/gbi.png" class="close"></image>
  530 + </view>
  531 + <view>1.开团:
  532 + <text class="hs1">选择心仪商品,点击“发起X人团”按钮,付款后即为开团成功;</text>
  533 + </view>
  534 + <view>2.参团:
  535 + <text class="hs1">进入朋友分享的页面,点击“立即参团”按钮,付款后即为参团成功,若多人同时支付,支付成功时间较早的人获得参团资格;</text>
  536 + </view>
  537 + <view>3.成团:
  538 + <text class="hs1">在开团或参团成功后,点击“邀请小伙伴参团”将页面分享给好友,在有效时间内凑齐人数即为成团,此时商家会开始发货;</text>
  539 + </view>
  540 + <view>4.组团失败:
  541 + <text class="hs1">在有效时间内未凑齐人数,即为组团失败,此时付款项会原路退回到支付账户;</text>
  542 + </view>
  543 + <view>5.
  544 + <text class="hs1">组团有效期间内,拼购商品订单不允许取消。 </text>
  545 + </view>
  546 + </view>
  547 + </view>
  548 +</block>
  549 +
  550 +<warn id="warn"></warn>
... ...
packageG/pages/team/team_show/team_show.wxss 0 → 100644
  1 +page {
  2 + background-color: #eee;
  3 +}
  4 +
  5 +.top {
  6 + background-color: rgb(216, 230, 220);
  7 + color: rgb(98, 155, 13);
  8 + text-align: center;
  9 + height: 110rpx;
  10 + width: 100%;
  11 +}
  12 +
  13 +.center {
  14 + height: 240rpx;
  15 + width: 100%;
  16 + background: #fff;
  17 +}
  18 +
  19 +.cenleft {
  20 + width: 240rpx;
  21 + height: 100%;
  22 + float: left;
  23 + display: flex;
  24 + justify-content: center;
  25 + align-items: center;
  26 +}
  27 +
  28 +.cenleft image {
  29 + background-color: white;
  30 + width: 200rpx;
  31 + height: 200rpx;
  32 +}
  33 +
  34 +.cenrt {}
  35 +
  36 +.cenright {
  37 + height: 100%;
  38 + width: auto;
  39 + float: left;
  40 +}
  41 +
  42 +.cenrtoptitle {
  43 + float: left;
  44 + width: 240rpx;
  45 + height: 40rpx;
  46 + margin-left: 12rpx;
  47 + font-size: 28rpx;
  48 + margin-top: 12rpx;
  49 +}
  50 +
  51 +.cenrcen {
  52 + height: 70rpx;
  53 + margin-top: 35rpx;
  54 + width: 479rpx;
  55 +}
  56 +
  57 +.jg {
  58 + font-size: 40rpx;
  59 + margin-right: 30rpx;
  60 +}
  61 +
  62 +.jgx {
  63 + font-size: 24rpx;
  64 + color: #777;
  65 + text-decoration: line-through;
  66 + margin-top: 12rpx;
  67 +}
  68 +
  69 +.cenrfoot {
  70 + align-content: center;
  71 + text-align: center;
  72 + border: 2rpx solid red;
  73 + border-radius: 10rpx;
  74 + color: red;
  75 + float: left;
  76 + font-size: 24rpx;
  77 + padding: 4rpx 16rpx;
  78 + margin-top: 12rpx;
  79 +}
  80 +
  81 +.body {
  82 + background-color: white;
  83 + height: 472rpx;
  84 + width: 100%;
  85 + margin-top: 4rpx;
  86 +}
  87 +
  88 +.d {
  89 + font-size: 24rpx;
  90 +}
  91 +
  92 +.bodytop {
  93 + background-color: white;
  94 + text-align: center;
  95 + font-size: 28rpx;
  96 + padding-top: 16rpx;
  97 + height: 90rpx;
  98 +
  99 +}
  100 +
  101 +.bodytop span {
  102 + color: red;
  103 +}
  104 +
  105 +.bodyimg {
  106 + height: 155rpx;
  107 + /* display: flex;
  108 + justify-content: center;
  109 + align-items: center; */
  110 +
  111 +
  112 +}
  113 +
  114 +.bodyimg image {
  115 + border-radius: 50rpx;
  116 + height: 96rpx;
  117 + width: 96rpx;
  118 + margin-top: 30rpx;
  119 + position: absolute;
  120 +
  121 +}
  122 +
  123 +.d {
  124 + width: 101rpx;
  125 + height: 101rpx;
  126 + display: inline-block;
  127 +
  128 +}
  129 +
  130 +.bodyimg span {
  131 + background-color: #e22b44;
  132 + color: white;
  133 + font-size: 24rpx;
  134 + border-radius: 6rpx;
  135 + padding: 3rpx 10rpx;
  136 + position: relative;
  137 + top: 8px;
  138 + left: 40rpx;
  139 +}
  140 +
  141 +.bodyspan {
  142 + color: red;
  143 + text-align: center;
  144 + font-size: 24rpx;
  145 +}
  146 +
  147 +.bodytime {
  148 + height: 55rpx;
  149 + width: 100%;
  150 + display: flex;
  151 + flex-wrap: nowrap;
  152 + padding-left: 40rpx;
  153 + align-items: center;
  154 +
  155 +}
  156 +
  157 +.bodytimeleft {
  158 + text-decoration: line-through;
  159 + flex-grow: 1.7;
  160 +}
  161 +
  162 +.bodytimecen {
  163 + text-align: center;
  164 + flex-grow: 1;
  165 +
  166 + font-size: 30rpx;
  167 + color: #000;
  168 + width: 415rpx;
  169 +
  170 +}
  171 +
  172 +.bodytimecen span {
  173 + background-color: #333333;
  174 + color: white;
  175 + border-radius: 7rpx;
  176 + padding-left: 20rpx;
  177 + font-size: 30rpx;
  178 + margin: 0 auto;
  179 + padding-right: 10rpx;
  180 + margin-right: 5px;
  181 +
  182 +
  183 +}
  184 +
  185 +.bodytimecen span:last-child {
  186 + margin-right: 10rpx;
  187 +
  188 +}
  189 +
  190 +.bodytimeright {
  191 + flex-grow: 1.7;
  192 + margin-right: 72rpx;
  193 +
  194 +}
  195 +
  196 +.bodybutton {
  197 + min-height: 170rpx;
  198 + width: 90%;
  199 + margin: 0 auto;
  200 + text-align: center;
  201 + line-height: 70rpx;
  202 + border-radius: 15rpx;
  203 + height: auto;
  204 + padding-top: 38rpx
  205 +}
  206 +
  207 +.bodybutton button {
  208 + height: 100%;
  209 + width: 100%;
  210 + background-color: red;
  211 + color: white;
  212 + font-size: 32rpx;
  213 +}
  214 +
  215 +.bodybutton.co-w {
  216 + color: #333;
  217 + background-color: #adadad;
  218 + font-size: 32rpx;
  219 +
  220 +}
  221 +
  222 +
  223 +
  224 +.bodyfoot {
  225 + width: 100%;
  226 + text-align: center;
  227 + font-size: 28rpx;
  228 + color: #777;
  229 + background-color: white;
  230 +}
  231 +
  232 +.pintuan {
  233 + width: 100%;
  234 + height: 84rpx;
  235 + background-color: white;
  236 + color: black;
  237 + text-align: center;
  238 + font-size: 36rpx;
  239 + margin-top: 0rpx;
  240 +}
  241 +
  242 +
  243 +.pintuanzhou {
  244 + float: left;
  245 + line-height: 84rpx;
  246 + width: 226rpx;
  247 + background: url('https://mshopimg.yolipai.net/miniapp/images/user/wh.png') no-repeat right center;
  248 + background-size: 42rpx;
  249 + margin-left: -18rpx;
  250 + font-size: 32rpx;
  251 +}
  252 +
  253 +.pintuanyou {
  254 + float: right;
  255 + color: rgb(168, 167, 167);
  256 + line-height: 84rpx;
  257 + font-size: 32rpx;
  258 + margin-right: 24rpx;
  259 +}
  260 +
  261 +.onegoods {
  262 + background-color: white;
  263 + width: 372rpx;
  264 + height: 560rpx;
  265 + border-left: 2rpx solid #eee;
  266 + float: left;
  267 +}
  268 +
  269 +.goodsl {
  270 + background-color: white;
  271 +}
  272 +
  273 +.onegoodsimg {
  274 + width: 100%;
  275 + height: 360rpx;
  276 + margin-bottom: 20rpx;
  277 +}
  278 +
  279 +.onegoodsimg image {
  280 + height: 100%;
  281 + width: 100%;
  282 +}
  283 +
  284 +.onegoodsdesc {
  285 + color: rgb(168, 167, 167);
  286 + padding-left: 20rpx;
  287 + height: 100rpx;
  288 + font-size: 32rpx;
  289 + width: 92%;
  290 + line-height: 100rpx;
  291 + overflow: hidden;
  292 + text-overflow: ellipsis;
  293 + white-space: nowrap;
  294 + padding-right: 20rpx;
  295 +}
  296 +
  297 +.onegoodsdesc text {}
  298 +
  299 +.price {
  300 + color: red;
  301 + width: 100%;
  302 +}
  303 +
  304 +.jgleft {
  305 + float: left;
  306 + width: 100rpx;
  307 + margin-left: 20rpx;
  308 + font-size: 40rpx;
  309 + margin-top: -8rpx;
  310 +}
  311 +
  312 +.jgright {
  313 + font-size: 28rpx;
  314 + float: right;
  315 + width: 120rpx;
  316 +}
  317 +
  318 +.jgright span {
  319 + color: rgb(168, 167, 167);
  320 +}
  321 +
  322 +.goodslisttop {
  323 + background-color: white;
  324 + width: 100%;
  325 +}
  326 +
  327 +.goodslist {
  328 + background-color: white;
  329 +}
  330 +
  331 +.goodslisttop {
  332 + background-color: white;
  333 + width: 100%;
  334 + height: 80rpx;
  335 + margin-top: 20rpx;
  336 + text-align: center;
  337 +}
  338 +
  339 +.goodslistspan {
  340 + margin: 0 auto;
  341 + padding-top: 20rpx;
  342 + display: inline-block;
  343 + padding: 0 10px;
  344 + background: #fff;
  345 + margin-top: 12rpx;
  346 + font-size: 28rpx;
  347 + color: rgb(168, 167, 167);
  348 +}
  349 +
  350 +.xian {
  351 + height: 50%;
  352 + width: 100%;
  353 + border-bottom: 4rpx solid #eee;
  354 + float: left;
  355 +}
  356 +
  357 +.bodyselect {
  358 + height: 50px;
  359 + background-color: white;
  360 + width: 100%;
  361 + line-height: 50px;
  362 + font-size: 28rpx;
  363 +}
  364 +
  365 +.changxin {
  366 + float: left;
  367 + width: 100%;
  368 +}
  369 +
  370 +.zhangxi {
  371 + width: 100%;
  372 + min-height: 100rpx;
  373 + background-color: white;
  374 + color: black;
  375 +}
  376 +
  377 +.img {
  378 + width: 30%;
  379 + height: 100rpx;
  380 + margin-bottom: 0rpx;
  381 + color: black;
  382 + margin-left: 36rpx;
  383 + font-size: 26rpx;
  384 + display: flex;
  385 +}
  386 +
  387 +.img span {
  388 + height: 100rpx;
  389 + display: block;
  390 + line-height: 100rpx;
  391 + text-overflow: ellipsis;
  392 + white-space: nowrap;
  393 + overflow: hidden;
  394 + padding: 0rpx;
  395 + width: 120rpx;
  396 +}
  397 +
  398 +.zhangxi image {
  399 + border-radius: 50rpx;
  400 + height: 80rpx;
  401 + width: 80rpx;
  402 + float: left;
  403 + margin-top: 12rpx;
  404 + background-color: red;
  405 + margin-right: 10rpx;
  406 +}
  407 +
  408 +.zhangxi .zssj {
  409 + height: 100rpx;
  410 + width: 70%;
  411 + margin-right: 40rpx;
  412 + line-height: 100rpx;
  413 + font-size: 26rpx;
  414 + text-align: right;
  415 +}
  416 +
  417 +.zhangxi .zssj text {
  418 + width: 100%;
  419 +}
  420 +
  421 +.ia {
  422 + display: flex;
  423 +}
  424 +
  425 +.zspan {
  426 + text-align: center;
  427 + border-bottom: 2rpx #eee solid;
  428 + width: 100%;
  429 + display: flex;
  430 + align-items: center;
  431 + justify-content: center;
  432 + font-size: 28rpx;
  433 + color: #777;
  434 + line-height: 100rpx;
  435 + height: auto;
  436 +
  437 +}
  438 +
  439 +.mtop {
  440 + text-align: center;
  441 + color: white;
  442 + background-color: #4c4c4c;
  443 + width: 100%;
  444 + height: 100%;
  445 + position: fixed;
  446 + z-index: 5;
  447 + top: 0;
  448 + left: 0;
  449 +}
  450 +
  451 +.mt1 {
  452 + margin-top: 100px;
  453 + margin-bottom: 20rpx;
  454 +}
  455 +
  456 +.mts {
  457 + color: #e1e10b;
  458 +}
  459 +
  460 +.mcou {
  461 + font-size: 48rpx;
  462 +}
  463 +
  464 +.mfoot {
  465 + width: 100%;
  466 + margin-top: 700rpx;
  467 +}
  468 +
  469 +.mbtn {
  470 + margin-top: 60rpx;
  471 + width: 400rpx;
  472 + background: #666;
  473 + color: #fff;
  474 + border-radius: 20rpx;
  475 + font-size: 32rpx;
  476 +}
  477 +
  478 +.etop {
  479 + padding-top: 200rpx;
  480 + width: 100%;
  481 + height: 100%;
  482 + position: fixed;
  483 + left: 0rpx;
  484 + top: 0rpx;
  485 + z-index: 12rpx;
  486 + background-color: white;
  487 +}
  488 +
  489 +.emyimage {
  490 + display: flex;
  491 + justify-content: center;
  492 + align-items: center;
  493 +}
  494 +
  495 +.emyimage image {
  496 + background-color: red;
  497 + width: 160rpx;
  498 + height: 160rpx;
  499 + margin: 0 auto;
  500 +}
  501 +
  502 +.espan {
  503 + font-size: 32rpx;
  504 + margin-top: 10rpx;
  505 +}
  506 +
  507 +.erweima {
  508 + margin-top: 10rpx;
  509 + width: 100%;
  510 +}
  511 +
  512 +.erzhou {
  513 + width: 200rpx;
  514 + float: left;
  515 + margin-right: 20rpx;
  516 +}
  517 +
  518 +.erzhou image {
  519 + background-color: blanchedalmond;
  520 + width: 200rpx;
  521 + height: 200rpx;
  522 +}
  523 +
  524 +.eright {
  525 + width: 500rpx;
  526 + float: left;
  527 + font-size: 32rpx;
  528 +}
  529 +
  530 +.body {
  531 + background-color: white;
  532 + height: auto;
  533 + width: 100%;
  534 + margin-top: 4rpx;
  535 +}
  536 +
  537 +.cenrtoptitle {
  538 + float: left;
  539 + width: 450rpx;
  540 + font-size: 28rpx;
  541 + margin-top: 20rpx;
  542 +
  543 +}
  544 +
  545 +.cenrtop {
  546 + margin-top: 20rpx;
  547 + background-color: red;
  548 + color: white;
  549 + border-radius: 10rpx;
  550 + padding: 0 16rpx;
  551 + font-size: 28rpx;
  552 + float: left;
  553 + height: 40rpx;
  554 +}
  555 +
  556 +.yijian {
  557 + position: fixed;
  558 + top: 0rpx;
  559 + left: 0rpx;
  560 + width: 100%;
  561 + height: 100%;
  562 + z-index: 14rpx;
  563 + background-color: rgba(0, 0, 0, 0.3);
  564 +}
  565 +
  566 +.buy-option {
  567 + background: #fff;
  568 + box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  569 + padding: 20rpx;
  570 + min-height: 400rpx;
  571 + padding-bottom: 120rpx;
  572 + width: 100%;
  573 + margin-top: 180rpx;
  574 +}
  575 +
  576 +.buy-top {
  577 + width: 100%;
  578 +}
  579 +
  580 +.buy-image {
  581 + margin-right: 20rpx;
  582 + width: 320rpx;
  583 + height: 200rpx;
  584 + float: left;
  585 +}
  586 +
  587 +.buy-image image {
  588 + width: 200rpx;
  589 + height: 200rpx;
  590 + background-color: burlywood;
  591 + float: left;
  592 +}
  593 +
  594 +.buy-image text {
  595 + margin-left: 10rpx;
  596 + color: red;
  597 +}
  598 +
  599 +.buy-cou {
  600 + float: right;
  601 + width: 100rpx;
  602 + height: 200rpx;
  603 + background-color: white;
  604 + font-size: 60rpx;
  605 + color: black;
  606 +}
  607 +
  608 +.t1 {
  609 + float: left;
  610 + font-size: 28rpx;
  611 + padding-left: 4rpx;
  612 + color: red;
  613 + padding-top: 10rpx;
  614 +}
  615 +
  616 +.buy-button {
  617 + width: 100%;
  618 + float: left;
  619 + margin-top: 22rpx;
  620 +}
  621 +
  622 +.buy-button text {
  623 + float: left;
  624 +}
  625 +
  626 +.stepper {
  627 + height: 52rpx;
  628 + float: left;
  629 + border: 2rpx solid #ccc;
  630 + border-radius: 6rpx;
  631 + margin-left: 28rpx;
  632 +}
  633 +
  634 +/*加号和减号*/
  635 +
  636 +.stepper text {
  637 + float: left;
  638 + width: 76rpx;
  639 + line-height: 52rpx;
  640 + text-align: center;
  641 +}
  642 +
  643 +/*数值*/
  644 +
  645 +.stepper input {
  646 + width: 80rpx;
  647 + height: 52rpx;
  648 + float: left;
  649 + margin: 0 auto;
  650 + text-align: center;
  651 + font-size: 24rpx;
  652 + border-left: 2rpx solid #ccc;
  653 + border-right: 2rpx solid #ccc;
  654 +}
  655 +
  656 +/*普通样式*/
  657 +
  658 +.stepper .normal {
  659 + color: black;
  660 +}
  661 +
  662 +/*禁用样式*/
  663 +
  664 +.stepper .disable {
  665 + color: #ccc;
  666 +}
  667 +
  668 +.quhuo {
  669 + width: 100%;
  670 + color: rgb(51, 51, 51);
  671 + float: left;
  672 + margin-top: 20rpx;
  673 +}
  674 +
  675 +.x-z {
  676 + width: 100%;
  677 + float: left;
  678 + color: rgb(51, 51, 51);
  679 + font-size: 36rpx;
  680 +}
  681 +
  682 +.btn {
  683 + width: 94%;
  684 + background-color: red;
  685 + color: white;
  686 + text-align: center;
  687 + height: 88rpx;
  688 + line-height: 88rpx;
  689 + float: left;
  690 + margin: 0 auto;
  691 +}
  692 +
  693 +.mck {
  694 + min-height: 100rpx;
  695 + width: 100%;
  696 + border-bottom: 24rpx #eee solid;
  697 +}
  698 +
  699 +/* pages/yi/yi.wxss */
  700 +
  701 +.buy-option {
  702 + background: #fff;
  703 + padding: 20rpx;
  704 + margin-top: 650rpx;
  705 + width: 100%;
  706 +}
  707 +
  708 +.buy-top {
  709 + width: 100%;
  710 +}
  711 +
  712 +.buy-image {
  713 + margin-right: 20rpx;
  714 + width: 630rpx;
  715 + height: 200rpx;
  716 + float: left;
  717 +}
  718 +
  719 +.buy-image image {
  720 + width: 200rpx;
  721 + height: 200rpx;
  722 + background-color: burlywood;
  723 + float: left;
  724 + margin-right: 16rpx;
  725 +}
  726 +
  727 +
  728 +.buy-image text {
  729 + margin-left: 10rpx;
  730 + color: red;
  731 +}
  732 +
  733 +.buy-cou {
  734 + float: right;
  735 + width: 60rpx;
  736 + height: 60rpx;
  737 + background-color: white;
  738 + font-size: 60rpx;
  739 + color: black;
  740 + margin-right: 40rpx;
  741 + text-align: center;
  742 + line-height: 60rpx;
  743 + padding-bottom: 4rpx;
  744 +}
  745 +
  746 +.t1 {
  747 + font-size: 28rpx;
  748 + padding-left: 4rpx;
  749 + color: red;
  750 + padding-top: 10rpx;
  751 +}
  752 +
  753 +.buy-button {
  754 + width: 100%;
  755 + margin-top: 30rpx;
  756 +}
  757 +
  758 +.buy-button text {
  759 + /*float: left;*/
  760 + display: inline-block;
  761 +}
  762 +
  763 +.stepper {
  764 + height: 52rpx;
  765 + display: inline-block;
  766 + border: 2rpx solid #ccc;
  767 + border-radius: 6rpx;
  768 + margin-left: 28rpx;
  769 +}
  770 +
  771 +/*加号和减号*/
  772 +
  773 +.stepper text {
  774 + float: left;
  775 + width: 65rpx;
  776 + line-height: 52rpx;
  777 + text-align: center;
  778 +}
  779 +
  780 +/*数值*/
  781 +
  782 +.stepper input {
  783 + width: 84rpx;
  784 + height: 52rpx;
  785 + float: left;
  786 + margin: 0 auto;
  787 + text-align: center;
  788 + font-size: 24rpx;
  789 + border-left: 2rpx solid #ccc;
  790 + border-right: 2rpx solid #ccc;
  791 +}
  792 +
  793 +/*普通样式*/
  794 +
  795 +.stepper .normal {
  796 + color: black;
  797 +}
  798 +
  799 +/*禁用样式*/
  800 +
  801 +.stepper .disable {
  802 + color: #ccc;
  803 +}
  804 +
  805 +.quhuo {
  806 + width: 100%;
  807 + color: rgb(51, 51, 51);
  808 + margin-top: 45rpx;
  809 + font-size: 32rpx
  810 +}
  811 +
  812 +.quhuo image {
  813 + width: 40rpx;
  814 + height: 40rpx;
  815 + display: inline-block;
  816 + position: relative;
  817 + left: 500rpx;
  818 +}
  819 +
  820 +.ttxz {
  821 + display: inline-block;
  822 +}
  823 +
  824 +.xuanze {
  825 + width: 100%;
  826 + height: 80rpx;
  827 + display: inline-block;
  828 + border-bottom: 1rpx #e7e7e7 solid;
  829 + font-size: 32rpx;
  830 + line-height: 80rpx;
  831 +}
  832 +
  833 +.xuanze1 {
  834 + width: 100%;
  835 + color: rgb(51, 51, 51);
  836 + height: 80rpx;
  837 + display: inline-block;
  838 + border-bottom: 1rpx #e7e7e7 solid;
  839 + line-height: 80rpx;
  840 + overflow: hidden;
  841 +}
  842 +
  843 +.x-z {
  844 + width: 100%;
  845 + color: rgb(51, 51, 51);
  846 + font-size: 36rpx;
  847 + height: auto;
  848 +}
  849 +
  850 +.btn {
  851 + width: 100%;
  852 + background-color: red;
  853 + color: white;
  854 + text-align: center;
  855 + height: 88rpx;
  856 + line-height: 88rpx;
  857 +}
  858 +
  859 +.clear {
  860 + clear: both;
  861 +}
  862 +
  863 +.fir_view {
  864 + max-height: 300rpx;
  865 + overflow-y: scroll;
  866 +}
  867 +
  868 +.pop_up {
  869 + min-height: 200rpx;
  870 + position: fixed;
  871 + bottom: 0;
  872 + left: 0;
  873 + width: 100%;
  874 + background-color: rgba(0, 0, 0, 0.3);
  875 + font-size: 34rpx;
  876 + color: rgb(51, 51, 51);
  877 +
  878 +}
  879 +
  880 +.end_name {
  881 + display: inline-block;
  882 +}
  883 +
  884 +/*mask*/
  885 +
  886 +.toast_mask {
  887 + opacity: 0;
  888 + width: 100%;
  889 + height: 100%;
  890 + overflow: hidden;
  891 + position: fixed;
  892 + top: 0rpx;
  893 + left: 0rpx;
  894 + z-index: 888;
  895 +}
  896 +
  897 +/*toast*/
  898 +
  899 +.toast_content_box {
  900 + display: flex;
  901 + width: 100%;
  902 + height: 100%;
  903 + justify-content: center;
  904 + align-items: center;
  905 + position: fixed;
  906 + z-index: 999;
  907 + top: 0rpx;
  908 +}
  909 +
  910 +.toast_content {
  911 + width: 50%;
  912 + padding: 20rpx;
  913 + background: rgba(0, 0, 0, 0.5);
  914 + border-radius: 20rpx;
  915 +}
  916 +
  917 +.toast_content_text {
  918 + height: 100%;
  919 + width: 100%;
  920 + color: #fff;
  921 + font-size: 28rpx;
  922 + text-align: center;
  923 +}
  924 +
  925 +.jt {
  926 + width: 30rpx;
  927 + height: 30rpx;
  928 + display: inline-block;
  929 +}
  930 +
  931 +.jiajian {
  932 + color: #999;
  933 +}
  934 +
  935 +.t_wz {
  936 + line-height: 110rpx;
  937 + height: 110rpx;
  938 + font-size: 36rpx;
  939 +}
  940 +
  941 +.down-arrow {
  942 + display: inline-block;
  943 + position: relative;
  944 + width: 40rpx;
  945 + height: 30rpx;
  946 + margin-right: 20rpx;
  947 +}
  948 +
  949 +.down-arrow::after {
  950 + display: inline-block;
  951 + content: " ";
  952 + height: 18rpx;
  953 + width: 18rpx;
  954 + border-width: 0 2rpx 2rpx 0;
  955 + border-color: #999;
  956 + border-style: solid;
  957 + transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
  958 + transform-origin: center;
  959 + transition: transform 0.3s;
  960 + position: absolute;
  961 + top: 50%;
  962 + right: 10rpx;
  963 + margin-top: -10rpx;
  964 +}
  965 +
  966 +.down-arrow1 {
  967 + display: inline-block;
  968 + position: relative;
  969 + width: 40rpx;
  970 + height: 30rpx;
  971 + margin-right: 20rpx;
  972 + margin-top: 12rpx;
  973 +}
  974 +
  975 +.down-arrow1::after {
  976 + display: inline-block;
  977 + content: " ";
  978 + height: 18rpx;
  979 + width: 18rpx;
  980 + border-width: 0 2rpx 2rpx 0;
  981 + border-color: #999;
  982 + border-style: solid;
  983 + transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
  984 + transform-origin: center;
  985 + transition: transform 0.3s;
  986 + position: absolute;
  987 + top: 50%;
  988 + right: 10rpx;
  989 + margin-top: -10rpx;
  990 +}
  991 +
  992 +.down-arrow1::after {
  993 + transform-origin: center;
  994 + transform: rotate(-135deg);
  995 + transition: transform 0.3s;
  996 +}
  997 +
  998 +.goodslisttop::after {
  999 + content: "";
  1000 + width: 100%;
  1001 + height: 1px;
  1002 + border-bottom: 1px #d4d4d4 solid;
  1003 + display: block;
  1004 + margin-top: -12px;
  1005 +}
  1006 +
  1007 +.ia {
  1008 + display: flex;
  1009 + width: 100%;
  1010 +}
  1011 +
  1012 +.bview {
  1013 + position: fixed;
  1014 + top: 0;
  1015 + left: 0;
  1016 + width: 100%;
  1017 + height: 100%;
  1018 + background-color: rgba(0, 0, 0, 0.5);
  1019 +}
  1020 +
  1021 +.juzhong {
  1022 + position: fixed;
  1023 + top: 0;
  1024 + left: 0;
  1025 + width: 100%;
  1026 + height: 100%;
  1027 + display: flex;
  1028 + flex-direction: row;
  1029 + justify-content: center;
  1030 + align-items: center;
  1031 +}
  1032 +
  1033 +.juzhong .xq {
  1034 + padding: 0 20rpx;
  1035 + background: #fff;
  1036 + font-size: 30rpx;
  1037 + padding-bottom: 20rpx;
  1038 +}
  1039 +
  1040 +.juzhong .xq .title {
  1041 + text-align: center;
  1042 + margin: 20rpx 0;
  1043 + position: relative;
  1044 + height: 50rpx;
  1045 +}
  1046 +
  1047 +.juzhong .xq .hs1 {
  1048 + font-size: 28rpx;
  1049 + color: #ab8f9e;
  1050 +}
  1051 +
  1052 +.juzhong .xq .title .close {
  1053 + position: absolute;
  1054 + top: 0;
  1055 + right: 0;
  1056 + width: 45rpx;
  1057 + height: 45rpx;
  1058 +}
  1059 +
  1060 +/* .pt_qd {
  1061 + margin-top: 40rpx;
  1062 + height: auto;
  1063 +} */
  1064 +
  1065 +.spec-cart-btn.w100 {
  1066 + width: 100%;
  1067 + margin-left: 0;
  1068 + height: 80rpx;
  1069 + line-height: 80rpx;
  1070 +}
  1071 +
  1072 +
  1073 +.bview {
  1074 + position: fixed;
  1075 + top: 0;
  1076 + left: 0;
  1077 + width: 100%;
  1078 + height: 100%;
  1079 + background-color: rgba(0, 0, 0, 0.5);
  1080 +}
  1081 +
  1082 +.juzhong {
  1083 + position: fixed;
  1084 + top: 0;
  1085 + left: 0;
  1086 + width: 100%;
  1087 + height: 100%;
  1088 + display: flex;
  1089 + flex-direction: row;
  1090 + justify-content: center;
  1091 + align-items: center;
  1092 +}
  1093 +
  1094 +.juzhong .xq {
  1095 + padding: 0 20rpx;
  1096 + background: #fff;
  1097 + font-size: 30rpx;
  1098 + padding-bottom: 20rpx;
  1099 +}
  1100 +
  1101 +.juzhong .xq .title {
  1102 + text-align: center;
  1103 + margin: 20rpx 0;
  1104 + position: relative;
  1105 + height: 50rpx;
  1106 +}
  1107 +
  1108 +.juzhong .xq .hs1 {
  1109 + font-size: 28rpx;
  1110 + color: #ab8f9e;
  1111 +}
  1112 +
  1113 +.juzhong .xq .title .close {
  1114 + position: absolute;
  1115 + top: 0;
  1116 + right: 0;
  1117 + width: 45rpx;
  1118 + height: 45rpx;
  1119 +}
  1120 +
  1121 +.pt_qd {
  1122 + /* margin-top: 40rpx;
  1123 + height: auto; */
  1124 + padding: 20rpx;
  1125 +}
  1126 +
  1127 +.spec-cart-btn.w100 {
  1128 + width: 100%;
  1129 + margin-left: 0;
  1130 + height: 80rpx;
  1131 + line-height: 80rpx;
  1132 +}
  1133 +
  1134 +.show_zf_dd {
  1135 + display: flex;
  1136 + padding: 15rpx 40rpx;
  1137 + justify-content: space-between;
  1138 + font-size: 30rpx;
  1139 + color: #666;
  1140 +}
  1141 +
  1142 +.flex_tou {
  1143 + display: flex;
  1144 + justify-content: center;
  1145 + width: 100%;
  1146 + height: 175rpx;
  1147 + align-items: center;
  1148 +}
  1149 +
  1150 +.xc-goods-details {
  1151 + width: 479rpx;
  1152 + margin-top: 20rpx;
  1153 + height: 80rpx;
  1154 + align-items: center;
  1155 +
  1156 +}
  1157 +
  1158 +.xc-valframe {
  1159 + border-radius: 7rpx;
  1160 + border: 1rpx solid;
  1161 + margin-top: 3rpx;
  1162 +}
  1163 +
  1164 +.xc-valframe .xc-frame-img {
  1165 + width: 30rpx;
  1166 + height: 100%;
  1167 + background: #e22b44;
  1168 +}
  1169 +
  1170 +.xc-valframe .xc-frame-img .picture {
  1171 + width: 25rpx;
  1172 + height: 25rpx;
  1173 + margin-top: 4rpx;
  1174 +
  1175 +}
  1176 +
  1177 +.bodybutton .xc-good-friend {
  1178 + background: #fab55a;
  1179 + border-radius: 15rpx;
  1180 +}
  1181 +
  1182 +.bodybutton .xc-home-page {
  1183 + margin-top: 20rpx;
  1184 + background-color: #e22b44;
  1185 + border-radius: 15rpx;
  1186 +}
  1187 +
  1188 +.xc-ellipsis-img {
  1189 + width: 56rpx;
  1190 + height: 56rpx;
  1191 + padding-top: 15rpx;
  1192 +}
  1193 +
  1194 +.xc-ptcomplete {
  1195 + width: 74%;
  1196 + height: 105rpx;
  1197 + line-height: 105rpx;
  1198 + float: right;
  1199 +
  1200 +}
  1201 +
  1202 +.xc-ptcomplete .xc-img-frame .img {
  1203 + width: 105rpx;
  1204 + height: 105rpx;
  1205 + float: right;
  1206 +}
  1207 +
  1208 +.xc-ptcomplete .xc-img-frame {
  1209 + width: 205rpx;
  1210 + height: 105rpx;
  1211 + margin-top: 20rpx;
  1212 +}
  1213 +
  1214 +.xc-ptcomplete .xc-end {
  1215 + width: 283rpx;
  1216 + text-align: right;
  1217 +}
  1218 +
  1219 +.iw {
  1220 + padding-right: 33rpx;
  1221 +}
  1222 +
  1223 +.xc-ptcomplete .xc-img-frames {
  1224 + width: 345rpx;
  1225 + height: 105rpx;
  1226 + margin-top: 20rpx;
  1227 +
  1228 +}
  1229 +
  1230 +.xc-ptcomplete .xc-img-frames .img {
  1231 + width: 105rpx;
  1232 + height: 105rpx;
  1233 + float: right;
  1234 +}
  1235 +
  1236 +.bodybutton .xc-good-friend.co-w {
  1237 + background-color: #aeaeae
  1238 +}
  1239 +
  1240 +
  1241 +
  1242 +
  1243 +
  1244 +
  1245 +
  1246 +
  1247 +
  1248 +
  1249 +
  1250 +
  1251 +
  1252 +
  1253 +
  1254 +.spec-model {
  1255 + position: fixed;
  1256 + bottom: 0;
  1257 + z-index: 20;
  1258 + background: white;
  1259 + width: 100%;
  1260 + /* padding: 0 30rpx; */
  1261 + font-size: 32rpx;
  1262 + box-sizing: border-box;
  1263 + border-radius: 20rpx;
  1264 + /* height: 72%; */
  1265 +}
  1266 +
  1267 +.spec-model .pding {
  1268 + padding: 0 30rpx;
  1269 +}
  1270 +
  1271 +.spec-goods {
  1272 + padding: 30rpx 0 20rpx;
  1273 + float: left;
  1274 + width: 100%;
  1275 + border-bottom: 2rpx solid #eee;
  1276 +}
  1277 +
  1278 +.spec-img {
  1279 + float: left;
  1280 + height: 186rpx;
  1281 + width: 186rpx;
  1282 + border: 4rpx solid #eee
  1283 +}
  1284 +
  1285 +.spec-goods-info {
  1286 + float: left;
  1287 + padding: 0 25rpx;
  1288 + width: 400rpx;
  1289 +}
  1290 +
  1291 +.spec-goods-name {
  1292 + font-size: 30rpx;
  1293 + line-height: 35rpx;
  1294 + height: 70rpx;
  1295 + margin: 15rpx 20rpx 25rpx 0;
  1296 + overflow: hidden;
  1297 + text-overflow: ellipsis;
  1298 + color: #333;
  1299 +}
  1300 +
  1301 +.spec-goods-price {
  1302 + color: #d60021;
  1303 + font-size: 33rpx;
  1304 + font-weight: bold;
  1305 +}
  1306 +
  1307 +.spec-goods-stock {
  1308 + margin-top: 3rpx;
  1309 + font-size: 24rpx;
  1310 + color: #999999;
  1311 + margin-right: 15rpx;
  1312 +}
  1313 +
  1314 +.spec-name {
  1315 + clear: both;
  1316 + padding: 20rpx 0;
  1317 + font-size: 30rpx;
  1318 + color: #333;
  1319 +}
  1320 +
  1321 +.quhuo {
  1322 + font-size: 30rpx;
  1323 + color: #000
  1324 +}
  1325 +
  1326 +.b_num {
  1327 + display: flex;
  1328 + font-size: 30rpx;
  1329 + color: #333;
  1330 + justify-content: space-between;
  1331 +}
  1332 +
  1333 +.count {
  1334 + /* position: fixed; */
  1335 + display: flex;
  1336 + height: 50rpx;
  1337 + /* border: 1rpx solid #000; */
  1338 + font-size: 28rpx;
  1339 + /* right: 30rpx; */
  1340 + /* justify-content: space-between; */
  1341 +}
  1342 +
  1343 +
  1344 +.count>view,
  1345 +.count>input {
  1346 + width: 60rpx;
  1347 + height: 50rpx;
  1348 + line-height: 50rpx;
  1349 + text-align: center;
  1350 +}
  1351 +
  1352 +.spec_bt {
  1353 + background: fff;
  1354 + color: #333;
  1355 + margin-left: 10rpx;
  1356 + padding: 4rpx 15rpx 4rpx;
  1357 + display: inline-block;
  1358 + border-radius: 30rpx;
  1359 + font-size: 24rpx;
  1360 + border: 1rpx solid #ccc;
  1361 + margin: 10rpx;
  1362 + height: 40rpx;
  1363 + line-height: 40rpx;
  1364 +}
  1365 +
  1366 +.spec_bt.act {
  1367 + background: #d60021;
  1368 + color: #fff;
  1369 + border: 1rpx solid #d60021;
  1370 +}
  1371 +
  1372 +.sub, .add, .count>input {
  1373 + /* border-right: 1px solid #000; */
  1374 + background-color: #f8f8f8;
  1375 + border-radius: 8rpx;
  1376 +}
  1377 +.sub.active {
  1378 + /* background-color: #ddd; */
  1379 + color: #ccc;
  1380 +}
  1381 +.count>input {
  1382 + margin: 0 10rpx;
  1383 + line-height: normal;
  1384 +}
  1385 +
  1386 +/* .sub {
  1387 + border-right: 1px solid #000;
  1388 +}
  1389 +
  1390 +.add {
  1391 + border-left: 1px solid #000;
  1392 +} */
  1393 +
  1394 +.spec-btn {
  1395 + color: black;
  1396 + background-color: white;
  1397 + padding: 10rpx 10rpx;
  1398 + font-size: 26rpx;
  1399 + line-height: 28rpx;
  1400 + float: left;
  1401 + border: 1rpx solid #dedede;
  1402 + margin: 4rpx 10rpx 4rpx 0;
  1403 + border-radius: 4rpx;
  1404 +}
  1405 +
  1406 +.spec-btn-click {
  1407 + color: white;
  1408 + background-color: #f23030;
  1409 + border: 1rpx solid #f23030;
  1410 +}
  1411 +
  1412 +.spec-cart-btns {
  1413 + width: 92%;
  1414 + line-height: 70rpx;
  1415 + margin: 0rpx auto;
  1416 + margin-top: 160rpx;
  1417 + border-radius: 20rpx;
  1418 + position: fixed;
  1419 + bottom: 50rpx;
  1420 + left: 4%;
  1421 +
  1422 +}
  1423 +
  1424 +.spec-cart-btn {
  1425 +
  1426 + width: 100%;
  1427 + font-size: 30rpx;
  1428 + text-align: center;
  1429 + color: white;
  1430 + border-radius: 40rpx;
  1431 +}
  1432 +
  1433 +.spec-add-cart {
  1434 + background-color: #ffb03f;
  1435 +}
  1436 +
  1437 +.spec-buy {
  1438 + background-color: #f23030;
  1439 + /* margin-left: 34rpx; */
  1440 +}
  1441 +
  1442 +.spec-cart-disable {
  1443 + background: #bbbbbb;
  1444 +}
  1445 +
  1446 +.spec-cart-btn-lg {
  1447 + width: 614rpx;
  1448 +}
  1449 +
  1450 +.prom-model {
  1451 + position: fixed;
  1452 + bottom: 0;
  1453 + z-index: 20;
  1454 + background: white;
  1455 + width: 100%;
  1456 + padding: 0 30rpx 30rpx;
  1457 + font-size: 32rpx;
  1458 + box-sizing: border-box;
  1459 + overflow-x: hidden;
  1460 +}
  1461 +
  1462 +.prom-model .prom-title {
  1463 + text-align: center;
  1464 + margin: 30rpx 0;
  1465 +}
  1466 +
  1467 +.prom-model .logistics-item {
  1468 + border: 0;
  1469 +}
  1470 +
  1471 +.prom-model .item-mes {
  1472 + width: 500rpx;
  1473 +}
  1474 +
  1475 +.integral-btn {
  1476 + width: 100%;
  1477 + padding: 0rpx;
  1478 + margin: 0rpx;
  1479 +}
  1480 +
  1481 +.clear {
  1482 + clear: both;
  1483 +}
  1484 +
  1485 +.sto_v .title,
  1486 +.sto_v .stitle {
  1487 + border-top: 1rpx solid #dedede;
  1488 + border-bottom: 1rpx solid #dedede;
  1489 + height: 78rpx;
  1490 + line-height: 78rpx;
  1491 +}
  1492 +
  1493 +.sto_v .title .tubiao,
  1494 +.sto_v .stitle .tubiao {
  1495 + width: 32rpx;
  1496 + height: 32rpx;
  1497 + margin-top: 23rpx;
  1498 +}
  1499 +
  1500 +.itemlists .item {
  1501 + border-bottom: 1rpx solid #dedede;
  1502 + height: 72rpx;
  1503 + line-height: 72rpx;
  1504 + font-size: 28rpx;
  1505 + margin: 0 10rpx;
  1506 +}
  1507 +
  1508 +.cshu {
  1509 + margin-bottom: 30rpx;
  1510 + margin-top: 20rpx;
  1511 +}
  1512 +
  1513 +.cshu view {
  1514 + color: #999;
  1515 + font-size: 30rpx;
  1516 + margin-left: 26rpx;
  1517 +}
  1518 +
  1519 +
  1520 +/*---活动特殊显示---*/
  1521 +.prom_show {
  1522 + height: 120rpx;
  1523 + display: flex;
  1524 +}
  1525 +
  1526 +.prom_show .secondkill-img {
  1527 + width: 100%;
  1528 + height: 100%;
  1529 +}
  1530 +
  1531 +.prom_show .spike-img {
  1532 + width: 283rpx;
  1533 + height: 57rpx;
  1534 + top: 35rpx;
  1535 + left: 31rpx;
  1536 +}
  1537 +
  1538 +.prom_show .stop {
  1539 + color: #d81731;
  1540 + top: 17rpx;
  1541 + right: 65rpx;
  1542 + font-weight: 600;
  1543 +}
  1544 +
  1545 +.prom_show .start {
  1546 + color: #009ae2;
  1547 + top: 17rpx;
  1548 + right: 65rpx;
  1549 + font-weight: 600;
  1550 +}
  1551 +
  1552 +.prom_show .timeac {
  1553 + font-size: 32rpx;
  1554 + height: 120rpx;
  1555 + color: #333;
  1556 +}
  1557 +
  1558 +.prom_show .timeac.left {
  1559 + width: 66%;
  1560 + color: #fff;
  1561 + background: #f23030;
  1562 +}
  1563 +
  1564 +.prom_show .timeac.right {
  1565 + width: 34%;
  1566 + background-color: #d7d7d7;
  1567 + text-align: center
  1568 +}
  1569 +
  1570 +.prom_show .secview .day {
  1571 + padding-right: 10rpx;
  1572 +}
  1573 +
  1574 +.prom_show .secview .time-val {
  1575 + width: 36rpx;
  1576 + height: 36rpx;
  1577 + border-radius: 7rpx;
  1578 + line-height: 36rpx;
  1579 +}
  1580 +
  1581 +.prom_show .secview .time {
  1582 + margin-right: 10rpx;
  1583 + margin-left: 10rpx;
  1584 +}
  1585 +
  1586 +
  1587 +.prom_show .timeac.left view {
  1588 + margin-left: 20rpx
  1589 +}
  1590 +
  1591 +.prom_show .timeac.left view.firview {
  1592 + margin-top: 10rpx
  1593 +}
  1594 +
  1595 +.prom_show .timeac.left view .tr_line {
  1596 + text-decoration: line-through;
  1597 + font-size: 28rpx;
  1598 +}
  1599 +
  1600 +.prom_show .timeac.left view .bprice {
  1601 + font-size: 50rpx;
  1602 +}
  1603 +
  1604 +.prom_show .timeac.right view.firview {
  1605 + margin-top: 12rpx;
  1606 + margin-bottom: 10rpx
  1607 +}
  1608 +
  1609 +.prom_show .timeac.right view.secview {
  1610 + display: flex;
  1611 + text-align: center;
  1612 + justify-content: center;
  1613 + flex-direction: row;
  1614 +}
  1615 +
  1616 +.prom_show .timeac.right view .tui-conutdown-box {
  1617 + /* background: #6b6b6b; */
  1618 + width: auto;
  1619 + /* min-width: 45rpx; */
  1620 + height: 45rpx;
  1621 + color: #c4182e;
  1622 + font-size: 27rpx;
  1623 + text-align: center;
  1624 + line-height: 46rpx;
  1625 +}
  1626 +
  1627 +.huise {
  1628 + background: gray
  1629 +}
  1630 +
  1631 +.lanse {
  1632 + background: #0199e2
  1633 +}
  1634 +
  1635 +
  1636 +/*------拼单------*/
  1637 +.pt_view {
  1638 + text-align: center;
  1639 + width: 100%;
  1640 + height: 100rpx;
  1641 + line-height: 100rpx;
  1642 + font-size: 26rpx
  1643 +}
  1644 +
  1645 +.pt_view .secondkill-img {
  1646 + width: 100%;
  1647 + height: 100%;
  1648 +}
  1649 +
  1650 +.pt_fir {
  1651 + background: #fff;
  1652 + margin-bottom: 10rpx;
  1653 +}
  1654 +
  1655 +.pt_fir .pt_fir_title {
  1656 + display: flex;
  1657 + align-items: center;
  1658 + margin-left: 10rpx;
  1659 + margin-top: 20rpx;
  1660 + font-size: 28rpx;
  1661 + position: relative;
  1662 +}
  1663 +
  1664 +.pt_fir .pt_fir_title .kt_type {
  1665 + color: #fff;
  1666 + background: #e9030d;
  1667 + width: 100rpx;
  1668 + line-height: 40rpx;
  1669 + border-radius: 6rpx;
  1670 + margin: 0 10rpx;
  1671 + height: 40rpx;
  1672 + font-size: 24rpx;
  1673 + text-align: center;
  1674 +}
  1675 +
  1676 +.pt_fir .pt_fir_title .price {
  1677 + color: #e9030d;
  1678 + font-size: 26rpx;
  1679 +}
  1680 +
  1681 +.pt_fir .pt_fir_title .bigw {
  1682 + font-size: 36rpx;
  1683 +}
  1684 +
  1685 +.pt_fir .pt_fir_title .tprice {
  1686 + text-decoration: line-through;
  1687 + color: #949494
  1688 +}
  1689 +
  1690 +.pt_fir .pt_fir_title .tprice.ml50 {
  1691 + margin-left: 50rpx
  1692 +}
  1693 +
  1694 +.pt_fir .pt_fir_title .js {
  1695 + padding: 0 15rpx;
  1696 + height: 40rpx;
  1697 + background: #e9030d;
  1698 + text-align: center;
  1699 + border-radius: 8rpx;
  1700 + color: #fff;
  1701 + margin-left: 10rpx;
  1702 +}
  1703 +
  1704 +.pt_fir .pt_fir_title .tuannum {
  1705 + color: #e9030d;
  1706 + position: absolute;
  1707 + right: 20rpx;
  1708 + font-size: 26rpx;
  1709 +}
  1710 +
  1711 +.pding {
  1712 + padding-top: 20rpx;
  1713 + padding-left: 20rpx;
  1714 + height: 81%;
  1715 + padding-right: 20rpx;
  1716 + font-size: 26rpx;
  1717 + color: #ea120f
  1718 +}
  1719 +
  1720 +.pdres {
  1721 + margin-left: 10rpx;
  1722 + color: #8f8f94
  1723 +}
  1724 +
  1725 +.ptgz {
  1726 + position: relative;
  1727 + font-size: 30rpx;
  1728 + padding-left: 20rpx;
  1729 + margin-top: 10rpx;
  1730 + overflow: hidden
  1731 +}
  1732 +
  1733 +.shuxian {
  1734 + width: 6rpx;
  1735 + height: 28rpx;
  1736 + background: #ea120f;
  1737 + display: inline-block;
  1738 + top: 5rpx;
  1739 + position: relative;
  1740 + margin-right: 5rpx
  1741 +}
  1742 +
  1743 +.ptgz_an {
  1744 + position: absolute;
  1745 + top: 5rpx;
  1746 + right: 6rpx
  1747 +}
  1748 +
  1749 +.ptgz_an .arrow-two {
  1750 + width: 18rpx;
  1751 + height: 18rpx;
  1752 + border-color: #da0b31;
  1753 + margin-top: 30rpx;
  1754 +}
  1755 +
  1756 +.pt_fir.se {
  1757 + height: auto;
  1758 + margin-bottom: 10rpx
  1759 +}
  1760 +
  1761 +.t_gz {
  1762 + padding: 10rpx 20rpx;
  1763 + font-size: 28rpx
  1764 +}
  1765 +
  1766 +.pt_fir.se1 {
  1767 + height: auto;
  1768 + margin: 0
  1769 +}
  1770 +
  1771 +.pt_fir.se2 {
  1772 + height: auto;
  1773 + margin: 0;
  1774 + border-top: 6rpx solid #eeeeee;
  1775 + border-bottom: 2rpx solid #eeeeee;
  1776 +}
  1777 +
  1778 +.pt_hb {
  1779 + height: 78rpx;
  1780 + line-height: 75rpx;
  1781 + position: relative;
  1782 + font-size: 32rpx;
  1783 + overflow: hidden;
  1784 + width: 695rpx;
  1785 + margin-left: 28rpx;
  1786 + border-bottom: 1rpx solid #E5E5E5
  1787 +}
  1788 +
  1789 +.ptgz_an.xq {
  1790 + font-size: 32rpx;
  1791 + color: #d40024
  1792 +}
  1793 +
  1794 +.wf {
  1795 + display: flex;
  1796 + padding: 20rpx 0;
  1797 +}
  1798 +
  1799 +.wf .item {
  1800 + width: 24.5%;
  1801 + text-align: center;
  1802 + font-size: 26rpx;
  1803 + color: #666
  1804 +}
  1805 +
  1806 +.wf .item .item_txy {
  1807 + position: relative;
  1808 + width: 60rpx;
  1809 + height: 60rpx;
  1810 + background: #ea120f;
  1811 + border-radius: 50%;
  1812 + left: 50%;
  1813 + margin-left: -30rpx;
  1814 + border: 3px #dfdfdf solid;
  1815 + text-align: center;
  1816 + line-height: 60rpx;
  1817 + color: #fff;
  1818 + margin-bottom: 10rpx;
  1819 +}
  1820 +
  1821 +.wf .item .item_txy.hs {
  1822 + background: #cbcbcb;
  1823 +}
  1824 +
  1825 +.po {
  1826 + margin-bottom: 20rpx;
  1827 +}
  1828 +
  1829 +.cart-btn.line-h {
  1830 + line-height: 26rpx;
  1831 +}
  1832 +
  1833 +.cart-btn .fir-v {
  1834 + margin-top: 10rpx;
  1835 +}
  1836 +
  1837 +.hyt {
  1838 + padding: 0 20rpx;
  1839 + font-size: 30rpx;
  1840 + display: flex;
  1841 + align-items: center;
  1842 + margin-top: 10rpx;
  1843 +}
  1844 +
  1845 +.hyt .r_f {
  1846 + color: #e9120f;
  1847 + font-size: 26rpx;
  1848 + position: relative;
  1849 + top: 3rpx
  1850 +}
  1851 +
  1852 +.hyt .byj {
  1853 + color: #e9120f;
  1854 + font-size: 32rpx;
  1855 + position: relative;
  1856 + top: 5rpx
  1857 +}
  1858 +
  1859 +.pt_fir .pt_fir_title.no-mar-b {
  1860 + margin-bottom: 0;
  1861 + padding-bottom: 10rpx;
  1862 + margin-left: 20rpx
  1863 +}
  1864 +
  1865 +.pt_fir .pt_fir_title.boder-1 {
  1866 + border-bottom: 1rpx #e7e7e7 solid
  1867 +}
  1868 +
  1869 +.jie_price {
  1870 + padding: 10rpx 30rpx;
  1871 +}
  1872 +
  1873 +.jie_price_title {
  1874 + font-size: 30rpx;
  1875 + color: #a26270;
  1876 + margin-bottom: 10rpx
  1877 +}
  1878 +
  1879 +.price_list {
  1880 + display: flex;
  1881 + width: 100%;
  1882 +}
  1883 +
  1884 +.price_item {
  1885 + width: 25%;
  1886 + font-size: 28rpx;
  1887 + color: #4c336c
  1888 +}
  1889 +
  1890 +.pt_fir.se2 .zzk-1 {
  1891 + margin-top: 23rpx;
  1892 + font-size: 30rpx;
  1893 + position: relative;
  1894 + margin-bottom: 30rpx;
  1895 + border-left: 4rpx solid red;
  1896 + margin-left: 14rpx;
  1897 + height: 30rpx;
  1898 + line-height: 30rpx;
  1899 + padding-left: 5rpx;
  1900 +}
  1901 +
  1902 +.ckgd {
  1903 + position: absolute;
  1904 + top: 0;
  1905 + right: 57rpx;
  1906 + color: #d70025;
  1907 + font-size: 32rpx;
  1908 +}
  1909 +
  1910 +.ckgd .arrow-one {
  1911 + width: 18rpx;
  1912 + height: 18rpx;
  1913 + border-color: #da0b31;
  1914 + margin-top: 5rpx;
  1915 +}
  1916 +
  1917 +.bview {
  1918 + position: fixed;
  1919 + top: 0;
  1920 + left: 0;
  1921 + width: 100%;
  1922 + height: 100%;
  1923 + background-color: rgba(0, 0, 0, 0.5);
  1924 +}
  1925 +
  1926 +.juzhong {
  1927 + position: fixed;
  1928 + top: 0;
  1929 + left: 0;
  1930 + width: 100%;
  1931 + height: 100%;
  1932 + display: flex;
  1933 + flex-direction: row;
  1934 + justify-content: center;
  1935 + align-items: center;
  1936 +}
  1937 +
  1938 +.juzhong .xq {
  1939 + padding: 0 20rpx;
  1940 + background: #fff;
  1941 + font-size: 30rpx;
  1942 + padding-bottom: 20rpx;
  1943 +}
  1944 +
  1945 +.juzhong .xq .title {
  1946 + text-align: center;
  1947 + margin: 20rpx 0;
  1948 + position: relative;
  1949 + height: 50rpx;
  1950 +}
  1951 +
  1952 +.juzhong .xq .hs1 {
  1953 + font-size: 28rpx;
  1954 + color: #ab8f9e
  1955 +}
  1956 +
  1957 +.juzhong .xq .title .close {
  1958 + position: absolute;
  1959 + top: 0;
  1960 + right: 0;
  1961 + width: 45rpx;
  1962 + height: 45rpx;
  1963 +}
  1964 +
  1965 +.pt_qd {
  1966 + /* margin-top: 40rpx;
  1967 + height: auto; */
  1968 +}
  1969 +
  1970 +.spec-cart-btn.w100 {
  1971 + width: 95%;
  1972 + margin-left: 0;
  1973 + height: 75rpx;
  1974 + line-height: 75rpx;
  1975 + margin: auto;
  1976 +}
  1977 +
  1978 +.sto_v {
  1979 + color: #333;
  1980 +}
  1981 +
  1982 +.ellipsis {
  1983 + overflow: hidden;
  1984 + white-space: nowrap;
  1985 + text-overflow: ellipsis;
  1986 +}
  1987 +
  1988 +
  1989 +
  1990 +
  1991 +/* 房子图标 */
  1992 +.stores-img {
  1993 + width: 40rpx;
  1994 + height: 35rpx;
  1995 + margin-right: 10rpx;
  1996 +}
  1997 +
  1998 +.right-arrow {
  1999 + width: 15rpx;
  2000 + height: 15rpx;
  2001 + border-top: 2rpx solid #d70026;
  2002 + border-right: 2rpx solid #d70026;
  2003 + transform: rotate(45deg);
  2004 + display: inline-block;
  2005 + margin-bottom: 3rpx;
  2006 +}
  2007 +
  2008 +.distance{
  2009 + padding-left: 15rpx;
  2010 + padding-right: 15rpx;
  2011 + background: #eee;
  2012 + border-radius: 20rpx;
  2013 + margin-right: 5rpx;
  2014 + color: #999;
  2015 + height: 38rpx;
  2016 + line-height: 38rpx;
  2017 +}
  2018 +
  2019 +.shop_name{
  2020 + margin-right: 10rpx;
  2021 +}
  2022 +
  2023 +.xc-distance-top{
  2024 + margin-top: 10rpx;
  2025 +}
  2026 +
  2027 +
  2028 +.popup-frame{
  2029 + position: fixed;
  2030 + /* bottom:99rpx; */
  2031 + bottom: 0;
  2032 + z-index: 20;
  2033 + background: white;
  2034 + width: 100%;
  2035 + border-radius: 20rpx 20rpx 0 0;
  2036 + height: auto;
  2037 +}
  2038 +
  2039 +.popup-top{
  2040 + border-bottom: 1rpx solid #eee;
  2041 + height: 155rpx;
  2042 + width: 95%;
  2043 + margin: auto;
  2044 + line-height: 155rpx;
  2045 +
  2046 +}
  2047 +
  2048 +
  2049 +/* .flex-space-between{
  2050 + display: flex;
  2051 + justify-content:space-between;
  2052 +} */
  2053 +
  2054 +.modal-closes {
  2055 + position: absolute;
  2056 + right: 30rpx;
  2057 + top: -15rpx;
  2058 + height: 25rpx;
  2059 +}
  2060 +
  2061 +.choose_more{
  2062 + margin-top: 40rpx;
  2063 + margin-right: 20rpx;
  2064 +
  2065 +}
  2066 +.choose_mores{
  2067 + margin-top: 30rpx;
  2068 + margin-right: 15rpx;
  2069 +
  2070 +}
  2071 +
  2072 +.bg_rights{
  2073 + border-top: 2rpx solid ;
  2074 + border-right: 2rpx solid ;
  2075 + transform: rotate(45deg);
  2076 + display: inline-block;
  2077 + width: 15rpx;height:15rpx;
  2078 + border-color: #da0b31;
  2079 +}
  2080 +
  2081 +
  2082 +.mongolia-layer{
  2083 + position: fixed;
  2084 + left: 0;
  2085 + top: 0;
  2086 + right: 0;
  2087 + bottom: 0;
  2088 + z-index: 11;
  2089 + background: rgba(0,0,0,0.4);
  2090 + width: 100%;
  2091 + height: 91.9%;
  2092 +}
  2093 +
  2094 +
  2095 +
  2096 +
  2097 +.store-list{
  2098 + width: 95%;
  2099 + min-height:300rpx;
  2100 + overflow-y: scroll;
  2101 + margin: auto;
  2102 + max-height: 610rpx;
  2103 +}
  2104 +
  2105 +.store-list .store_choose{
  2106 + width: 100%;
  2107 + height: 120rpx;
  2108 + line-height: 125rpx;
  2109 + border-bottom: 1rpx solid #eee;
  2110 +}
  2111 +
  2112 +.store-list .store_choose .store{
  2113 + width: 100%;
  2114 + margin: auto;
  2115 + line-height: 37rpx;
  2116 + padding-left: 20rpx;
  2117 +}
  2118 +
  2119 +.xc-hook{
  2120 + width: 35rpx;
  2121 + height: 35rpx;
  2122 + transform: rotate(-145deg);
  2123 + line-height: 37rpx;
  2124 + text-align: center;
  2125 +}
  2126 +
  2127 +.butttem5{
  2128 + margin-bottom: 5rpx;
  2129 +}
  2130 +
  2131 +.address-frame{
  2132 + width: 93%;
  2133 + margin-left: 7rpx;
  2134 +}
  2135 +
  2136 +.store-bottom{
  2137 + width: 85%;
  2138 + margin: auto;
  2139 + height: 90rpx;
  2140 + }
  2141 +
  2142 + .determine{
  2143 + width: 260rpx;
  2144 + height: 55rpx;
  2145 + border-radius: 50rpx;
  2146 + line-height: 55rpx;
  2147 + }
  2148 +
  2149 + .default{
  2150 + width: 260rpx;
  2151 + height: 55rpx;
  2152 + border:3rpx solid #c8c8c8;
  2153 + border-radius: 50rpx;
  2154 + line-height: 55rpx;
  2155 + }
  2156 +
  2157 + .sort_store_list .sort-store-frame .sort-store {
  2158 + width: 94.5%;
  2159 + margin: auto;
  2160 + }
  2161 +
  2162 +
  2163 + .sort_store_list .sort-store-frame{
  2164 + width: 100%;
  2165 + height: 100rpx;
  2166 + line-height:100rpx;
  2167 + border-bottom: 1rpx solid #eee;
  2168 + }
  2169 +
  2170 + .black_rights-frame .black_rights{
  2171 + border-top: 3rpx solid;
  2172 + border-right: 3rpx solid;
  2173 + transform: rotate(45deg);
  2174 + display: inline-block;
  2175 + width: 20rpx;
  2176 + height: 20rpx;
  2177 + }
  2178 +
  2179 +
  2180 + .sort_store_list{
  2181 + max-height: 700rpx;
  2182 + overflow: hidden;
  2183 + overflow-y: scroll;
  2184 + width: 95%;
  2185 + margin: auto;
  2186 + }
  2187 +
  2188 + .xc-hooks{
  2189 + width: 30rpx;
  2190 + height: 30rpx;
  2191 + border: 1rpx solid #999;
  2192 +}
  2193 +
  2194 +.no_store{color:#d60021; font-size: 26rpx;}
  2195 +
  2196 +.sub.active {
  2197 + /* background-color: #ddd; */
  2198 + color: #ccc;
  2199 +}
  2200 +
  2201 +.c-red22{ color:#d60021; }
... ...
packageG/pages/team/team_success/team_success.js
... ... @@ -448,7 +448,7 @@ Page({
448 448  
449 449 //二微码
450 450 var path3 = os.url+ "/api/wx/open/app/user/getWeAppEwm/"+
451   - os.stoid+"?sceneValue="+scene+"&pageValue=pages/team/team_show/team_show";
  451 + os.stoid+"?sceneValue="+scene+"&pageValue=packageG/pages/team/team_show/team_show";
452 452  
453 453 console.log(path3,6000);
454 454  
... ... @@ -840,7 +840,7 @@ Page({
840 840 var th=this;
841 841 var scene=this.data.teamgroup.id;
842 842 var goods_id=this.data.teamlist.goods_id;
843   - var url="/pages/team/team_show/team_show?tg_id="+scene+"&goods_id="+goods_id;
  843 + var url="/packageG/pages/team/team_show/team_show?tg_id="+scene+"&goods_id="+goods_id;
844 844 //--分享图片--
845 845 var img=th.data.iurl+th.data.teamlist.share_imgurl;
846 846 //--把会员分享出去--
... ...
packageG/pages/user/userinfo/userinfo.js
... ... @@ -5,7 +5,7 @@ function e(e, a, r) {
5 5 configurable: !0,
6 6 writable: !0
7 7 }) : e[a] = r, e;
8   -}
  8 +}
9 9  
10 10 var a = getApp(),
11 11 r = a.globalData.setting,
... ... @@ -13,7 +13,7 @@ var a = getApp(),
13 13 s = require("../../../../utils/common.js"),
14 14 util = require("../../../../utils/util.js"),
15 15 ut = util,
16   - d = getApp().globalData;
  16 + d = getApp().globalData;
17 17  
18 18 var timestamp = Date.parse(new Date());
19 19 var date = new Date(timestamp);
... ... @@ -76,7 +76,10 @@ Page({
76 76 getusercode_vailtime:10,//会员二维码时效
77 77  
78 78 sele_ing:0,
79   - set_isstcsp:0
  79 + set_isstcsp:0,
  80 + brcode:'',
  81 +
  82 + showvipcode:false,
80 83  
81 84 },
82 85 //通过路径跳转到其他页面
... ... @@ -85,6 +88,11 @@ Page({
85 88 var url = e.currentTarget.dataset.url;
86 89 getApp().goto(url);
87 90 },
  91 + showtext:function(){
  92 + this.setData({
  93 + showvipcode:true
  94 + })
  95 + },
88 96 //获取配置信息
89 97 get_config: function() {
90 98 var th = this;
... ... @@ -922,10 +930,12 @@ Page({
922 930 //base64_encode($user.mobile.'|'.date('Y-m-d H:i:s')
923 931 var val = that.data.userInfo.mobile + "|" +getnowtime+"|"+that.data.getusercode_vailtime;
924 932 val = "^" + ut.base64_encode(val);
925   -
926   - qrcode('qrcode', val, 480, 480, that);
  933 + let userInfo = getApp().globalData.userInfo;
  934 + qrcode('qrcode', val, 350, 350, that);
  935 + barcode('barcode', userInfo.userQrcode, 480,140);
927 936 that.setData({
928 937 tc_hide: false,
  938 + brcode:userInfo.userQrcode
929 939 });
930 940 }
931 941 }
... ...
packageG/pages/user/userinfo/userinfo.wxml
1 1 <wxs module="filters" src="../../../../utils/filter.wxs"></wxs>
2 2 <view class="container">
3 3  
4   - <!-- 头像,昵称,多个卡 -->
  4 + <!-- 头像,昵称,多个卡 -->
5 5 <view class="head flex-space-between">
6 6 <view class="flex-center">
7 7  
... ... @@ -297,8 +297,8 @@
297 297  
298 298 <!--弹出层内容,其中的“我知道”中绑定让弹出层消失的函数:bindtap="hide"-->
299 299 <view class="tc_view" hidden='{{tc_hide}}' bindtap='hide_tc'>
300   - <view class="modal-box" hidden="{{flag}}" bindtap="hide"></view>
301   - <view class="modal-body">
  300 + <view catchtouchmove="true" class="modal-box" hidden="{{flag}}" bindtap="hide"></view>
  301 + <view class="modal-body" catchtouchmove="true">
302 302 <view class="modal-content">
303 303 <view class="flex">
304 304 <image src="{{user.head_pic}}" class="hd_img"></image>
... ... @@ -309,11 +309,19 @@
309 309 </view>
310 310 <view class='txt2' wx:if="{{user.address}}">{{user.address}}</view>
311 311 </view>
312   - </view>
313   - <view class="m_ta">
  312 + </view>
  313 + <view class="canvas_box">
314 314 <canvas class="g_img" canvas-id="qrcode" />
315 315 </view>
316   - <view class="s_sao">扫一扫上面的二维码图案,即可消费</view>
  316 + <view style="width: 100%;display: flex;justify-content: center;">
  317 + <canvas class="barcode" style="width: 100%;height: 140rpx;" canvas-id="barcode" />
  318 + </view>
  319 + <view wx:if="{{showvipcode}}" class="fs24" style="width: 100%;color: #898989;display: flex;text-align: center;align-content: center;justify-content: center;">
  320 + {{brcode}}
  321 + </view>
  322 + <view wx:else catchtap="showtext" class="fs24" style="width: 100%;color: #898989;display: flex;text-align: center;align-content: center;justify-content: center;">
  323 + 点击可查看条形数据
  324 + </view>
317 325 </view>
318 326 </view>
319 327 </view>
... ...
packageG/pages/user/userinfo/userinfo.wxss
... ... @@ -201,15 +201,18 @@ input {
201 201 top: 0px;
202 202 background: rgba(0, 0, 0, 0.4);
203 203 overflow: hidden;
  204 + z-index: 9;
204 205 }
205 206  
206 207 .modal-body {
207 208 position: fixed;
208   - top: 80rpx;
  209 + top: 0;
209 210 left: 0;
  211 + bottom: 0;
  212 + right: 0;
210 213 z-index: 100;
211 214 background: #fff;
212   - margin-left: 73rpx;
  215 + margin: auto;
213 216 width: 600rpx;
214 217 height: 860rpx;
215 218 border-radius: 8px;
... ... @@ -271,8 +274,8 @@ input {
271 274 }
272 275  
273 276 .g_img {
274   - width: 480rpx;
275   - height: 480rpx;
  277 + width: 350rpx;
  278 + height: 350rpx;
276 279 }
277 280  
278 281 .s_sao {
... ... @@ -666,3 +669,9 @@ input {
666 669 .lb_txt{
667 670 color: red; font-size: 24rpx;
668 671 }
  672 +.canvas_box{
  673 + display: flex;
  674 + align-items: center;
  675 + justify-content: center;
  676 + /* margin-top: 20rpx; */
  677 +}
669 678 \ No newline at end of file
... ...
packageG/pages/user_template/index.js 0 → 100644
  1 +var t = getApp(),
  2 + a = t.request,
  3 + os = t.globalData.setting,
  4 + ut = require("../../../utils/util.js"),
  5 + com = require("../../../utils/common.js");
  6 +var regeneratorRuntime = require('../../../utils/runtime.js');
  7 +const rq = require("../../../utils/request.js");
  8 +var appd = getApp().globalData;
  9 +
  10 +Page({
  11 + data: {
  12 + url: os.imghost,
  13 + temp_id: 0,
  14 + goodsGroupArr: [],
  15 + pulscardname: '',
  16 + rfmName: '成长值',
  17 +
  18 + byquan: 0,
  19 + yuer: 0,
  20 + udata: {},
  21 +
  22 + is_assistance: 0, //助力活动
  23 + b_gift:null, //生日礼包
  24 + toji: null, //统计相关
  25 +
  26 + userInfo:null,
  27 + enableMeiye:null,
  28 +
  29 + is_show_recommend:false,
  30 + },
  31 +
  32 + onLoad: function (e) {
  33 + var th = this;
  34 + this.data.temp_id = e.scene;
  35 + if (!this.data.temp_id) wx.showModal({title: "未读取到模板ID",})
  36 +
  37 + var first_leader = e.first_leader;
  38 + if (first_leader) {
  39 + //-- user_id代过来免登录 --
  40 + getApp().globalData.first_leader = first_leader;
  41 + //调用接口判断是不是会员
  42 + getApp().request.promiseGet("/api/weshop/shoppingGuide/get/" + os.stoid + "/" + first_leader, {}).then(res => {
  43 + if (res.data.code == 0) {
  44 + getApp().globalData.guide_id = res.data.data.id;
  45 + getApp().globalData.guide_pick_id = res.data.data.pickup_id
  46 + }
  47 + })
  48 + }
  49 + //判断有没有登陆
  50 + setTimeout(() =>{
  51 + if (!getApp().globalData.userInfo) {
  52 + getApp().goto('/packageE/pages/togoin/togoin');
  53 + }
  54 + },1500)
  55 +
  56 + },
  57 +
  58 + async onShow() {
  59 + getApp().check_can_share();
  60 + var th = this;
  61 +
  62 + if(!th.data.userInfo){
  63 + this.data.userInfo =getApp().globalData.userInfo;
  64 + }
  65 +
  66 + /*-----统计-----*/
  67 + getApp().request.get("/api/weshop/order/waitlist", {
  68 + isShowLoading: 0,
  69 + data: {
  70 + user_id: getApp().globalData.user_id,isdel:0
  71 + },
  72 + success: function (su) {
  73 + th.setData({
  74 + toji: su.data.data,
  75 + });
  76 + }
  77 + })
  78 +
  79 + /*-------系统是否开通等级卡,会员是等级卡-----*/
  80 + getApp().getConfig2(function (e) {
  81 + var t_swi = e.switch_list;
  82 + if (t_swi) t_swi = JSON.parse(t_swi)
  83 + if (t_swi) {
  84 + th.setData({sys_switch: t_swi});
  85 + var user_tool = [];
  86 + if (t_swi.usertool) user_tool = JSON.parse(t_swi.usertool);
  87 + th.setData({c_list: user_tool});
  88 +
  89 + if (parseInt(t_swi.rank_switch) == 2) {
  90 + var userInfo = th.data.userInfo;
  91 + if (userInfo && userInfo.card_field != null && userInfo.card_field != undefined && userInfo.card_field != "") {
  92 + var now = ut.gettimestamp();
  93 + var str = userInfo.card_expiredate;
  94 + var end = new Date(str);
  95 + end = Date.parse(end) / 1000;
  96 + //---判断是不是有过期---
  97 + if (now < end) {
  98 + th.setData({
  99 + is_dengji: 1
  100 + })
  101 + } else {
  102 + th.setData({
  103 + is_dengji: 3
  104 + })
  105 + }
  106 + } else {
  107 + th.setData({
  108 + is_dengji: 2
  109 + })
  110 + }
  111 + }
  112 + }
  113 + })
  114 +
  115 + //--我的权益初始化是否有打勾,--
  116 + getApp().request.get("/api/weshop/users/grade/vip/init/get", {
  117 + data: {
  118 + storeId: os.stoid
  119 + },
  120 + success: function (rs) {
  121 + if (rs.data.code == 0 && rs.data.data.isBool) {
  122 + th.setData({is_init: 1});
  123 + /*-----获取会员权益列表-----*/
  124 + rq.get("/api/weshop/users/grade/vipprivilegeinfo/page", {
  125 + isShowLoading: 0,
  126 + data: {
  127 + storeId: os.stoid,
  128 + pageSize: 100
  129 + },
  130 + success: async function (res) {
  131 +
  132 + //判断有没有值,没有值返回
  133 + if (!ut.ajax_ok(res)) return false;
  134 +
  135 + var arr_data = res.data.data.pageData;
  136 + var gid = null,
  137 + g_qy_list = null,
  138 + cz_vals = 0,
  139 + need_money = 0,
  140 + backClass = null,
  141 + GradeName = '';
  142 +
  143 + var app_d = getApp().globalData;
  144 +
  145 + //获取成长值
  146 + await getApp().request.promiseGet("/api/weshop/users/grade/aftervipinfo/get", {
  147 + data: {
  148 + storeId: os.stoid,
  149 + userId: app_d.user_id
  150 + }
  151 + }).then(res => {
  152 + if (res.data.code == 0 && res.data.data) {
  153 + gid = res.data.data.GradeId;
  154 + var cz_val = res.data.data.GradeSum;
  155 + cz_vals = parseInt(cz_val);
  156 + GradeName = res.data.data.GradeName;
  157 + }
  158 + //th.setData({ cz_val: cz_vals, GradeName: res.data.data.GradeName, is_init: is_init, gradeId: gid});
  159 + })
  160 + var obj = {
  161 + cz_val: cz_vals,
  162 + GradeName: GradeName,
  163 + gradeId: gid,
  164 + is_grad_get: 1
  165 + };
  166 +
  167 + // 获取最大值
  168 + await getApp().request.promiseGet("/api/weshop/users/grade/vipgradeinfo/page", {
  169 + data: {
  170 + storeId: os.stoid
  171 + }
  172 + }).then(res => {
  173 + if (res.data.data)
  174 + backClass = res.data.data.pageData;
  175 + if (backClass) {
  176 + var full_cz_val = backClass[backClass.length - 1].BuyGradeSum;
  177 + obj.full_cz_val = full_cz_val
  178 + }
  179 + })
  180 +
  181 + //--会员权益中心页的修改--
  182 + for (var i in backClass) {
  183 + var im = backClass[i];
  184 + if (cz_vals < im.BuyGradeSum && need_money == 0) {
  185 + need_money = im.BuyGradeSum;
  186 + obj.need_money = need_money;
  187 + obj.nextGradeName=im.GradeName;
  188 + break;
  189 + }
  190 + }
  191 +
  192 + //获取当前等级的特权
  193 + await getApp().request.promiseGet("/api/weshop/users/grade/privilegeform/list/page", {
  194 + data: {
  195 + storeId: os.stoid,
  196 + GradeId: gid,
  197 + userId: app_d.user_id,
  198 + pageSize: 100
  199 + }
  200 + }).then(res => {
  201 + if (res.data.data)
  202 + g_qy_list = res.data.data.pageData;
  203 + });
  204 +
  205 + for (var i in arr_data) {
  206 + var item = arr_data[i];
  207 + var FromId = th.check_is_has_qy(item, g_qy_list);
  208 + arr_data[i].ishas = 0;
  209 + if (FromId) {
  210 + arr_data[i].ishas = 1;
  211 + arr_data[i].FromId = FromId;
  212 + }
  213 + }
  214 + arr_data.sort(function (a, b) {
  215 + return b.ishas - a.ishas
  216 + })
  217 +
  218 + //4个4个一组
  219 + var arr = new Array();
  220 + for (var i = 0; i < arr_data.length; i += 4) {
  221 + arr.push(arr_data.slice(i, i + 4));
  222 + }
  223 + //th.setData({ qy_list: arr, need_money: need_money});
  224 + obj.qy_list = arr;
  225 + obj.old_qy_list = arr_data;
  226 + th.setData(obj);
  227 + obj.is_init = 1;
  228 + th.setData({qy_data: obj})
  229 + }
  230 + })
  231 + }
  232 + }
  233 + })
  234 +
  235 + this.puls_user();
  236 + this.getVison();
  237 +
  238 + //-----获取线下会员的预存款和优惠券的数量-----
  239 + getApp().request.get("/api/weshop/users/getinfo/" + os.stoid + "/" + getApp().globalData.user_id, {
  240 + isShowLoading: 0,
  241 + success: function (su) {
  242 + if (su.data.code == 0 && su.data.data) {
  243 + var data = su.data.data;
  244 + if (!data) data = {};
  245 + data.cashcount = parseInt(data.cashcount);
  246 + th.setData({
  247 + udata: data,
  248 + });
  249 + }
  250 + }
  251 + })
  252 +
  253 + //-----获取会员提现金额-----
  254 + getApp().request.get("/api/weshop/withdrawals/summoney", {
  255 + isShowLoading: 0,
  256 + data: {
  257 + user_id: getApp().globalData.user_id,
  258 + store_id: os.stoid,
  259 + status: 0
  260 + },
  261 + success: function (su) {
  262 + if (su.data.code == 0) {
  263 +
  264 + let user = getApp().globalData.userInfo;
  265 + var yuer = parseFloat(user.user_money - user.frozen_money - su.data.data.summoney).toFixed(2);
  266 + th.setData({
  267 + txmon: su.data.data.summoney,
  268 + yuer: yuer
  269 + });
  270 + }
  271 + }
  272 + })
  273 +
  274 + /*-----获取会员包邮券的数量-----*/
  275 + getApp().request.get("/api/weshop/userfeemail/page", {
  276 + isShowLoading: 0,
  277 + data: {
  278 + user_id: getApp().globalData.user_id,
  279 + store_id: os.stoid,
  280 + pageSize: 1,
  281 + isuse: 0
  282 + },
  283 + success: function (su) {
  284 + if (su.data.code == 0) {
  285 + th.setData({
  286 + byquan: parseInt(su.data.data.total)
  287 + });
  288 + }
  289 + }
  290 + });
  291 +
  292 +
  293 + // 判断是否开启美业
  294 + getApp().promiseGet('/api/weshop/store/getTabSys/' + os.stoid, {}).then(res => {
  295 + if (res.data.code == 0) {
  296 + th.setData({
  297 + enableMeiye: res.data.data.EnableMeiye,
  298 + });
  299 + };
  300 + });
  301 +
  302 + //判断一下是不是助力活动
  303 + this.is_assistance();
  304 + //获取工具
  305 + await this.init_user_tool();
  306 + //获取一下生日相关
  307 + this.birthday();
  308 +
  309 + //获取自定义模板
  310 + await this.init_load();
  311 +
  312 + //自定义组件一定要等到页面加载完了,才来调用selectComponnent
  313 + setTimeout(function () {
  314 +
  315 + th.setData({ is_show_recommend:true })
  316 + if (getApp().globalData.user_id) getApp().requestCardNum(th);
  317 + var goods_list = th.selectComponent("#goods_recommend"); //组件的id
  318 +
  319 + if(goods_list){
  320 + goods_list.init();
  321 + goods_list.get_list();
  322 + }
  323 +
  324 + }, 1500)
  325 +
  326 + },
  327 +
  328 + //获取商品模块实例
  329 + newGoodsGroup() {
  330 + let arr = []
  331 + if (this.data.template_arr.length == 0) {
  332 + return
  333 + }
  334 + this.data.template_arr.map((item, index) => {
  335 + if (item.ename == 'goodsGroup') {
  336 + arr.push(`goodsGroup${index}`)
  337 + }
  338 + })
  339 + if (arr.length > 0) {
  340 + this.setData({
  341 + goodsGroupArr: arr
  342 + })
  343 + arr.map(item => {
  344 + let a = '.' + item
  345 + this[item] = this.selectComponent(a);
  346 + })
  347 + }
  348 + },
  349 + //当隐藏的时候就关闭计时器
  350 + onHide: function () {
  351 +
  352 + },
  353 + //同步初始加载
  354 + async init_load() {
  355 + var th = this;
  356 + //因为营销版本的功能包含了自定义模板的功能,是同时的
  357 + //读取全局是否有弄自定义模板
  358 + await getApp().request.promiseGet("/api/weshop/store_module/get/" + th.data.temp_id + "/8", {1: 1}).then(res => {
  359 + var data = res.data.data;
  360 + if (data) {
  361 + var temp_data = data;
  362 + wx.setNavigationBarTitle({
  363 + title: temp_data.page_title,
  364 + });
  365 + var t_arr = JSON.parse(temp_data.json_str);
  366 +
  367 + let obj={
  368 + share_title: temp_data.page_title,
  369 + template_arr: t_arr,
  370 + isTemplate: 1,
  371 + bgcolor_t: temp_data.bkcolor
  372 + };
  373 +
  374 + setTimeout(() => {
  375 + th.newGoodsGroup()
  376 + }, 1000)
  377 +
  378 + //---如果有设定顶部的颜色的时候--
  379 + if (temp_data.top_color && temp_data.top_color != 'null') {
  380 + var top_w_color = "#ffffff";
  381 + if (temp_data.top_word_color) {
  382 + top_w_color = temp_data.top_word_color
  383 + }
  384 + wx.setNavigationBarColor({
  385 + frontColor: top_w_color, // 必写项
  386 + backgroundColor: temp_data.top_color, // 必写项
  387 + })
  388 + obj.topwColor=top_w_color;
  389 + obj.topbgColor=temp_data.top_color;
  390 + }
  391 +
  392 + th.setData(obj);
  393 +
  394 + }
  395 + })
  396 + },
  397 +
  398 + onPullDownRefresh: function (e) {
  399 +
  400 + },
  401 +
  402 +
  403 + onShareAppMessage: async function (e) {
  404 + var th = this;
  405 + getApp().globalData.no_clear = 1;
  406 + getApp().getConfig(await function (e) {
  407 + th.setData({
  408 + store_config: e
  409 + })
  410 + }.bind(this))
  411 +
  412 + var url = `pages/template/index?sence=` + this.data.temp_id;
  413 + var userInfo = getApp().globalData.userInfo;
  414 + //是分销商才带
  415 + if (userInfo) {
  416 + url += "&first_leader=" + userInfo.user_id;
  417 + }
  418 +
  419 + var ob = {
  420 + title: this.data.share_title,
  421 + path: url,
  422 + //imageUrl:this.data.url+this.data.store_config.store_logo,
  423 + };
  424 + return ob;
  425 + },
  426 +
  427 + /**
  428 + * 用户分享朋友圈
  429 + */
  430 + async onShareTimeline() {
  431 +
  432 + var th = this;
  433 + getApp().globalData.no_clear = 1;
  434 + getApp().getConfig(await function (e) {
  435 + th.setData({
  436 + store_config: e
  437 + })
  438 + }.bind(this))
  439 + var {share_title, temp_id, store_config} = this.data;
  440 + var url = `sence=${temp_id}`;
  441 +
  442 + var userInfo = getApp().globalData.userInfo;
  443 + //是分销商才带
  444 + if (userInfo) {
  445 + url += "&first_leader=" + userInfo.user_id;
  446 + }
  447 +
  448 + var ob = {
  449 + title: share_title,
  450 + query: url,
  451 + //imageUrl:this.data.url+store_config.store_logo,
  452 + };
  453 + console.log(ob);
  454 + return ob;
  455 + },
  456 +
  457 + //---加载更多是靠这个函数----
  458 + onReachBottom: function () {
  459 + if (getApp().globalData.func_list) {
  460 + for (let i in getApp().globalData.func_list) {
  461 + let item = getApp().globalData.func_list[i];
  462 + item.re_show();
  463 + }
  464 + }
  465 +
  466 + //自定义时商品自动加载更多
  467 + let goodsGroupArr = this.data.goodsGroupArr
  468 + if (this.data.isTemplate && goodsGroupArr.length > 0) {
  469 + goodsGroupArr.map(item => {
  470 + this[item].automore()
  471 + })
  472 + }
  473 +
  474 + var e = getApp().globalData.userInfo;
  475 + if (e != undefined && e != null && e.mobile) {
  476 + var goods_list = this.selectComponent("#goods_recommend"); //组件的id
  477 + goods_list.init();
  478 + setTimeout(function () {
  479 + goods_list.get_list();
  480 + }, 300)
  481 + }
  482 +
  483 + },
  484 +
  485 + //-----Plus会员获取-----------
  486 + puls_user: function () {
  487 + var th = this;
  488 + getApp().request.get("/api/weshop/plus/vip/mem/list", {
  489 + data: {
  490 + storeId: os.stoid,
  491 + userId: getApp().globalData.user_id,
  492 + },
  493 + success: function (su) {
  494 + if (su.data.code == 0) {
  495 + var cardname = su.data.data[0].MemCardName;
  496 + th.setData({
  497 + pulscardname: cardname
  498 + });
  499 + }
  500 + }
  501 + });
  502 + },
  503 +
  504 + //判断会员是后有改服务项目
  505 + check_is_has_qy: function (item, g_qy_list) {
  506 + if (!g_qy_list) return false;
  507 +
  508 + for (var i in g_qy_list) {
  509 + var iter = g_qy_list[i];
  510 + if (iter.FormId == item.Id) return g_qy_list[i].FormId;
  511 + }
  512 + return false;
  513 + },
  514 +
  515 + //获取会员权益等级是否升级
  516 + getVison() {
  517 + let isRfm = wx.getStorageSync('isRfm')
  518 + if (isRfm) {
  519 + this.setData({
  520 + rfmName: '综合分'
  521 + })
  522 + } else {
  523 + rq.get(`/api/weshop/users/grade/vip/getSysPara?storeId=${os.stoid}&classInfo=IsUpRMF`, {
  524 + success: (res) => {
  525 + console.log('会员权益等级升级查询-------');
  526 + console.log(res);
  527 + if (res.data.code == 0 && res.data.data && res.data.data.IsBool) {
  528 + this.setData({
  529 + rfmName: '综合分'
  530 + })
  531 + wx.setStorageSync('isRfm', true)
  532 + }
  533 + }
  534 + })
  535 + }
  536 + },
  537 +
  538 +
  539 + //-- 初始话按钮图标,服务与工具的优化 ---
  540 + init_user_tool: async function () {
  541 + var d_list = null;
  542 + //读取user_tool按钮图标
  543 + await getApp().promiseGet("/api/weshop/userTool/page?pageSize=100&store_id=" + os.stoid, {}).then(res => {
  544 + if (ut.ajax_ok(res)) {
  545 + d_list = res.data.data.pageData;
  546 + }
  547 + })
  548 +
  549 + if (!d_list) return false;
  550 + //过滤掉分销关闭的
  551 + let distribut_end_time = await getApp().user_tools_endTime(2);//过滤掉分销到期的
  552 + await getApp().promiseGet("/api/weshop/storeDistribut/get/" + os.stoid, {}).then(rs => {
  553 + if (rs.data.code == 0 || !rs.data.data) {
  554 + var is_ok = 1;
  555 +
  556 + if (!distribut_end_time) {
  557 + is_ok = 0;
  558 + } else if (!rs.data.data) {
  559 + is_ok = 0;
  560 + } else {
  561 + var dis = rs.data.data;
  562 + if (!dis || dis.switch == 0) {
  563 + is_ok = 0;
  564 + }
  565 + }
  566 +
  567 + for (var i in d_list) {
  568 + if (d_list[i].name == '我的分销' && !is_ok) {
  569 + d_list.splice(i, 1);
  570 + }
  571 + }
  572 + }
  573 + })
  574 +
  575 + //判断有没有开AI测肤
  576 + await getApp().promiseGet("/api/weshop/wx/weappSkin/get/" + os.stoid, {}).then(rs => {
  577 + if (rs.data.code != 0 || !rs.data.data) {
  578 + for (var i in d_list) {
  579 + if (d_list[i].name == 'AI测肤') {
  580 + d_list.splice(i, 1);
  581 + }
  582 + }
  583 + }
  584 + })
  585 + this.setData({user_tool: d_list});
  586 + },
  587 +
  588 + // 判断助力活动是不是存在
  589 + is_assistance: function () {
  590 + var th = this, r = Math.random() * 100;
  591 + getApp().promiseGet("/api/weshop/marketing/help/act/judge", {
  592 + data: {
  593 + storeId: os.stoid,
  594 + userId: getApp().globalData.user_id,
  595 + r: r,
  596 + }
  597 + }).then(res => {
  598 + var code = res.data.code;
  599 + if (code == 0) {
  600 + th.setData({
  601 + is_assistance: 1
  602 + });
  603 + } else {
  604 + th.setData({
  605 + is_assistance: 0
  606 + });
  607 + }
  608 + })
  609 + },
  610 +
  611 + // 判断生日营销的页面是不是存在
  612 + birthday: function () {
  613 + var th = this;
  614 + getApp().request.get("/api/weshop/marketing/birthday/act/judge", {
  615 + data: { storeId: os.stoid, userId: getApp().globalData.user_id },
  616 + success: function (res) {
  617 + var code = res.data.code;
  618 + if (code == 0) {
  619 + var giftbagid = res.data.data.giftBagId;
  620 + var actId = res.data.data.id;
  621 + var actImg = res.data.data.actImg;
  622 + th.setData({ b_gift:{ giftbagid: giftbagid, actId: actId, actImg: actImg } });
  623 + }
  624 +
  625 + }
  626 + })
  627 + },
  628 +
  629 +
  630 +});
0 631 \ No newline at end of file
... ...
packageG/pages/user_template/index.json 0 → 100644
  1 +{
  2 + "navigationBarBackgroundColor": "#ff7295",
  3 + "navigationBarTextStyle": "white",
  4 + "usingComponents": {
  5 + "advertising":"/components/diy_advertising/diy_advertising",
  6 + "assist":"/components/diy_assist/diy_assist",
  7 + "diy_user_info":"/components/diy_user_info/diy_user_info",
  8 + "diy_user_order":"/components/diy_user_order/diy_user_order",
  9 + "diy_user_my_rights":"/components/diy_user_my_rights/diy_user_my_rights",
  10 + "diy_user_tools_services":"/components/diy_user_tools_services/diy_user_tools_services",
  11 + "com_top_nav": "/components/com_top_nav/com_top_nav",
  12 + "goods_recommend": "/components/goods_list/goods_list"
  13 + },
  14 + "enablePullDownRefresh": false,
  15 + "onReachBottomDistance":300,
  16 + "navigationStyle": "custom",
  17 + "navigationBarTitleText": "会员中心"
  18 +}
0 19 \ No newline at end of file
... ...
packageG/pages/user_template/index.wxml 0 → 100644
  1 +<com_top_nav title="会员中心" bcolor="{{topbgColor}}" color="{{topwColor}}"></com_top_nav>
  2 +<view class="container" style="background-color:{{bgcolor_t}}">
  3 + <block wx:for="{{template_arr}}" wx:key="{{index}}">
  4 + <view>
  5 + <!--广告组合-->
  6 + <block wx:if="{{item.ename=='advertising'}}">
  7 + <advertising object="{{item.content}}"></advertising>
  8 + </block>
  9 + <!--辅助空白-->
  10 + <block wx:if="{{item.ename=='white'}}">
  11 + <assist object="{{item.content}}"></assist>
  12 + </block>
  13 + <!-- 会员信息 -->
  14 + <block wx:if="{{item.ename=='userinfo'}}">
  15 + <diy_user_info object="{{item.content}}"
  16 + byquan="{{byquan}}" yuer="{{yuer}}" udata="{{udata}}"
  17 + qy_data="{{qy_data}}" pulscardname="{{pulscardname}}" rfmName="{{rfmName}}" ></diy_user_info>
  18 + </block>
  19 + <!-- 我的订单 -->
  20 + <block wx:if="{{item.ename=='order'}}">
  21 + <diy_user_order object="{{item.content}}" toji="{{toji}}" ></diy_user_order>
  22 + </block>
  23 + <!-- 我的权益 -->
  24 + <block wx:if="{{item.ename=='my_rights'}}">
  25 + <diy_user_my_rights object="{{item.content}}" qy_data="{{qy_data}}" b_gift="{{b_gift}}" ></diy_user_my_rights>
  26 + </block>
  27 + <!-- 工具与服务 -->
  28 + <block wx:if="{{item.ename=='tools_services'}}">
  29 + <diy_user_tools_services object="{{item.content}}" is_dengji="{{is_dengji}}" qy_data="{{qy_data}}"
  30 + enableMeiye="{{enableMeiye}}" f_user_tool="{{user_tool}}" c_list="{{c_list}}"></diy_user_tools_services>
  31 + </block>
  32 +
  33 + </view>
  34 + </block>
  35 +</view>
  36 +<!-- 蒙尘 -->
  37 +<block wx:if="{{is_disgraceful}}">
  38 + <view class="disgraceful">
  39 + <!-- 新人礼领取图片 -->
  40 + <view class="newreceive flex-center">
  41 + <view>
  42 + <navigator bindtap="new_nav">
  43 + <view class="flex-level">
  44 + <image class="receive" src="{{url}}{{new_image==''?'/miniapp/images/newpeople/newreceive.png':new_image}}"></image>
  45 + </view>
  46 + </navigator>
  47 + <view class="flex-level">
  48 + <image class="close" src="{{url}}/miniapp/images/plus/Close.png" bindtap="close_disgraceful"></image>
  49 + </view>
  50 + </view>
  51 + </view>
  52 + </view>
  53 +</block>
  54 +
  55 +<!-- 显示商品 -->
  56 +<!-- 显示推荐 -->
  57 +<view style='width:100%;height:73rpx;' wx:if="{{is_show_recommend}}">
  58 + <view class="xc-recommend-goods flex-center">
  59 + <view class="circle xc-small">
  60 + </view>
  61 + <view class="circle xc-zhong">
  62 + </view>
  63 + <view class="circle xc-big">
  64 + </view>
  65 + <view class="three-level-word xc-recommend">为你推荐</view>
  66 + <view class="circle xc-big">
  67 + </view>
  68 + <view class="circle xc-zhong">
  69 + </view>
  70 + <view class="circle xc-small" style='margin-left:15rpx;'>
  71 + <!-- </view> -->
  72 + </view>
  73 + </view>
  74 +</view>
  75 +<!-- 好物推荐 -->
  76 +<block wx:if="{{is_show_recommend}}">
  77 + <goods_recommend id="goods_recommend"></goods_recommend>
  78 +</block>
... ...
packageG/pages/user_template/index.wxss 0 → 100644
  1 +.pink-b {
  2 + background: #ff7295;
  3 +}
  4 +
  5 +.search-box {
  6 + position: fixed;
  7 + top: 0;
  8 + left: 0;
  9 + width: 100%;
  10 + height: 88rpx;
  11 + z-index: 10;
  12 +}
  13 +
  14 +.classify-img {
  15 + width: 50rpx;
  16 + height: 45rpx;
  17 +}
  18 +
  19 +.logo {
  20 + width: 48rpx;
  21 + height: 48rpx;
  22 + margin: 0 18rpx;
  23 + border-radius: 50%;
  24 + overflow: hidden;
  25 +}
  26 +
  27 +.search-inner {
  28 + display: flex;
  29 + align-items: center;
  30 + margin: 20rpx 25rpx;
  31 + width: 566rpx;
  32 + height: 58rpx;
  33 + border-radius: 29rpx;
  34 + background-color: #fff;
  35 + justify-content: center;
  36 +}
  37 +
  38 +.search-img {
  39 + width: 30rpx;
  40 + height: 30rpx;
  41 + margin-left: 36rpx;
  42 + display: flex;
  43 + align-items: center;
  44 + position: absolute;
  45 + left: 10%;
  46 +}
  47 +
  48 +.search-cont {
  49 + height: 58rpx;
  50 + width: 530rpx;
  51 + padding-left: 12rpx;
  52 + line-height: 58rpx;
  53 + font-size: 24rpx;
  54 + color: #666;
  55 + margin-left: 56rpx;
  56 +}
  57 +
  58 +.search-fixed {
  59 + background: #ff7295;
  60 +}
  61 +
  62 +.swiper_box {
  63 + width: 100%;
  64 + height: auto;
  65 +}
  66 +
  67 +.s_prom {
  68 + width: 100%;
  69 + height: 340rpx;
  70 +}
  71 +
  72 +.s_proms {
  73 + width: 100%;
  74 + height: 590rpx;
  75 +}
  76 +
  77 +.slide-image {
  78 + width: 100%;
  79 + display: inline-block;
  80 + overflow: hidden;
  81 + border-radius: 14rpx;
  82 + height: auto;
  83 +}
  84 +
  85 +.venues_box {
  86 + background-color: #fff;
  87 + padding: 20rpx 10rpx;
  88 +}
  89 +
  90 +.venues_item {
  91 + display: block;
  92 + float: left;
  93 + width: 20%;
  94 + text-align: center;
  95 + margin: 25rpx 0;
  96 +}
  97 +
  98 +.venues_item image {
  99 + vertical-align: middle;
  100 + width: 90rpx;
  101 + height: 90rpx;
  102 + border: 0;
  103 +}
  104 +
  105 +.venues_item view {
  106 + font-size: 26rpx;
  107 + margin-top: 10rpx;
  108 +}
  109 +
  110 +.choice_box {
  111 + font-size: 14px;
  112 +}
  113 +
  114 +.choice_box .choice_list .choice_item {
  115 + width: 368rpx;
  116 + float: left;
  117 + margin: 2rpx;
  118 + background-color: #fff;
  119 +}
  120 +
  121 +.choice_box .choice_list image {
  122 + width: 100%;
  123 + height: auto;
  124 +}
  125 +
  126 +.title-img {
  127 + margin-top: 110rpx;
  128 + margin-bottom: 15rpx;
  129 + height: auto;
  130 +}
  131 +
  132 +.choice_box .choice_list .title {
  133 + height: 36rpx;
  134 + line-height: 36rpx;
  135 + /* font-weight: bold; */
  136 + text-align: left;
  137 + color: #333;
  138 + margin-left: 20rpx;
  139 + font-size: 30rpx;
  140 +}
  141 +
  142 +.choice_box .choice_list .choice_footer {
  143 + display: block;
  144 + margin-top: 20rpx;
  145 + margin-left: 15rpx;
  146 + position: relative;
  147 + height: 74rpx;
  148 + line-height: 17rpx;
  149 +}
  150 +
  151 +.choice_box .choice_list .choice_footer .price {
  152 + color: #f23030;
  153 + height: 10px;
  154 +}
  155 +
  156 +.choice_box .choice_list .choice_footer .similer {
  157 + position: absolute;
  158 + bottom: 0;
  159 + right: 0;
  160 + text-align: center;
  161 + color: #686868;
  162 + width: fit-content;
  163 + line-height: 30rpx;
  164 + border: 1rpx solid #bfbfbf;
  165 + padding: 1rpx 6rpx;
  166 + border-radius: 5rpx;
  167 +}
  168 +
  169 +.section {
  170 + margin-top: 20rpx;
  171 + background-color: #fff;
  172 +}
  173 +
  174 +.section-title {
  175 + padding-top: 30rpx;
  176 + height: 54rpx;
  177 + line-height: 54rpx;
  178 + font-size: 36rpx;
  179 + font-weight: 700;
  180 + color: #333;
  181 + text-align: center;
  182 + letter-spacing: 3rpx;
  183 +}
  184 +
  185 +.section-subtitle {
  186 + line-height: 0;
  187 + width: 340rpx;
  188 + height: 16rpx;
  189 + padding-bottom: 20rpx;
  190 + margin: 0 auto;
  191 +}
  192 +
  193 +.seckill {
  194 + margin-top: 20rpx;
  195 + background-color: #fff;
  196 + padding-bottom: 30rpx;
  197 +}
  198 +
  199 +.seckill-time {
  200 + display: flex;
  201 + justify-content: space-between;
  202 + padding: 0 30rpx;
  203 + align-items: center;
  204 + height: 72rpx;
  205 + color: #333;
  206 + margin-bottom: 20rpx;
  207 +}
  208 +
  209 +.sk-tips {
  210 + font-size: 36rpx;
  211 + font-weight: bold;
  212 + margin-right: 20rpx;
  213 +}
  214 +
  215 +.sk-time {
  216 + position: relative;
  217 + display: inline-block;
  218 + font-size: 24rpx;
  219 + width: 36rpx;
  220 + line-height: 36rpx;
  221 + background-color: #333;
  222 + margin-right: 20rpx;
  223 + color: #fff;
  224 + text-align: center;
  225 +}
  226 +
  227 +.sk-time::before {
  228 + content: ':';
  229 + position: absolute;
  230 + right: -13rpx;
  231 + top: 0;
  232 + color: #333;
  233 + font-weight: bold;
  234 +}
  235 +
  236 +.sk-time:last-child::before {
  237 + content: '';
  238 +}
  239 +
  240 +.seckill-time>navigator {
  241 + font-size: 28rpx;
  242 +}
  243 +
  244 +.sk-pic {
  245 + width: 28rpx;
  246 + height: 28rpx;
  247 + vertical-align: top;
  248 +}
  249 +
  250 +.seckill-list {
  251 + overflow: hidden;
  252 +}
  253 +
  254 +/* .seckill-list navigator {
  255 + width: 236rpx; margin-right: 10rpx; position: relative;
  256 +} */
  257 +
  258 +.seckill-list view {
  259 + height: 62rpx;
  260 + padding: 0 10rpx;
  261 + line-height: 33rpx;
  262 + overflow: hidden;
  263 + font-size: 28rpx;
  264 + width: 203rpx;
  265 +}
  266 +
  267 +.seckill-list view.imgview {
  268 + width: 203rpx;
  269 + height: 210rpx;
  270 + position: relative;
  271 + overflow: hidden;
  272 +}
  273 +
  274 +.imgview image {
  275 + width: 203rpx;
  276 + height: 203rpx;
  277 + border-radius: 10rpx;
  278 +}
  279 +
  280 +.seckill-list view.djs_view {
  281 + background: rgba(9, 9, 9, 0.5);
  282 + color: #fff;
  283 + font-size: 20rpx;
  284 + width: 216rpx;
  285 + height: 36rpx;
  286 + line-height: 36rpx;
  287 + position: absolute;
  288 + bottom: 0;
  289 + left: 10rpx;
  290 + z-index: 5;
  291 + text-align-last: center;
  292 +}
  293 +
  294 +.seckill-list image.status_img {
  295 + width: 100rpx;
  296 + height: 35rpx;
  297 + position: absolute;
  298 + top: 0rpx;
  299 + left: 10rpx;
  300 + z-index: 5;
  301 +}
  302 +
  303 +.seckill-list view.status_view {
  304 + width: 60rpx;
  305 + height: 60rpx;
  306 + text-align: center;
  307 + line-height: 60rpx;
  308 + position: absolute;
  309 + background: #e9030d;
  310 + color: #fff;
  311 + font-size: 18rpx;
  312 + top: 5rpx;
  313 + right: 10rpx;
  314 + z-index: 5;
  315 + border-radius: 50%;
  316 + padding: 0;
  317 +}
  318 +
  319 +.xiafa {
  320 + text-decoration: line-through;
  321 + font-size: 10px;
  322 + color: #999;
  323 + margin-left: 10rpx;
  324 +}
  325 +
  326 +.shelue {
  327 + /* text-overflow: -o-ellipsis-lastline;
  328 + overflow: hidden;
  329 + text-overflow: ellipsis;
  330 + display: -webkit-box;
  331 + -webkit-line-clamp: 2;
  332 + -webkit-box-orient: vertical; */
  333 + white-space: nowrap;
  334 + text-overflow: ellipsis;
  335 + overflow: hidden;
  336 +}
  337 +
  338 +.meiz {
  339 + padding: 0 10rpx;
  340 + background: #c4182e;
  341 + color: #fff;
  342 + height: 18px;
  343 + line-height: 18px;
  344 + margin-top: -10rpx;
  345 + border-radius: 10rpx;
  346 +}
  347 +
  348 +.dengj {
  349 + padding: 0 10rpx;
  350 + background: #ffd700;
  351 + color: #fff;
  352 + height: 18px;
  353 + line-height: 18px;
  354 + margin-top: -10rpx;
  355 + border-radius: 10rpx;
  356 +}
  357 +
  358 +.kongge {
  359 + width: 20rpx;
  360 +}
  361 +
  362 +.choice_footer .ys {
  363 + color: #999;
  364 + margin-top: 20rpx;
  365 + font-size: 11px;
  366 + margin-left: 5rpx;
  367 +}
  368 +
  369 +.p_swiper {
  370 + display: flex;
  371 +}
  372 +
  373 +.p_swiper .un_line {
  374 + text-decoration: line-through;
  375 + font-size: 22rpx;
  376 + color: #b2a2c2;
  377 +}
  378 +
  379 +.seckill-list view.co-red2 {
  380 + font-size: 22rpx;
  381 + color: #c2aebb;
  382 + margin-top: -8rpx;
  383 +}
  384 +
  385 +.seckill-list view.cantuan {
  386 + width: 72rpx;
  387 + height: 36rpx;
  388 + text-align: center;
  389 + line-height: 36rpx;
  390 + position: absolute;
  391 + background: #e9030d;
  392 + color: #fff;
  393 + font-size: 18rpx;
  394 + bottom: 30rpx;
  395 + right: 10rpx;
  396 + z-index: 5;
  397 + border-radius: 5rpx;
  398 + padding: 0;
  399 +}
  400 +
  401 +.arrow-right {
  402 + width: 24rpx;
  403 + height: 24rpx;
  404 +}
  405 +
  406 +.pd-view {
  407 + height: 80rpx;
  408 +}
  409 +
  410 +.xc-grow-ups {
  411 + margin-left: 8rpx;
  412 + margin-top: 6rpx;
  413 +}
  414 +
  415 +.xc-top-img {
  416 + width: 100%;
  417 + top: -1rpx;
  418 + height: 315rpx;
  419 +}
  420 +
  421 +.classify-frame {
  422 + line-height: 25rpx;
  423 +}
  424 +
  425 +.slide-image-frame {
  426 + width: 95%;
  427 + margin: auto;
  428 + border-radius: 10rpx;
  429 +}
  430 +
  431 +.xc-hook {
  432 + width: 52rpx;
  433 + height: 52rpx;
  434 +}
  435 +
  436 +.margin-left {
  437 + margin-left: 10rpx;
  438 +}
  439 +
  440 +.xc-class-img {
  441 + width: 83rpx;
  442 + height: 83rpx;
  443 +}
  444 +
  445 +.xc-class-frame {
  446 + line-height: 40rpx;
  447 + margin-top: 40rpx;
  448 + margin-bottom: 20rpx;
  449 +}
  450 +
  451 +.xc-title-img {
  452 + height: 220rpx;
  453 + width: 100%;
  454 + border-radius: 15rpx;
  455 +}
  456 +
  457 +.title-img-frame {
  458 + width: 94%;
  459 + margin: auto;
  460 + margin-top: 30rpx;
  461 + padding-bottom: 10rpx;
  462 +}
  463 +
  464 +.seckill-list {
  465 + line-height: 24rpx;
  466 +}
  467 +
  468 +.seckill-lists {
  469 + line-height: 30rpx;
  470 +}
  471 +
  472 +.xc-marfin-right {
  473 + margin-right: 8rpx;
  474 +}
  475 +
  476 +.classname .clock-img {
  477 + width: 36rpx;
  478 + height: 36rpx;
  479 + margin-right: 10rpx;
  480 +}
  481 +
  482 +.classname .seckill-ttitle-img {
  483 + width: 150rpx;
  484 + height: 40rpx;
  485 +}
  486 +
  487 +.seckill-ttitle-img.height {
  488 + height: 35rpx;
  489 +}
  490 +
  491 +.split-line {
  492 + width: 100%;
  493 + height: 10rpx;
  494 + background: #eee;
  495 +}
  496 +
  497 +.mar-top10 {
  498 + margin-top: 10rpx;
  499 +}
  500 +
  501 +.classname .user-img {
  502 + width: 30rpx;
  503 + height: 30rpx;
  504 + margin-left: 20rpx;
  505 + margin-right: 10rpx;
  506 +}
  507 +
  508 +.user-frame {
  509 + /* border-left: 5rpx solid #eee; */
  510 + height: 35rpx;
  511 + line-height: 35rpx;
  512 + margin-left: 10rpx;
  513 +}
  514 +
  515 +.user-name {
  516 + width: 66rpx;
  517 + border-left: 5rpx solid #eee;
  518 +}
  519 +
  520 +/* 团购列表 */
  521 +
  522 +.kill-item {
  523 + display: flex;
  524 + justify-content: space-between;
  525 + background-color: #fff;
  526 + padding: 10rpx 10rpx;
  527 + margin-bottom: 10rpx;
  528 + border-radius: 10rpx;
  529 + height: 249rpx;
  530 + align-items: center;
  531 +}
  532 +
  533 +.kill-pic {
  534 + width: 215rpx;
  535 + height: 215rpx;
  536 + position: relative;
  537 +}
  538 +
  539 +.teamheight {
  540 + height: 289rpx;
  541 + border-bottom: 6rpx solid #eee;
  542 +}
  543 +
  544 +.kill-cont {
  545 + width: 440rpx;
  546 + height: 215rpx;
  547 + margin-left: 16rpx;
  548 +}
  549 +
  550 +.goods-name {
  551 + max-height: 60rpx;
  552 + font-size: 24rpx;
  553 + color: #555;
  554 + line-height: 55rpx;
  555 +}
  556 +
  557 +.xc-team-img {
  558 + width: 38rpx;
  559 + height: 45rpx;
  560 + left: -1rpx;
  561 + top: -16rpx;
  562 +}
  563 +
  564 +.tneirong {
  565 + color: #fff;
  566 + font-size: 20rpx;
  567 + border-radius: 20rpx;
  568 + padding-left: 32rpx;
  569 + padding-right: 15rpx;
  570 + padding-bottom: 2rpx;
  571 + height: 28rpx;
  572 + line-height: 28rpx;
  573 + white-space: nowrap;
  574 +}
  575 +
  576 +.xc-people-val-frame {
  577 + border: 3rpx solid #d60021;
  578 + border-radius: 8rpx;
  579 + white-space: nowrap;
  580 + height: 28rpx;
  581 +}
  582 +
  583 +.xc-people-val-frame .val-img {
  584 + width: 33rpx;
  585 + height: 28rpx;
  586 + border-radius: 8rpx;
  587 + margin-left: -2rpx;
  588 +}
  589 +
  590 +.people-img {
  591 + width: 20rpx;
  592 + height: 20rpx;
  593 +}
  594 +
  595 +.goods-num {
  596 + height: 50rpx;
  597 + display: flex;
  598 + justify-content: space-between;
  599 + margin-top: 10rpx;
  600 + font-size: 24rpx;
  601 + color: #999;
  602 +}
  603 +
  604 +.xc-top15 {
  605 + padding-top: 15rpx;
  606 + margin-top: 25rpx;
  607 +}
  608 +
  609 +.underline {
  610 + text-decoration: line-through;
  611 + color: #999;
  612 + font-size: 20rpx;
  613 + margin-left: 5rpx;
  614 + margin-top: 5rpx;
  615 +}
  616 +
  617 +.navigator.navwidth {
  618 + width: 100%;;
  619 +}
  620 +
  621 +.view.left {
  622 + padding: 0 5rpx;
  623 +}
  624 +
  625 +/* 热门好物 */
  626 +
  627 +.title .China {
  628 + width: 100%;
  629 + margin-top: 10rpx;
  630 + margin-bottom: 10rpx;
  631 + line-height: 0rpx;
  632 +}
  633 +
  634 +.title .China .line view {
  635 + width: 2rpx;
  636 +}
  637 +
  638 +.title .China .line {
  639 + height: 40rpx;
  640 + color: rgb(51, 51, 51);
  641 +}
  642 +
  643 +.title .China .line view {
  644 + border-left: 3rpx solid #000;
  645 + margin-left: 5rpx;
  646 +}
  647 +
  648 +.title .China .line .one {
  649 + height: 23rpx;
  650 +}
  651 +
  652 +.title .China .line .two {
  653 + height: 15rpx;
  654 +}
  655 +
  656 +.title .China .line .three {
  657 + height: 18rpx;
  658 +}
  659 +
  660 +.title .China .Recommend {
  661 + margin: 0rpx 20rpx;
  662 + font-size: 28rpx;
  663 + line-height: 39rpx;
  664 + font-weight: bold;
  665 +}
  666 +
  667 +.title .english .silk {
  668 + width: 214rpx;
  669 + height: 2rpx;
  670 + background-color: #000;
  671 +}
  672 +
  673 +.title .english .esh {
  674 + margin: 0rpx 15rpx;
  675 +}
  676 +
  677 +.collects {
  678 + margin-top: 40rpx;
  679 +}
  680 +
  681 +.hang {
  682 + width: 100%;
  683 + margin: auto;
  684 + padding-left: 21rpx;
  685 +}
  686 +
  687 +.hang .collect {
  688 + width: 347rpx;
  689 + height: 571rpx;
  690 + border-radius: 25rpx;
  691 + border: 1rpx solid rgb(214, 214, 214);
  692 + overflow: hidden;
  693 + margin-right: 14rpx;
  694 + margin-bottom: 5rpx;
  695 +}
  696 +
  697 +.collect .bottom {
  698 + padding: 0rpx 20rpx;
  699 +}
  700 +
  701 +.collect .sp {
  702 + width: 100%;
  703 + height: 326rpx;
  704 +}
  705 +
  706 +.collect .money {
  707 + margin-top: 60rpx;
  708 + margin-bottom: 18rpx;
  709 + line-height: 28rpx;
  710 + align-items: baseline;
  711 +}
  712 +
  713 +.collect .money view {
  714 + line-height: 28rpx;
  715 +}
  716 +
  717 +.collect .money .flex {
  718 + font-weight: bold;
  719 +}
  720 +
  721 +.collect .money .flex .fs24 {
  722 + padding-top: 5rpx;
  723 +}
  724 +
  725 +.collect .Discount {
  726 + width: 156rpx;
  727 + height: 28rpx;
  728 + border-radius: 20rpx;
  729 + background-color: rgb(56, 56, 56);
  730 + font-size: 18rpx;
  731 + color: rgb(255, 255, 255);
  732 +}
  733 +
  734 +.collect .Discount image {
  735 + height: 18rpx;
  736 + width: 18rpx;
  737 + line-height: 28rpx;
  738 + margin-right: 3rpx;
  739 +}
  740 +
  741 +.collect.ml20 {
  742 + margin-left: 13rpx;
  743 +}
  744 +
  745 +.fs24.dollar {
  746 + padding: 0rpx;
  747 +}
  748 +
  749 +.money .price {
  750 + margin-left: 12rpx;
  751 + text-decoration: line-through;
  752 + line-height: 23rpx;
  753 +}
  754 +
  755 +.province {
  756 + line-height: 26rpx;
  757 +}
  758 +
  759 +.nothing {
  760 + height: 75rpx;
  761 + width: 100%;
  762 +}
  763 +
  764 +.nothing .no_content {
  765 + margin: 0rpx 11rpx;
  766 + color: rgb(138, 138, 138);
  767 +}
  768 +
  769 +.nothing .Foil {
  770 + width: 80rpx;
  771 + height: 2rpx;
  772 + background-color: rgb(138, 138, 138);
  773 +}
  774 +
  775 +.goods_name {
  776 + height: 70rpx;
  777 + margin-top: 6rpx;
  778 +}
  779 +
  780 +.seckill-list view.translation {
  781 + width: 108rpx;
  782 + height: 20rpx;
  783 + border-radius: 20rpx;
  784 + background: #dfdfdf;
  785 + margin: auto;
  786 + line-height: 20rpx;
  787 +}
  788 +
  789 +.seckill-list view.spot {
  790 + width: 10rpx;
  791 + height: 10rpx;
  792 + padding: 0rpx;
  793 +}
  794 +
  795 +.spot {
  796 + width: 10rpx;
  797 + height: 10rpx;
  798 + padding: 0rpx;
  799 +}
  800 +
  801 +.translation {
  802 + width: 108rpx;
  803 + height: 20rpx;
  804 + border-radius: 20rpx;
  805 + background: #e0e0e0;
  806 + line-height: 20rpx;
  807 + bottom: 45rpx;
  808 + left: 43%;
  809 +}
  810 +
  811 +.translation {
  812 + width: 108rpx;
  813 + height: 20rpx;
  814 + border-radius: 20rpx;
  815 + background: #b8d1d6;
  816 + line-height: 20rpx;
  817 + bottom: 12rpx;
  818 + left: 43%;
  819 +}
  820 +
  821 +.translations {
  822 + width: 108rpx;
  823 + height: 20rpx;
  824 + border-radius: 20rpx;
  825 + background: #dfdfdf;
  826 + line-height: 20rpx;
  827 + bottom: 25rpx;
  828 + left: 43%;
  829 +}
  830 +
  831 +.mar-top {
  832 + margin-top: 20rpx;
  833 +}
  834 +
  835 +.mar-tops {
  836 + margin-top: 10rpx;
  837 +}
  838 +
  839 +.pt_active {
  840 + animation: sport 0.5s;
  841 +}
  842 +
  843 +@keyframes sport {
  844 + 0% {
  845 + transform: translateY(80rpx);
  846 + opacity: 0;
  847 + }
  848 +
  849 + 100% {
  850 + transform: translateY(0rpx);
  851 + opacity: 1;
  852 + }
  853 +}
  854 +
  855 +.m-left {
  856 + margin-left: 18rpx;
  857 +}
  858 +
  859 +.martop4 {
  860 + margin-top: 4rpx;
  861 +}
  862 +
  863 +.time-blue {
  864 + margin-left: 10rpx;
  865 +}
  866 +
  867 +.is_seckill_height {
  868 + height: 40rpx;
  869 + line-height: 32rpx;
  870 +}
  871 +
  872 +.assemble-top-border {
  873 + border-top: 10rpx solid #eee;
  874 + padding-top: 20rpx;
  875 + margin-top: 0rpx;
  876 +}
  877 +
  878 +.gonju {
  879 + max-width: 120rpx;
  880 +}
  881 +
  882 +.disgraceful {
  883 + position: fixed;
  884 + width: 100%;
  885 + height: 100%;
  886 + left: 0rpx;
  887 + bottom: 0rpx;
  888 + background-color: rgba(182, 174, 174, 0.753);
  889 + z-index: 10;
  890 +}
  891 +
  892 +.newreceive {
  893 + position: fixed;
  894 + width: 100%;
  895 + height: 100%;
  896 + z-index: 11;
  897 +}
  898 +
  899 +.receive {
  900 + width: 570rpx;
  901 + height: 750rpx;
  902 +}
  903 +.close{
  904 + width: 70rpx;
  905 + height: 70rpx;
  906 + margin-top: 30rpx;
  907 +}
  908 +.swiper{
  909 + height: 250rpx;
  910 + padding-bottom:30rpx;
  911 +}
  912 +.container{ overflow: hidden;}
  913 +
  914 +.xc-recommend-goods {
  915 + width: 100%;
  916 + height: 73rpx;
  917 + margin: auto;
  918 +}
  919 +
  920 +.xc-small {
  921 + width: 10rpx;
  922 + height: 10rpx;
  923 + background: #ff5f80;
  924 + margin-top: 6rpx;
  925 +}
  926 +
  927 +.xc-zhong {
  928 + width: 15rpx;
  929 + height: 15rpx;
  930 + background: #ff5f80;
  931 + margin-left: 12rpx;
  932 + margin-top: 2rpx;
  933 +}
  934 +
  935 +.xc-big {
  936 + width: 17rpx;
  937 + height: 17rpx;
  938 + background: #ff5f80;
  939 + margin-left: 15rpx;
  940 +}
0 941 \ No newline at end of file
... ...
pages/cart/cart4/cart4.js deleted
1   -var r = getApp(), e = r.request,rq=e,oo=r.globalData,os=oo.setting, t = require("../../../utils/pay.js");
2   -require("../../../utils/util.js");
3   -
4   -Page({
5   - data: {
6   - url: r.globalData.setting.url,
7   - resourceUrl: r.globalData.setting.resourceUrl,
8   - imgUrl: r.globalData.setting.imghost,
9   - order: {},
10   - type:2,
11   - is_pt:0,
12   - pt_order_sn:"",
13   - },
14   - onLoad: function(r) {
15   - console.log("onLoad");
16   - var t = this,th=t, data = null, order_m=0;
17   - //----正常单1 和 组合单2---
18   - if(r.type==1){
19   - data = { order_sn: r.order_sn, store_id: os.stoid, order_status:0};
20   - t.setData({ type:1});
21   - }else{
22   - data = { parent_sn: r.order_sn, store_id: os.stoid, order_status: 0};
23   - }
24   -
25   - /*-----读取订单信息-----*/
26   - rq.get("/api/weshop/order/page",{
27   - data:data,
28   - success:function(rs){
29   -
30   - if(rs.data.code==0 && rs.data.data && rs.data.data.pageData && rs.data.data.pageData.length>0){
31   - //支付的金额
32   - rs.data.data.pageData.forEach(function(ie,ind){
33   - order_m+=ie.order_amount;
34   - })
35   - t.setData({
36   - order: {
37   - order_sn: r.order_sn, order_amount: order_m,
38   - }
39   - });
40   -
41   - //如果是拼单就不做处理
42   - if(rs.data.data.pageData[0].pt_prom_id>0) {
43   - th.data.pt_order_sn=rs.data.data.pageData[0].order_sn; th.data.is_pt=1;
44   - t.setData({ type:1});
45   - return false;
46   - }
47   - //如果是只有一单的情况下,就是单号=组合单号
48   - if(rs.data.data.pageData[0]['order_sn']==rs.data.data.pageData[0]['parent_sn']){
49   - t.setData({ type:2});
50   - }
51   - }
52   - }
53   - })
54   -
55   - /*-------
56   - r.order_sn ? e.get("/api/weshop/order/get/{store_id}/{order_id}", {
57   - data: {
58   - order_sn: r.order_sn
59   - },
60   - failRollback: !0,
61   - success: function(e) {
62   - var a = e.data.result.order_amount;
63   - parseFloat(a) < .01 && t.jumpSuccess(), t.setData({
64   - order: {
65   - order_sn: r.order_sn,
66   - order_amount: a
67   - }
68   - });
69   - }
70   - }) : (parseFloat(r.order_amount) < .01 && this.jumpSuccess(), this.setData({
71   - order: r
72   - }));--------*/
73   - },
74   - payment: function() {
75   - var r = this,th=r;
76   - this.data.order && parseFloat(this.data.order.order_amount) < .01 ? this.jumpSuccess() : t.pay(this.data.order.order_sn, function() {
77   - r.jumpPaymentPage();
78   - },null,os.stoid,th.data.type);
79   - },
80   - jumpSuccess: function() {
81   - r.showSuccess("下单成功", function() {
82   - var r = getCurrentPages();
83   - "pages/cart/cart/cart" == r[r.length - 2].route ? wx.redirectTo({
84   - url: "/pages/user/order_list/order_list?type=2"
85   - }) : (wx.setStorageSync("order:order_list:update", !0), wx.setStorageSync("order:order_detail:update", !0),
86   - wx.navigateBack());
87   - });
88   - },
89   - jumpPaymentPage: function() {
90   - wx.setStorageSync("order:order_list:update", !0);
91   - if(this.data.is_pt==1){
92   - wx.redirectTo({
93   - url: "/packageG/pages/team/team_success/team_success?ordersn=" + this.data.pt_order_sn,
94   - });
95   -
96   - }else {
97   - wx.redirectTo({
98   - url: "/packageG/pages/payment/payment/payment?order_sn=" + this.data.order.order_sn + "&order_amount=" + this.data.order.order_amount
99   - });
100   - }
101   - }
102   -});
pages/cart/cart4/cart4.json deleted
1   -{
2   - "navigationBarTitleText": "支付",
3   - "usingComponents": {
4   - "warn": "/components/long_warn/long_warn"
5   - }
6   -}
7 0 \ No newline at end of file
pages/cart/cart4/cart4.wxml deleted
1   -<view class="order-list pd-bg-fff">
2   - <view class="order-id">
3   - <view>订单号</view>
4   - <view class="co-red">{{order.order_sn}}</view>
5   - </view>
6   - <view class="order-price">
7   - <view>订单金额</view>
8   - <view class="co-red">{{order.order_amount}}元</view>
9   - </view>
10   -</view>
11   -<view class="pay-way pd-bg-fff">
12   - <view class="title">支付方式</view>
13   - <view class="pay-item">
14   - <view class="pay-img">
15   - <image class="wh100" src="{{imgUrl}}/miniapp/images/wx-pay.png"></image>
16   - </view>
17   - <view>微信支付</view>
18   - </view>
19   - <view bindtap="payment" class="pay-now">立即支付</view>
20   -</view>
21   -
22   -
23   -<warn id="warn"></warn>
pages/cart/cart4/cart4.wxss deleted
1   -.order-list {
2   - margin-bottom: 20rpx;
3   -}
4   -
5   -.order-list>view {
6   - display: flex;
7   - justify-content: space-between;
8   - align-items: center;
9   - height: 96rpx;
10   - font-size: 32rpx;
11   - color: #444;
12   -}
13   -
14   -.title {
15   - height: 70rpx;
16   - line-height: 70rpx;
17   - font-size: 32rpx;
18   - color: #444;
19   -}
20   -
21   -.pay-way {
22   - padding-bottom: 150rpx;
23   -}
24   -
25   -.pay-item {
26   - display: flex;
27   - height: 100rpx;
28   - align-items: center;
29   - border-bottom: 1px solid #f5f5f5;
30   - font-size: 28rpx;
31   - color: #444;
32   -}
33   -
34   -.pay-img {
35   - width: 60rpx;
36   - height: 52rpx;
37   - margin: 0 20rpx;
38   -}
39   -
40   -.pay-now {
41   - width: 680rpx;
42   - height: 88rpx;
43   - line-height: 88rpx;
44   - text-align: center;
45   - margin: 150rpx auto 0;
46   - background-color: #f23030;
47   - color: #fff;
48   - border-radius: 10rpx;
49   -}
50 0 \ No newline at end of file
pages/goods/goodsInfo/goodsInfo.js
... ... @@ -7721,6 +7721,16 @@ Page({
7721 7721  
7722 7722 if (!item) return false;
7723 7723  
  7724 + if (item.is_no_dis_nor || (item.is_no_dis_act && !th.data.is_normal)){
  7725 + wx.showToast({
  7726 + title: "该门店不可售,请选择其他门店",
  7727 + icon: 'none',
  7728 + duration: 2000
  7729 + });
  7730 + return false;
  7731 + }
  7732 +
  7733 + if (!th.data.sele_g) return false;
7724 7734 //判断门店的配送方式是不是匹配
7725 7735 var g_distr_type = th.data.sele_g.distr_type;
7726 7736 if (item.distr_type != 0 && g_distr_type != 0 && item.distr_type != g_distr_type) {
... ...
pages/goods/goodsList/goodsList.js
... ... @@ -282,7 +282,7 @@ Page({
282 282 arr[i].content=content;
283 283  
284 284  
285   - //--送礼包--
  285 + //--送--
286 286 if(parseInt(content.is_coupon)) {
287 287 //-- 获取 --
288 288 await getApp().request.promiseGet("/api/weshop/prom/coupon/get/"+content.coupon, {
... ...
pages/team/team_show/team_show.js
1   -var t = require("../../../utils/util.js"),
2   - ut = t,
3   - e = require("../../../utils/common.js"),
4   - a = require("../../../utils/wxParse/wxParse.js"),
5   - s = getApp(),
6   - i = s.request,
7   - rq = i,
8   - oo = s.globalData,
9   - o = s.globalData.setting,
10   - os = o;
11   -var regeneratorRuntime = require('../../../utils/runtime.js');
12   -
13   -
14 1 Page({
15   - data: {
16   -
17   - num: 1, //输入框值 加减之间的值
18   - minusStatus: 'disable', //禁用按钮
19   - ii_endname: 'disable', //吐司的禁用按钮
20   - pd_xx: false, //弹框
21   - buy_start_date: null, //转换完的时间
22   - ssl: null,
23   - yijian: false, //一键参加按钮显示隐藏
24   -
25   - //选择门店
26   - qh: true, //取货
27   - xz: false, //选择
28   - one: false, //第一层显示隐藏
29   - se: false, //已选择的值
30   - list: false, //第二层显示隐藏
31   - ssl_child: null, //第二层的值
32   - sele_dl_name: "", //选择的值
33   - end_name: "", //最后显示的值
34   -
35   - ii: 0, //选择门店显示隐藏
36   - zk: true, //展开列表显示隐藏
37   - stoid: o.stoid,
38   - hiddenName: false, //收起列表显示隐藏
39   - teamlist: null, //活动主表
40   - teamgroup: null, //活动从表
41   - goods: null, //商品数据
42   - pindGoods: null, //拼单数据
43   - imageurl: os.imghost, //有礼派图片地址
44   - team_id: 0, //支付是否成功
45   - listno: "", //订单编号
46   -
47   - //选择的门店id
48   - pick_id:0,
49   - //会员团满团时的判断
50   - tg_arr:null,
51   - //是否显示
52   - is_show:0,
53   - //是不是团结束
54   - is_group_end:0,
55   - //团结束的提示语句
56   - end_text:"",
57   - //是开团或者参团,0参团,1开团(但是,商家团还是参团)
58   - is_kt_or_ct:0,
59   - //判断redis的数组
60   - redis_arr:null,
61   -
62   - iurl:os.imghost,
63   -
64   -
65   - openSpecModal: !1,
66   - openSpecModal_pt: !1, //拼单的弹起,
67   -
68   -
69   - //门店相关
70   - ismend: 0,
71   - is_sec_mend: 0,
72   - sto_sele_name: "", //选中的门店名称
73   - sto_sele_id: "", //选中的门店id
74   - sto_sele_distr: "", //选择的门店的配送方式
75   - is_show_sto_cat: 1, //是否显示门店分类
76   - only_pk: null,
77   - all_sto: null,
78   - sec_sto: null, //选择了的门店分类
79   - pickpu_list: null, //读出的所有门店list
80   - def_pickpu_list: null, //一开始5个门店list
81   - sec_pick_index: 0, //第二级门店选择ID
82   - fir_pick_index: 0, //第一级门店选择ID
83   - all_pick_list:null,//所有的门店先记录起来
84   - bconfig:null,
85   - def_pick_store: null, // 默认的门店
86   - fir_def_store:null, //客户默认的门店的
87   - lat: null, //维度
88   - lon: null, //经度
89   -
90   - is_get_local_ok: 0, //获取坐标是否完成
91   -
92   - sort_store: 0, //门店分类
93   - choice_sort_store: 0, //选择分类门店
94   - template_id:[],//订阅消息id
95   - },
  2 + data: {},
96 3 onLoad: async function(options) {
97   - wx.setNavigationBarTitle({ title: "拼团订单",})
98   - //var postdata=getApp().globalData.to_group;
99   - var postdata=options;
100   - var tg_id = postdata.tg_id, first_leader=options.first_leader,goods_id=options.goods_id;
101   - //如果tg_id是空的话
102   - if(tg_id==null ||goods_id==null){
103   - var tg_id_str=decodeURIComponent(postdata.scene);
104   - tg_id_str=tg_id_str.split("_");
105   - console.log(tg_id_str.length);
106   - //tg_id_str[0] teamgroup.id tg_id_str[1] user_id tg_id_str[2] goods_id
107   - switch(tg_id_str.length){
108   - case 1:
109   - tg_id=tg_id_str[0];
110   - break;
111   - case 2:
112   - tg_id=tg_id_str[0];
113   - first_leader=tg_id_str[1];
114   - break;
115   - case 3:
116   - tg_id=tg_id_str[0];
117   - first_leader=tg_id_str[1];
118   - goods_id=tg_id_str[2];
119   - break;
120   - }
121   - }
122   - //--判断一下是不是导购--
123   - if(first_leader){
124   - getApp().globalData.first_leader=first_leader;
125   - //调用接口判断是不是会员
126   - getApp().request.promiseGet("/api/weshop/shoppingGuide/get/"+os.stoid+"/"+first_leader,{}).then(res=>{
127   - if(res.data.code==0){
128   - getApp().globalData.guide_id=res.data.data.id;
129   - getApp().globalData.guide_pick_id= res.data.data.pickup_id
130   - }
131   - })
132   - }
133   - this.setData({tg_id: tg_id,goods_id});
134   - getApp().globalData.to_group=null;
135   -
136   - var th=this;
137   - getApp().getConfig2(function(e) {
138   - var json_d = JSON.parse(e.switch_list);
139   - th.setData({ bconfig: e,sys_switch:json_d});
140   - th.wait_for_store_config(); //获取默认的门店
141   - })
142   - try {
143   - let template_id =await getApp().get_template_id('1023')
144   - this.setData({
145   - template_id
146   - })
147   - } catch (error) {}
148   -
  4 + getApp().globalData.ts_trans_data=options;
  5 + getApp().goto('/packageG/pages/team/team_show/team_show?transfer=1');
149 6 },
150   -
151 7 //显示加载
152   - onShow:function(){
153   - //-- 看一下隐私政策要不要显示 --
154   - var privacy_pop = this.selectComponent("#privacy_pop"); //组件的id
155   - if (privacy_pop) {
156   - privacy_pop.check_pri_show();
157   - }
158   -
159   - getApp().check_can_share();
160   - var tg_id = this.data.tg_id,th=this;
161   - this.init(tg_id);
162   - },
163   -
164   - //c点击打开拼团弹窗
165   - cpd: function() {
166   - this.setData({ pd_xx: true,})
167   - },
168   -
169   - //点击关闭拼团弹窗
170   - close_pt_xx: function() {
171   - this.setData({ pd_xx: false, })
172   - },
173   - //天天拼团订阅消息提醒
174   - sendsm: function (ee) {
175   - let th = this;
176   - var template_id = this.data.template_id;
177   - // //授权订阅
178   - wx.requestSubscribeMessage({
179   - tmplIds: template_id,
180   - success(res) {
181   - th.cyijian(ee);
182   - },
183   - fail(res) {
184   - th.cyijian(ee);
185   - }
186   - })
187   - },
188   - //按钮点击一键参加团按钮
189   - cyijian: function(e) {
190   - //--先判断会员状态--
191   - var user_info=getApp().globalData.userInfo;
192   - if(user_info==null || user_info.mobile==undefined || user_info.mobile=="" || user_info.mobile==null){
193   - wx.navigateTo({ url: '/packageE/pages/togoin/togoin', })
194   - return false;
195   - }
196   -
197   - var is_kt_or_ct=e.currentTarget.dataset.isct;
198   - this.setData({
199   - yijian: true,is_kt_or_ct:is_kt_or_ct,
200   - })
201   - },
202   - //关闭展开列表
203   - click: function(e) {
204   - this.setData({
205   - hiddenName: !this.data.hiddenName,
206   - zk: !this.data.zk,
207   - })
208   - },
209   - //打开收起拼团列表
210   - czk: function(e) {
211   - this.setData({
212   - zk: !this.data.zk,
213   - hiddenName: !this.data.hiddenName,
214   - })
215   - },
216   - //关闭购买页面
217   - cbcou: function(e) {
218   - this.setData({
219   - yijian: false,
220   - })
221   -
222   - },
223   - //qh点击取货
224   - cqh: function(e) {
225   - if(this.data.ssl) {
226   - this.setData({
227   - qh: false,
228   - xz: true,
229   - one: true,
230   - })
231   - }else{
232   - this.setData({
233   - qh: false,
234   - xz: true,
235   - one: false,
236   - list:1,
237   - })
238   - }
239   -
240   - },
241   -
242   - //cxz点击选择门店
243   - cxz: function(e) {
244   - this.setData({
245   - qh: true,
246   - xz: false,
247   - one: false,
248   - })
249   - },
250   - //ccc点击选择的
251   - sel: function(e) {
252   - this.setData({
253   - list: false,
254   - se: false,
255   - one: true,
256   - xz: true,
257   - })
258   - },
259   - //list点击底二层
260   - clist: function(e) {
261   - var i = e.currentTarget.dataset.end;
262   - var pick_id = e.currentTarget.dataset.pick_id;
263   - var pick_dis = e.currentTarget.dataset.pick_dis;
264   -
265   - this.setData({
266   - end_name: i,
267   - pick_id: pick_id,
268   - ii: 1,
269   - qh: true,
270   - se: false,
271   - list: false,
272   - pick_dis: pick_dis
273   - })
274   - },
275   -
276   - //点击第一层
277   - setchild: function(e) {
278   - var ind = e.currentTarget.dataset.bindex;
279   - var nn = e.currentTarget.dataset.bname;
280   - console.log(nn);
281   - var list = this.data.ssl[ind].s_arr;
282   - this.setData({
283   - ssl_child: list,
284   - sele_dl_name: nn,
285   - xz: false,
286   - one: false,
287   - list: true,
288   - se: true
289   - });
290   - },
291   -
292   - //事件处理函数
293   - /*点击减号*/
294   - bindMinus: function() {
295   - var num = this.data.num;
296   - if (num > 1) {
297   - num--;
298   - }
299   - var minusStatus = num > 1 ? 'normal' : 'disable';
300   - this.setData({
301   - num: num,
302   - minusStatus: minusStatus,
303   - })
304   - },
305   -
306   - /*点击加号*/
307   - bindPlus: function() {
308   - var th=this;
309   - var num = this.data.num;
310   - var ii = this.data.ii;
311   - var minusStatus = num > 1 ? 'normal' : 'disable';
312   -
313   - num++;
314   - //要判断库存数量,限购数量
315   - th.check_num(num,minusStatus);
316   -
317   - },
318   -
319   - async check_num(num,minusStatus){
320   -
321   - var gd=this.data.goods;
322   - var th=this;
323   - var user_id=getApp().globalData.user_id;
324   - var promgoodsbuynum=0;
325   - var goodsbuynum=0;
326   - getApp().request.promiseGet("/api/weshop/ordergoods/getUserBuyGoodsNum", {
327   - data: {
328   - store_id: os.stoid,
329   - user_id: user_id,
330   - goods_id: gd.goods_id,
331   - prom_type: gd.prom_type,
332   - prom_id: gd.prom_id, isnew:1
333   -
334   - },
335   - }).then(res=>{
336   - var buy_num_data=res.data.data;
337   - if(buy_num_data.promgoodsbuynum) promgoodsbuynum=buy_num_data.promgoodsbuynum;
338   - goodsbuynum=buy_num_data.goodsbuynum;
339   - })
340   -
341   - //先判断限购
342   - if (num+goodsbuynum>gd.viplimited && gd.viplimited>0) {
343   - getApp().confirmBox("超出商品限购");
344   - return false;
345   - }
346   - if (num+promgoodsbuynum>th.data.teamlist.buy_limit && th.data.teamlist.buy_limit>0) {
347   - getApp().confirmBox("超出活动限购");
348   - return false;
349   - }
350   - //判断库存
351   - if ( num>gd.store_count) {
352   - getApp().confirmBox("超出商品库存");
353   - return false;
354   - }
355   - var r_num=0;
356   - await getApp().request.promiseGet("/api/weshop/activitylist/getActLen/" + os.stoid + "/6/" + th.data.teamlist.id, {
357   - 1: 1
358   - }).then(res => {
359   - var em = res;
360   - if (em.data.code == 0) {
361   - r_num=em.data.data;
362   - }
363   - })
364   - //--判断库存---
365   - if ( num>r_num) {
366   - getApp().confirmBox("超出商品库存");
367   - return false;
368   - }
369   -
370   - this.setData({
371   - num: num,
372   - minusStatus: minusStatus,
373   - })
374   -
375   - },
376   -
377   - /*输入框事件*/
378   - bindManual: function(e) {
379   - var num = e.detail.value;
380   - var minusStatus = num > 1 ? 'normal' : 'disable';
381   - this.setData({
382   - num: num,
383   - minusStatus: minusStatus
384   - })
385   - },
386   -
387   - //---------------初始化代码----------------
388   - async init(tg_id) {
389   - var goods_id = 0, //商品ID,
390   - pageteam = null, //
391   - original_img = null, //商品图片
392   - ee = this,
393   - ordertx = [],
394   - teamlist = null, //活动表
395   - goods = null, //商品
396   - teamgroup = null, //活動从表
397   - max_num = 0,
398   - min_price = 0,
399   - th=this,
400   - that=th,
401   - flag=null;
402   - await getApp().request.promiseGet("/api/weshop/teamlist/pageteam/2",{
403   - data:{
404   - store_id: os.stoid,
405   - is_end: 0,
406   - is_show: 1,
407   - user_id: getApp().globalData.user_id,
408   - pageSize:1000
409   - }
410   - }).then(res=>{
411   - let pd_list=res.data.data.pageData;
412   - if(res.data.code==0 && pd_list.length>0){
413   - flag =pd_list.some(pd=>{
414   - // if(th.data.goods_id){
415   - return pd.goods_id==th.data.goods_id;
416   - // }
417   - })
418   - }
419   - })
420   - if(!flag){
421   - wx.showToast({title: "当前会员身份不符,无法参与", icon: 'none', duration: 3000});
422   - setTimeout(function () {
423   - ut.wx_back();
424   - }, 1000)
425   - return false;
426   - }
427   -
428   - //获取活动从表信息team_id,listno团编号(券号)
429   - await getApp().request.promiseGet("/api/weshop/teamgroup/get/"+os.stoid+"/"+tg_id, {
430   - }).then(res => {
431   -
432   - if(res.data.code !=0 ){
433   - getApp().showWarning(res.data.msg);
434   - th.go_back();
435   - return false;
436   - }
437   -
438   - if(res.data && res.data.data ) {
439   -
440   - teamgroup = res.data.data;
441   - //获取当前时间,并且判断剩余时间
442   - var nt = ut.gettimestamp();
443   - var buy_start_date = ut.formatTime(teamgroup.buy_start_date, "yyyy-MM-dd hh:mm:ss");
444   - ee.setData({
445   - pindGoods: teamgroup,
446   - buy_start_date: buy_start_date
447   - });
448   -
449   - if(nt>teamgroup.kt_end_time) {
450   - th.setData({is_group_end:1,end_text:"团期已经结束"})
451   - }
452   - if(teamgroup.state==1) {
453   - th.setData({is_group_end:1,end_text:"团期已经结束"})
454   - }
455   - if(teamgroup.state==3 || teamgroup.state==4 || teamgroup.state==5 ) {
456   - th.setData({is_group_end:2,end_text:"团期已满"})
457   - }
458   -
459   - }
460   - })
461   -
462   - if(!teamgroup || !teamgroup.listno){
463   - ut.m_toast('未找到团号');
464   - th.go_back();
465   - return false;
466   - }
467   -
468   - //判断是不是要继续的开关
469   - var is_ok=1;
470   -
471   - //要先读取订单,看自己有没有买过该团的商品
472   - await getApp().request.promiseGet("/api/weshop/order/page", {
473   - data: {
474   - pt_prom_id:teamgroup.team_id,
475   - user_id: oo.user_id,
476   - store_id: os.stoid,
477   - pageSize: 1,
478   - page: 1
479   - }
480   - }).then(res => {
481   - var e=res;
482   - if (e.data.code != 0) {
483   - getApp().showWarning("读取订单失败");
484   - th.go_back();
485   - is_ok=0;
486   - return fasle;
487   - }
488   - //--跳转到已经购买的情况--
489   - if (e.data.data.pageData.length > 0) {
490   - var odr = e.data.data.pageData[0];
491   - //还未支付
492   - if (odr.pt_status == 0 && odr.order_status == 1) {
493   - wx.navigateTo({
494   - url: "/pages/user/order_detail/order_detail?order_id=" + odr.order_id,
495   - });
496   - is_ok=0;
497   - }else if (odr.pt_status == 1 && odr.order_status == 1){
498   - wx.navigateTo({
499   - url: "/packageG/pages/team/team_success/team_success?ordersn=" + odr.order_sn,
500   - });
501   - is_ok=0;
502   - }
503   - }
504   - })
505   - if(!is_ok) return false;
506   -
507   - //获取活动表的信息根据活动team_id
508   - await getApp().request.promiseGet("/api/weshop/teamlist/get/" + os.stoid + "/" + teamgroup.team_id, {
509   - data: {}
510   - }).then(res => {
511   - if (res.data.code == 0) {
512   - teamlist = res.data.data;
513   - goods_id = res.data.data.goods_id;
514   - //----------查看阶梯团------------
515   - if (teamlist.ct_rylist != "" && teamlist.ct_rylist != null && teamlist.ct_rylist != undefined) {
516   - var ct_rylist = JSON.parse(teamlist.ct_rylist);
517   - var max = 0; var pri = 0;
518   - ct_rylist.forEach(function (val, ind) {
519   - if (val.rynum > max) {
520   - max = val.rynum;
521   - pri = val.price;
522   - }
523   - })
524   - max_num = max;
525   - min_price = pri;
526   - }
527   -
528   - }
529   - })
530   -
531   - if(!teamlist){
532   - getApp().showWarning("未找到活动");
533   - is_ok=0;
534   - }else{
535   - if(teamlist.is_end==1){
536   - getApp().showWarning("拼单活动已经结束"); is_ok=0;
537   - }
538   - var now=ut.gettimestamp();
539   - if(teamlist.end_time<now && is_ok){
540   - getApp().showWarning("拼单活动已经结束"); is_ok=0;
541   - }
542   - }
543   - if(!is_ok) {
544   - th.go_back();
545   - return false;
546   - }
547   -
548   - //多少人参团头像
549   - await getApp().request.promiseGet("/api/weshop/order/pagePtList", {
550   - data: {
551   - store_id: o.stoid,
552   - pt_listno: teamgroup.listno,
553   - }
554   - }).then(res => {
555   - ordertx = res.data.data.pageData;
556   - })
557   -
558   - //获取商品信息
559   - await getApp().request.promiseGet("/api/weshop/goods/get/" + os.stoid + "/" + goods_id, {
560   - }).then(res => {
561   - //商品地址
562   - original_img = ee.data.imageurl + res.data.data.original_img,
563   - goods = res.data.data
564   - })
565   -
566   - //显示商品规格
567   - var gg = "";
568   - if(goods.goods_spec=="null" || goods.goods_spec==null ) goods.goods_spec="";
569   - if(goods.goods_color=="null" || goods.goods_color==null) goods.goods_color="";
570   -
571   - if (goods.goods_spec != "" && goods.goods_color != "") {
572   - gg = goods.goods_spec + "/" + goods.goods_color;
573   - } else if (goods.goods_spec != "" || goods.goods_color != "") {
574   - gg = goods.goods_spec + goods.goods_color;
575   - } else {
576   - gg = "规格1";
577   - }
578   - goods.gg = gg;
579   -
580   - //只装5个
581   - var ordertx2 = [], sf_num = 0, ct_nun = teamlist.ct_num;
582   - if (max_num) {
583   - ct_nun = parseInt(max_num);
584   - if (ct_nun < ordertx.length) ct_nun = ordertx.length;
585   - }
586   -
587   - if (ct_nun > 5) ct_nun = 5;
588   - for (var i = 0; i < ct_nun; i++) {
589   - if (i >= ordertx.length) sf_num++
590   - else
591   - ordertx2.push(ordertx[i]);
592   - }
593   -
594   - var sf_arr = [];
595   - for (var i = 0; i < sf_num; i++) {
596   - sf_arr.push(i);
597   - }
598   -
599   -
600   -
601   - if(th.data.is_group_end==1 || th.data.is_group_end==2 ){
602   - getApp().confirmBox(th.data.end_text);
603   - wx.redirectTo({
604   - url: "/pages/goods/goodsInfo/goodsInfo?goods_id=" + goods.goods_id,
605   - });
606   - return false;
607   - }
608   -
609   - //--当是会员团的时候才显示倒计时多久可以参团--
610   - if(teamlist.kttype==2) {
611   - //显示判断多久才能购买商品,获取没有支付的会员
612   - await getApp().request.promiseGet("/api/weshop/teamgroup/getTeamUser/" + os.stoid + "/" + teamgroup.id, {
613   - 1: 1
614   - }).then(res => {
615   - var em = res;
616   - if (em.data.code == 0) {
617   - var tg_list = em.data.data.split("|");
618   - var t_obj = {};
619   - t_obj.order_id = tg_list[0];
620   - t_obj.time = parseFloat(tg_list[1]) + 5 * 60; //五分钟后
621   - t_obj.user_name = tg_list[2];
622   - th.setData({tg_arr: t_obj})
623   - }
624   - })
625   - }
626   -
627   - //获取大家都在团信息
628   - await getApp().request.promiseGet("/api/weshop/teamlist/pageteam/"+os.stoid, {
629   - data: {
630   - pageSize: 2,
631   - page: 1,
632   - store_id: 1,
633   - is_end: 0,
634   - is_show: 1
635   - }
636   - }).then(res => {
637   - if(ut.ajax_ok(res)){
638   - pageteam = res.data.data.pageData;
639   - }
640   - });
641   -
642   - //-- 获取用户的默认门店 --
643   - getApp().get_user_store(function(ee) {
644   - if(!ee) {
645   - th.data.fir_def_store={}; //赋值空对象
646   - return false;
647   - }
648   -
649   - if(getApp().globalData.is_dj_pk) th.setData({has_def:1})
650   - //--定时器推迟一下--
651   -
652   - var appd=getApp().globalData;
653   - var w_time = setInterval(function() {
654   - if (that.data.is_get_local_ok == 0) return false;
655   - if(!th.data.goods) return false;
656   - var g_distr_type=th.data.goods.distr_type;
657   - //--如果默认门店的配送方式不对,就不能被选择--
658   - if(ee.distr_type!=0 && g_distr_type!=0 && ee.distr_type!=g_distr_type ){
659   - //th.data.fir_def_store={}; //赋值空对象
660   - //return false;
661   - ee.is_no_dis=1;
662   - }
663   -
664   - clearInterval(w_time);
665   -
666   - var distance = null;
667   - var e=JSON.parse(JSON.stringify(ee));
668   -
669   - //如果有开启近距离的话,同时距离优不一样了
670   - if (that.data.lat != null) {
671   - //如果经纬度有变化的话
672   - if( appd.lat==that.data.lat && appd.lon==that.data.lon && e.distance>0 ){
673   - that.data.fir_def_store=e;
674   - that.setData({
675   - def_pick_store: e,
676   - sto_sele_name: e.pickup_name,
677   - sto_sele_id: e.pickup_id,
678   - sto_sele_distr: e.distr_type
679   - })
680   - }else{
681   - //要用接口是获取距离,js的计算不准
682   - getApp().request.promiseGet("/api/weshop/pickup/list",{
683   - data:{store_id:os.stoid,pickup_id:e.pickup_id,lat:th.data.lat,lon: th.data.lon,is_pos: 1},
684   - }).then(res=>{
685   - if(ut.ajax_ok(res)){
686   - e=res.data.data.pageData[0];
687   - if (e){
688   - appd.pk_store=e;
689   - that.data.fir_def_store=e;
690   - that.setData({
691   - def_pick_store: e,
692   - sto_sele_name: e.pickup_name,
693   - sto_sele_id: e.pickup_id,
694   - sto_sele_distr: e.distr_type
695   - })
696   - }
697   -
698   - }
699   - })
700   - }
701   -
702   - //e.distance = distance;
703   - appd.lat=that.data.lat;
704   - appd.lon=that.data.lon;
705   -
706   - }else{
707   - if (e) {
708   - e.distance = null;
709   - that.data.fir_def_store=e;
710   - that.setData({
711   - def_pick_store: e,
712   - sto_sele_name: e.pickup_name,
713   - sto_sele_id: e.pickup_id,
714   - sto_sele_distr: e.distr_type
715   - })
716   - }
717   - }
718   -
719   - }, 500)
720   -
721   - });
722   -
723   - //获取下redis长度,如果团已经弄完,或者拼单已经卖完
724   - //设置值
725   - ee.setData({
726   - ordertx2: ordertx2,
727   - ordertx: ordertx,
728   - teamlist: teamlist,
729   - teamgroup: teamgroup,
730   - goods: goods,
731   - pageteam: pageteam,
732   - image: original_img,
733   - is_show:1,
734   - sf_arr: sf_arr
735   - });
736   - ee.countDown2();
737   - //---设置门店---
738   - ee.get_sto();
739   - //---定时设置一下待支付的订单---
740   - ee.time_out();
741   - },
742   -
743   - onHide:function(){
744   - this.setData({is_show:0,});
745   - },
746   - go_back:function(){
747   - if(getCurrentPages()>1)
748   - wx.navigateBack({delta: 1})
749   - else
750   - wx.navigateTo({
751   - url: "/pages/index/index/index"
752   - });
753   - },
754   - //---小于10的格式化函数----
755   - timeFormat(param) {
756   - return param < 10 ? '0' + param : param;
757   - },
758   - countDown2() {
759   - var th = this;
760   - // 获取当前时间,同时得到活动结束时间数组
761   - var newTime = ut.gettimestamp();
762   - var o = this.data.pindGoods;
763   - var endTime = o.kt_end_time;
764   -
765   - let obj = null;
766   - // 如果活动未结束,对时间进行处理
767   - if (endTime - newTime > 0) {
768   - let time = (endTime - newTime);
769   - // 获取天、时、分、秒
770   - let day = parseInt(time / (60 * 60 * 24));
771   - let hou = parseInt(time % (60 * 60 * 24) / 3600);
772   - let min = parseInt(time % (60 * 60 * 24) % 3600 / 60);
773   - let sec = parseInt(time % (60 * 60 * 24) % 3600 % 60);
774   - obj = {
775   - day: this.timeFormat(day),
776   - hou: this.timeFormat(hou),
777   - min: this.timeFormat(min),
778   - sec: this.timeFormat(sec)
779   - }
780   - } else {
781   - //活动已结束,全部设置为'00'
782   - obj = {
783   - day: '00',
784   - hou: '00',
785   - min: '00',
786   - sec: '00'
787   - }
788   - }
789   - var txt = "pindGoods.djs";
790   - th.setData({
791   - obj: obj
792   - });
793   - setTimeout(th.countDown2, 1000);
794   - },
795   -
796   - //------去支付,购买-------
797   - go_pay:function () {
798   - var th=this;
799   - var def_pick_store=this.data.def_pick_store;
800   - if(def_pick_store && def_pick_store.pickup_id) {
801   - th.data.pick_id=def_pick_store.pickup_id; //选择门店
802   - th.data.end_name=def_pick_store.pickup_name;
803   - }
804   - if (!th.data.pick_id) return s.my_warnning("请选择门店", 0, th);
805   - if (th.data.pick_id==0) return s.my_warnning("请选择门店", 0, th);
806   -
807   - //----判断起购数----
808   - var qnum=parseFloat(th.data.teamlist.minbuynum);
809   - if(qnum>0 && qnum>th.data.num ){
810   - getApp().confirmBox("拼团商品至少要买"+qnum+"件!");
811   - return false;
812   - }
813   - //先判断团的redis数量
814   - this.buy_check_redis(function () {
815   - var arr=th.data.redis_arr;
816   - if(th.data.num>arr[0]){
817   - if(arr[0]>0){
818   - getApp().showWarning("超出活动库存");
819   - }else{
820   - getApp().showWarning("拼单已经抢光");
821   - }
822   - return false;
823   - }
824   - if(th.data.teamlist.kttype==2 && 1>arr[1]){
825   - getApp().showWarning("拼团已满");
826   - return false;
827   - }
828   -
829   - //--------------此时操作的数据------------
830   - var newd = {
831   - goods_id: th.data.goods.goods_id,
832   - goods_num: th.data.num,
833   - pick_id: th.data.pick_id,
834   - user_id: oo.user_id,
835   - store_id: th.data.stoid,
836   - goods_name: th.data.goods.goods_name,
837   - goods_sn: th.data.goods.goods_sn,
838   - };
839   -
840   - //---是不是从收藏夹出来的---
841   - if(th.data.c_guide_id){
842   - newd['guide_id'] = th.data.c_guide_id;
843   - newd['guide_type']=2;
844   -
845   - }else{
846   - if(getApp().globalData.guide_id){
847   - newd['guide_id'] = getApp().globalData.guide_id;
848   - newd['guide_type']=0;
849   -
850   - }
851   - }
852   -
853   - //-----拼团-----
854   - newd.goods_price = th.data.teamlist.price;
855   - newd.prom_type = 6;
856   - newd.prom_id = th.data.teamlist.id;
857   - newd.kt_type = th.data.teamlist.kttype; //开团类型
858   - newd.is_pt_tz = 0;
859   - newd.pick_name = th.data.end_name;
860   - newd.pick_dis = 1;
861   - newd.is_normal = 0;
862   - //判断开团还是参团
863   - switch (th.data.is_kt_or_ct) {
864   - case "0":
865   - //如果不是商家团,就要带团期号
866   - if(th.data.teamlist.kttype>1){
867   - newd.qh=th.data.teamgroup.listno;
868   - }
869   - break;
870   - case "1":
871   - //阶梯团和会员团都要设置is_pt_tz
872   - if (newd.kt_type > 1) {
873   - newd.is_pt_tz = 1; //开团类型
874   - }
875   - break;
876   - }
877   - newd['pick_dis'] = th.data.pick_dis;
878   -
879   - if(getApp().globalData.guide_id){
880   - newd['guide_id'] = getApp().globalData.guide_id;
881   - newd['guide_type']=0;
882   - }
883   -
884   - s.set_b_now(newd);
885   - wx.navigateTo({
886   - url: "/packageE/pages/cart/cart2_pt/cart2_pt?is_bnow=1&goods_id=" + th.data.goods.goods_id,
887   - });
888   - });
889   - },
890   -
891   - //购买前的判断redis
892   - async buy_check_redis(func){
893   - //获取redis中的数量
894   - var r_num=0,prom_type=6,prom_id=this.data.teamlist.id;
895   - await getApp().request.promiseGet("/api/weshop/activitylist/getActLen/" + os.stoid + "/" + prom_type + "/" + prom_id, {
896   - 1: 1
897   - }).then(res => {
898   - var em = res;
899   - if (em.data.code == 0) {
900   - r_num=em.data.data;
901   - }
902   - })
903   -
904   - //只有会员团要判断团的人数
905   - var gr_num=0,grp_id=this.data.teamgroup.id;
906   - if(this.data.teamlist.kttype==2){
907   - await getApp().request.promiseGet("/api/weshop/activitylist/getActTuanLen/" + os.stoid + "/" + grp_id, {
908   - 1: 1
909   - }).then(res => {
910   - var em = res;
911   - if (em.data.code == 0) {
912   - gr_num=em.data.data;
913   - }
914   - })
915   - }
916   - var arr=[];arr.push(r_num);arr.push(gr_num);
917   - this.data.redis_arr=arr;
918   - func();
919   - },
920   -
921   - //定时设置一下待支付的订单
922   - time_out:function () {
923   - var list=this.data.tg_arr,th=this;
924   - if(!list) return false;
925   - // 获取当前时间,同时得到活动结束时间数组
926   - var newTime = ut.gettimestamp();
927   - var endTime = list.time;
928   -
929   - let obj = null;
930   - // 如果活动未结束,对时间进行处理
931   - if (endTime - newTime > 0) {
932   - let time = (endTime - newTime);
933   - // 获取天、时、分、秒
934   - let day = parseInt(time / (60 * 60 * 24));
935   - let hou = parseInt(time % (60 * 60 * 24) / 3600);
936   - let min = parseInt(time % (60 * 60 * 24) % 3600 / 60);
937   - let sec = parseInt(time % (60 * 60 * 24) % 3600 % 60);
938   - obj = {
939   - day: th.timeFormat(day),
940   - hou: th.timeFormat(hou),
941   - min: th.timeFormat(min),
942   - sec: th.timeFormat(sec)
943   - }
944   - } else {
945   - //活动已结束,全部设置为'00'
946   - obj = {
947   - day: '00',
948   - hou: '00',
949   - min: '00',
950   - sec: '00'
951   - }
952   -
953   - //调用接口清理订单,并且返回redis数量
954   - th.back_order(function () {
955   - th.setData({ tg_arr: null});
956   - });
957   - return false;
958   - }
959   - var txt = "pindGoods.djs";
960   - th.setData({
961   - r_obj: obj
962   - });
963   - setTimeout(th.time_out, 1000);
964   - },
965   -
966   - //清理订单,并且返回redis数量ss
967   - back_order:function (func) {
968   - var th=this;
969   - //---取消订单---
970   - getApp().request.delete("/api/weshop/order/cancelTeamOrder/"+th.data.stoid+"/"+th.data.tg_arr.order_id,{
971   - data:{},
972   - success: function(t) {
973   - if(t.data.code==0){
974   - th.setData({tg_arr:null})
975   - }
976   - },
977   - })
978   - },
979   -
980   - go_goodsinfo:function (e) {
981   - var gid=e.currentTarget.dataset.gid;
982   - var url="/pages/goods/goodsInfo/goodsInfo?goods_id="+gid;
983   - wx.navigateTo({ url: url, }) //跳到非tabbar页
984   - },
985   -
986   - gohome:function(){
987   - getApp().goto("/pages/index/index/index");
988   - },
989   -
990   - //-----图片失败,默认图片-----
991   - bind_bnerr: function (e) {
992   - var _errImg = e.target.dataset.errorimg;
993   - var _errObj = {};
994   - _errObj[_errImg] = this.data.iurl + "/miniapp/images/default_g_img.gif";
995   - this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ;
996   - },
997   -
998   - //------ 分享配置 --------
999   - onShareAppMessage: function (e) {
1000   - getApp().globalData.no_clear=1;
1001   - var curPage=this;
1002   - var pagePath = curPage.route; //当前页面url
1003   - if (pagePath.indexOf('/') != 0) {
1004   - pagePath = '/' + pagePath;
1005   - }
1006   - var url=pagePath;
1007   -
1008   - //--分享图片--
1009   - img=th.data.iurl+th.data.teamlist.share_imgurl;
1010   - //--把会员分享出去--
1011   - if(getApp().globalData.user_id){
1012   - if(url.indexOf("?")>0)
1013   - url+="&first_leader="+getApp().globalData.user_id;
1014   - else
1015   - url+="?first_leader="+getApp().globalData.user_id;
1016   - }
1017   -
1018   - if(url.indexOf('goods_id')==-1){
1019   - url+="&goods_id="+this.data.goods.goods_id;
1020   - }
1021   - if(url.indexOf('tg_id')==-1){
1022   - url+="&tg_id="+this.data.teamgroup.id;
1023   - }
1024   -
1025   -
1026   - return {
1027   - path:url,
1028   - title: "商品分类",
1029   - imageUrl: img,
1030   - }
1031   - },
1032   -
1033   -
1034   -
1035   -
1036   -
1037   - closeSpecModal: function() {
1038   - this.setData({
1039   - yijian: false
1040   - });
1041   - },
1042   -
1043   - close_popup: function() {
1044   - this.setData({
1045   - showStore: true
1046   - });
1047   - },
1048   -
1049   -
1050   -
1051   - //-- 选择门店。此时的门店选择与门店有关系 --
1052   - choice_store: function(ee) {
1053   -
1054   - //--先判断会员状态--
1055   - var user_info = getApp().globalData.userInfo;
1056   - if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) {
1057   - wx.navigateTo({
1058   - url: '/packageE/pages/togoin/togoin',
1059   - })
1060   - return false;
1061   - }
1062   -
1063   - var th = this;
1064   - var bconfig = th.data.bconfig;
1065   -
1066   - //如果开启了,则不在选择门店
1067   - if(this.data.sys_switch.is_pricing_open_store && getApp().globalData.pk_store){
1068   - return false;
1069   - }
1070   -
1071   - if(!th.data.only_pk && !th.data.def_pickpu_list){
1072   - getApp().confirmBox("门店库存不足", null, 25000, !1);
1073   - return false;
1074   - }
1075   - if(th.data.only_pk && !th.data.only_pk.length){
1076   - getApp().confirmBox("门店库存不足", null, 25000, !1);
1077   - return false;
1078   - }
1079   - if(th.data.def_pickpu_list && !th.data.def_pickpu_list.length){
1080   - getApp().confirmBox("门店库存不足", null, 25000, !1);
1081   - return false;
1082   - }
1083   -
1084   - if ( bconfig && bconfig.is_sort_storage) {
1085   - wx.getLocation({
1086   - type: 'gcj02',
1087   - success: function(res) {
1088   -
1089   - th.data.lat = res.latitude;
1090   - th.data.lon = res.longitude;
1091   - th.data.is_get_local_ok = 1;
1092   - th.setData({
1093   - is_gps: 1
1094   - });
1095   - //th.onShow();
1096   - th.get_sto();
1097   - },
1098   - fail: function(res) {
1099   - //th.onShow();
1100   - th.data.is_get_local_ok = 1;
1101   - th.get_sto();
1102   - if (res.errCode == 2) {
1103   - th.setData({
1104   - is_gps: 0
1105   - });
1106   - if (th.data.is_gps == 0) {
1107   - getApp().confirmBox("请开启GPS定位", null, 25000, !1);
1108   - }
1109   - } else {
1110   - th.setData({
1111   - is_gps: "3"
1112   - });
1113   - }
1114   -
1115   - }
1116   - })
1117   - }else{
1118   - th.data.is_get_local_ok = 1;
1119   - th.get_sto();
1120   - }
1121   -
1122   - this.setData({
1123   - store: 1,
1124   - yijian: false,
1125   - choice_sort_store:0
1126   - })
1127   -
1128   - },
1129   -
1130   -
1131   - //选择更多门店
1132   - more_store: function() {
1133   - this.setData({ sort_store: 1});
1134   - },
1135   -
1136   - // 返回按钮
1137   - returns: function() {
1138   - this.setData({
1139   - sort_store: 0,choice_sort_store: 0
1140   - });
1141   - },
1142   -
1143   -
1144   - //-- 等待获取定位系统 --
1145   - wait_for_store_config: function() {
1146   - var th = this;
1147   - var t_time = setInterval(function() {
1148   - if (th.data.bconfig == null) false;
1149   - var e = th.data.bconfig;
1150   - if (e && e.is_sort_storage) {
1151   - wx.getLocation({
1152   - type: 'gcj02',
1153   - success: function(res) {
1154   - th.data.lat = res.latitude;
1155   - th.data.lon = res.longitude;
1156   - th.data.is_get_local_ok = 1;
1157   - },
1158   - fail: function(res) {
1159   - if (res.errCode == 2) {
1160   - th.setData({
1161   - is_gps: 0
1162   - });
1163   - if (th.data.is_gps == 0) {
1164   - getApp().confirmBox("请开启GPS定位", null, 10000, !1);
1165   - }
1166   -
1167   - } else {
1168   - th.setData({
1169   - is_gps: "3"
1170   - });
1171   - }
1172   -
1173   - th.data.is_get_local_ok = 1;
1174   - }
1175   - })
1176   - } else {
1177   - th.data.is_get_local_ok = 1;
1178   - }
1179   - clearInterval(t_time);
1180   - }, 500)
1181   - },
1182   -
1183   -
1184   - //---------拿出门店分类和门店------------
1185   - get_sto(e) {
1186   - var th = this,that=this;
1187   - var timer_get = setInterval(function() {
1188   - if (th.data.is_get_local_ok == 0) return false;
1189   - if (!th.data.goods) return false;
1190   - var dd = null,
1191   - i = getApp().request;
1192   - var g_distr_type = th.data.goods.distr_type;
1193   - if (g_distr_type != 0) {
1194   - dd = {
1195   - store_id: o.stoid,
1196   - distr_type: g_distr_type,
1197   - isstop: 0,
1198   - is_pos: 1,
1199   - pageSize: 2000
1200   - }
1201   - } else {
1202   - dd = {
1203   - store_id: o.stoid,
1204   - isstop: 0,
1205   - is_pos: 1,
1206   - pageSize: 2000
1207   - }
1208   - }
1209   - //如果有距离的话
1210   - if (th.data.lat != null) {
1211   - dd.lat = th.data.lat;
1212   - dd.lon = th.data.lon;
1213   - }
1214   - clearInterval(timer_get);
1215   -
1216   - //如果会员是有默认的门店话
1217   - if(!th.data.def_pick_store && th.data.fir_def_store){
1218   - th.setData({def_pick_store:th.data.fir_def_store});
1219   - }
1220   -
1221   - //----------获取门店----------------
1222   - getApp().request.promiseGet("/api/weshop/pickup/list", {
1223   - data: dd,
1224   - }).then(res => {
1225   - var e = res;
1226   - if (e.data.code == 0 && e.data.data && e.data.data.pageData && e.data.data.pageData.length>0) {
1227   -
1228   - var pickup_ids=null;
1229   - //指定门店判断, 不是普通购买的时候,秒杀的时候,秒杀有指定门店
1230   - if( th.data.teamlist.pick_up_lists){
1231   - pickup_ids=th.data.teamlist.pick_up_lists
1232   - }
1233   -
1234   - //-- 如果有指定门店的时候 --
1235   - if(pickup_ids){
1236   - var ok_arr=[];
1237   - for (let i in e.data.data.pageData) {
1238   - let ite = e.data.data.pageData[i];
1239   - //-- 查找一下门店有没有在 --
1240   - var idx=pickup_ids.findIndex(function (e){
1241   - return e.pickup_id==ite.pickup_id;
1242   - })
1243   - if(idx>-1){
1244   - ok_arr.push(ite)
1245   - }
1246   - }
1247   -
1248   - //判断会员的默认的门店是不是匹配指定的门店
1249   - if (th.data.def_pick_store && JSON.stringify(th.data.def_pick_store) != '{}'){
1250   - //-- 查找一下门店有没有在 --
1251   - var idx1=pickup_ids.findIndex(function (e){
1252   - return e.pickup_id==th.data.def_pick_store.pickup_id;
1253   - })
1254   -
1255   - if(idx1<0){
1256   - th.data.def_pick_store.is_no_dis_act=1;
1257   - }else{
1258   - th.data.def_pick_store.is_no_dis_act=0;
1259   - }
1260   -
1261   - that.setData({
1262   - def_pick_store: th.data.def_pick_store
1263   - })
1264   -
1265   - }
1266   - e.data.data.pageData=ok_arr; //数组重新赋值
1267   - e.data.data.total=ok_arr.length; //数组的长度
1268   - }
1269   - else{
1270   - //-- 多规格指定门店优化 --
1271   - if (th.data.def_pick_store && JSON.stringify(th.data.def_pick_store) != '{}'){
1272   - th.data.def_pick_store.is_no_dis_act=0;
1273   - that.setData({
1274   - def_pick_store: th.data.def_pick_store
1275   - })
1276   - }
1277   - }
1278   -
1279   -
1280   -
1281   - var his_cate_num=0;
1282   - for(let i in e.data.data.pageData){
1283   - let item=e.data.data.pageData[i];
1284   - if(item.category_id>0){
1285   - his_cate_num=1;break;
1286   - }
1287   - }
1288   - e.his_cate_num=his_cate_num;
1289   -
1290   - //如果有开启距离的功能,没有设置默认门店,要用最近的门店作为默认门店
1291   - if(dd.lat && !th.data.def_pick_store && th.data.bconfig && th.data.bconfig.is_sort_storage){
1292   - th.setData({
1293   - def_pick_store:e.data.data.pageData[0],
1294   - sto_sele_name: e.data.data.pageData[0].pickup_name,
1295   - sto_sele_id: e.data.data.pageData[0].pickup_id,
1296   - sto_sele_distr: e.data.data.pageData[0].distr_type
1297   - });
1298   - th.data.fir_def_store=e.data.data.pageData[0];
1299   - }
1300   -
1301   - //-- 如果有默认选择门店的时候,要把默认门店放在第一位 --
1302   - if (th.data.def_pick_store && JSON.stringify(th.data.def_pick_store)!='{}'){
1303   - for (var k = 0; k < e.data.data.pageData.length; k++) {
1304   - if (e.data.data.pageData[k].pickup_id == th.data.def_pick_store.pickup_id) {
1305   - e.data.data.pageData.splice(k, 1); //删除
1306   - break;
1307   - }
1308   - }
1309   - e.data.data.pageData.splice(0, 0, th.data.def_pick_store); //添加
1310   - }
1311   -
1312   -
1313   - th.setData({all_pick_list:e.data.data.pageData});
1314   -
1315   -
1316   - setTimeout(function(){
1317   - th.deal_pickup(e); //--普通门店排版--
1318   - },800)
1319   -
1320   - }
1321   - })
1322   - }, 200)
1323   -
1324   - },
1325   -
1326   - //------------处理门店,拼团活动只有线上库存---------------
1327   - deal_pickup(e){
1328   - var th=this;
1329   - var g_distr_type=th.data.goods.distr_type;
1330   - //单总量超出5个的时候
1331   - if (e.data.data.total > 10 && e.his_cate_num) {
1332   - getApp().request.get("/api/weshop/storagecategory/page", {
1333   - data: {
1334   - store_id: o.stoid,
1335   - pageSize: 1000,
1336   - orderField:"sort",
1337   - orderType:'asc',
1338   - },
1339   - success: function(ee) {
1340   - if (ee.data.code == 0) {
1341   -
1342   - var check_all_cate=0;
1343   - if (ee.data.data && ee.data.data.pageData && ee.data.data.pageData.length > 0){
1344   - for(let i in ee.data.data.pageData){
1345   - let item=ee.data.data.pageData[i];
1346   - if(item.is_show==1){
1347   - check_all_cate=1;break
1348   - }
1349   - }
1350   - }
1351   -
1352   -
1353   -
1354   - if (check_all_cate) {
1355   -
1356   - var sto_cate = ee.data.data.pageData;
1357   - var sto_arr = e.data.data.pageData;
1358   - var newarr = new Array();
1359   - var qita = new Array();
1360   -
1361   - var is_del_pk=0;
1362   - //----要进行门店分组--------
1363   - for (var i = 0; i < sto_arr.length; i++) {
1364   - //找一下这个门店有没有在分类数组内
1365   - var find2 = 0,find2name = "",sort=0;
1366   - is_del_pk=0;
1367   - for (var m = 0; m < sto_cate.length; m++) {
1368   - if (sto_arr[i].category_id == sto_cate[m].cat_id) {
1369   - if(sto_cate[m].is_show!=1){
1370   - is_del_pk=1; sto_arr.splice(i,1);
1371   - i--;
1372   - }else {
1373   - find2 = sto_cate[m].cat_id;
1374   - find2name = sto_cate[m].cat_name;
1375   - sort = sto_cate[m].sort;
1376   - is_del_pk=0;
1377   - }
1378   - break;
1379   - }
1380   - }
1381   - if(is_del_pk) continue;
1382   -
1383   - if (newarr.length > 0) {
1384   - var find = 0;
1385   - //如果有找到,那门店就在这个分组内,否则,分类就要排在其他
1386   - if (find2 != 0) {
1387   - for (var ii = 0; ii < newarr.length; ii++) {
1388   - if (sto_arr[i].category_id == newarr[ii].cat_id) {
1389   - newarr[ii].s_arr.push(sto_arr[i]);
1390   - find = 1;
1391   - break;
1392   - }
1393   - }
1394   - if (find == 0) {
1395   - var arr0 = new Array();
1396   - arr0.push(sto_arr[i]);
1397   - var item = {
1398   - cat_id: find2,
1399   - name: find2name,
1400   - sort:sort,
1401   - s_arr: arr0
1402   - };
1403   - newarr.push(item);
1404   - }
1405   - } else {
1406   - qita.push(sto_arr[i]);
1407   - }
1408   - } else {
1409   - //如果有找到,那门店就在这个分组内,否则,分类就要排在其他
1410   - if (find2 != 0) {
1411   - var arr0 = new Array();
1412   - arr0.push(sto_arr[i]);
1413   - var item = {
1414   - cat_id: find2,
1415   - name: find2name,
1416   - sort:sort,
1417   - s_arr: arr0
1418   - };
1419   - newarr.push(item);
1420   - } else {
1421   - qita.push(sto_arr[i]);
1422   - }
1423   - }
1424   - }
1425   -
1426   - var def_arr = new Array();
1427   - //-- 开始就看10个门店 --
1428   - for (var k = 0; k < 10; k++) {
1429   - if (k == sto_arr.length) break;
1430   - def_arr.push(sto_arr[k]);
1431   - }
1432   -
1433   - th.setData({
1434   - def_pickpu_list: def_arr,
1435   - pickpu_list: ee.data.data.pageData
1436   - });
1437   -
1438   - //门店分类要排序下
1439   - function compare(property){
1440   - return function(a,b){
1441   - var value1 = a[property];
1442   - var value2 = b[property];
1443   - return value1 - value2;
1444   - }
1445   - }
1446   - if(newarr.length>0)
1447   - newarr.sort(compare("sort"));
1448   -
1449   -
1450   - //----安排其他的分类-----
1451   - if (qita.length > 0) {
1452   - var item = {
1453   - cat_id: -1,
1454   - name: "其他",
1455   - s_arr: qita
1456   - };
1457   - newarr.push(item);
1458   - }
1459   -
1460   - var sd={
1461   - all_sto: newarr,
1462   - is_show_sto_cat:1
1463   - }
1464   - if(!sto_arr || sto_arr.length<=10){
1465   - sd.is_show_sto_cat=-1;
1466   - sd.only_pk=sto_arr;
1467   - }
1468   - th.setData(sd);
1469   -
1470   - } else {
1471   - th.setData({
1472   - is_show_sto_cat: -1,
1473   - only_pk: e.data.data.pageData
1474   - });
1475   - //-----如果没有默认门店,要取第一个门店作为默认店.此时没有门店分类的情况------
1476   - if (!th.data.def_pick_store) {
1477   - th.setData({def_pick_store:e.data.data.pageData[0]})
1478   - }
1479   - }
1480   - } else {
1481   - th.setData({
1482   - is_show_sto_cat: -1,
1483   - only_pk: e.data.data.pageData
1484   - });
1485   - //-----如果没有默认门店,要取第一个门店作为默认店.此时没有门店分类的情况------
1486   - if (!th.data.def_pick_store) {
1487   - th.setData({def_pick_store:e.data.data.pageData[0]})
1488   - }
1489   -
1490   - }
1491   - }
1492   - });
1493   - } else {
1494   - th.setData({
1495   - is_show_sto_cat: 0,
1496   - only_pk: e.data.data.pageData
1497   - });
1498   - //-----如果没有默认门店,要取第一个门店作为默认店------
1499   - if (!th.data.def_pick_store && th.data.bconfig && th.data.bconfig.is_sort_storage) {
1500   - th.setData({
1501   - def_pick_store:e.data.data.pageData[0],
1502   - sto_sele_name: e.data.data.pageData[0].pickup_name,
1503   - sto_sele_id: e.data.data.pageData[0].pickup_id,
1504   - sto_sele_distr: e.data.data.pageData[0].distr_type
1505   - })
1506   - }
1507   - }
1508   - },
1509   -
1510   -
1511   -
1512   - //---选择分类门店---
1513   - choice_sort_store: function(e) {
1514   - var index = e.currentTarget.dataset.index;
1515   - var region_name = e.currentTarget.dataset.region;
1516   - var item = this.data.all_sto[index];
1517   - this.setData({
1518   - region_name: region_name,
1519   - sort_store: 0,
1520   - choice_sort_store: 1,
1521   - sec_sto: item,
1522   - sec_pick_index: 0,
1523   - });
1524   - },
1525   -
1526   - choose_for_store_fir: function(e) {
1527   - var index_c = e.currentTarget.dataset.ind;
1528   - var th=this;
1529   - th.setData({
1530   - fir_pick_index: index_c
1531   - })
1532   - },
1533   -
1534   - //---点击二级之后的选择---
1535   - choose_for_store: function(e) {
1536   - var index_c = e.currentTarget.dataset.ind;
1537   - var th=this;
1538   - th.setData({
1539   - sec_pick_index: index_c,
1540   - fir_pick_index: index_c
1541   - })
1542   -
1543   - },
1544   -
1545   - //确定def_pick为选择的门店
1546   - sure_pick: function(e) {
1547   - var th = this;
1548   - var item = null;
1549   -
1550   - if (th.data.choice_sort_store == 0) {
1551   - var index = th.data.fir_pick_index;
1552   - if (th.data.is_show_sto_cat == 1) {
1553   - item = th.data.def_pickpu_list[index];
1554   - } else {
1555   - item = th.data.only_pk?th.data.only_pk[index]:null; //当没有门店分类的时候
1556   - }
1557   -
1558   - } else {
1559   - var index = th.data.sec_pick_index;
1560   - item = th.data.sec_sto.s_arr[index];
1561   - }
1562   - if(!item) return false;
1563   -
1564   -
1565   - th.setData({
1566   - def_pick_store: item,
1567   - sto_sele_name: item.pickup_name,
1568   - sto_sele_id: item.pickup_id,
1569   - sto_sele_distr: item.distr_type,
1570   - store: 0,
1571   - choice_sort_store: 0,
1572   - fir_pick_index: 0
1573   - });
1574   -
1575   -
1576   - th.setData({
1577   - yijian: 1, //打开拼团购买界面
1578   - store: 0, //关闭门店
1579   - choice_sort_store: 0, //关闭门店2级
1580   - sort_store: 0, //关闭门店2级
1581   - });
1582   -
1583   -
1584   - },
1585   -
1586   -
1587   -
1588   - //把选择的门店设置成默认的门店def_pick
1589   - set_def_pick: function(e) {
1590   - var th = this;
1591   - var item = null;
1592   - if (th.data.choice_sort_store == 0) {
1593   - var index = th.data.fir_pick_index;
1594   - if (th.data.is_show_sto_cat == 1) {
1595   - item = th.data.def_pickpu_list[index];
1596   - } else {
1597   - item = th.data.only_pk?th.data.only_pk[index]:null; //当没有门店分类的时候
1598   - }
1599   - } else {
1600   - var index = th.data.sec_pick_index;
1601   - item = th.data.sec_sto.s_arr[index];
1602   - }
1603   -
1604   - if(!item) return false;
1605   -
1606   -
1607   - var store_id = o.stoid;
1608   - var user_id = getApp().globalData.user_id;
1609   - var def_pickup_id = item.pickup_id;
1610   -
1611   - getApp().request.put('/api/weshop/users/update', {
1612   - data: {
1613   - user_id,
1614   - def_pickup_id
1615   - },
1616   - success: function(res) {
1617   - if (res.data.code == 0) {
1618   - if (th.data.choice_sort_store == 0) th.setData({
1619   - fir_pick_index: 0
1620   - });
1621   - getApp().globalData.pk_store = item;
1622   - } else {
1623   - getApp().my_warnning("设置默认门店地址失败",0,th)
1624   - }
1625   -
1626   - }
1627   - });
1628   -
1629   - th.setData({
1630   - def_pick_store: item,
1631   - sto_sele_name: item.pickup_name,
1632   - sto_sele_id: item.pickup_id,
1633   - sto_sele_distr: item.distr_type,
1634   - store: 0,
1635   - choice_sort_store: 0
1636   - });
1637   -
1638   - //4就是拼团
1639   - th.setData({
1640   - yijian: 1, //打开拼团购买界面
1641   - store: 0, //关闭门店
1642   - choice_sort_store: 0, //关闭门店2级
1643   - sort_store: 0, //关闭门店2级
1644   - });
1645   -
1646   - },
1647   -
1648   -
1649   - //-- 关闭选择门店 --
1650   - close_popup: function(e) {
1651   - var th=this;
1652   - this.setData({
1653   - store: 0,
1654   - choice_sort_store: 0,
1655   - sort_store: 0,
1656   - fir_pick_index:0,
1657   - sec_pick_index:0,
1658   - yijian: 1, //打开拼团购买界面
1659   - })
1660   -
1661   - },
1662   -
1663   - //-- 弹出框的同意的优化,重新获取定位 ---
1664   - agree_pri:function (){
1665   - var th=this;
1666   - var bconfig = th.data.bconfig;
1667   - if (bconfig && bconfig.is_sort_storage) {
1668   - wx.getLocation({
1669   - type: 'gcj02',
1670   - success: function (res) {
1671   - th.data.lat = res.latitude;
1672   - th.data.lon = res.longitude;
1673   - th.data.is_get_local_ok = 1;
1674   - th.setData({
1675   - is_gps: 1
1676   - });
1677   - //th.onShow();
1678   - th.get_sto();
1679   - },
1680   - fail: function (res) {
1681   - //th.onShow();
1682   - th.data.is_get_local_ok = 1;
1683   - th.get_sto();
1684   - if (res.errCode == 2) {
1685   - th.setData({
1686   - is_gps: 0
1687   - });
1688   - if (th.data.is_gps == 0) {
1689   - getApp().confirmBox("请开启GPS定位", null, 25000, !1);
1690   - }
1691   - } else {
1692   - th.setData({
1693   - is_gps: "3"
1694   - });
1695   - }
1696   -
1697   - }
1698   - })
1699   - }
1700   - },
1701   -
1702   -
1703   -
  8 + onShow:function(){ },
1704 9  
1705 10 })
1706 11 \ No newline at end of file
... ...
pages/team/team_show/team_show.json
1 1 {
2 2 "windom": {
3   - "navigationBarTitleText": "拼团订单",
  3 + "navigationBarTitleText": "加载中.",
4 4 "backgroundTextStyle": "light",
5 5 "navigationBarTextStyle": "white",
6 6 "navigationBarBackgroundColor": "#ffffff",
7 7 "backgroundColor": "#eeeeee"
8   - },
9   - "usingComponents": {
10   - "warn": "/components/long_warn/long_warn",
11   - "privacy_pop": "/components/privacy_pop/privacy_pop"
12 8 }
  9 +
13 10 }
14 11 \ No newline at end of file
... ...
pages/team/team_show/team_show.wxml
1   -<!-- 判断隐私是不是显示 -->
2   -<privacy_pop id="privacy_pop" bind:agree_pri="agree_pri"></privacy_pop>
3   -
4   -<wxs module="filters" src="../../../utils/filter.wxs"></wxs>
5 1 <!---- //文字"-->
6   -<view wx:if="{{is_show}}">
7   -
8   - <!--图片区域-->
9   - <view class='center'>
10   - <view class='cenleft'>
11   - <image src='{{image}}' binderror='bind_bnerr' data-errorimg='image'></image>
12   - </view>
13   - <view class='cenright'>
14   - <view class='cenrt'>
15   -
16   - <view class='xc-goods-details ellipsis-2 fs28'>
17   - <span>{{goods.goods_name}}</span>
18   - </view>
19   - </view>
20   - <view class='cenrcen flex-vertical-between'>
21   - <view>
22   - <view class="fs40 xc-wc" style='font-size:40rpx'>
23   - <span class="fs28" style="font-weight:500;">¥</span>{{teamlist.price}}</view>
24   - <view class="fs22 word-line xc-wc">
25   - ¥{{goods.shop_price}}
26   - </view>
27   - </view>
28   - <view class="xc-wc fs24">
29   - <view>
30   - <view class="">已拼{{teamlist.buy_num}}件</view>
31   - <view class="flex xc-valframe t-c">
32   - <view class="xc-frame-img">
33   - <image class="picture" src="{{imageurl}}/miniapp/images/bai-ren.png"></image>
34   - </view>
35   - <view style='margin-left:9rpx;'>
36   - {{teamlist.ct_num}}人拼
37   - </view>
38   - </view>
39   - </view>
40   - </view>
41   - </view>
42   - </view>
43   - </view>
44   -
45   - <view class='body oh'>
46   - <!-- 等待团员 -->
47   - <!-- <view class='bodytop' wx:if="{{teamlist.kt_type==3}}"> -->
48   - <!-- 拼团成功 -->
49   - <view class="xc-ptcomplete flex-level fs28" wx:if="{{val==2}}">
50   -
51   - <view class="xc-wc">拼团成功</view>,为您节省<text class="xc-wc">25</text>元
52   - <view class="xc-img-frame oh" wx:if="{{val==2}}">
53   - <image class="img" src="{{imageurl}}/miniapp/images/xc_qtcg.png"></image>
54   - </view>
55   - </view>
56   - <!-- 拼团失败 -->
57   - <view class="xc-ptcomplete flex-level fs28" wx:if="{{val==3}}">
58   - <view class="xc-wc xc-end">拼团失败</view>
59   - <view class="xc-img-frames oh iw" wx:if="{{val==3}}">
60   - <image class="img " src="{{imageurl}}/miniapp/images/xc-qtshibai.png"></image>
61   - </view>
62   - </view>
63   - <!--头像-->
64   - <view class="flex_tou">
65   - <view class='bodyimg flex-level' wx:for="{{ordertx2}}" wx:key>
66   - <view class='d'>
67   - <image src='{{item.head_pic}}'></image>
68   - <span wx:if="{{item.is_pt_tz==1}}">团长</span>
69   - </view>
70   - </view>
71   - <view class='d' wx:for="{{sf_arr}}">
72   - <image src='{{iurl}}/miniapp/images/shafa.png' style='width:100%; height:100%'></image>
73   - </view>
74   - <view class='xc-ellipsis-img' wx:if="{{ordertx.length>5}}">
75   - <image style='width:56rpx;height:56rpx;margin-left:10rpx;' src="{{imageurl}}/miniapp/images/xc_ellipsis.png"></image>
76   - </view>
77   -
78   -
79   - </view>
80   -
81   - <view class='bodytime'>
82   - <!--/ //旁边直线-->
83   - <view class='bodytimeleft'>
84   - <view class='xian'></view>
85   - </view>
86   - <!--/ // //时间-->
87   - <!--许程 <view class='bodytimecen' wx:if='{{obj}}'> -->
88   - <view class='bodytimecen'>
89   - 剩余
90   - <span wx:if="{{obj.day!=0}}"> {{obj.day}} </span>:
91   - <span> {{obj.hou}} </span>:
92   - <span> {{obj.min}} </span>:
93   - <span> {{obj.sec}} </span>结束
94   - </view>
95   -
96   -
97   - <!----/ 旁边直线---->
98   - <view class='bodytimeright'>
99   - <view class='xian'></view>
100   - </view>
101   - </view>
102   -
103   - <view style='height:50rpx;width:100%' wx:if="{{val==1}}"></view>
104   - <!--如果团还没有满-->
105   - <block wx:if="{{tg_arr==null}}">
106   - <!--按钮-->
107   - <view wx:if="{{is_group_end==0}}" class='bodybutton white fs32'>
108   - <view class="xc-good-friend" bindtap='sendsm' data-isct="0">去参团</view>
109   - <view class="xc-home-page" bindtap='gohome'>返回首页</view>
110   - </view>
111   - <view wx:elif="{{teamlist.kttype>1}}" class='bodybutton' bindtap='sendsm' data-isct="1">
112   - <view class="xc-good-friend">一键参团</view>
113   - <view class="xc-home-page" bindtap='gohome'>返回首页</view>
114   - </view>
115   - <view wx:else class='bodybutton' bindtap='sendsm' data-isct="1">
116   - <view class="xc-good-friend">一键参团</view>
117   - <view class="xc-home-page" bindtap='gohome'>返回首页</view>
118   - </view>
119   - </block>
120   - <block wx:else>
121   - <view class="show_zf_dd">
122   - <view>会员'{{tg_arr.user_name}}'待付款,若{{r_obj.min}}分{{r_obj.sec}}秒后该会员未支付您可以继续参团哦!</view>
123   - </view>
124   -
125   - <view class='bodybutton white fs32'>
126   - <view class="xc-good-friend co-w" data-isct="0">去参团</view>
127   - <view class="xc-home-page" bindtap='gohome'>返回首页</view>
128   - </view>
129   -
130   - </block>
131   -
132   - </view>
133   - <!--展开拼团列表-->
134   - <view class='mck'>
135   - <view class='bodyfoot'>
136   - <view class='bodyselect' wx:if="{{zk}}" bindtap='czk'>
137   - <span>展开拼团列表
138   - <view class='down-arrow'></view>
139   - </span>
140   - </view>
141   - <!----收起拼团列表---->
142   - <view class='zhangxi' wx:if="{{hiddenName}}">
143   -
144   - <view class='zspan' bindtap='click'>收起拼团列表
145   - <view class='down-arrow1'></view>
146   - </view>
147   -
148   - <view class="ia" wx:for="{{ordertx}}" wx:for-index="ky">
149   - <view class='img'>
150   - <image src='{{item.head_pic}}'></image>
151   - <span>{{item.nickname}}</span>
152   - </view>
153   - <view class='zssj' wx:if="{{ky==0}}">{{item.add_time_date}} 开团</view>
154   - <view class='zssj' wx:else>{{item.add_time_date}} 参团</view>
155   - </view>
156   - </view>
157   - </view>
158   - </view>
159   - <!----//拼团玩法---->
160   - <!-- <view class='pintuan' bindtap="cpd">
161   - <view class='pintuanzhou'>拼团玩法</view>
162   - <view class='pintuanyou'>开团/参团>邀请参团>人满成团</view>
163   - </view> -->
164   - <!--大家都在团-->
165   - <view class='goodslist'>
166   - <view class='goodslisttop'>
167   - <span class='goodslistspan'>大家都在团</span>
168   - <view class='goodslisttopright'></view>
169   - </view>
170   - <view class="changxin">
171   - <view class='onegoods' wx:for='{{pageteam}}' wx:key="{{index}}" bindtap="go_goodsinfo" data-gid="{{item.goods_id}}">
172   - <view class='onegoodsimg'>
173   - <image src="{{imageurl+item.share_imgurl}}"></image>
174   - </view>
175   - <view class='onegoodsdesc'>
176   - <text>{{item.goods_name}}</text>
177   - </view>
178   - <view class='price'>
179   - <view class='jgleft'>¥{{item.price}}</view>
180   - <view class='jgright'>{{item.ct_num}}人
181   - <span>参团</span>
182   - </view>
183   - </view>
184   - </view>
185   - </view>
186   - </view>
  2 +<view class="rty">
  3 + <view style="margin-top:260rpx">加载中。。</view>
187 4 </view>
188   -
189   -<!--弹出购物模块-->
190   -<view class="pop_up" wx:if="{{yijian}}">
191   - <view>
192   -
193   - <!----弹起来,选择规格数量,拼单商品购买------>
194   - <!-- <view> -->
195   - <!-- <view hidden="{{!openSpecModal_pt}}"> -->
196   - <view bindtap="closeSpecModal" class="cover-layer"></view>
197   - <view class="spec-model">
198   - <view class="pding">
199   - <icon bindtap="closeSpecModal" class="modal-close" color="gray" size="22" type="cancel"></icon>
200   - <!-- 商品名称 -->
201   - <view class="spec-goods">
202   - <image class="wh100 spec-img xc-distance-bottom" src="{{image}}" binderror="pop_err_img" data-errorimg="data.original_img"></image>
203   - <view class="spec-goods-info">
204   - <view class="spec-goods-name ellipsis-1">{{goods.goods_name}}</view>
205   - <view class="flex ai_end xc-val-money">
206   - <view class="spec-goods-price">
207   - <span class='t1'>¥</span><text class='t2'>{{teamlist.kttype==3?teamlist.yf_price:teamlist.price}}</text>
208   - </view>
209   - </view>
210   - <view class="flex">
211   - <view class="spec-goods-stock">已售:{{teamlist.buy_num}}</view>
212   - <view class="spec-goods-stock">可售:{{teamlist.goods_num-teamlist.buy_num}}</view>
213   - </view>
214   - </view>
215   - </view>
216   -
217   - <view style="clear: both"></view>
218   - <view style="margin-top: 20rpx">
219   - <view class="flex-space-between address ai_end xc-width ">
220   -
221   - <view class="flex ai_end" wx:if="{{def_pick_store && def_pick_store.pickup_name}}">
222   - <text class="fs30 xc-black3 shop_name">{{def_pick_store.pickup_name}}</text>
223   -
224   - <view class="distance fs24 xc-ash" wx:if="{{def_pick_store.distance!=null}}">
225   - 距离:{{def_pick_store.distance>1000?filters.toFix(def_pick_store.distance/1000,2)+"km":filters.toFix(def_pick_store.distance,0)+"m"}}
226   - </view>
227   - </view>
228   -
229   -
230   - <view class="flex" bindtap="choice_store" wx:else>
231   - <image class="stores-img" src="{{iurl}}/miniapp/images/stores.png"></image>
232   - <view class="fs28 xc-ash-9f">选择门店</view>
233   - </view>
234   -
235   - <view hidden="{{has_def && sys_switch.is_pricing_open_store}}" class="red-co fs28" bindtap="choice_store">更多门店<text class="right-arrow"></text></view>
236   -
237   -
238   - </view>
239   - <view class="no_store" wx:if="{{def_pick_store && def_pick_store.is_no_dis}}">(配送不匹配)</view>
240   - <view class="no_store" wx:elif="{{def_pick_store && def_pick_store.is_no_dis_act}}">(该店不可售)</view>
241   - <view class="fs24 xc-ash-9f xc-distance-top " wx:elif="{{def_pick_store && def_pick_store.fulladdress}}">地址:{{def_pick_store.fulladdress}}</view>
242   -
243   - </view>
244   - <!-- 商品的属性项目 -->
245   - <view>
246   - <view hidden="{{ismend==1}}" class="spec-name">商品规格</view>
247   - <block>
248   - <view hidden="{{ismend==1}}" class="flex">
249   - <view class="spec_bt act" >{{goods.gg}}
250   - </view>
251   - </view>
252   - </block>
253   - <view class="clear"></view>
254   - </view>
255   -
256   - <view>
257   - <view class="b_num" hidden="{{ismend==1}}" style="margin-top: 20rpx">
258   - <view>购买数量</view>
259   - <view class="count">
260   - <view bindtap="{{num <= 1 ? '':'bindMinus'}}" class="sub {{num <= 1 ? 'active':''}}">-</view>
261   - <!-- <view class='{{minusStatus}}' bindtap="bindMinus" class="sub">-</view> -->
262   - <input bindblur="bindManual" class="xc-val-fream" type="number" value="{{num}}">1</input>
263   - <view bindtap="bindPlus" class="add">+</view>
264   - </view>
265   - </view>
266   -
267   - <!-- <view class="clear"></view> -->
268   -
269   - </view>
270   - </view>
271   -
272   - <view class="pt_qd">
273   - <view wx:if="{{def_pick_store && def_pick_store.is_no_dis}}" class="spec-cart-btn spec-buy w100" data-action="buy" style="background-color: #dcdcdc;color: #999;">配送不匹配</view>
274   - <view wx:elif="{{def_pick_store && def_pick_store.is_no_dis_act}}" class="spec-cart-btn spec-buy w100" data-action="buy" style="background-color: #dcdcdc;color: #999;">该店不可售</view>
275   - <view wx:else bindtap="go_pay" class="spec-cart-btn spec-buy w100" data-action="buy">确定</view>
276   - </view>
277   -
278   - </view>
279   - <!-- </view> -->
280   -
281   - </view>
282   -</view>
283   -
284   -<!-- 选择门店的弹框,1.1版最新的 -->
285   -<block wx:if="{{store==1}}">
286   - <view class="mongolia-layer" bindtap="close_popup"></view>
287   - <view class="popup-frame">
288   - <block wx:if="{{sort_store==0}}">
289   - <!-- 头部 标题 -->
290   - <view class="popup-top flex-space-between">
291   - <text class="fs32 nearby_store">{{choice_sort_store==0?'附近的门店':region_name}}</text>
292   - <view>
293   - <view>
294   - <icon bindtap="close_popup" class="modal-closes" color="black" size="22" type="cancel"></icon>
295   - </view>
296   - <view class="felx choose_more" bindtap="more_store" wx:if="{{is_show_sto_cat>0}}">
297   - <text class="fs26 red-co">{{choice_sort_store==0?'更多门店':'返回'}}</text>
298   - <view class="bg_rights"></view>
299   - </view>
300   - </view>
301   - </view>
302   - <!-- 门店列表,最外层的门店列表,一开始 -->
303   - <view class="store-list">
304   - <!--如果还没有点击更多门店的时候 -->
305   - <block wx:if="{{choice_sort_store==0}}">
306   - <!-- 需要for循环 -->
307   - <block wx:if="{{is_show_sto_cat==1}}">
308   - <view class="store_choose flex" wx:for="{{def_pickpu_list}}" bindtap="choose_for_store_fir" data-ind="{{index}}">
309   - <view class="store flex-vertical">
310   - <!-- 需要点击事件 -->
311   - <block wx:if="{{index==fir_pick_index}}">
312   - <view class="circle white xc-hook fs20 red-b">Г</view>
313   - </block>
314   - <block wx:else>
315   - <view class="circle xc-hooks"></view>
316   - </block>
317   - <view class="address-frame xc-ash">
318   - <view class="flex-vertical-between butttem5">
319   - <view class="flex xc-ash">
320   - <view class="fs30 xc-black3 address_name">{{item.pickup_name}}
321   - <text class="c-red22" wx:if="{{item.is_no_dis}}">(配送不匹配)</text>
322   - <text class="c-red22" wx:elif="{{item.is_no_dis_act}}">(该店不可售)</text>
323   - </view>
324   - </view>
325   - <view>
326   - <view class="distance fs24 address-val"wx:if="{{item.distance!=null}}">
327   - 距离:{{item.distance>1000?filters.toFix(item.distance/1000,2)+'km':filters.toFix(item.distance,0)+"m"}}</view>
328   - </view>
329   - </view>
330   - <view class="fs24 xc-ash-9f">地址:{{item.fulladdress}}</view>
331   - </view>
332   - </view>
333   - </view>
334   - </block>
335   - <block wx:else>
336   - <view class="store_choose flex" wx:for="{{only_pk}}" bindtap="choose_for_store_fir" data-ind="{{index}}">
337   - <view class="store flex-vertical">
338   - <!-- 需要点击事件 -->
339   - <block wx:if="{{index==fir_pick_index}}" >
340   - <view class="circle white xc-hook fs20 red-b">Г</view>
341   - </block>
342   - <block wx:else>
343   - <view class="circle xc-hooks"></view>
344   - </block>
345   -
346   - <view class="address-frame xc-ash">
347   - <view class="flex-vertical-between ">
348   - <view class="flex xc-ash">
349   - <view class="fs30 xc-black3 address_name">{{item.pickup_name}}
350   - <text class="c-red22" wx:if="{{item.is_no_dis}}">(配送不匹配)</text>
351   - <text class="c-red22" wx:elif="{{item.is_no_dis_act}}">(该店不可售)</text>
352   - </view>
353   - </view>
354   - <view>
355   - <view class="distance fs24 address-val"
356   - wx:if="{{item.distance!=null}}">距离:{{item.distance>1000?filters.toFix(item.distance/1000,2)+"km":filters.toFix(item.distance,0)+"m"}}
357   - </view>
358   - </view>
359   - </view>
360   - <view class="fs24 xc-ash-9f">地址:{{item.fulladdress}}</view>
361   - </view>
362   - </view>
363   - </view>
364   - </block>
365   - </block>
366   - <block wx:else> <!-- 如果是点击选择门店分类后显示分类下的门店 -->
367   - <view class="store_choose flex" wx:for="{{sec_sto.s_arr}}" data-ind="{{index}}" bindtap="choose_for_store">
368   - <view class="store flex-vertical">
369   - <!-- 需要点击事件 -->
370   - <block wx:if="{{index==sec_pick_index}}">
371   - <view class="circle white xc-hook fs20 red-b">Г</view>
372   - </block>
373   - <block wx:else>
374   - <view class="circle xc-hooks"></view>
375   - </block>
376   -
377   - <view class="address-frame xc-ash">
378   - <view class="flex-vertical-between ">
379   - <view class="flex xc-ash">
380   - <view class="fs28 xc-black3 address_name">{{item.pickup_name}}
381   - <text class="c-red22" wx:if="{{item.is_no_dis}}">(配送不匹配)</text>
382   - <text class="c-red22" wx:elif="{{item.is_no_dis_act}}">(该店不可售)</text>
383   - </view>
384   - </view>
385   - <view>
386   - <view class="distance fs24 address-val"wx:if="{{item.distance!=null}}">
387   - 距离:{{item.distance>1000?filters.toFix(item.distance/1000,2)+"km":filters.toFix(item.distance,0)+"m"}}</view>
388   - </view>
389   - </view>
390   - <view class="fs24 xc-ash-9f">地址:{{item.fulladdress}}</view>
391   - </view>
392   - </view>
393   - </view>
394   - </block>
395   -
396   - </view>
397   -
398   - <!-- 门店列表底部 -->
399   - <view class="store-bottom-frame">
400   - <view class="store-bottom flex-vertical-between">
401   - <view class="determine red-b fs28 white t-c" bindtap="sure_pick"
402   - data-openindstore="{{open_ind_store}}">确定</view>
403   - <view class="default t-c fs28" bindtap="set_def_pick"data-openindstore="{{open_ind_store}}">设为默认</view>
404   - </view>
405   - </view>
406   -
407   - </block>
408   -
409   -
410   - <block wx:else>
411   - <view class="popup-top flex-space-between">
412   - <text class="fs32 nearby_store">门店分类选择</text>
413   - <view>
414   - <view><icon bindtap="close_popup" class="modal-closes" color="black" size="22" type="cancel"></icon></view>
415   - <view class="felx choose_mores" bindtap="returns"><text class="fs26 red-co">返回</text></view>
416   - </view>
417   - </view>
418   - <view class="sort_store_list">
419   - <view class="sort-store-frame" wx:for="{{all_sto}}" data-index="{{index}}" bindtap="choice_sort_store" data-region="{{item.name}}">
420   - <view class="sort-store flex-vertical-between" >
421   - <view class="fs30" di>{{item.name}}</view>
422   - <view class="black_rights-frame">
423   - <view class="black_rights"></view>
424   - </view>
425   - </view>
426   - </view>
427   -
428   - </view>
429   - </block>
430   - </view>
431   -</block>
432   -
433   -
434   -
435   -
436   -
437   -
438   -<!-- <view class='buy-option'> -->
439   -<!--头部图片-->
440   -<!-- <view class='buy-top'>
441   - <view class='buy-image mimg'>
442   - <image src='{{image}}'></image>
443   - <view>
444   - <view>
445   - <span class='t1'>¥</span><text class='t2'>{{teamlist.kttype==3?teamlist.yf_price:teamlist.price}}</text>
446   - </view>
447   - <view class="ellipsis-2">
448   - {{goods.goods_name}}
449   - </view>
450   - </view>
451   -
452   - </view>
453   -
454   - <view class='buy-cou' bindtap='cbcou'>⊗</view>
455   - <view class='clear'></view>
456   - </view> -->
457   -
458   -<!--取货门店-->
459   -<!-- <view class='quhuo' wx:if="{{qh}}" bindtap='cqh'> -->
460   -<!--当ii==0请选择门店显示,ii==1最后名字显示-->
461   -<!-- <text>取货门店</text><view class='end_name' wx:if="{{ii==1 }}">({{end_name}})</view><view wx:if="{{ii==0 }}" class='ttxz'>(请选择门店)</view>
462   - </view> -->
463   -<!--选择门店-->
464   -<!-- <view class='xuanze1' wx:if="{{xz}}" bindtap='cxz'>
465   - <text decode='true'>&lt; 选择门店</text>
466   - </view>
467   - <view class='x-z'> -->
468   -<!--第一层-->
469   -<!-- <block wx:if="{{one}}">
470   - <view class="fir_view">
471   - <view>
472   - <view class='xuanze' bindtap='setchild' data-bindex='{{bindex}}' data-bname='{{item.name}}' wx:for-index="bindex" wx:for="{{ssl}}" wx:key>
473   - <text decode='true'>{{item.name}}</text>
474   - </view>
475   - </view>
476   - </view>
477   - </block> -->
478   -<!--选择的-->
479   -<!-- <view class='xuanze1' wx:if="{{se}}" bindtap='sel'><text decode='true'>&lt;</text> {{sele_dl_name}}</view> -->
480   -<!--第二层list-->
481   -<!-- <block wx:if="{{list}}">
482   - <scroll-view scroll-y="true" style="max-height: 460rpx">
483   - <view class='xuanze' wx:for="{{ssl_child}}" wx:key bindtap='clist'
484   - data-pick_dis="{{item.distr_type}}"
485   - data-end='{{item.pickup_name}}' data-pick_id='{{item.pickup_id}}'>
486   - <text decode='true'>{{item.pickup_name}}</text>
487   - </view>
488   - </scroll-view>
489   - </block>
490   - </view> -->
491   -
492   -<!--数量-->
493   -<!-- <view class='buy-button' wx:if="{{qh}}">
494   - <text>数量</text>
495   - <view class='stepper sum'>
496   - <text class='{{minusStatus}}' type='number' bindtap='bindMinus' class="jiajian">-</text>
497   - <input bindinput='bindManual' value='{{num}}'></input>
498   - <text bindtap='bindPlus' class="jiajian">+</text>
499   - </view>
500   - <view class='clear'></view>
501   - </view> -->
502   -
503   -<!-- <view class="clear"></view>
504   - </view> -->
505   -<!--支付-->
506   -<!-- <view class='btn' bindtap="go_pay">立即支付</view> -->
507   -<!-- </view>
508   -</view> -->
509   -
510   -<!--mask吐司内容-->
511   -<view class="toast_mask" wx:if="{{isShowToast}}"></view>
512   -
513   -<!--以下为toast显示的内容-->
514   -<view class="toast_content_box" wx:if="{{isShowToast}}">
515   - <view class="toast_content">
516   - <view class="toast_content_text">
517   - {{toastText}}
518   - </view>
519   - </view>
520   -</view>
521   -
522   -<!--拼团玩法弹出框-->
523   -<!----弹起的---->
524   -<block wx:if="{{pd_xx}}">
525   - <view class="bview"></view>
526   - <view class="juzhong">
527   - <view class="xq">
528   - <view class="title" bindtap="close_pt_xx">拼团玩法介绍
529   - <image src="{{iurl}}/miniapp/images/gbi.png" class="close"></image>
530   - </view>
531   - <view>1.开团:
532   - <text class="hs1">选择心仪商品,点击“发起X人团”按钮,付款后即为开团成功;</text>
533   - </view>
534   - <view>2.参团:
535   - <text class="hs1">进入朋友分享的页面,点击“立即参团”按钮,付款后即为参团成功,若多人同时支付,支付成功时间较早的人获得参团资格;</text>
536   - </view>
537   - <view>3.成团:
538   - <text class="hs1">在开团或参团成功后,点击“邀请小伙伴参团”将页面分享给好友,在有效时间内凑齐人数即为成团,此时商家会开始发货;</text>
539   - </view>
540   - <view>4.组团失败:
541   - <text class="hs1">在有效时间内未凑齐人数,即为组团失败,此时付款项会原路退回到支付账户;</text>
542   - </view>
543   - <view>5.
544   - <text class="hs1">组团有效期间内,拼购商品订单不允许取消。 </text>
545   - </view>
546   - </view>
547   - </view>
548   -</block>
549   -
550   -<warn id="warn"></warn>
... ...
pages/team/team_show/team_show.wxss
1   -page {
2   - background-color: #eee;
3   -}
4   -
5   -.top {
6   - background-color: rgb(216, 230, 220);
7   - color: rgb(98, 155, 13);
8   - text-align: center;
9   - height: 110rpx;
10   - width: 100%;
11   -}
12   -
13   -.center {
14   - height: 240rpx;
15   - width: 100%;
16   - background: #fff;
17   -}
18   -
19   -.cenleft {
20   - width: 240rpx;
21   - height: 100%;
22   - float: left;
23   - display: flex;
24   - justify-content: center;
25   - align-items: center;
26   -}
27   -
28   -.cenleft image {
29   - background-color: white;
30   - width: 200rpx;
31   - height: 200rpx;
32   -}
33   -
34   -.cenrt {}
35   -
36   -.cenright {
37   - height: 100%;
38   - width: auto;
39   - float: left;
40   -}
41   -
42   -.cenrtoptitle {
43   - float: left;
44   - width: 240rpx;
45   - height: 40rpx;
46   - margin-left: 12rpx;
47   - font-size: 28rpx;
48   - margin-top: 12rpx;
49   -}
50   -
51   -.cenrcen {
52   - height: 70rpx;
53   - margin-top: 35rpx;
54   - width: 479rpx;
55   -}
56   -
57   -.jg {
58   - font-size: 40rpx;
59   - margin-right: 30rpx;
60   -}
61   -
62   -.jgx {
63   - font-size: 24rpx;
64   - color: #777;
65   - text-decoration: line-through;
66   - margin-top: 12rpx;
67   -}
68   -
69   -.cenrfoot {
70   - align-content: center;
71   - text-align: center;
72   - border: 2rpx solid red;
73   - border-radius: 10rpx;
74   - color: red;
75   - float: left;
76   - font-size: 24rpx;
77   - padding: 4rpx 16rpx;
78   - margin-top: 12rpx;
79   -}
80   -
81   -.body {
82   - background-color: white;
83   - height: 472rpx;
84   - width: 100%;
85   - margin-top: 4rpx;
86   -}
87   -
88   -.d {
89   - font-size: 24rpx;
90   -}
91   -
92   -.bodytop {
93   - background-color: white;
94   - text-align: center;
95   - font-size: 28rpx;
96   - padding-top: 16rpx;
97   - height: 90rpx;
98   -
99   -}
100   -
101   -.bodytop span {
102   - color: red;
103   -}
104   -
105   -.bodyimg {
106   - height: 155rpx;
107   - /* display: flex;
108   - justify-content: center;
109   - align-items: center; */
110   -
111   -
112   -}
113   -
114   -.bodyimg image {
115   - border-radius: 50rpx;
116   - height: 96rpx;
117   - width: 96rpx;
118   - margin-top: 30rpx;
119   - position: absolute;
120   -
121   -}
122   -
123   -.d {
124   - width: 101rpx;
125   - height: 101rpx;
126   - display: inline-block;
127   -
128   -}
129   -
130   -.bodyimg span {
131   - background-color: #e22b44;
132   - color: white;
133   - font-size: 24rpx;
134   - border-radius: 6rpx;
135   - padding: 3rpx 10rpx;
136   - position: relative;
137   - top: 8px;
138   - left: 40rpx;
139   -}
140   -
141   -.bodyspan {
142   - color: red;
143   - text-align: center;
144   - font-size: 24rpx;
145   -}
146   -
147   -.bodytime {
148   - height: 55rpx;
149   - width: 100%;
150   - display: flex;
151   - flex-wrap: nowrap;
152   - padding-left: 40rpx;
153   - align-items: center;
154   -
155   -}
156   -
157   -.bodytimeleft {
158   - text-decoration: line-through;
159   - flex-grow: 1.7;
160   -}
161   -
162   -.bodytimecen {
163   - text-align: center;
164   - flex-grow: 1;
165   -
166   - font-size: 30rpx;
167   - color: #000;
168   - width: 415rpx;
169   -
170   -}
171   -
172   -.bodytimecen span {
173   - background-color: #333333;
174   - color: white;
175   - border-radius: 7rpx;
176   - padding-left: 20rpx;
177   - font-size: 30rpx;
178   - margin: 0 auto;
179   - padding-right: 10rpx;
180   - margin-right: 5px;
181   -
182   -
183   -}
184   -
185   -.bodytimecen span:last-child {
186   - margin-right: 10rpx;
187   -
188   -}
189   -
190   -.bodytimeright {
191   - flex-grow: 1.7;
192   - margin-right: 72rpx;
193   -
194   -}
195   -
196   -.bodybutton {
197   - min-height: 170rpx;
198   - width: 90%;
199   - margin: 0 auto;
200   - text-align: center;
201   - line-height: 70rpx;
202   - border-radius: 15rpx;
203   - height: auto;
204   - padding-top: 38rpx
205   -}
206   -
207   -.bodybutton button {
208   - height: 100%;
209   - width: 100%;
210   - background-color: red;
211   - color: white;
212   - font-size: 32rpx;
213   -}
214   -
215   -.bodybutton.co-w {
216   - color: #333;
217   - background-color: #adadad;
218   - font-size: 32rpx;
219   -
220   -}
221   -
222   -
223   -
224   -.bodyfoot {
225   - width: 100%;
226   - text-align: center;
227   - font-size: 28rpx;
228   - color: #777;
229   - background-color: white;
230   -}
231   -
232   -.pintuan {
233   - width: 100%;
234   - height: 84rpx;
235   - background-color: white;
236   - color: black;
237   - text-align: center;
238   - font-size: 36rpx;
239   - margin-top: 0rpx;
240   -}
241   -
242   -
243   -.pintuanzhou {
244   - float: left;
245   - line-height: 84rpx;
246   - width: 226rpx;
247   - background: url('https://mshopimg.yolipai.net/miniapp/images/user/wh.png') no-repeat right center;
248   - background-size: 42rpx;
249   - margin-left: -18rpx;
250   - font-size: 32rpx;
251   -}
252   -
253   -.pintuanyou {
254   - float: right;
255   - color: rgb(168, 167, 167);
256   - line-height: 84rpx;
257   - font-size: 32rpx;
258   - margin-right: 24rpx;
259   -}
260   -
261   -.onegoods {
262   - background-color: white;
263   - width: 372rpx;
264   - height: 560rpx;
265   - border-left: 2rpx solid #eee;
266   - float: left;
267   -}
268   -
269   -.goodsl {
270   - background-color: white;
271   -}
272   -
273   -.onegoodsimg {
274   - width: 100%;
275   - height: 360rpx;
276   - margin-bottom: 20rpx;
277   -}
278   -
279   -.onegoodsimg image {
280   - height: 100%;
281   - width: 100%;
282   -}
283   -
284   -.onegoodsdesc {
285   - color: rgb(168, 167, 167);
286   - padding-left: 20rpx;
287   - height: 100rpx;
288   - font-size: 32rpx;
289   - width: 92%;
290   - line-height: 100rpx;
291   - overflow: hidden;
292   - text-overflow: ellipsis;
293   - white-space: nowrap;
294   - padding-right: 20rpx;
295   -}
296   -
297   -.onegoodsdesc text {}
298   -
299   -.price {
300   - color: red;
301   - width: 100%;
302   -}
303   -
304   -.jgleft {
305   - float: left;
306   - width: 100rpx;
307   - margin-left: 20rpx;
308   - font-size: 40rpx;
309   - margin-top: -8rpx;
310   -}
311   -
312   -.jgright {
313   - font-size: 28rpx;
314   - float: right;
315   - width: 120rpx;
316   -}
317   -
318   -.jgright span {
319   - color: rgb(168, 167, 167);
320   -}
321   -
322   -.goodslisttop {
323   - background-color: white;
324   - width: 100%;
325   -}
326   -
327   -.goodslist {
328   - background-color: white;
329   -}
330   -
331   -.goodslisttop {
332   - background-color: white;
333   - width: 100%;
334   - height: 80rpx;
335   - margin-top: 20rpx;
336   - text-align: center;
337   -}
338   -
339   -.goodslistspan {
340   - margin: 0 auto;
341   - padding-top: 20rpx;
342   - display: inline-block;
343   - padding: 0 10px;
344   - background: #fff;
345   - margin-top: 12rpx;
346   - font-size: 28rpx;
347   - color: rgb(168, 167, 167);
348   -}
349   -
350   -.xian {
351   - height: 50%;
352   - width: 100%;
353   - border-bottom: 4rpx solid #eee;
354   - float: left;
355   -}
356   -
357   -.bodyselect {
358   - height: 50px;
359   - background-color: white;
360   - width: 100%;
361   - line-height: 50px;
362   - font-size: 28rpx;
363   -}
364   -
365   -.changxin {
366   - float: left;
367   - width: 100%;
368   -}
369   -
370   -.zhangxi {
371   - width: 100%;
372   - min-height: 100rpx;
373   - background-color: white;
374   - color: black;
375   -}
376   -
377   -.img {
378   - width: 30%;
379   - height: 100rpx;
380   - margin-bottom: 0rpx;
381   - color: black;
382   - margin-left: 36rpx;
383   - font-size: 26rpx;
384   - display: flex;
385   -}
386   -
387   -.img span {
388   - height: 100rpx;
389   - display: block;
390   - line-height: 100rpx;
391   - text-overflow: ellipsis;
392   - white-space: nowrap;
393   - overflow: hidden;
394   - padding: 0rpx;
395   - width: 120rpx;
396   -}
397   -
398   -.zhangxi image {
399   - border-radius: 50rpx;
400   - height: 80rpx;
401   - width: 80rpx;
402   - float: left;
403   - margin-top: 12rpx;
404   - background-color: red;
405   - margin-right: 10rpx;
406   -}
407   -
408   -.zhangxi .zssj {
409   - height: 100rpx;
410   - width: 70%;
411   - margin-right: 40rpx;
412   - line-height: 100rpx;
413   - font-size: 26rpx;
414   - text-align: right;
415   -}
416   -
417   -.zhangxi .zssj text {
418   - width: 100%;
419   -}
420   -
421   -.ia {
422   - display: flex;
423   -}
424   -
425   -.zspan {
426   - text-align: center;
427   - border-bottom: 2rpx #eee solid;
428   - width: 100%;
429   - display: flex;
430   - align-items: center;
431   - justify-content: center;
432   - font-size: 28rpx;
433   - color: #777;
434   - line-height: 100rpx;
435   - height: auto;
436   -
437   -}
438   -
439   -.mtop {
440   - text-align: center;
441   - color: white;
442   - background-color: #4c4c4c;
443   - width: 100%;
444   - height: 100%;
445   - position: fixed;
446   - z-index: 5;
447   - top: 0;
448   - left: 0;
449   -}
450   -
451   -.mt1 {
452   - margin-top: 100px;
453   - margin-bottom: 20rpx;
454   -}
455   -
456   -.mts {
457   - color: #e1e10b;
458   -}
459   -
460   -.mcou {
461   - font-size: 48rpx;
462   -}
463   -
464   -.mfoot {
465   - width: 100%;
466   - margin-top: 700rpx;
467   -}
468   -
469   -.mbtn {
470   - margin-top: 60rpx;
471   - width: 400rpx;
472   - background: #666;
473   - color: #fff;
474   - border-radius: 20rpx;
475   - font-size: 32rpx;
476   -}
477   -
478   -.etop {
479   - padding-top: 200rpx;
480   - width: 100%;
481   - height: 100%;
482   - position: fixed;
483   - left: 0rpx;
484   - top: 0rpx;
485   - z-index: 12rpx;
486   - background-color: white;
487   -}
488   -
489   -.emyimage {
490   - display: flex;
491   - justify-content: center;
492   - align-items: center;
493   -}
494   -
495   -.emyimage image {
496   - background-color: red;
497   - width: 160rpx;
498   - height: 160rpx;
499   - margin: 0 auto;
500   -}
501   -
502   -.espan {
503   - font-size: 32rpx;
504   - margin-top: 10rpx;
505   -}
506   -
507   -.erweima {
508   - margin-top: 10rpx;
509   - width: 100%;
510   -}
511   -
512   -.erzhou {
513   - width: 200rpx;
514   - float: left;
515   - margin-right: 20rpx;
516   -}
517   -
518   -.erzhou image {
519   - background-color: blanchedalmond;
520   - width: 200rpx;
521   - height: 200rpx;
522   -}
523   -
524   -.eright {
525   - width: 500rpx;
526   - float: left;
527   - font-size: 32rpx;
528   -}
529   -
530   -.body {
531   - background-color: white;
532   - height: auto;
533   - width: 100%;
534   - margin-top: 4rpx;
535   -}
536   -
537   -.cenrtoptitle {
538   - float: left;
539   - width: 450rpx;
540   - font-size: 28rpx;
541   - margin-top: 20rpx;
542   -
543   -}
544   -
545   -.cenrtop {
546   - margin-top: 20rpx;
547   - background-color: red;
548   - color: white;
549   - border-radius: 10rpx;
550   - padding: 0 16rpx;
551   - font-size: 28rpx;
552   - float: left;
553   - height: 40rpx;
554   -}
555   -
556   -.yijian {
557   - position: fixed;
558   - top: 0rpx;
559   - left: 0rpx;
560   - width: 100%;
561   - height: 100%;
562   - z-index: 14rpx;
563   - background-color: rgba(0, 0, 0, 0.3);
564   -}
565   -
566   -.buy-option {
567   - background: #fff;
568   - box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
569   - padding: 20rpx;
570   - min-height: 400rpx;
571   - padding-bottom: 120rpx;
572   - width: 100%;
573   - margin-top: 180rpx;
574   -}
575   -
576   -.buy-top {
577   - width: 100%;
578   -}
579   -
580   -.buy-image {
581   - margin-right: 20rpx;
582   - width: 320rpx;
583   - height: 200rpx;
584   - float: left;
585   -}
586   -
587   -.buy-image image {
588   - width: 200rpx;
589   - height: 200rpx;
590   - background-color: burlywood;
591   - float: left;
592   -}
593   -
594   -.buy-image text {
595   - margin-left: 10rpx;
596   - color: red;
597   -}
598   -
599   -.buy-cou {
600   - float: right;
601   - width: 100rpx;
602   - height: 200rpx;
603   - background-color: white;
604   - font-size: 60rpx;
605   - color: black;
606   -}
607   -
608   -.t1 {
609   - float: left;
610   - font-size: 28rpx;
611   - padding-left: 4rpx;
612   - color: red;
613   - padding-top: 10rpx;
614   -}
615   -
616   -.buy-button {
617   - width: 100%;
618   - float: left;
619   - margin-top: 22rpx;
620   -}
621   -
622   -.buy-button text {
623   - float: left;
624   -}
625   -
626   -.stepper {
627   - height: 52rpx;
628   - float: left;
629   - border: 2rpx solid #ccc;
630   - border-radius: 6rpx;
631   - margin-left: 28rpx;
632   -}
633   -
634   -/*加号和减号*/
635   -
636   -.stepper text {
637   - float: left;
638   - width: 76rpx;
639   - line-height: 52rpx;
640   - text-align: center;
641   -}
642   -
643   -/*数值*/
644   -
645   -.stepper input {
646   - width: 80rpx;
647   - height: 52rpx;
648   - float: left;
649   - margin: 0 auto;
650   - text-align: center;
651   - font-size: 24rpx;
652   - border-left: 2rpx solid #ccc;
653   - border-right: 2rpx solid #ccc;
654   -}
655   -
656   -/*普通样式*/
657   -
658   -.stepper .normal {
659   - color: black;
660   -}
661   -
662   -/*禁用样式*/
663   -
664   -.stepper .disable {
665   - color: #ccc;
666   -}
667   -
668   -.quhuo {
669   - width: 100%;
670   - color: rgb(51, 51, 51);
671   - float: left;
672   - margin-top: 20rpx;
673   -}
674   -
675   -.x-z {
676   - width: 100%;
677   - float: left;
678   - color: rgb(51, 51, 51);
679   - font-size: 36rpx;
680   -}
681   -
682   -.btn {
683   - width: 94%;
684   - background-color: red;
685   - color: white;
686   - text-align: center;
687   - height: 88rpx;
688   - line-height: 88rpx;
689   - float: left;
690   - margin: 0 auto;
691   -}
692   -
693   -.mck {
694   - min-height: 100rpx;
695   - width: 100%;
696   - border-bottom: 24rpx #eee solid;
697   -}
698   -
699   -/* pages/yi/yi.wxss */
700   -
701   -.buy-option {
702   - background: #fff;
703   - padding: 20rpx;
704   - margin-top: 650rpx;
705   - width: 100%;
706   -}
707   -
708   -.buy-top {
709   - width: 100%;
710   -}
711   -
712   -.buy-image {
713   - margin-right: 20rpx;
714   - width: 630rpx;
715   - height: 200rpx;
716   - float: left;
717   -}
718   -
719   -.buy-image image {
720   - width: 200rpx;
721   - height: 200rpx;
722   - background-color: burlywood;
723   - float: left;
724   - margin-right: 16rpx;
725   -}
726   -
727   -
728   -.buy-image text {
729   - margin-left: 10rpx;
730   - color: red;
731   -}
732   -
733   -.buy-cou {
734   - float: right;
735   - width: 60rpx;
736   - height: 60rpx;
737   - background-color: white;
738   - font-size: 60rpx;
739   - color: black;
740   - margin-right: 40rpx;
741   - text-align: center;
742   - line-height: 60rpx;
743   - padding-bottom: 4rpx;
744   -}
745   -
746   -.t1 {
747   - font-size: 28rpx;
748   - padding-left: 4rpx;
749   - color: red;
750   - padding-top: 10rpx;
751   -}
752   -
753   -.buy-button {
754   - width: 100%;
755   - margin-top: 30rpx;
756   -}
757   -
758   -.buy-button text {
759   - /*float: left;*/
760   - display: inline-block;
761   -}
762   -
763   -.stepper {
764   - height: 52rpx;
765   - display: inline-block;
766   - border: 2rpx solid #ccc;
767   - border-radius: 6rpx;
768   - margin-left: 28rpx;
769   -}
770   -
771   -/*加号和减号*/
772   -
773   -.stepper text {
774   - float: left;
775   - width: 65rpx;
776   - line-height: 52rpx;
777   - text-align: center;
778   -}
779   -
780   -/*数值*/
781   -
782   -.stepper input {
783   - width: 84rpx;
784   - height: 52rpx;
785   - float: left;
786   - margin: 0 auto;
787   - text-align: center;
788   - font-size: 24rpx;
789   - border-left: 2rpx solid #ccc;
790   - border-right: 2rpx solid #ccc;
791   -}
792   -
793   -/*普通样式*/
794   -
795   -.stepper .normal {
796   - color: black;
797   -}
798   -
799   -/*禁用样式*/
800   -
801   -.stepper .disable {
802   - color: #ccc;
803   -}
804   -
805   -.quhuo {
806   - width: 100%;
807   - color: rgb(51, 51, 51);
808   - margin-top: 45rpx;
809   - font-size: 32rpx
810   -}
811   -
812   -.quhuo image {
813   - width: 40rpx;
814   - height: 40rpx;
815   - display: inline-block;
816   - position: relative;
817   - left: 500rpx;
818   -}
819   -
820   -.ttxz {
821   - display: inline-block;
822   -}
823   -
824   -.xuanze {
825   - width: 100%;
826   - height: 80rpx;
827   - display: inline-block;
828   - border-bottom: 1rpx #e7e7e7 solid;
829   - font-size: 32rpx;
830   - line-height: 80rpx;
831   -}
832   -
833   -.xuanze1 {
834   - width: 100%;
835   - color: rgb(51, 51, 51);
836   - height: 80rpx;
837   - display: inline-block;
838   - border-bottom: 1rpx #e7e7e7 solid;
839   - line-height: 80rpx;
840   - overflow: hidden;
841   -}
842   -
843   -.x-z {
844   - width: 100%;
845   - color: rgb(51, 51, 51);
846   - font-size: 36rpx;
847   - height: auto;
848   -}
849   -
850   -.btn {
851   - width: 100%;
852   - background-color: red;
853   - color: white;
854   - text-align: center;
855   - height: 88rpx;
856   - line-height: 88rpx;
857   -}
858   -
859   -.clear {
860   - clear: both;
861   -}
862   -
863   -.fir_view {
864   - max-height: 300rpx;
865   - overflow-y: scroll;
866   -}
867   -
868   -.pop_up {
869   - min-height: 200rpx;
870   - position: fixed;
871   - bottom: 0;
872   - left: 0;
873   - width: 100%;
874   - background-color: rgba(0, 0, 0, 0.3);
875   - font-size: 34rpx;
876   - color: rgb(51, 51, 51);
877   -
878   -}
879   -
880   -.end_name {
881   - display: inline-block;
882   -}
883   -
884   -/*mask*/
885   -
886   -.toast_mask {
887   - opacity: 0;
888   - width: 100%;
889   - height: 100%;
890   - overflow: hidden;
891   - position: fixed;
892   - top: 0rpx;
893   - left: 0rpx;
894   - z-index: 888;
895   -}
896   -
897   -/*toast*/
898   -
899   -.toast_content_box {
900   - display: flex;
901   - width: 100%;
902   - height: 100%;
903   - justify-content: center;
904   - align-items: center;
905   - position: fixed;
906   - z-index: 999;
907   - top: 0rpx;
908   -}
909   -
910   -.toast_content {
911   - width: 50%;
912   - padding: 20rpx;
913   - background: rgba(0, 0, 0, 0.5);
914   - border-radius: 20rpx;
915   -}
916   -
917   -.toast_content_text {
918   - height: 100%;
919   - width: 100%;
920   - color: #fff;
921   - font-size: 28rpx;
922   - text-align: center;
923   -}
924   -
925   -.jt {
926   - width: 30rpx;
927   - height: 30rpx;
928   - display: inline-block;
929   -}
930   -
931   -.jiajian {
932   - color: #999;
933   -}
934   -
935   -.t_wz {
936   - line-height: 110rpx;
937   - height: 110rpx;
938   - font-size: 36rpx;
939   -}
940   -
941   -.down-arrow {
942   - display: inline-block;
943   - position: relative;
944   - width: 40rpx;
945   - height: 30rpx;
946   - margin-right: 20rpx;
947   -}
948   -
949   -.down-arrow::after {
950   - display: inline-block;
951   - content: " ";
952   - height: 18rpx;
953   - width: 18rpx;
954   - border-width: 0 2rpx 2rpx 0;
955   - border-color: #999;
956   - border-style: solid;
957   - transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
958   - transform-origin: center;
959   - transition: transform 0.3s;
960   - position: absolute;
961   - top: 50%;
962   - right: 10rpx;
963   - margin-top: -10rpx;
964   -}
965   -
966   -.down-arrow1 {
967   - display: inline-block;
968   - position: relative;
969   - width: 40rpx;
970   - height: 30rpx;
971   - margin-right: 20rpx;
972   - margin-top: 12rpx;
973   -}
974   -
975   -.down-arrow1::after {
976   - display: inline-block;
977   - content: " ";
978   - height: 18rpx;
979   - width: 18rpx;
980   - border-width: 0 2rpx 2rpx 0;
981   - border-color: #999;
982   - border-style: solid;
983   - transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
984   - transform-origin: center;
985   - transition: transform 0.3s;
986   - position: absolute;
987   - top: 50%;
988   - right: 10rpx;
989   - margin-top: -10rpx;
990   -}
991   -
992   -.down-arrow1::after {
993   - transform-origin: center;
994   - transform: rotate(-135deg);
995   - transition: transform 0.3s;
996   -}
997   -
998   -.goodslisttop::after {
999   - content: "";
1000   - width: 100%;
1001   - height: 1px;
1002   - border-bottom: 1px #d4d4d4 solid;
1003   - display: block;
1004   - margin-top: -12px;
1005   -}
1006   -
1007   -.ia {
1008   - display: flex;
1009   - width: 100%;
1010   -}
1011   -
1012   -.bview {
1013   - position: fixed;
1014   - top: 0;
1015   - left: 0;
1016   - width: 100%;
1017   - height: 100%;
1018   - background-color: rgba(0, 0, 0, 0.5);
1019   -}
1020   -
1021   -.juzhong {
1022   - position: fixed;
1023   - top: 0;
1024   - left: 0;
1025   - width: 100%;
1026   - height: 100%;
1027   - display: flex;
1028   - flex-direction: row;
1029   - justify-content: center;
1030   - align-items: center;
1031   -}
1032   -
1033   -.juzhong .xq {
1034   - padding: 0 20rpx;
1035   - background: #fff;
1036   - font-size: 30rpx;
1037   - padding-bottom: 20rpx;
1038   -}
1039   -
1040   -.juzhong .xq .title {
1041   - text-align: center;
1042   - margin: 20rpx 0;
1043   - position: relative;
1044   - height: 50rpx;
1045   -}
1046   -
1047   -.juzhong .xq .hs1 {
1048   - font-size: 28rpx;
1049   - color: #ab8f9e;
1050   -}
1051   -
1052   -.juzhong .xq .title .close {
1053   - position: absolute;
1054   - top: 0;
1055   - right: 0;
1056   - width: 45rpx;
1057   - height: 45rpx;
1058   -}
1059   -
1060   -/* .pt_qd {
1061   - margin-top: 40rpx;
1062   - height: auto;
1063   -} */
1064   -
1065   -.spec-cart-btn.w100 {
1066   - width: 100%;
1067   - margin-left: 0;
1068   - height: 80rpx;
1069   - line-height: 80rpx;
1070   -}
1071   -
1072   -
1073   -.bview {
1074   - position: fixed;
1075   - top: 0;
1076   - left: 0;
1077   - width: 100%;
1078   - height: 100%;
1079   - background-color: rgba(0, 0, 0, 0.5);
1080   -}
1081   -
1082   -.juzhong {
1083   - position: fixed;
1084   - top: 0;
1085   - left: 0;
1086   - width: 100%;
1087   - height: 100%;
1088   - display: flex;
1089   - flex-direction: row;
1090   - justify-content: center;
1091   - align-items: center;
1092   -}
1093   -
1094   -.juzhong .xq {
1095   - padding: 0 20rpx;
1096   - background: #fff;
1097   - font-size: 30rpx;
1098   - padding-bottom: 20rpx;
1099   -}
1100   -
1101   -.juzhong .xq .title {
1102   - text-align: center;
1103   - margin: 20rpx 0;
1104   - position: relative;
1105   - height: 50rpx;
1106   -}
1107   -
1108   -.juzhong .xq .hs1 {
1109   - font-size: 28rpx;
1110   - color: #ab8f9e;
1111   -}
1112   -
1113   -.juzhong .xq .title .close {
1114   - position: absolute;
1115   - top: 0;
1116   - right: 0;
1117   - width: 45rpx;
1118   - height: 45rpx;
1119   -}
1120   -
1121   -.pt_qd {
1122   - /* margin-top: 40rpx;
1123   - height: auto; */
1124   - padding: 20rpx;
1125   -}
1126   -
1127   -.spec-cart-btn.w100 {
1128   - width: 100%;
1129   - margin-left: 0;
1130   - height: 80rpx;
1131   - line-height: 80rpx;
1132   -}
1133   -
1134   -.show_zf_dd {
1135   - display: flex;
1136   - padding: 15rpx 40rpx;
1137   - justify-content: space-between;
1138   - font-size: 30rpx;
1139   - color: #666;
1140   -}
1141   -
1142   -.flex_tou {
1143   - display: flex;
1144   - justify-content: center;
1145   - width: 100%;
1146   - height: 175rpx;
1147   - align-items: center;
1148   -}
1149   -
1150   -.xc-goods-details {
1151   - width: 479rpx;
1152   - margin-top: 20rpx;
1153   - height: 80rpx;
1154   - align-items: center;
1155   -
1156   -}
1157   -
1158   -.xc-valframe {
1159   - border-radius: 7rpx;
1160   - border: 1rpx solid;
1161   - margin-top: 3rpx;
1162   -}
1163   -
1164   -.xc-valframe .xc-frame-img {
1165   - width: 30rpx;
1166   - height: 100%;
1167   - background: #e22b44;
1168   -}
1169   -
1170   -.xc-valframe .xc-frame-img .picture {
1171   - width: 25rpx;
1172   - height: 25rpx;
1173   - margin-top: 4rpx;
1174   -
1175   -}
1176   -
1177   -.bodybutton .xc-good-friend {
1178   - background: #fab55a;
1179   - border-radius: 15rpx;
1180   -}
1181   -
1182   -.bodybutton .xc-home-page {
1183   - margin-top: 20rpx;
1184   - background-color: #e22b44;
1185   - border-radius: 15rpx;
1186   -}
1187   -
1188   -.xc-ellipsis-img {
1189   - width: 56rpx;
1190   - height: 56rpx;
1191   - padding-top: 15rpx;
1192   -}
1193   -
1194   -.xc-ptcomplete {
1195   - width: 74%;
1196   - height: 105rpx;
1197   - line-height: 105rpx;
1198   - float: right;
1199   -
1200   -}
1201   -
1202   -.xc-ptcomplete .xc-img-frame .img {
1203   - width: 105rpx;
1204   - height: 105rpx;
1205   - float: right;
1206   -}
1207   -
1208   -.xc-ptcomplete .xc-img-frame {
1209   - width: 205rpx;
1210   - height: 105rpx;
1211   - margin-top: 20rpx;
1212   -}
1213   -
1214   -.xc-ptcomplete .xc-end {
1215   - width: 283rpx;
1216   - text-align: right;
1217   -}
1218   -
1219   -.iw {
1220   - padding-right: 33rpx;
1221   -}
1222   -
1223   -.xc-ptcomplete .xc-img-frames {
1224   - width: 345rpx;
1225   - height: 105rpx;
1226   - margin-top: 20rpx;
1227   -
1228   -}
1229   -
1230   -.xc-ptcomplete .xc-img-frames .img {
1231   - width: 105rpx;
1232   - height: 105rpx;
1233   - float: right;
1234   -}
1235   -
1236   -.bodybutton .xc-good-friend.co-w {
1237   - background-color: #aeaeae
1238   -}
1239   -
1240   -
1241   -
1242   -
1243   -
1244   -
1245   -
1246   -
1247   -
1248   -
1249   -
1250   -
1251   -
1252   -
1253   -
1254   -.spec-model {
1255   - position: fixed;
1256   - bottom: 0;
1257   - z-index: 20;
1258   - background: white;
1259   - width: 100%;
1260   - /* padding: 0 30rpx; */
1261   - font-size: 32rpx;
1262   - box-sizing: border-box;
1263   - border-radius: 20rpx;
1264   - /* height: 72%; */
1265   -}
1266   -
1267   -.spec-model .pding {
1268   - padding: 0 30rpx;
1269   -}
1270   -
1271   -.spec-goods {
1272   - padding: 30rpx 0 20rpx;
1273   - float: left;
1274   - width: 100%;
1275   - border-bottom: 2rpx solid #eee;
1276   -}
1277   -
1278   -.spec-img {
1279   - float: left;
1280   - height: 186rpx;
1281   - width: 186rpx;
1282   - border: 4rpx solid #eee
1283   -}
1284   -
1285   -.spec-goods-info {
1286   - float: left;
1287   - padding: 0 25rpx;
1288   - width: 400rpx;
1289   -}
1290   -
1291   -.spec-goods-name {
1292   - font-size: 30rpx;
1293   - line-height: 35rpx;
1294   - height: 70rpx;
1295   - margin: 15rpx 20rpx 25rpx 0;
1296   - overflow: hidden;
1297   - text-overflow: ellipsis;
1298   - color: #333;
1299   -}
1300   -
1301   -.spec-goods-price {
1302   - color: #d60021;
1303   - font-size: 33rpx;
1304   - font-weight: bold;
1305   -}
1306   -
1307   -.spec-goods-stock {
1308   - margin-top: 3rpx;
1309   - font-size: 24rpx;
1310   - color: #999999;
1311   - margin-right: 15rpx;
1312   -}
1313   -
1314   -.spec-name {
1315   - clear: both;
1316   - padding: 20rpx 0;
1317   - font-size: 30rpx;
1318   - color: #333;
1319   -}
1320   -
1321   -.quhuo {
1322   - font-size: 30rpx;
1323   - color: #000
1324   -}
1325   -
1326   -.b_num {
1327   - display: flex;
1328   - font-size: 30rpx;
1329   - color: #333;
1330   - justify-content: space-between;
1331   -}
1332   -
1333   -.count {
1334   - /* position: fixed; */
1335   - display: flex;
1336   - height: 50rpx;
1337   - /* border: 1rpx solid #000; */
1338   - font-size: 28rpx;
1339   - /* right: 30rpx; */
1340   - /* justify-content: space-between; */
1341   -}
1342   -
1343   -
1344   -.count>view,
1345   -.count>input {
1346   - width: 60rpx;
1347   - height: 50rpx;
1348   - line-height: 50rpx;
1349   - text-align: center;
1350   -}
1351   -
1352   -.spec_bt {
1353   - background: fff;
1354   - color: #333;
1355   - margin-left: 10rpx;
1356   - padding: 4rpx 15rpx 4rpx;
1357   - display: inline-block;
1358   - border-radius: 30rpx;
1359   - font-size: 24rpx;
1360   - border: 1rpx solid #ccc;
1361   - margin: 10rpx;
1362   - height: 40rpx;
1363   - line-height: 40rpx;
1364   -}
1365   -
1366   -.spec_bt.act {
1367   - background: #d60021;
1368   - color: #fff;
1369   - border: 1rpx solid #d60021;
1370   -}
1371   -
1372   -.sub, .add, .count>input {
1373   - /* border-right: 1px solid #000; */
1374   - background-color: #f8f8f8;
1375   - border-radius: 8rpx;
1376   -}
1377   -.sub.active {
1378   - /* background-color: #ddd; */
1379   - color: #ccc;
1380   -}
1381   -.count>input {
1382   - margin: 0 10rpx;
1383   - line-height: normal;
1384   -}
1385   -
1386   -/* .sub {
1387   - border-right: 1px solid #000;
1388   -}
1389   -
1390   -.add {
1391   - border-left: 1px solid #000;
1392   -} */
1393   -
1394   -.spec-btn {
1395   - color: black;
1396   - background-color: white;
1397   - padding: 10rpx 10rpx;
1398   - font-size: 26rpx;
1399   - line-height: 28rpx;
1400   - float: left;
1401   - border: 1rpx solid #dedede;
1402   - margin: 4rpx 10rpx 4rpx 0;
1403   - border-radius: 4rpx;
1404   -}
1405   -
1406   -.spec-btn-click {
1407   - color: white;
1408   - background-color: #f23030;
1409   - border: 1rpx solid #f23030;
1410   -}
1411   -
1412   -.spec-cart-btns {
1413   - width: 92%;
1414   - line-height: 70rpx;
1415   - margin: 0rpx auto;
1416   - margin-top: 160rpx;
1417   - border-radius: 20rpx;
1418   - position: fixed;
1419   - bottom: 50rpx;
1420   - left: 4%;
1421   -
1422   -}
1423   -
1424   -.spec-cart-btn {
1425   -
1426   - width: 100%;
1427   - font-size: 30rpx;
1428   - text-align: center;
1429   - color: white;
1430   - border-radius: 40rpx;
1431   -}
1432   -
1433   -.spec-add-cart {
1434   - background-color: #ffb03f;
1435   -}
1436   -
1437   -.spec-buy {
1438   - background-color: #f23030;
1439   - /* margin-left: 34rpx; */
1440   -}
1441   -
1442   -.spec-cart-disable {
1443   - background: #bbbbbb;
1444   -}
1445   -
1446   -.spec-cart-btn-lg {
1447   - width: 614rpx;
1448   -}
1449   -
1450   -.prom-model {
1451   - position: fixed;
1452   - bottom: 0;
1453   - z-index: 20;
1454   - background: white;
1455   - width: 100%;
1456   - padding: 0 30rpx 30rpx;
1457   - font-size: 32rpx;
1458   - box-sizing: border-box;
1459   - overflow-x: hidden;
1460   -}
1461   -
1462   -.prom-model .prom-title {
1463   - text-align: center;
1464   - margin: 30rpx 0;
1465   -}
1466   -
1467   -.prom-model .logistics-item {
1468   - border: 0;
1469   -}
1470   -
1471   -.prom-model .item-mes {
1472   - width: 500rpx;
1473   -}
1474   -
1475   -.integral-btn {
1476   - width: 100%;
1477   - padding: 0rpx;
1478   - margin: 0rpx;
1479   -}
1480   -
1481   -.clear {
1482   - clear: both;
1483   -}
1484   -
1485   -.sto_v .title,
1486   -.sto_v .stitle {
1487   - border-top: 1rpx solid #dedede;
1488   - border-bottom: 1rpx solid #dedede;
1489   - height: 78rpx;
1490   - line-height: 78rpx;
1491   -}
1492   -
1493   -.sto_v .title .tubiao,
1494   -.sto_v .stitle .tubiao {
1495   - width: 32rpx;
1496   - height: 32rpx;
1497   - margin-top: 23rpx;
1498   -}
1499   -
1500   -.itemlists .item {
1501   - border-bottom: 1rpx solid #dedede;
1502   - height: 72rpx;
1503   - line-height: 72rpx;
1504   - font-size: 28rpx;
1505   - margin: 0 10rpx;
1506   -}
1507   -
1508   -.cshu {
1509   - margin-bottom: 30rpx;
1510   - margin-top: 20rpx;
1511   -}
1512   -
1513   -.cshu view {
1514   - color: #999;
1515   - font-size: 30rpx;
1516   - margin-left: 26rpx;
1517   -}
1518   -
1519   -
1520   -/*---活动特殊显示---*/
1521   -.prom_show {
1522   - height: 120rpx;
1523   - display: flex;
1524   -}
1525   -
1526   -.prom_show .secondkill-img {
1527   - width: 100%;
1528   - height: 100%;
1529   -}
1530   -
1531   -.prom_show .spike-img {
1532   - width: 283rpx;
1533   - height: 57rpx;
1534   - top: 35rpx;
1535   - left: 31rpx;
1536   -}
1537   -
1538   -.prom_show .stop {
1539   - color: #d81731;
1540   - top: 17rpx;
1541   - right: 65rpx;
1542   - font-weight: 600;
1543   -}
1544   -
1545   -.prom_show .start {
1546   - color: #009ae2;
1547   - top: 17rpx;
1548   - right: 65rpx;
1549   - font-weight: 600;
1550   -}
1551   -
1552   -.prom_show .timeac {
1553   - font-size: 32rpx;
1554   - height: 120rpx;
1555   - color: #333;
1556   -}
1557   -
1558   -.prom_show .timeac.left {
1559   - width: 66%;
1560   - color: #fff;
1561   - background: #f23030;
1562   -}
1563   -
1564   -.prom_show .timeac.right {
1565   - width: 34%;
1566   - background-color: #d7d7d7;
1567   - text-align: center
1568   -}
1569   -
1570   -.prom_show .secview .day {
1571   - padding-right: 10rpx;
1572   -}
1573   -
1574   -.prom_show .secview .time-val {
1575   - width: 36rpx;
1576   - height: 36rpx;
1577   - border-radius: 7rpx;
1578   - line-height: 36rpx;
1579   -}
1580   -
1581   -.prom_show .secview .time {
1582   - margin-right: 10rpx;
1583   - margin-left: 10rpx;
1584   -}
1585   -
1586   -
1587   -.prom_show .timeac.left view {
1588   - margin-left: 20rpx
1589   -}
1590   -
1591   -.prom_show .timeac.left view.firview {
1592   - margin-top: 10rpx
1593   -}
1594   -
1595   -.prom_show .timeac.left view .tr_line {
1596   - text-decoration: line-through;
1597   - font-size: 28rpx;
1598   -}
1599   -
1600   -.prom_show .timeac.left view .bprice {
1601   - font-size: 50rpx;
1602   -}
1603   -
1604   -.prom_show .timeac.right view.firview {
1605   - margin-top: 12rpx;
1606   - margin-bottom: 10rpx
1607   -}
1608   -
1609   -.prom_show .timeac.right view.secview {
1610   - display: flex;
1611   - text-align: center;
1612   - justify-content: center;
1613   - flex-direction: row;
1614   -}
1615   -
1616   -.prom_show .timeac.right view .tui-conutdown-box {
1617   - /* background: #6b6b6b; */
1618   - width: auto;
1619   - /* min-width: 45rpx; */
1620   - height: 45rpx;
1621   - color: #c4182e;
1622   - font-size: 27rpx;
1623   - text-align: center;
1624   - line-height: 46rpx;
1625   -}
1626   -
1627   -.huise {
1628   - background: gray
1629   -}
1630   -
1631   -.lanse {
1632   - background: #0199e2
1633   -}
1634   -
1635   -
1636   -/*------拼单------*/
1637   -.pt_view {
1638   - text-align: center;
1639   - width: 100%;
1640   - height: 100rpx;
1641   - line-height: 100rpx;
1642   - font-size: 26rpx
1643   -}
1644   -
1645   -.pt_view .secondkill-img {
1646   - width: 100%;
1647   - height: 100%;
1648   -}
1649   -
1650   -.pt_fir {
1651   - background: #fff;
1652   - margin-bottom: 10rpx;
1653   -}
1654   -
1655   -.pt_fir .pt_fir_title {
1656   - display: flex;
1657   - align-items: center;
1658   - margin-left: 10rpx;
1659   - margin-top: 20rpx;
1660   - font-size: 28rpx;
1661   - position: relative;
1662   -}
1663   -
1664   -.pt_fir .pt_fir_title .kt_type {
1665   - color: #fff;
1666   - background: #e9030d;
1667   - width: 100rpx;
1668   - line-height: 40rpx;
1669   - border-radius: 6rpx;
1670   - margin: 0 10rpx;
1671   - height: 40rpx;
1672   - font-size: 24rpx;
1673   - text-align: center;
1674   -}
1675   -
1676   -.pt_fir .pt_fir_title .price {
1677   - color: #e9030d;
1678   - font-size: 26rpx;
1679   -}
1680   -
1681   -.pt_fir .pt_fir_title .bigw {
1682   - font-size: 36rpx;
1683   -}
1684   -
1685   -.pt_fir .pt_fir_title .tprice {
1686   - text-decoration: line-through;
1687   - color: #949494
1688   -}
1689   -
1690   -.pt_fir .pt_fir_title .tprice.ml50 {
1691   - margin-left: 50rpx
1692   -}
1693   -
1694   -.pt_fir .pt_fir_title .js {
1695   - padding: 0 15rpx;
1696   - height: 40rpx;
1697   - background: #e9030d;
1698   - text-align: center;
1699   - border-radius: 8rpx;
1700   - color: #fff;
1701   - margin-left: 10rpx;
1702   -}
1703   -
1704   -.pt_fir .pt_fir_title .tuannum {
1705   - color: #e9030d;
1706   - position: absolute;
1707   - right: 20rpx;
1708   - font-size: 26rpx;
1709   -}
1710   -
1711   -.pding {
1712   - padding-top: 20rpx;
1713   - padding-left: 20rpx;
1714   - height: 81%;
1715   - padding-right: 20rpx;
1716   - font-size: 26rpx;
1717   - color: #ea120f
1718   -}
1719   -
1720   -.pdres {
1721   - margin-left: 10rpx;
1722   - color: #8f8f94
1723   -}
1724   -
1725   -.ptgz {
1726   - position: relative;
1727   - font-size: 30rpx;
1728   - padding-left: 20rpx;
1729   - margin-top: 10rpx;
1730   - overflow: hidden
1731   -}
1732   -
1733   -.shuxian {
1734   - width: 6rpx;
1735   - height: 28rpx;
1736   - background: #ea120f;
1737   - display: inline-block;
1738   - top: 5rpx;
1739   - position: relative;
1740   - margin-right: 5rpx
1741   -}
1742   -
1743   -.ptgz_an {
1744   - position: absolute;
1745   - top: 5rpx;
1746   - right: 6rpx
1747   -}
1748   -
1749   -.ptgz_an .arrow-two {
1750   - width: 18rpx;
1751   - height: 18rpx;
1752   - border-color: #da0b31;
1753   - margin-top: 30rpx;
1754   -}
1755   -
1756   -.pt_fir.se {
1757   - height: auto;
1758   - margin-bottom: 10rpx
1759   -}
1760   -
1761   -.t_gz {
1762   - padding: 10rpx 20rpx;
1763   - font-size: 28rpx
1764   -}
1765   -
1766   -.pt_fir.se1 {
1767   - height: auto;
1768   - margin: 0
1769   -}
1770   -
1771   -.pt_fir.se2 {
1772   - height: auto;
1773   - margin: 0;
1774   - border-top: 6rpx solid #eeeeee;
1775   - border-bottom: 2rpx solid #eeeeee;
1776   -}
1777   -
1778   -.pt_hb {
1779   - height: 78rpx;
1780   - line-height: 75rpx;
1781   - position: relative;
1782   - font-size: 32rpx;
1783   - overflow: hidden;
1784   - width: 695rpx;
1785   - margin-left: 28rpx;
1786   - border-bottom: 1rpx solid #E5E5E5
1787   -}
1788   -
1789   -.ptgz_an.xq {
1790   - font-size: 32rpx;
1791   - color: #d40024
1792   -}
1793   -
1794   -.wf {
1795   - display: flex;
1796   - padding: 20rpx 0;
1797   -}
1798   -
1799   -.wf .item {
1800   - width: 24.5%;
1801   - text-align: center;
1802   - font-size: 26rpx;
1803   - color: #666
1804   -}
1805   -
1806   -.wf .item .item_txy {
1807   - position: relative;
1808   - width: 60rpx;
1809   - height: 60rpx;
1810   - background: #ea120f;
1811   - border-radius: 50%;
1812   - left: 50%;
1813   - margin-left: -30rpx;
1814   - border: 3px #dfdfdf solid;
1815   - text-align: center;
1816   - line-height: 60rpx;
1817   - color: #fff;
1818   - margin-bottom: 10rpx;
1819   -}
1820   -
1821   -.wf .item .item_txy.hs {
1822   - background: #cbcbcb;
1823   -}
1824   -
1825   -.po {
1826   - margin-bottom: 20rpx;
1827   -}
1828   -
1829   -.cart-btn.line-h {
1830   - line-height: 26rpx;
1831   -}
1832   -
1833   -.cart-btn .fir-v {
1834   - margin-top: 10rpx;
1835   -}
1836   -
1837   -.hyt {
1838   - padding: 0 20rpx;
1839   - font-size: 30rpx;
1840   - display: flex;
1841   - align-items: center;
1842   - margin-top: 10rpx;
1843   -}
1844   -
1845   -.hyt .r_f {
1846   - color: #e9120f;
1847   - font-size: 26rpx;
1848   - position: relative;
1849   - top: 3rpx
1850   -}
1851   -
1852   -.hyt .byj {
1853   - color: #e9120f;
1854   - font-size: 32rpx;
1855   - position: relative;
1856   - top: 5rpx
1857   -}
1858   -
1859   -.pt_fir .pt_fir_title.no-mar-b {
1860   - margin-bottom: 0;
1861   - padding-bottom: 10rpx;
1862   - margin-left: 20rpx
1863   -}
1864   -
1865   -.pt_fir .pt_fir_title.boder-1 {
1866   - border-bottom: 1rpx #e7e7e7 solid
1867   -}
1868   -
1869   -.jie_price {
1870   - padding: 10rpx 30rpx;
1871   -}
1872   -
1873   -.jie_price_title {
1874   - font-size: 30rpx;
1875   - color: #a26270;
1876   - margin-bottom: 10rpx
1877   -}
1878   -
1879   -.price_list {
1880   - display: flex;
1881   - width: 100%;
1882   -}
1883   -
1884   -.price_item {
1885   - width: 25%;
1886   - font-size: 28rpx;
1887   - color: #4c336c
1888   -}
1889   -
1890   -.pt_fir.se2 .zzk-1 {
1891   - margin-top: 23rpx;
1892   - font-size: 30rpx;
1893   - position: relative;
1894   - margin-bottom: 30rpx;
1895   - border-left: 4rpx solid red;
1896   - margin-left: 14rpx;
1897   - height: 30rpx;
1898   - line-height: 30rpx;
1899   - padding-left: 5rpx;
1900   -}
1901   -
1902   -.ckgd {
1903   - position: absolute;
1904   - top: 0;
1905   - right: 57rpx;
1906   - color: #d70025;
1907   - font-size: 32rpx;
1908   -}
1909   -
1910   -.ckgd .arrow-one {
1911   - width: 18rpx;
1912   - height: 18rpx;
1913   - border-color: #da0b31;
1914   - margin-top: 5rpx;
1915   -}
1916   -
1917   -.bview {
1918   - position: fixed;
1919   - top: 0;
1920   - left: 0;
1921   - width: 100%;
1922   - height: 100%;
1923   - background-color: rgba(0, 0, 0, 0.5);
1924   -}
1925   -
1926   -.juzhong {
1927   - position: fixed;
1928   - top: 0;
1929   - left: 0;
1930   - width: 100%;
1931   - height: 100%;
1932   - display: flex;
1933   - flex-direction: row;
1934   - justify-content: center;
1935   - align-items: center;
1936   -}
1937   -
1938   -.juzhong .xq {
1939   - padding: 0 20rpx;
1940   - background: #fff;
1941   - font-size: 30rpx;
1942   - padding-bottom: 20rpx;
1943   -}
1944   -
1945   -.juzhong .xq .title {
1946   - text-align: center;
1947   - margin: 20rpx 0;
1948   - position: relative;
1949   - height: 50rpx;
1950   -}
1951   -
1952   -.juzhong .xq .hs1 {
1953   - font-size: 28rpx;
1954   - color: #ab8f9e
1955   -}
1956   -
1957   -.juzhong .xq .title .close {
1958   - position: absolute;
1959   - top: 0;
1960   - right: 0;
1961   - width: 45rpx;
1962   - height: 45rpx;
1963   -}
1964   -
1965   -.pt_qd {
1966   - /* margin-top: 40rpx;
1967   - height: auto; */
1968   -}
1969   -
1970   -.spec-cart-btn.w100 {
1971   - width: 95%;
1972   - margin-left: 0;
1973   - height: 75rpx;
1974   - line-height: 75rpx;
1975   - margin: auto;
1976   -}
1977   -
1978   -.sto_v {
1979   - color: #333;
1980   -}
1981   -
1982   -.ellipsis {
1983   - overflow: hidden;
1984   - white-space: nowrap;
1985   - text-overflow: ellipsis;
1986   -}
1987   -
1988   -
1989   -
1990   -
1991   -/* 房子图标 */
1992   -.stores-img {
1993   - width: 40rpx;
1994   - height: 35rpx;
1995   - margin-right: 10rpx;
1996   -}
1997   -
1998   -.right-arrow {
1999   - width: 15rpx;
2000   - height: 15rpx;
2001   - border-top: 2rpx solid #d70026;
2002   - border-right: 2rpx solid #d70026;
2003   - transform: rotate(45deg);
2004   - display: inline-block;
2005   - margin-bottom: 3rpx;
2006   -}
2007   -
2008   -.distance{
2009   - padding-left: 15rpx;
2010   - padding-right: 15rpx;
2011   - background: #eee;
2012   - border-radius: 20rpx;
2013   - margin-right: 5rpx;
2014   - color: #999;
2015   - height: 38rpx;
2016   - line-height: 38rpx;
2017   -}
2018   -
2019   -.shop_name{
2020   - margin-right: 10rpx;
2021   -}
2022   -
2023   -.xc-distance-top{
2024   - margin-top: 10rpx;
2025   -}
2026   -
2027   -
2028   -.popup-frame{
2029   - position: fixed;
2030   - /* bottom:99rpx; */
2031   - bottom: 0;
2032   - z-index: 20;
2033   - background: white;
2034   - width: 100%;
2035   - border-radius: 20rpx 20rpx 0 0;
2036   - height: auto;
2037   -}
2038   -
2039   -.popup-top{
2040   - border-bottom: 1rpx solid #eee;
2041   - height: 155rpx;
2042   - width: 95%;
2043   - margin: auto;
2044   - line-height: 155rpx;
2045   -
2046   -}
2047   -
2048   -
2049   -/* .flex-space-between{
2050   - display: flex;
2051   - justify-content:space-between;
2052   -} */
2053   -
2054   -.modal-closes {
2055   - position: absolute;
2056   - right: 30rpx;
2057   - top: -15rpx;
2058   - height: 25rpx;
2059   -}
2060   -
2061   -.choose_more{
2062   - margin-top: 40rpx;
2063   - margin-right: 20rpx;
2064   -
2065   -}
2066   -.choose_mores{
2067   - margin-top: 30rpx;
2068   - margin-right: 15rpx;
2069   -
2070   -}
2071   -
2072   -.bg_rights{
2073   - border-top: 2rpx solid ;
2074   - border-right: 2rpx solid ;
2075   - transform: rotate(45deg);
2076   - display: inline-block;
2077   - width: 15rpx;height:15rpx;
2078   - border-color: #da0b31;
2079   -}
2080   -
2081   -
2082   -.mongolia-layer{
2083   - position: fixed;
2084   - left: 0;
2085   - top: 0;
2086   - right: 0;
2087   - bottom: 0;
2088   - z-index: 11;
2089   - background: rgba(0,0,0,0.4);
2090   - width: 100%;
2091   - height: 91.9%;
2092   -}
2093   -
2094   -
2095   -
2096   -
2097   -.store-list{
2098   - width: 95%;
2099   - min-height:300rpx;
2100   - overflow-y: scroll;
2101   - margin: auto;
2102   - max-height: 610rpx;
2103   -}
2104   -
2105   -.store-list .store_choose{
2106   - width: 100%;
2107   - height: 120rpx;
2108   - line-height: 125rpx;
2109   - border-bottom: 1rpx solid #eee;
2110   -}
2111   -
2112   -.store-list .store_choose .store{
2113   - width: 100%;
2114   - margin: auto;
2115   - line-height: 37rpx;
2116   - padding-left: 20rpx;
2117   -}
2118   -
2119   -.xc-hook{
2120   - width: 35rpx;
2121   - height: 35rpx;
2122   - transform: rotate(-145deg);
2123   - line-height: 37rpx;
2124   - text-align: center;
2125   -}
2126   -
2127   -.butttem5{
2128   - margin-bottom: 5rpx;
2129   -}
2130   -
2131   -.address-frame{
2132   - width: 93%;
2133   - margin-left: 7rpx;
2134   -}
2135   -
2136   -.store-bottom{
2137   - width: 85%;
2138   - margin: auto;
2139   - height: 90rpx;
2140   - }
2141   -
2142   - .determine{
2143   - width: 260rpx;
2144   - height: 55rpx;
2145   - border-radius: 50rpx;
2146   - line-height: 55rpx;
2147   - }
2148   -
2149   - .default{
2150   - width: 260rpx;
2151   - height: 55rpx;
2152   - border:3rpx solid #c8c8c8;
2153   - border-radius: 50rpx;
2154   - line-height: 55rpx;
2155   - }
2156   -
2157   - .sort_store_list .sort-store-frame .sort-store {
2158   - width: 94.5%;
2159   - margin: auto;
2160   - }
2161   -
2162   -
2163   - .sort_store_list .sort-store-frame{
2164   - width: 100%;
2165   - height: 100rpx;
2166   - line-height:100rpx;
2167   - border-bottom: 1rpx solid #eee;
2168   - }
2169   -
2170   - .black_rights-frame .black_rights{
2171   - border-top: 3rpx solid;
2172   - border-right: 3rpx solid;
2173   - transform: rotate(45deg);
2174   - display: inline-block;
2175   - width: 20rpx;
2176   - height: 20rpx;
2177   - }
2178   -
2179   -
2180   - .sort_store_list{
2181   - max-height: 700rpx;
2182   - overflow: hidden;
2183   - overflow-y: scroll;
2184   - width: 95%;
2185   - margin: auto;
2186   - }
2187   -
2188   - .xc-hooks{
2189   - width: 30rpx;
2190   - height: 30rpx;
2191   - border: 1rpx solid #999;
2192   -}
2193   -
2194   -.no_store{color:#d60021; font-size: 26rpx;}
2195   -
2196   -.sub.active {
2197   - /* background-color: #ddd; */
2198   - color: #ccc;
2199   -}
2200   -
2201   -.c-red22{ color:#d60021; }
  1 +.rty{
  2 + display:flex; justify-content: center; align-items: center;
  3 + width:100%;
  4 + height:100%
  5 +}
2202 6 \ No newline at end of file
... ...
pages/user/index/index.js
... ... @@ -26,7 +26,7 @@ Page({
26 26 txmon: 0,
27 27 byquan: 0,
28 28 yuer: 0,
29   - is_no_plus: 1,
  29 + is_no_plus: 0, //是否开通等级卡,或者体验等级卡
30 30 currentPage: 1,
31 31 recommend_list: [],
32 32 tc_hide: true,
... ... @@ -47,13 +47,13 @@ Page({
47 47 add_card_data: '', //等级卡的内容
48 48 getusercode_vailtime:10,//会员二维码时效
49 49 hiddenCS: true,
50   -
51 50 is_show_recommend:false,
52   -
53 51 has_rj:0,
54 52 rfmName:'成长值',
55   - is_close_chuzhi:0
56   -
  53 + is_close_chuzhi:0,
  54 + brcode:'',
  55 + showvipcode:false,
  56 + pshow:0
57 57  
58 58 },
59 59 goto_nav: function (e) {
... ... @@ -118,8 +118,11 @@ Page({
118 118 */
119 119 onShow: function () {
120 120  
  121 +
121 122 var _that=this;
122 123  
  124 + this.init_load()
  125 +
123 126 //-- 看一下隐私政策要不要显示 --
124 127 var privacy_pop = this.selectComponent("#privacy_pop"); //组件的id
125 128 if (privacy_pop) {
... ... @@ -173,6 +176,8 @@ Page({
173 176 if (item.end_time < now) {
174 177 th.setData({ is_no_plus: 0 })
175 178 }
  179 + }else if(item.is_sy == 1){
  180 + th.setData({ is_no_plus: 1 })
176 181 }
177 182 }
178 183 }
... ... @@ -200,7 +205,6 @@ Page({
200 205  
201 206 if (e != undefined && e != null && e.mobile) {
202 207  
203   -
204 208 if (e.card_field != '' && e.card_field != null && e.card_field != undefined && e.card_expiredate) {
205 209 var now = ut.gettimestamp();
206 210 var str = e.card_expiredate.replace(/-/g, '/');;
... ... @@ -438,6 +442,8 @@ Page({
438 442 if (cz_vals < im.BuyGradeSum && need_money == 0) {
439 443 need_money = im.BuyGradeSum;
440 444 obj.need_money = need_money;
  445 + obj.nextGradeName=im.GradeName;
  446 + break;
441 447 }
442 448 }
443 449  
... ... @@ -475,6 +481,9 @@ Page({
475 481 //th.setData({ qy_list: arr, need_money: need_money});
476 482 obj.qy_list = arr;
477 483 th.setData(obj);
  484 + obj.is_init=1;
  485 + obj.old_qy_list = arr_data;
  486 + th.setData({qy_data:obj})
478 487 }
479 488 })
480 489 }
... ... @@ -537,13 +546,16 @@ Page({
537 546 goods_list.get_list();
538 547 }
539 548  
540   - }, 1000)
541   - }
542   -
  549 + }, 1200)
543 550  
  551 + }
544 552  
  553 + setTimeout(()=>{
  554 + th.setData({ pshow:1 })
  555 + },500)
545 556  
546 557 },
  558 +
547 559 //获取会员权益等级是否升级
548 560 getVison(){
549 561 let isRfm = wx.getStorageSync('isRfm')
... ... @@ -595,7 +607,11 @@ Page({
595 607 url: "/packageD/pages/error/error?msg=还未购买小程序",
596 608 });
597 609 },
598   -
  610 + showtext:function(){
  611 + this.setData({
  612 + showvipcode:true
  613 + })
  614 + },
599 615 /**
600 616 * 页面上拉触底事件的处理函数
601 617 */
... ... @@ -654,11 +670,13 @@ Page({
654 670 var val = that.data.userInfo.mobile + "|" +getnowtime+"|"+that.data.getusercode_vailtime;
655 671 val = "^" + ut.base64_encode(val);
656 672  
657   - qrcode('qrcode', val, 480, 480, that);
  673 + qrcode('qrcode', val, 350, 350, that);
  674 + barcode('barcode', that.data.userInfo.userQrcode, 480,140);
658 675 that.setData({
659 676 tc_hide: false,
  677 + brcode:that.data.userInfo.userQrcode
660 678 });
661   - }
  679 + }
662 680 }
663 681 })
664 682  
... ... @@ -940,7 +958,7 @@ Page({
940 958 var giftbagid = res.data.data.giftBagId;
941 959 var actId = res.data.data.id;
942 960 var actImg = res.data.data.actImg;
943   - th.setData({ giftbagid: giftbagid, actId: actId, actImg: actImg });
  961 + th.setData({ giftbagid: giftbagid, actId: actId, actImg: actImg, b_gift:{ giftbagid: giftbagid, actId: actId, actImg: actImg } });
944 962 th.setData({ is_banner: 1 });
945 963 }
946 964  
... ... @@ -1171,6 +1189,45 @@ Page({
1171 1189 });
1172 1190 },
1173 1191  
  1192 + //同步初始加载
  1193 + async init_load() {
  1194 + var th = this;
  1195 + //因为营销版本的功能包含了自定义模板的功能,是同时的
  1196 + //读取全局是否有弄自定义模板
  1197 + await getApp().request.promiseGet("/api/weshop/store_module/gets/"+os.stoid+"/1/8", {1: 1}).then(res => {
  1198 + var data = res.data.data;
  1199 + if (data && data.length) {
  1200 + var temp_data = data[0];
  1201 + var t_arr = JSON.parse(temp_data.json_str);
  1202 +
  1203 + let obj={
  1204 + share_title: temp_data.page_title,
  1205 + template_arr: t_arr,
  1206 + isTemplate: 1,
  1207 + bgcolor_t: temp_data.bkcolor,
  1208 + pshow:1
  1209 + };
  1210 +
  1211 + //---如果有设定顶部的颜色的时候--
  1212 + if (temp_data.top_color && temp_data.top_color != 'null') {
  1213 + var top_w_color = "#ffffff";
  1214 + if (temp_data.top_word_color) {
  1215 + top_w_color = temp_data.top_word_color
  1216 + }
  1217 + wx.setNavigationBarColor({
  1218 + frontColor: top_w_color, // 必写项
  1219 + backgroundColor: temp_data.top_color, // 必写项
  1220 + })
  1221 + obj.topwColor=top_w_color;
  1222 + obj.topbgColor=temp_data.top_color;
  1223 + }
  1224 +
  1225 + th.setData(obj);
  1226 +
  1227 + }
  1228 + })
  1229 + },
  1230 +
1174 1231  
1175 1232  
1176 1233  
... ...
pages/user/index/index.json
... ... @@ -3,7 +3,14 @@
3 3 "pop_txt": "/components/userqy_pop_up/userqy_pop_up",
4 4 "goods_recommend": "/components/goods_list/goods_list",
5 5 "privacy_pop": "/components/privacy_pop/privacy_pop",
6   - "com_top_nav": "/components/com_top_nav/com_top_nav"
  6 + "com_top_nav": "/components/com_top_nav/com_top_nav",
  7 + "advertising":"/components/diy_advertising/diy_advertising",
  8 + "assist":"/components/diy_assist/diy_assist",
  9 + "diy_user_info":"/components/diy_user_info/diy_user_info",
  10 + "diy_user_order":"/components/diy_user_order/diy_user_order",
  11 + "diy_user_my_rights":"/components/diy_user_my_rights/diy_user_my_rights",
  12 + "diy_user_tools_services":"/components/diy_user_tools_services/diy_user_tools_services"
  13 +
7 14 },
8 15 "navigationBarTitleText": "会员中心",
9 16 "navigationStyle": "custom"
... ...
pages/user/index/index.wxml
... ... @@ -5,387 +5,469 @@
5 5 <wxs src="filter.wxs" module="util"></wxs>
6 6 <com_top_nav title="会员中心"></com_top_nav>
7 7  
8   -<view class="xc-page" style="margin-bottom:{{isIpx ? '168rpx' : '100rpx'}}">
9   - <view class="xc-user">
10   - <view class="xc-head rel">
11   - <image class="xc-background" src="{{iurl}}{{ad_img?ad_img:'/miniapp/images/user_index_powder.jpg'}}">
12   - <view class="flex-space-between abs xc-user-frame">
13   - <view class="xc-user-left flex" wx:if="{{userInfo}}">
14   - <view style="position:relative;">
15   - <image class="xc-user-img circle" bindtap="go_info" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image>
16   - <block wx:if="{{pulscardname && sys_switch.rank_switch > 0 }}">
17   - <view data-url="/pages/user/plus/plus" catchtap="goto" class="flex-center plusMax">
18   - <image class="fuls" src="{{iurl}}/miniapp/images/userinfo/userinfo/privilege_t.png"></image>
19   - <view>{{pulscardname}}</view>
  8 +
  9 +
  10 +<block wx:if="{{pshow}}">
  11 + <!-- 显示自定义模板 -->
  12 + <block wx:if="{{isTemplate}}">
  13 + <block wx:for="{{template_arr}}" wx:key="{{index}}">
  14 + <view>
  15 + <!--广告组合-->
  16 + <block wx:if="{{item.ename=='advertising'}}">
  17 + <advertising object="{{item.content}}"></advertising>
  18 + </block>
  19 + <!--辅助空白-->
  20 + <block wx:if="{{item.ename=='white'}}">
  21 + <assist object="{{item.content}}"></assist>
  22 + </block>
  23 + <!-- 会员信息 -->
  24 + <block wx:if="{{item.ename=='userinfo'}}">
  25 + <diy_user_info object="{{item.content}}" byquan="{{byquan}}" yuer="{{yuer}}" udata="{{udata}}" qy_data="{{qy_data}}" pulscardname="{{pulscardname}}" rfmName="{{rfmName}}"></diy_user_info>
  26 + </block>
  27 + <!-- 我的订单 -->
  28 + <block wx:if="{{item.ename=='order'}}">
  29 + <diy_user_order object="{{item.content}}" toji="{{toji}}"></diy_user_order>
  30 + </block>
  31 + <!-- 我的权益 -->
  32 + <block wx:if="{{item.ename=='my_rights'}}">
  33 + <diy_user_my_rights object="{{item.content}}" qy_data="{{qy_data}}" b_gift="{{b_gift}}"></diy_user_my_rights>
  34 + </block>
  35 + <!-- 工具与服务 -->
  36 + <block wx:if="{{item.ename=='tools_services'}}">
  37 + <diy_user_tools_services object="{{item.content}}" is_dengji="{{is_dengji}}" qy_data="{{qy_data}}" enableMeiye="{{enableMeiye}}" f_user_tool="{{user_tool}}" c_list="{{c_list}}"></diy_user_tools_services>
  38 + </block>
  39 +
  40 + </view>
  41 + </block>
  42 +
  43 + <!-- 显示推荐 -->
  44 + <view style='width:100%;height:73rpx;' wx:if="{{is_show_recommend}}">
  45 + <view class="xc-recommend-goods flex-center">
  46 +
  47 + <view class="circle xc-small">
  48 + </view>
  49 + <view class="circle xc-zhong">
  50 + </view>
  51 + <view class="circle xc-big">
  52 + </view>
  53 + <view class="three-level-word xc-recommend">为你推荐</view>
  54 + <view class="circle xc-big">
  55 + </view>
  56 + <view class="circle xc-zhong">
  57 + </view>
  58 + <view class="circle xc-small" style='margin-left:15rpx;'>
  59 + <!-- </view> -->
  60 + </view>
  61 + </view>
  62 + </view>
  63 + <!-- 显示商品 -->
  64 + <!-- 好物推荐 -->
  65 + <block wx:if="{{is_show_recommend}}">
  66 + <goods_recommend id="goods_recommend"></goods_recommend>
  67 + </block>
  68 +
  69 + <!-- 技术支持 -->
  70 + <view class="logo-container t-c">
  71 + <view class="flex ai_c fs24 jc-center pdv30 white">
  72 + <image src="{{iurl + 'miniapp/images/luckDraw/logo.png?v=3'}}" class="logo" lazy-load></image>提供技术支持
  73 + </view>
  74 + </view>
  75 + </block>
  76 +
  77 + <block wx:else>
  78 + <view class="xc-page" style="margin-bottom:{{isIpx ? '168rpx' : '100rpx'}}">
  79 + <view class="xc-user">
  80 + <view class="xc-head rel">
  81 + <image class="xc-background" src="{{iurl}}{{ad_img?ad_img:'/miniapp/images/user_index_powder.jpg'}}">
  82 + <view class="flex-space-between abs xc-user-frame">
  83 + <view class="xc-user-left flex" wx:if="{{userInfo}}">
  84 + <view style="position:relative;">
  85 + <image class="xc-user-img circle" bindtap="go_info" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image>
  86 + <block wx:if="{{pulscardname && sys_switch.rank_switch > 0 }}">
  87 + <view data-url="/pages/user/plus/plus" catchtap="goto" class="flex-center plusMax">
  88 + <image class="fuls" src="{{iurl}}/miniapp/images/userinfo/userinfo/privilege_t.png"></image>
  89 + <view>{{pulscardname}}</view>
  90 + </view>
  91 + </block>
20 92 </view>
21   - </block>
22   - </view>
23 93  
24   - <view class="xc-uesr-name">
25   - <view class="flex ai-center">
26   - <text class="ellipsis-1" style="max-width: 290rpx;display: inline-block">{{userInfo.nickname}}</text>
27   - <view class="hvip" wx:if='{{GradeName && is_init}}'>
28   - <image class="vip-mem" src="{{iurl}}/miniapp/images/vip_hg0.png"></image>{{GradeName}}
  94 + <view class="xc-uesr-name">
  95 + <view class="flex ai-center">
  96 + <text class="ellipsis-1" style="max-width: 290rpx;display: inline-block">{{userInfo.nickname}}</text>
  97 + <view class="hvip" wx:if='{{GradeName && is_init}}'>
  98 + <image class="vip-mem" src="{{iurl}}/miniapp/images/vip_hg0.png"></image>{{GradeName}}
  99 + </view>
  100 + </view>
  101 +
  102 +
  103 +
  104 +
  105 + <view class="flex fs24 xc-grow-ups" style="margin-left:8rpx;margin-top:6rpx" wx:if="{{is_init && gradeId}}" bindtap='jump'>
  106 + <block wx:if="{{cz_val<full_cz_val}}">
  107 + {{" "}}
  108 + <text class="grow-up-val" style="background:{{usertop_ad.bgcolor?usertop_ad.bgcolor:'#fe9db5'}};">{{rfmName}}</text>
  109 + <view style='margin-left:5rpx; '>{{cz_val}} / {{need_money}}</view>
  110 + </block>
  111 + <block wx:else>
  112 + {{" "}}
  113 + <text class="grow-up-val" style="background:{{usertop_ad.bgcolor?usertop_ad.bgcolor:'#fe9db5'}};">{{rfmName}}</text> {{cz_val}}
  114 + </block>
  115 + </view>
29 116 </view>
  117 +
30 118 </view>
31 119  
  120 + <view class="xc-user-left flex" wx:else bindtap="gobindtel">
  121 + <image class="xc-user-img circle" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image>
  122 + <view class="xc-uesr-name">请点击注册</view>
  123 + </view>
32 124  
33 125  
  126 + </view>
  127 + <view wx:if="{{userInfo}}" class="xc-qrcode-frame abs ">
  128 + <!-- {{iurl}}/miniapp -->
  129 + <image bindtap='show_tc' class=" xc-qrcode " style="border: 5rpx solid {{usertop_ad.bgcolor?usertop_ad.bgcolor:'#fe9db5'}};background: {{usertop_ad.bgcolor?usertop_ad.bgcolor:'#fe9db5'}};" src="{{iurl}}/miniapp/images/qrcode1.png"></image>
  130 + <view style="font-size:12px;color: #fff;">会员卡</view>
  131 + </view>
  132 + <view class="flex-vertical abs xc-grow-frame rel" style="display: none">
  133 + <view class="xc-grow-up">{{rfmName}}</view>
34 134  
35   - <view class="flex fs24 xc-grow-ups" style="margin-left:8rpx;margin-top:6rpx" wx:if="{{is_init && gradeId}}" bindtap='jump'>
36   - <block wx:if="{{cz_val<full_cz_val}}">
37   - {{" "}}
38   - <text class="grow-up-val" style="background:{{usertop_ad.bgcolor?usertop_ad.bgcolor:'#fe9db5'}};">{{rfmName}}</text>
39   - <view style='margin-left:5rpx; '>{{cz_val}} / {{need_money}}</view>
40   - </block>
41   - <block wx:else>
42   - {{" "}}
43   - <text class="grow-up-val" style="background:{{usertop_ad.bgcolor?usertop_ad.bgcolor:'#fe9db5'}};">{{rfmName}}</text> {{cz_val}}
44   - </block>
  135 + <view class="xc-line-not rel">
  136 + <image class="xc-bj-img abs" src="{{iurl}}/miniapp/images/baijing.png"></image>
  137 + <image class="xc-zs-img abs" src="{{iurl}}/miniapp/images/zhuangshi.png"></image>
  138 + <view class="xc-line-Yes abs" style="width:{{length}}rpx;"></view>
45 139 </view>
46   - </view>
47 140  
48   - </view>
  141 + <view class="xc-grow-val">0/0</view>
  142 + </view>
  143 + <view class="flex-equality abs xc-assets">
  144 + <view class="t-c typefont" bindtap='balance'>{{yuer?yuer:0}}
  145 + <view class='numfont'>余额</view>
  146 + </view>
  147 + <!-- 是否关闭 -->
  148 + <block wx:if="{{!is_close_chuzhi}}">
  149 + <view class="t-c typefont" bindtap='deposit'>{{udata.Balance?udata.Balance:0}}
  150 + <view class='numfont'>储值款</view>
  151 + </view>
  152 + </block>
49 153  
50   - <view class="xc-user-left flex" wx:else bindtap="gobindtel">
51   - <image class="xc-user-img circle" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image>
52   - <view class="xc-uesr-name">请点击注册</view>
53   - </view>
  154 + <view class="t-c typefont" bindtap='integral'>{{udata.Integral?udata.Integral:0}}
  155 + <view class='numfont'>积分</view>
  156 + </view>
54 157  
  158 + <view class="t-c typefont" bindtap='coupon'>{{udata.CashCount+byquan?udata.CashCount+byquan:0}}
  159 + <view class='numfont'>优惠券</view>
  160 + </view>
  161 + </view>
  162 + </image>
55 163  
56 164 </view>
57   - <view wx:if="{{userInfo}}" class="xc-qrcode-frame abs ">
58   - <!-- {{iurl}}/miniapp -->
59   - <image bindtap='show_tc' class=" xc-qrcode " style="border: 5rpx solid {{usertop_ad.bgcolor?usertop_ad.bgcolor:'#fe9db5'}};background: {{usertop_ad.bgcolor?usertop_ad.bgcolor:'#fe9db5'}};" src="{{iurl}}/miniapp/images/qrcode1.png"></image>
60   - <view style="font-size:12px;color: #fff;">会员卡</view>
61   - </view>
62   - <view class="flex-vertical abs xc-grow-frame rel" style="display: none">
63   - <view class="xc-grow-up">{{rfmName}}</view>
  165 + <block wx:if="{{is_no_plus}}">
  166 + <view class="xc-add-member-frame flex-level rel addplus" wx:if="{{is_dengji==2 && show_buy_plus }}">
  167 + <view class="xc-add-member flex-center-around ">
  168 + <view class="flex jc-center ai-center">
  169 + <image class="xc-icon" src="{{iurl}}/miniapp/images/user/user_vip.png"></image>
  170 + <view class="member fs28 "> 加入plus会员预计可省3031元</view>
  171 + </view>
  172 + <view class="xc-opening-button t-c" data-url="/pages/user/plus/plus" bindtap="goto">
  173 + <view class="xc-opening fs28">立即开通</view>
  174 + </view>
  175 + </view>
  176 + </view>
64 177  
65   - <view class="xc-line-not rel">
66   - <image class="xc-bj-img abs" src="{{iurl}}/miniapp/images/baijing.png"></image>
67   - <image class="xc-zs-img abs" src="{{iurl}}/miniapp/images/zhuangshi.png"></image>
68   - <view class="xc-line-Yes abs" style="width:{{length}}rpx;"></view>
  178 + <view class="xc-add-member-frame flex-level rel addplus" wx:if="{{is_dengji==3 && show_buy_plus}}">
  179 + <view class="xc-add-member flex-center-around ">
  180 + <view class="flex jc-center ai-center">
  181 + <image class="xc-icon" src="{{iurl}}/miniapp/images/user/user_vip.png"></image>
  182 + <view class="member fs28 "> 加入plus会员预计可省3031元</view>
  183 + </view>
  184 + <view class="xc-opening-button t-c" data-url="/packageE/pages/user/cardinfo/cardinfo" bindtap="goto">
  185 + <view class="xc-opening fs28">立即续费</view>
  186 + </view>
  187 + </view>
69 188 </view>
  189 + </block>
70 190  
71   - <view class="xc-grow-val">0/0</view>
72   - </view>
73   - <view class="flex-equality abs xc-assets">
74   - <view class="t-c typefont" bindtap='balance'>{{yuer?yuer:0}}
75   - <view class='numfont'>余额</view>
  191 + </view>
  192 + <view class="xc-after-sale rel">
  193 + <!-- 顶上的一栏 -->
  194 + <view class="xc-equity-title flex-level">
  195 + <view class="xc-title-frame flex ai-center">
  196 + <view class="flex-vertical xc-title-content" bindtap="go_order" data-url="/pages/user/order_list/order_list">
  197 + <image class="xc-title-img" src="{{iurl}}/miniapp/images/hdindan.png" style="width: 50rpx; height: 55rpx;margin-right: 5rpx"></image>
  198 + <view class="three-level-word">我的订单</view>
  199 + </view>
  200 + <!-- 物流信息提醒 -->
  201 + <view class="fs26 c-5 pdl60" wx:if="{{countDadaOrder && countDadaOrder != 0}}" bindtap="go_order" data-url="/pages/user/order_list/order_list?index=1"><text class="iconfont icon-dingwei"></text>您有<text class="c-red">{{countDadaOrder}}</text>个同城配送订单</view>
76 202 </view>
77   - <!-- 是否关闭 -->
78   - <block wx:if="{{!is_close_chuzhi}}">
79   - <view class="t-c typefont" bindtap='deposit'>{{udata.Balance?udata.Balance:0}}
80   - <view class='numfont'>储值款</view>
  203 + <view class="three-level-word xc-more-frame flex-vertical" bindtap="go_order" data-url="/pages/user/order_list/order_list">
  204 + <view class="three-level-word xc-more">更多</view>
  205 + <view class="bg_right xc-more-click bcolor"></view>
  206 + </view>
  207 + </view>
  208 + <!-- 内容的一栏 -->
  209 + <view class="xc-after-sale-left flex-center-around">
  210 + <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=1">
  211 + <image class="xc-no-money" src="{{iurl}}/miniapp/images/daifuk.png"></image>
  212 + <view class=" xc-word-color four-level-word">待付款</view>
  213 + <text class="order-num" hidden='{{toji.wait_pay>0?"":"true"}}'>{{toji.wait_pay}}</text>
81 214 </view>
82   - </block>
83 215  
84   - <view class="t-c typefont" bindtap='integral'>{{udata.Integral?udata.Integral:0}}
85   - <view class='numfont'>积分</view>
  216 + <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=2">
  217 + <image class="xc-send" src="{{iurl}}/miniapp/images/dfahuo.png?v=1"></image>
  218 + <view class="xc-word-color four-level-word">待发货</view>
  219 + <text class="order-num" hidden='{{toji.wait_send>0?"":"true"}}'>{{toji.wait_send}}</text>
86 220 </view>
87 221  
88   - <view class="t-c typefont" bindtap='coupon'>{{udata.CashCount+byquan?udata.CashCount+byquan:0}}
89   - <view class='numfont'>优惠券</view>
  222 + <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=3">
  223 + <image class="xc-await" src="{{iurl}}/miniapp/images/shouhuo1.png"></image>
  224 + <view class="xc-word-color four-level-word">待收货</view>
  225 + <text class="order-num" hidden='{{toji.wait_receive>0?"":"true"}}'>{{toji.wait_receive}}</text>
  226 + </view>
  227 + <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=4">
  228 + <image class="xc-no-money" src="{{iurl}}/miniapp/images/dpr1.png"></image>
  229 + <view class="xc-word-color four-level-word">待评论</view>
  230 + <text class="order-num" hidden='{{toji.wait_pj>0?"":"true"}}'>{{toji.wait_pj}}</text>
  231 + </view>
  232 + <view class="t-c margin-auto rel" style='margin-left:30rpx;' bindtap="go_order" data-url="/packageF/pages/user/return_goods_list/return_goods_list">
  233 + <image class="xc-no-money" src="{{iurl}}/miniapp/images/shouh1.png"></image>
  234 + <view style='height:36rpx;'> </view>
  235 + <view class="xc-word-color four-level-word abs">售后/退款</view>
  236 + <!--<text class="order-num" hidden='{{toji.wait_return>0>0?"":"true"}}' style="right: -20rpx">{{toji.wait_return}}</text>-->
90 237 </view>
91   - </view>
92   - </image>
93 238  
94   - </view>
95   - <block wx:if="{{is_no_plus}}">
96   - <view class="xc-add-member-frame flex-level rel addplus" wx:if="{{is_dengji==2 && show_buy_plus }}">
97   - <view class="xc-add-member flex-center-around ">
98   - <view class="flex jc-center ai-center">
99   - <image class="xc-icon" src="{{iurl}}/miniapp/images/user/user_vip.png"></image>
100   - <view class="member fs28 "> 加入plus会员预计可省3031元</view>
101 239 </view>
102   - <view class="xc-opening-button t-c" data-url="/pages/user/plus/plus" bindtap="goto">
103   - <view class="xc-opening fs28">立即开通</view>
104   - </view>
105   - </view>
106   - </view>
  240 + <view style="clear: both"></view>
107 241  
108   - <view class="xc-add-member-frame flex-level rel addplus" wx:if="{{is_dengji==3 && show_buy_plus}}">
109   - <view class="xc-add-member flex-center-around ">
110   - <view class="flex jc-center ai-center">
111   - <image class="xc-icon" src="{{iurl}}/miniapp/images/user/user_vip.png"></image>
112   - <view class="member fs28 "> 加入plus会员预计可省3031元</view>
113   - </view>
114   - <view class="xc-opening-button t-c" data-url="/packageE/pages/user/cardinfo/cardinfo" bindtap="goto">
115   - <view class="xc-opening fs28">立即续费</view>
116   - </view>
117 242 </view>
118   - </view>
119   - </block>
120   -
121   - </view>
122   - <view class="xc-after-sale rel">
123   - <!-- 顶上的一栏 -->
124   - <view class="xc-equity-title flex-level">
125   - <view class="xc-title-frame flex ai-center">
126   - <view class="flex-vertical xc-title-content" bindtap="go_order" data-url="/pages/user/order_list/order_list">
127   - <image class="xc-title-img" src="{{iurl}}/miniapp/images/hdindan.png" style="width: 50rpx; height: 55rpx;margin-right: 5rpx"></image>
128   - <view class="three-level-word">我的订单</view>
  243 +
  244 + <!-- 我的权益 -->
  245 + <view class="xc-my-equity-frame" wx:if="{{is_init }}">
  246 + <view class="xc-equity-title flex-level" bindtap="go_qy">
  247 + <view class="xc-title-frame flex-space-between">
  248 + <view class="flex-vertical xc-title-content">
  249 + <image class="xc-title-img" src="{{iurl}}/miniapp/images/medal.png"></image>
  250 + <view class="three-level-word">我的权益</view>
  251 + </view>
  252 + </view>
  253 + <view wx:if="{{is_grad_get}}" class="three-level-word xc-more-frame flex-vertical">
  254 + <view class="three-level-word xc-more">更多</view>
  255 + <view class="bg_right xc-more-click bcolor"></view>
  256 + </view>
  257 + <view wx:else class="three-level-word xc-more-frame flex-vertical" style="justify-content: flex-end">
  258 + <image style="width: 40rpx; height: 40rpx; margin-right: 20rpx" src="{{iurl}}/miniapp/images/loader.gif"></image>
  259 + </view>
129 260 </view>
130   - <!-- 物流信息提醒 -->
131   - <view class="fs26 c-5 pdl60" wx:if="{{countDadaOrder && countDadaOrder != 0}}" bindtap="go_order" data-url="/pages/user/order_list/order_list?index=1"><text class="iconfont icon-dingwei"></text>您有<text class="c-red">{{countDadaOrder}}</text>个同城配送订单</view>
132   - </view>
133   - <view class="three-level-word xc-more-frame flex-vertical" bindtap="go_order" data-url="/pages/user/order_list/order_list">
134   - <view class="three-level-word xc-more">更多</view>
135   - <view class="bg_right xc-more-click bcolor"></view>
136   - </view>
137   - </view>
138   - <!-- 内容的一栏 -->
139   - <view class="xc-after-sale-left flex-center-around">
140   - <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=1">
141   - <image class="xc-no-money" src="{{iurl}}/miniapp/images/daifuk.png"></image>
142   - <view class=" xc-word-color four-level-word">待付款</view>
143   - <text class="order-num" hidden='{{toji.wait_pay>0?"":"true"}}'>{{toji.wait_pay}}</text>
144   - </view>
145 261  
146   - <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=2">
147   - <image class="xc-send" src="{{iurl}}/miniapp/images/dfahuo.png?v=1"></image>
148   - <view class="xc-word-color four-level-word">待发货</view>
149   - <text class="order-num" hidden='{{toji.wait_send>0?"":"true"}}'>{{toji.wait_send}}</text>
150   - </view>
  262 + <block wx:if="{{is_grad_get}}">
  263 + <block wx:if="{{qy_list && gradeId}}">
  264 + <view class="xc-specific-more-frame flex-vertical" wx:if="{{qy_list}}">
151 265  
152   - <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=3">
153   - <image class="xc-await" src="{{iurl}}/miniapp/images/shouhuo1.png"></image>
154   - <view class="xc-word-color four-level-word">待收货</view>
155   - <text class="order-num" hidden='{{toji.wait_receive>0?"":"true"}}'>{{toji.wait_receive}}</text>
156   - </view>
157   - <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=4">
158   - <image class="xc-no-money" src="{{iurl}}/miniapp/images/dpr1.png"></image>
159   - <view class="xc-word-color four-level-word">待评论</view>
160   - <text class="order-num" hidden='{{toji.wait_pj>0?"":"true"}}'>{{toji.wait_pj}}</text>
161   - </view>
162   - <view class="t-c margin-auto rel" style='margin-left:30rpx;' bindtap="go_order" data-url="/packageF/pages/user/return_goods_list/return_goods_list">
163   - <image class="xc-no-money" src="{{iurl}}/miniapp/images/shouh1.png"></image>
164   - <view style='height:36rpx;'> </view>
165   - <view class="xc-word-color four-level-word abs">售后/退款</view>
166   - <!--<text class="order-num" hidden='{{toji.wait_return>0>0?"":"true"}}' style="right: -20rpx">{{toji.wait_return}}</text>-->
167   - </view>
  266 + <view bindtap="click_pre">
  267 + <view class="bg_left xc-left bcolor"></view>
  268 + </view>
168 269  
169   - </view>
170   - <view style="clear: both"></view>
  270 + <swiper current="{{sw_index}}" style='width:82.7%; height:108rpx' bindchange='onSli' indicator-dots="{{false}}" autoplay="{{false}}">
171 271  
172   - </view>
  272 + <swiper-item wx:for="{{qy_list}}" wx:for-item="aitem" wx:for-index="pidx">
  273 + <view class="flex xc-middle">
173 274  
174   - <!-- 我的权益 -->
175   - <view class="xc-my-equity-frame" wx:if="{{is_init }}">
176   - <view class="xc-equity-title flex-level" bindtap="go_qy">
177   - <view class="xc-title-frame flex-space-between">
178   - <view class="flex-vertical xc-title-content">
179   - <image class="xc-title-img" src="{{iurl}}/miniapp/images/medal.png"></image>
180   - <view class="three-level-word">我的权益</view>
181   - </view>
182   - </view>
183   - <view wx:if="{{is_grad_get}}" class="three-level-word xc-more-frame flex-vertical">
184   - <view class="three-level-word xc-more">更多</view>
185   - <view class="bg_right xc-more-click bcolor"></view>
186   - </view>
187   - <view wx:else class="three-level-word xc-more-frame flex-vertical" style="justify-content: flex-end">
188   - <image style="width: 40rpx; height: 40rpx; margin-right: 20rpx" src="{{iurl}}/miniapp/images/loader.gif"></image>
189   - </view>
190   - </view>
  275 + <view class="xc-center-frame t-c" wx:for="{{aitem}}" data-img="{{item.PrivilegeImageUrl}}" data-no="{{item.PrivilegeType}}" data-ind="{{index}}" data-find="{{pidx}}" bindtap="go_qy_url">
  276 + <!-- <text>qy_list.privilegeICOUrl</text> -->
  277 + <image class="xc-center-img {{item.ishas==1?'':'img_gray'}}" src="{{item.PrivilegeICOUrl}}"></image>
  278 + <view class="four-level-word">{{item.PrivilegeName}}</view>
  279 + </view>
  280 + </view>
  281 + </swiper-item>
191 282  
192   - <block wx:if="{{is_grad_get}}">
193   - <block wx:if="{{qy_list && gradeId}}">
194   - <view class="xc-specific-more-frame flex-vertical" wx:if="{{qy_list}}">
  283 + </swiper>
195 284  
196   - <view bindtap="click_pre">
197   - <view class="bg_left xc-left bcolor"></view>
  285 + <view bindtap="click_next">
  286 + <view class="bg_right xc-right bcolor mt"></view>
  287 + </view>
  288 + </view>
  289 + </block>
  290 + <view wx:else style="text-align: center">
  291 + 未找到数据
198 292 </view>
  293 + </block>
199 294  
200   - <swiper current="{{sw_index}}" style='width:82.7%; height:108rpx' bindchange='onSli' indicator-dots="{{false}}" autoplay="{{false}}">
201   -
202   - <swiper-item wx:for="{{qy_list}}" wx:for-item="aitem" wx:for-index="pidx">
203   - <view class="flex xc-middle">
204 295  
205   - <view class="xc-center-frame t-c" wx:for="{{aitem}}" data-img="{{item.PrivilegeImageUrl}}" data-no="{{item.PrivilegeType}}" data-ind="{{index}}" data-find="{{pidx}}" bindtap="go_qy_url">
206   - <!-- <text>qy_list.privilegeICOUrl</text> -->
207   - <image class="xc-center-img {{item.ishas==1?'':'img_gray'}}" src="{{item.PrivilegeICOUrl}}"></image>
208   - <view class="four-level-word">{{item.PrivilegeName}}</view>
209   - </view>
210   - </view>
211   - </swiper-item>
212 296  
213   - </swiper>
214 297  
215   - <view bindtap="click_next">
216   - <view class="bg_right xc-right bcolor mt"></view>
217   - </view>
  298 + </view>
  299 + <!-- 生日营销 is_banner-->
  300 + <block wx:if="{{is_banner}}">
  301 + <view class="t-c banner-frame" bindtap="clike_banne">
  302 + <image class="banner-img" src="{{actImg==''?iurl+'/miniapp/images/user/banner-img.jpg':iurl+actImg}}">
  303 + </image>
218 304 </view>
219 305 </block>
220   - <view wx:else style="text-align: center">
221   - 未找到数据
222   - </view>
223   - </block>
224   -
225   -
226 306  
227   -
228   - </view>
229   - <!-- 生日营销 is_banner-->
230   - <block wx:if="{{is_banner}}">
231   - <view class="t-c banner-frame" bindtap="clike_banne">
232   - <image class="banner-img" src="{{actImg==''?iurl+'/miniapp/images/user/banner-img.jpg':iurl+actImg}}">
233   - </image>
234   - </view>
235   - </block>
236   -
237   - <!-- 工具与服务 -->
238   - <view class="xc-tool-service">
239   - <view class="xc-tool-service-title flex-vertical">
240   - <image class="xc-tool-service-img" src="{{iurl}}/miniapp/images/gj.png"></image>
241   - <view class="three-level-word xc-tool-service-word">工具与服务</view>
242   - </view>
243   - <view class="xc-project-frame">
244   - <!-- 跳转页面 -->
245   - <view class="center_v" style="display: flex;flex-wrap: wrap;align-items: center;">
246   - <!-- 循环使用自定义菜单,显示和掩藏 -->
247   - <block wx:for="{{user_tool}}">
248   - <!-- 判断系统配置中有没有把菜单关闭 -->
249   - <block wx:if="{{!util.is_close(item.name,c_list)}}">
250   - <!-- 有链接地址的时候 -->
251   - <block wx:if="{{item.new_weappurl}}">
252   - <block wx:if="{{item.name=='PLUS会员'}}">
253   - <view class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto" wx:if="{{is_dengji==1}}">
254   - <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image>
255   - <view class="fs26">PLUS会员</view>
256   - </view>
257   - </block>
258   - <block wx:elif="{{item.name=='助力活动'}}">
259   - <view class="item t-c" data-url="/pages/user/assistance/assistance" bindtap="goto_nav" wx:if="{{is_assistance==1}}">
260   - <image class="xc-center-img" src="{{iurl}}/miniapp/images/friendhelp/icon-zl.png"></image>
261   - <view class="four-level-word">助力活动</view>
262   - </view>
263   - </block>
264   - <block wx:elif="{{item.name=='我的权益'}}">
265   - <view class="item t-c" bindtap="go_qy" wx:if="{{qy_list!=null && is_init && gradeId}}">
266   - <image class="xc-center-img" src="{{iurl+item.icoimg}}"></image>
267   - <view class="fs26">我的权益</view>
268   - </view>
269   - </block>
270   - <block wx:elif="{{item.name=='套盒商品'}}">
271   - <view class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto" wx:if="{{enableMeiye}}">
272   - <image class="xc-center-img" src="{{iurl+item.icoimg}}"></image>
273   - <view class="fs26">套盒商品</view>
274   - </view>
275   - </block>
276   -
277   - <block wx:elif="{{item.name=='瘦身日记'}}">
278   - <view wx:if="{{has_rj>0}}" class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto_nav">
279   - <image class="xc-center-img" src="{{iurl+item.icoimg}}"></image>
280   - <view class="fs26">{{item.name}}</view>
281   - </view>
282   - </block>
283   -
284   - <block wx:else>
285   - <view class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto_nav">
286   - <image class="xc-center-img" src="{{iurl+item.icoimg}}"></image>
287   - <view class="fs26">{{item.name}}</view>
288   - </view>
  307 + <!-- 工具与服务 -->
  308 + <view class="xc-tool-service">
  309 + <view class="xc-tool-service-title flex-vertical">
  310 + <image class="xc-tool-service-img" src="{{iurl}}/miniapp/images/gj.png"></image>
  311 + <view class="three-level-word xc-tool-service-word">工具与服务</view>
  312 + </view>
  313 + <view class="xc-project-frame">
  314 + <!-- 跳转页面 -->
  315 + <view class="center_v" style="display: flex;flex-wrap: wrap;align-items: center;">
  316 + <!-- 循环使用自定义菜单,显示和掩藏 -->
  317 + <block wx:for="{{user_tool}}">
  318 + <!-- 判断系统配置中有没有把菜单关闭 -->
  319 + <block wx:if="{{!util.is_close(item.name,c_list)}}">
  320 + <!-- 有链接地址的时候 -->
  321 + <block wx:if="{{item.new_weappurl}}">
  322 + <block wx:if="{{item.name=='PLUS会员'}}">
  323 + <view class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto" wx:if="{{is_dengji==1}}">
  324 + <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image>
  325 + <view class="fs26">PLUS会员</view>
  326 + </view>
  327 + </block>
  328 + <block wx:elif="{{item.name=='助力活动'}}">
  329 + <view class="item t-c" data-url="/pages/user/assistance/assistance" bindtap="goto_nav" wx:if="{{is_assistance==1}}">
  330 + <image class="xc-center-img" src="{{iurl}}/miniapp/images/friendhelp/icon-zl.png"></image>
  331 + <view class="four-level-word">助力活动</view>
  332 + </view>
  333 + </block>
  334 + <block wx:elif="{{item.name=='我的权益'}}">
  335 + <view class="item t-c" bindtap="go_qy" wx:if="{{qy_list!=null && is_init && gradeId}}">
  336 + <image class="xc-center-img" src="{{iurl+item.icoimg}}"></image>
  337 + <view class="fs26">我的权益</view>
  338 + </view>
  339 + </block>
  340 + <block wx:elif="{{item.name=='套盒商品'}}">
  341 + <view class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto" wx:if="{{enableMeiye}}">
  342 + <image class="xc-center-img" src="{{iurl+item.icoimg}}"></image>
  343 + <view class="fs26">套盒商品</view>
  344 + </view>
  345 + </block>
  346 +
  347 + <block wx:elif="{{item.name=='瘦身日记'}}">
  348 + <view wx:if="{{has_rj>0}}" class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto_nav">
  349 + <image class="xc-center-img" src="{{iurl+item.icoimg}}"></image>
  350 + <view class="fs26">{{item.name}}</view>
  351 + </view>
  352 + </block>
  353 +
  354 + <block wx:else>
  355 + <view class="item t-c" data-url="{{item.new_weappurl}}" bindtap="goto_nav">
  356 + <image class="xc-center-img" src="{{iurl+item.icoimg}}"></image>
  357 + <view class="fs26">{{item.name}}</view>
  358 + </view>
  359 + </block>
  360 + </block>
  361 + <!-- 没有链接地址的时候 -->
  362 + <block wx:else>
  363 + <block wx:if="{{item.name=='联系客服'}}">
  364 + <!-- <button class="item t-c" wx:if="{{sys_switch.weapp_customertype==1}}" bindtap="click_contact" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}">
  365 + <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image>
  366 + <view class="fs26">联系客服</view>
  367 + </button>
  368 +
  369 + <view class="item t-c" bindtap="con_weixin" wx:elif="{{sys_switch.weapp_customertype==2}}">
  370 + <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image>
  371 + <view class="fs26">联系客服</view>
  372 + </view>
  373 +
  374 + <view class="item t-c" bindtap="contactService" wx:else>
  375 + <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image>
  376 + <view class="fs26">联系客服</view>
  377 + </view> -->
  378 +
  379 + <view class="item t-c" bindtap="openCS">
  380 + <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image>
  381 + <view class="fs26">联系客服</view>
  382 + </view>
  383 +
  384 + </block>
  385 + <block wx:elif="{{item.name=='收入卡包'}}">
  386 + <view class="item t-c" bindtap="addcard" wx:if="{{add_card_data}}">
  387 + <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image>
  388 + <view class="four-level-word">收入卡包</view>
  389 + </view>
  390 + </block>
  391 + </block>
289 392 </block>
290 393 </block>
291   - <!-- 没有链接地址的时候 -->
292   - <block wx:else>
293   - <block wx:if="{{item.name=='联系客服'}}">
294   - <!-- <button class="item t-c" wx:if="{{sys_switch.weapp_customertype==1}}" bindtap="click_contact" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}">
295   - <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image>
296   - <view class="fs26">联系客服</view>
297   - </button>
298   -
299   - <view class="item t-c" bindtap="con_weixin" wx:elif="{{sys_switch.weapp_customertype==2}}">
300   - <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image>
301   - <view class="fs26">联系客服</view>
302   - </view>
303   -
304   - <view class="item t-c" bindtap="contactService" wx:else>
305   - <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image>
306   - <view class="fs26">联系客服</view>
307   - </view> -->
308   -
309   - <view class="item t-c" bindtap="openCS">
310   - <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image>
311   - <view class="fs26">联系客服</view>
312   - </view>
  394 + </view>
313 395  
314   - </block>
315   - <block wx:elif="{{item.name=='收入卡包'}}">
316   - <view class="item t-c" bindtap="addcard" wx:if="{{add_card_data}}">
317   - <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image>
318   - <view class="four-level-word">收入卡包</view>
319   - </view>
320   - </block>
321   - </block>
322   - </block>
323   - </block>
  396 + </view>
324 397 </view>
325 398  
326   - </view>
327   - </view>
  399 + <!-- 显示推荐 -->
  400 + <view style='width:100%;height:73rpx;' wx:if="{{is_show_recommend}}">
  401 + <view class="xc-recommend-goods flex-center">
328 402  
329   - <!-- 显示推荐 -->
330   - <view style='width:100%;height:73rpx;' wx:if="{{is_show_recommend}}">
331   - <view class="xc-recommend-goods flex-center">
332   -
333   - <view class="circle xc-small">
334   - </view>
335   - <view class="circle xc-zhong">
336   - </view>
337   - <view class="circle xc-big">
338   - </view>
339   - <view class="three-level-word xc-recommend">为你推荐</view>
340   - <view class="circle xc-big">
341   - </view>
342   - <view class="circle xc-zhong">
  403 + <view class="circle xc-small">
  404 + </view>
  405 + <view class="circle xc-zhong">
  406 + </view>
  407 + <view class="circle xc-big">
  408 + </view>
  409 + <view class="three-level-word xc-recommend">为你推荐</view>
  410 + <view class="circle xc-big">
  411 + </view>
  412 + <view class="circle xc-zhong">
  413 + </view>
  414 + <view class="circle xc-small" style='margin-left:15rpx;'>
  415 + <!-- </view> -->
  416 + </view>
  417 + </view>
343 418 </view>
344   - <view class="circle xc-small" style='margin-left:15rpx;'>
345   - <!-- </view> -->
  419 + <!-- 显示商品 -->
  420 + <!-- 好物推荐 -->
  421 + <block wx:if="{{is_show_recommend}}">
  422 + <goods_recommend id="goods_recommend"></goods_recommend>
  423 + </block>
  424 +
  425 + <!-- 技术支持 -->
  426 + <view class="logo-container t-c">
  427 + <view class="flex ai_c fs24 jc-center pdv30 white">
  428 + <image src="{{iurl + 'miniapp/images/luckDraw/logo.png?v=3'}}" class="logo" lazy-load></image>提供技术支持
  429 + </view>
346 430 </view>
347   - </view>
348   - </view>
349 431  
350   - <!-- 显示商品 -->
351   - <!-- 好物推荐 -->
352   - <block wx:if="{{is_show_recommend}}">
353   - <goods_recommend id="goods_recommend"></goods_recommend>
354   - </block>
355 432  
356   - <!-- 技术支持 -->
357   - <view class="logo-container t-c">
358   - <view class="flex ai_c fs24 jc-center pdv30 white">
359   - <image src="{{iurl + 'miniapp/images/luckDraw/logo.png?v=3'}}" class="logo" lazy-load></image>提供技术支持
360 433 </view>
361   - </view>
362   -</view>
363   -
364   -<!--弹出层内容,其中的“我知道”中绑定让弹出层消失的函数:bindtap="hide"-->
365   -<view class="tc_view" hidden='{{tc_hide}}' bindtap='hide_tc'>
366   - <view class="modal-box" hidden="{{flag}}" bindtap="hide" catchtouchmove="true"></view>
367   - <view class="modal-body" catchtouchmove="true">
368   - <view class="modal-content">
369   - <view class="flex">
370   - <image src="{{userInfo.head_pic}}" class="hd_img"></image>
371   - <view class="ctent_txt">
372   - <view class='txt1'>{{userInfo.nickname}}
373   - <image wx:if="{{userInfo.sex==2}}" class="arrow-right" style="width: 35rpx; height:35rpx; top: 5rpx" src="{{iurl}}/miniapp/images/user/wum.png"></image>
374   - <image wx:else class="arrow-right fu" style="width: 35rpx; height:35rpx;top:5rpx" src="{{iurl}}/miniapp/images/user/man.png"></image>
  434 +
  435 + <!--弹出层内容,其中的“我知道”中绑定让弹出层消失的函数:bindtap="hide"-->
  436 + <view class="tc_view" hidden='{{tc_hide}}' bindtap='hide_tc'>
  437 + <view class="modal-box" hidden="{{flag}}" bindtap="hide" catchtouchmove="true"></view>
  438 + <view class="modal-body" catchtouchmove="true">
  439 + <view class="modal-content">
  440 + <view class="flex">
  441 + <image src="{{userInfo.head_pic}}" class="hd_img"></image>
  442 + <view class="ctent_txt">
  443 + <view class='txt1'>{{userInfo.nickname}}
  444 + <image wx:if="{{userInfo.sex==2}}" class="arrow-right" style="width: 35rpx; height:35rpx; top: 5rpx" src="{{iurl}}/miniapp/images/user/wum.png"></image>
  445 + <image wx:else class="arrow-right fu" style="width: 35rpx; height:35rpx;top:5rpx" src="{{iurl}}/miniapp/images/user/man.png"></image>
  446 + </view>
  447 + <view wx:if="{{userInfo.address}}" class='txt2'>{{userInfo.address}}</view>
  448 + </view>
  449 + </view>
  450 +
  451 + <view class="canvas_box">
  452 + <!--<image class='g_img' src='https://mshop.yolipai.net//index.php?m=Home&c=Index&a=qr_code&data={{userInfo.mobile}}'></image>-->
  453 + <canvas class="g_img" canvas-id="qrcode" />
  454 + </view>
  455 + <view style="width: 100%;display: flex;justify-content: center;">
  456 + <canvas class="barcode" style="width: 100%;height: 140rpx;" canvas-id="barcode" />
  457 + </view>
  458 + <view wx:if="{{showvipcode}}" class="fs24" style="width: 100%;color: #898989;display: flex;text-align: center;align-content: center;justify-content: center;">
  459 + {{brcode}}
  460 + </view>
  461 + <view wx:else catchtap="showtext" class="fs24" style="width: 100%;color: #898989;display: flex;text-align: center;align-content: center;justify-content: center;">
  462 + 点击可查看条形数据
375 463 </view>
376   - <view wx:if="{{userInfo.address}}" class='txt2'>{{userInfo.address}}</view>
377 464 </view>
378 465 </view>
379   - <view class="m_ta">
380   - <!--<image class='g_img' src='https://mshop.yolipai.net//index.php?m=Home&c=Index&a=qr_code&data={{userInfo.mobile}}'></image>-->
381   - <canvas class="g_img" canvas-id="qrcode" />
382   - </view>
383   - <view class="s_sao">前台收银扫此二维码,即可享受优惠!</view>
384 466 </view>
385   - </view>
386   -</view>
387 467  
388   -<pop_txt id="pop_txt"></pop_txt>
  468 + <pop_txt id="pop_txt"></pop_txt>
  469 + <include src="../../../components/com_servicer/com_servicer.wxml" />
389 470  
  471 + </block>
390 472  
391   -<include src="../../../components/com_servicer/com_servicer.wxml"/>
  473 +</block>
392 474 \ No newline at end of file
... ...
pages/user/index/index.wxss
... ... @@ -597,11 +597,11 @@
597 597  
598 598 .m_ta {
599 599 margin-top: 50rpx;
600   -}
  600 +}
601 601  
602 602 .g_img {
603   - width: 480rpx;
604   - height: 480rpx;
  603 + width: 350rpx;
  604 + height: 350rpx;
605 605 }
606 606  
607 607 .s_sao {
... ... @@ -778,4 +778,10 @@ button::after {
778 778 width: 25rpx;
779 779 height: 25rpx;
780 780 margin-right: 5rpx;
  781 +}
  782 +.canvas_box{
  783 + display: flex;
  784 + align-items: center;
  785 + justify-content: center;
  786 + /* margin-top: 20rpx; */
781 787 }
782 788 \ No newline at end of file
... ...
pages/user/plus/plus.js
... ... @@ -243,7 +243,7 @@ Page({
243 243 getApp().request.get("/api/weshop/users/get/" + os.stoid + "/" + app_d.user_id, {
244 244 success: function (e) {
245 245 var userInfo = e.data.data;
246   - if (userInfo && userInfo['card_field'] && !getApp().globalData.is_card_back) {
  246 + if (userInfo && userInfo['card_field']) {
247 247 var u_url = "/packageE/pages/user/cardinfo/cardinfo";
248 248 wx.reLaunch({
249 249 url: u_url
... ... @@ -490,7 +490,6 @@ Page({
490 490  
491 491  
492 492  
493   -
494 493 //--如果有邀请码,和营业员的情况下--
495 494 if (req.recommon || req.serviceman) {
496 495  
... ... @@ -532,8 +531,20 @@ Page({
532 531 } else {
533 532 t_pay.set_pay_url('/api/weshop/plus/create/plus/order');
534 533 t_pay.pay(req, th.success, function (msg) {
535   - if(!msg) msg='支付失败';
536   - getApp().my_warnning(msg, 0, th);
  534 +
  535 + if( typeof msg === 'object' && msg !== null && msg.code==-2){
  536 + wx.showModal({
  537 + title: msg.msg,
  538 + showCancel: !1,
  539 + complete: function () {
  540 + getApp().goto('/packageE/pages/user/cardinfo/cardinfo');
  541 + }
  542 + });
  543 + }else{
  544 + if(!msg) msg='支付失败';
  545 + getApp().my_warnning(msg, 0, th);
  546 + }
  547 +
537 548 th.setData({
538 549 is_select:0,
539 550 focus:true,
... ...
utils/pay2.js
... ... @@ -88,7 +88,12 @@ module.exports = {
88 88 i.weixinPay(t.data.data, succ, fail);
89 89 }
90 90 }
91   - }else{
  91 + }
  92 + else if(t.data.code==-2 && dd.rechargeType==3){
  93 + i.wx_paying=0;
  94 + "function" == typeof fail && fail(t.data);
  95 + }
  96 + else{
92 97 i.wx_paying=0;
93 98 "function" == typeof fail && fail(t.data.msg);
94 99 }
... ...