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/packageG/pages/plus_agreement/plus_agreement.js b/packageG/pages/plus_agreement/plus_agreement.js
new file mode 100644
index 0000000..6eef7e2
--- /dev/null
+++ b/packageG/pages/plus_agreement/plus_agreement.js
@@ -0,0 +1,21 @@
+const w = require("../../../utils/wxParse/wxParse.js");
+var os=getApp().globalData.setting;
+var ut = require("../../../utils/util.js");
+Page({
+ data:{
+ },
+
+ //调用视频接口
+ onLoad:function(e){
+ var that = this;
+ //-----------商家配置信息----- 等级卡规则,是否又开邀请码,营业员------------
+ getApp().request.get("/api/weshop/storeconfig/get/" + os.stoid, {
+ success: function (res) {
+ var is_cardrule = res.data.data.cardrules;
+ w.wxParse("content", "html", ut.format_content(is_cardrule), that, 6);
+ }
+ })
+ },
+
+
+})
\ No newline at end of file
diff --git a/packageG/pages/plus_agreement/plus_agreement.json b/packageG/pages/plus_agreement/plus_agreement.json
new file mode 100644
index 0000000..e052655
--- /dev/null
+++ b/packageG/pages/plus_agreement/plus_agreement.json
@@ -0,0 +1,4 @@
+{
+ "navigationBarTitleText": "PLUS会员用户协议",
+ "enablePullDownRefresh": false
+}
\ No newline at end of file
diff --git a/packageG/pages/plus_agreement/plus_agreement.wxml b/packageG/pages/plus_agreement/plus_agreement.wxml
new file mode 100644
index 0000000..4ac9dbe
--- /dev/null
+++ b/packageG/pages/plus_agreement/plus_agreement.wxml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/packageG/pages/plus_agreement/plus_agreement.wxss b/packageG/pages/plus_agreement/plus_agreement.wxss
new file mode 100644
index 0000000..5d7f9d7
--- /dev/null
+++ b/packageG/pages/plus_agreement/plus_agreement.wxss
@@ -0,0 +1 @@
+@import "../../../utils/wxParse/wxParse.wxss";
\ No newline at end of file
diff --git a/pages/giftpack/mygiftpack/mygiftpack.js b/pages/giftpack/mygiftpack/mygiftpack.js
index d61eab4..01b0e44 100644
--- a/pages/giftpack/mygiftpack/mygiftpack.js
+++ b/pages/giftpack/mygiftpack/mygiftpack.js
@@ -1,4 +1,5 @@
var i = require("../../../utils/util.js")
+const ut = require("../../../utils/util.js");
var e = getApp(),
a = e.globalData.setting,
os = a,
@@ -108,6 +109,34 @@ Page({
th.data.curpage++;
var arr1 = th.data.wareCard;
var arr2 = res.data.data.pageData;
+
+ for (let j = 0; j t_now)
+ arr2[j].c_state=-1 //未开始
+ else
+ arr2[j].c_state=0 //正常
+ }
+
+
var arr3 = [...arr1, ...arr2];
var ismore = 0;
if (arr3.length == res.data.data.total) ismore = 1
diff --git a/pages/giftpack/mygiftpack/mygiftpack.wxml b/pages/giftpack/mygiftpack/mygiftpack.wxml
index cf605e9..55914d9 100644
--- a/pages/giftpack/mygiftpack/mygiftpack.wxml
+++ b/pages/giftpack/mygiftpack/mygiftpack.wxml
@@ -94,7 +94,11 @@
-
+
+
+
+
+
已退款
diff --git a/pages/giftpack/mygiftpack/mygiftpack.wxss b/pages/giftpack/mygiftpack/mygiftpack.wxss
index 245606f..d0e06f4 100644
--- a/pages/giftpack/mygiftpack/mygiftpack.wxss
+++ b/pages/giftpack/mygiftpack/mygiftpack.wxss
@@ -251,3 +251,7 @@ page {
.After_all .end {
margin: 0rpx 15rpx;
}
+
+.overdue{
+ background-color: rgb(153,153,153) !important;
+}
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..d849800 100644
--- a/pages/user/index/index.js
+++ b/pages/user/index/index.js
@@ -199,6 +199,9 @@ Page({
if (e != undefined && e != null && e.mobile) {
+ this.puls_user();
+
+
if(this.data.has_rj==0){
var portrait_req = {
@@ -1137,6 +1140,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..2069cec 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,11 @@ Page({
return false;
}
+ if(!this.data.check_py_val){
+ ut.m_toast('请先同意PLUS会员用户协议')
+ return false;
+ }
+
var item = th.data.is_plusCard[th.data.by_index];
var req = {};
req.cardId = item.CardId;
@@ -449,7 +458,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 +468,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 +717,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..59f782b 100644
--- a/pages/user/plus/plus.wxml
+++ b/pages/user/plus/plus.wxml
@@ -153,6 +153,12 @@
确认购买
+
+
+
+
+
+
diff --git a/pages/user/plus/plus.wxss b/pages/user/plus/plus.wxss
index dcca6ec..42cf674 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,10 @@ 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;
}
\ No newline at end of file