diff --git a/app.json b/app.json index 70c0925..ee72692 100644 --- a/app.json +++ b/app.json @@ -242,7 +242,8 @@ "pages": [ "pages/store/index", "pages/user/express/express", - "pages/team/team_success/team_success" + "pages/team/team_success/team_success", + "pages/plus_agreement/plus_agreement" ] } ], diff --git a/packageA/pages/details_serviceCard/details_serviceCard.js b/packageA/pages/details_serviceCard/details_serviceCard.js index 9aa7d3c..e50aa62 100644 --- a/packageA/pages/details_serviceCard/details_serviceCard.js +++ b/packageA/pages/details_serviceCard/details_serviceCard.js @@ -654,6 +654,7 @@ Page({ // 如果是秒杀购买:1、判断活动是否变化;2、是否超出限购 let list = this.data.details.list; var pt_act=null; //-- 拼团活动的优化 -- + var presell=null; //-- 预售活动 -- //秒杀活动和拼团活动要重新计算一下 for (const it of list) { @@ -896,6 +897,7 @@ Page({ flag = 0; return false; } + presell=act_data; } }) @@ -956,7 +958,13 @@ Page({ wx.redirectTo({ url: "/packageA/pages/serviceCard_pd/team_success/team_success?ordersn=" + order_sn }); - }else{ + }else if(presell && presell.presell_type==0){ + + wx.redirectTo({ + url: "/packageC/pages/presell/cart/cart?is_fwk=1&order_sn=" + order_sn + }); + } + else{ wx.reLaunch({ url: "/pages/payment/pay_success/pay_success?card=1&order_id=" + order_id, }) diff --git a/packageA/pages/details_serviceCard/details_serviceCard.wxml b/packageA/pages/details_serviceCard/details_serviceCard.wxml index c9da4ae..b17d6e3 100644 --- a/packageA/pages/details_serviceCard/details_serviceCard.wxml +++ b/packageA/pages/details_serviceCard/details_serviceCard.wxml @@ -81,7 +81,7 @@ - + + + + + 已退款 diff --git a/pages/giftpack/mygiftpack/mygiftpack.wxss b/pages/giftpack/mygiftpack/mygiftpack.wxss index 245606f..518748d 100644 --- a/pages/giftpack/mygiftpack/mygiftpack.wxss +++ b/pages/giftpack/mygiftpack/mygiftpack.wxss @@ -178,12 +178,13 @@ .content_box_button button { display: inline-block; - width: 160rpx; + min-width: 160rpx; height: 50rpx; font-size: 25rpx; background: #d41c34; color: #fff; line-height: 50rpx; + padding: 0 8rpx; } .foot_box { @@ -251,3 +252,16 @@ page { .After_all .end { margin: 0rpx 15rpx; } + +button{ + border-radius: 8rpx !important; overflow: hidden; +} + +.overdue{ + background-color: rgb(153,153,153) !important; +} + + +button::after{ + border: none; +} diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js index 277bf55..dc00143 100644 --- a/pages/goods/goodsInfo/goodsInfo.js +++ b/pages/goods/goodsInfo/goodsInfo.js @@ -4697,6 +4697,12 @@ Page({ gg = "规格" + gb; gb++; } + + if (item.spec_img) + item.original_img = os.imghost + item.spec_img; + else + item.original_img = os.imghost + item.original_img; + item.gg = gg; item.prom_id = item.prom_id; item.prom_type = 1; diff --git a/pages/user/index/index.js b/pages/user/index/index.js index 53f1eb9..364b626 100644 --- a/pages/user/index/index.js +++ b/pages/user/index/index.js @@ -200,6 +200,18 @@ Page({ if (e != undefined && e != null && e.mobile) { + if (e.card_field != '' && e.card_field != null && e.card_field != undefined && e.card_expiredate) { + var now = ut.gettimestamp(); + var str = e.card_expiredate.replace(/-/g, '/');; + var end = new Date(str); + end = Date.parse(end) / 1000; + if (now < end) { + this.puls_user(); + } + } + + + if(this.data.has_rj==0){ var portrait_req = { ApiName:'api.slimming.member.portrait', @@ -1137,6 +1149,27 @@ Page({ }); }, + //-----Plus会员获取----------- + puls_user: function() { + var th = this; + getApp().request.get("/api/weshop/plus/vip/mem/list", { + data: { + storeId: os.stoid, + userId: getApp().globalData.user_id, + }, + success: function(su) { + + if (su.data.code == 0) { + var cardname = su.data.data[0].MemCardName; + if(cardname.length>5) cardname=cardname.substring(0,5); //保留5个字 + th.setData({ + pulscardname: cardname + }); + } + } + }); + }, + diff --git a/pages/user/index/index.wxml b/pages/user/index/index.wxml index 28aa2b6..8c6f061 100644 --- a/pages/user/index/index.wxml +++ b/pages/user/index/index.wxml @@ -9,7 +9,16 @@ - + + + + + + {{pulscardname}} + + + + {{userInfo.nickname}} @@ -18,6 +27,9 @@ + + + {{" "}} diff --git a/pages/user/index/index.wxss b/pages/user/index/index.wxss index a04870c..6d8193f 100644 --- a/pages/user/index/index.wxss +++ b/pages/user/index/index.wxss @@ -752,8 +752,30 @@ button::after { } - .action .icon-guan { left: auto !important; right: 20rpx !important; +} + +.plusMax { + background: linear-gradient(to bottom, #4c3217, #010100); + height: 40rpx; + border-radius: 20rpx; + line-height: 40rpx; + padding-left: 15rpx; + padding-right: 15rpx; + font-size: 20rpx; + position: absolute; + left: 50%; + bottom: -20rpx; + white-space: nowrap; + transform: translate(-50%, 0); + color: #fff; + +} + +.fuls { + width: 25rpx; + height: 25rpx; + margin-right: 5rpx; } \ No newline at end of file diff --git a/pages/user/plus/plus.js b/pages/user/plus/plus.js index 2618634..f597286 100644 --- a/pages/user/plus/plus.js +++ b/pages/user/plus/plus.js @@ -30,8 +30,10 @@ Page({ open_yq: 0, //显示打开邀请码的弹窗 by_index: null, //购买卡的下班 - isyaoqingma: 0, //是否邀请码 - is_salesman: 0, //是否营业员 + isyaoqingma: 0, //是否显示邀请码 + is_salesman: 0, //是否显示营业员 + is_must_staff_yqma: 0, //是否必填 + inp_recommon: null, //输入的邀请码 inp_serviceman: null, //输入的营业员 is_fengxiang: 0, //是不是分享过来的 @@ -43,7 +45,8 @@ Page({ is_select: false, //是否选择营业员过 is_buy_card_id:"",//是否是链接直接过来购买的卡号id - is_fir_open:0 //防止多次打开 + is_fir_open:0, //防止多次打开 + check_py_val:0 }, swiperChange: function (e) { @@ -112,6 +115,7 @@ Page({ is_card_rule: is_cardrule, isyaoqingma: parseInt(swi_arr.isyaoqingma), is_salesman: parseInt(swi_arr.is_staffno), + is_must_staff_yqma: parseInt(swi_arr.is_must_staff_yqma), plus_bg_color: swi_arr.plus_bg_color, }); } @@ -438,6 +442,12 @@ Page({ return false; } + //有显示弹出框,才要求要显示用户协议 + if(!this.data.check_py_val && (th.data.isyaoqingma || th.data.is_salesman) ){ + ut.m_toast('请先同意PLUS会员用户协议') + return false; + } + var item = th.data.is_plusCard[th.data.by_index]; var req = {}; req.cardId = item.CardId; @@ -449,7 +459,7 @@ Page({ } else { //---后台要求要输入邀请码--- if (th.data.isyaoqingma) { - if (!th.data.inp_recommon) { + if (!th.data.inp_recommon && th.data.is_must_staff_yqma) { getApp().my_warnning("请输入邀请码", 0, th); return false; } @@ -459,22 +469,26 @@ Page({ getApp().my_warnning("邀请人不能填自已", 0, th); return false; } - req.recommon = th.data.inp_recommon + if(th.data.inp_recommon) req.recommon = th.data.inp_recommon } //--后台要求要输入营业员-- if (th.data.is_salesman) { - if (!th.data.inp_serviceman) { + if (!th.data.inp_serviceman && th.data.is_must_staff_yqma) { getApp().my_warnning("请输入营业员", 0, th); th.setData({ focus:true }) return false; } - req.serviceman = th.data.inp_serviceman + if(th.data.inp_serviceman) req.serviceman = th.data.inp_serviceman } } req.storeId = os.stoid; req.userId = getApp().globalData.user_id; + + + + //--如果有邀请码,和营业员的情况下-- if (req.recommon || req.serviceman) { @@ -704,5 +718,21 @@ Page({ }) } } + }, + + //用户协议的同意的优化 + handleCheckboxChange:function (){ + console.log('this.data.checkboxValue ==> ' , this.data.checkboxValue); + this.setData({ + // 点击之后进行取反 + check_py_val : !this.data.check_py_val + }) + }, + + //显示协议的内容 + show_more_xy:function (){ + getApp().goto("/packageG/pages/plus_agreement/plus_agreement"); } + + }) \ No newline at end of file diff --git a/pages/user/plus/plus.wxml b/pages/user/plus/plus.wxml index ffafa5a..b7bb335 100644 --- a/pages/user/plus/plus.wxml +++ b/pages/user/plus/plus.wxml @@ -144,7 +144,7 @@ - + @@ -153,6 +153,12 @@ 确认购买 + + + + + + diff --git a/pages/user/plus/plus.wxss b/pages/user/plus/plus.wxss index dcca6ec..a31bc6c 100644 --- a/pages/user/plus/plus.wxss +++ b/pages/user/plus/plus.wxss @@ -384,7 +384,8 @@ swiper { height: 50rpx; border-radius: 25rpx; color: rgb(255, 255, 255); - margin: 55rpx 0rpx; + margin-top: 55rpx; + margin-bottom: 15rpx; background-position: center;background-repeat: no-repeat;background-size: cover } @@ -423,4 +424,24 @@ swiper-item{ left: -20%; top: -2rpx; border-radius: 0 0 50% 50%; /* 只要顶部两个角是圆弧就好了 */ +} + +.m_checkbox .wx-checkbox-input { + border-radius: 50%; + width: 23rpx !important; + height: 23rpx !important; +} + +.m_checkbox .wx-checkbox-input.wx-checkbox-input-checked { + background: #c4192e; +} +.m_checkbox .wx-checkbox-input.wx-checkbox-input-checked::before { + width: 20rpx; height: 22rpx; + line-height: 23rpx; + text-align: center; + font-size: 20rpx; + color: #fff; + background: transparent; + transform: translate(-50%, -50%) scale(1); + -webkit-transform: translate(-50%, -50%) scale(1); } \ No newline at end of file