diff --git a/packageC/pages/luckyGo/luckyGo_activityList/luckyGo_activityList.wxss b/packageC/pages/luckyGo/luckyGo_activityList/luckyGo_activityList.wxss
index f7fe7f7..ff7eb2b 100644
--- a/packageC/pages/luckyGo/luckyGo_activityList/luckyGo_activityList.wxss
+++ b/packageC/pages/luckyGo/luckyGo_activityList/luckyGo_activityList.wxss
@@ -70,6 +70,7 @@ page {
.name {
height: 88rpx;
+ word-break: break-all;
}
.no-more {
diff --git a/packageC/pages/luckyGo/luckyGo_details/luckyGo_details.js b/packageC/pages/luckyGo/luckyGo_details/luckyGo_details.js
index 5a235c2..00d494a 100644
--- a/packageC/pages/luckyGo/luckyGo_details/luckyGo_details.js
+++ b/packageC/pages/luckyGo/luckyGo_details/luckyGo_details.js
@@ -113,16 +113,17 @@ Page({
onUnload: function () {
- console.log('999999999999999999999onUnolad~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~',this.data.luckyGoInfo);
// 开团成功后,清除storage里的team_id
- if(this.data.luckyGoInfo && this.data.luckyGoInfo.num == 0) {
- wx.removeStorageSync('team_id');
- };
- // 如果是从会员中心的幸运购列表点击进来的,退出时清除storage里的team_id
- if(this.data.param.from == 1) {
- let team_id = wx.getStorageSync('team_id');
- if(team_id != null && team_id != undefined) wx.removeStorageSync('team_id');
- };
+ // if(this.data.luckyGoInfo && this.data.luckyGoInfo.num == 0) {
+ // wx.removeStorageSync('team_id');
+ // };
+ // // 如果是从会员中心的幸运购列表点击进来的,退出时清除storage里的team_id
+ // if(this.data.param.from == 1) {
+ // let team_id = wx.getStorageSync('team_id');
+ // if(team_id != null && team_id != undefined) wx.removeStorageSync('team_id');
+ // };
+
+ wx.removeStorageSync('team_id');
},
//关闭展开列表
@@ -1149,78 +1150,115 @@ Page({
// 获取幸运购参团情况
async get_team_info () {
- var th = this;
- // wx.removeStorageSync('team_id');
- // 幸运购成团信息
- await getApp().request.promiseGet("/api/weshop/prom/luckyActivity/page", {
- data: {
- store_id: o.stoid,
- is_end: 0,
- timetype: 1,
- id: this.data.param.group_id,
- }
- }).then(res => {
- if(res.data.code == 0) {
- console.log('当前成团信息', res);
- var luckyGoInfo = res.data.data.pageData[0];
- var team_id;
-
- if(th.data.param.from == 1) {
- team_id = th.data.team_id;
- } else {
- team_id = luckyGoInfo.team_id;
- if(luckyGoInfo.team_id == 0) {
- team_id = wx.getStorageSync('team_id');
- };
- // else {
- // team_id = luckyGoInfo.team_id;
+ var th = this;
+ var team_id;
+ var luckyGoInfo;
+ var user_id = getApp().globalData.user_id;
+
+
+
+ // 邀请链接待完善
+
+ getApp().request.promiseGet("/api/weshop/prom/luckyActivity/page", {
+ data: {
+ store_id: o.stoid,
+ is_end: 0,
+ timetype: 1,
+ id: th.data.param.group_id,
+ }
+ }).then(res => {
+ if(res.data.code == 0) {
+
+ luckyGoInfo = res.data.data.pageData[0];
+
+
+
+ // else {
+ // team_id = luckyGoInfo.team_id;
+
+ // // 待完善
+ // if(luckyGoInfo.team_id == 0) {
+ // team_id = wx.getStorageSync('team_id');
+ // };
+
+ // };
+
+ th.setData({
+ luckyGoInfo,
+ });
+
+ //参团成功后,检查team_id
+ //如果team_id为0, 表示当前已开启新的一期,文字提示应改为’参团成功,本期幸运购已开团,中奖结果可点击下方查看参团列表‘
+ //如果team_id为0,取出之前保存的team_id替换掉,请求上一期已成团的幸运购活动
+ //如果从会员中心的幸运购列表邀请好友点击进来,不执行storage操作
+ if(th.data.param.from == 1) return false;
+ // if(team_id > 0) {
+ // wx.setStorage({
+ // key: 'team_id',
+ // data: team_id,
+ // });
+ // console.log('存储team_id', team_id);
+ // } else {
+ // let team_id2 = wx.getStorageSync('team_id');
+ // console.log('获取team_id', team_id2);
+ // th.setData({
+ // team_id: team_id2,
+ // // isSuccess: true,
+ // });
+ // };
+
+ // th.setData({
+ // luckyGoInfo,
+ // team_id,
+ // });
+
+ };
+
+ });
+
+ if(th.data.param.from == 1) {
+ team_id = th.data.param.team_id;
+ } else {
+
+ // 单独获取最新的team_id;
+ await getApp().request.promiseGet("/api/weshop/prom/luckyOrder/getUserOrderLastInfo/" + o.stoid + "/" + user_id + "/" + th.data.param.group_id, {
+ data: {
+ }
+ }).then(res => {
+
+ if(res.data.code == 0) {
+
+ // if(th.data.param.from == 1) {
+ // team_id = luckyGoInfo.team_id;
+ // } else {
+ // team_id = res.data.data.team_id;
// };
- // team_id = wx.getStorageSync('team_id');
+
+ team_id = res.data.data.team_id;
+
+
+ th.setData({
+ team_id,
+ });
+
};
- th.setData({
- luckyGoInfo,
- team_id,
- });
-
- //参团成功后,检查team_id
- //如果team_id为0, 表示当前已开启新的一期,文字提示应改为’参团成功,本期幸运购已开团,中奖结果可点击下方查看参团列表‘
- //如果team_id为0,取出之前保存的team_id替换掉,请求上一期已成团的幸运购活动
- //如果从会员中心的幸运购列表邀请好友点击进来,不执行storage操作
- if(th.data.param.from == 1) return false;
- // if(team_id > 0) {
- // wx.setStorage({
- // key: 'team_id',
- // data: team_id,
- // });
- // console.log('存储team_id', team_id);
- // } else {
- // let team_id2 = wx.getStorageSync('team_id');
- // console.log('获取team_id', team_id2);
- // th.setData({
- // team_id: team_id2,
- // // isSuccess: true,
- // });
- // };
-
- // th.setData({
- // luckyGoInfo,
- // team_id,
- // });
-
- };
+ });
- });
+ };
+ // wx.removeStorageSync('team_id');
+
+
// 幸运购成团成员
await getApp().request.promiseGet("/api/weshop/prom/luckyOrder/page", {
data: {
store_id: o.stoid,
- team_id: this.data.team_id,
+ team_id: team_id,
}
}).then(res => {
if(res.data.code == 0) {
- console.log('当前参团成员', res, self.data.team_id);
+ console.log('当前参团成员', res, team_id);
let myId = getApp().globalData.userInfo.user_id;
let luckyGoMembers = res.data.data.pageData;
th.setData({
@@ -1230,7 +1268,10 @@ Page({
self.isMe(myId, luckyGoMembers);
};
- });
+ });
+
+
+
},
diff --git a/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.wxml b/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.wxml
index ba6dfa9..c221c02 100644
--- a/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.wxml
+++ b/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.wxml
@@ -922,7 +922,7 @@
活动已经结束
- 查看详情
+ 查看详情
立即参团
已经抢光了
已超限购次数
diff --git a/pages/index/index/index.wxss b/pages/index/index/index.wxss
index c881b75..026ba8c 100644
--- a/pages/index/index/index.wxss
+++ b/pages/index/index/index.wxss
@@ -1180,6 +1180,7 @@ page {
.luck .name {
height: 88rpx;
+ word-break: break-all;
}
diff --git a/pages/user/user_spsy/user_spsy.js b/pages/user/user_spsy/user_spsy.js
index b7f7da1..5ee5215 100644
--- a/pages/user/user_spsy/user_spsy.js
+++ b/pages/user/user_spsy/user_spsy.js
@@ -83,7 +83,8 @@ Page({
userId: getApp().globalData.user_id,
}
const res = await getApp().request.promiseGet("/api/weshop/users/grade/wechat/wares/page", {
- data: req_data
+ data: req_data,
+ isShowLoading:true,
});
if (ut.ajax_ok(res)) {
diff --git a/pages/user/userqy/userqy.wxml b/pages/user/userqy/userqy.wxml
index 28f1f24..9c8cfd6 100644
--- a/pages/user/userqy/userqy.wxml
+++ b/pages/user/userqy/userqy.wxml
@@ -88,12 +88,13 @@
+
- {{item.PrivilegeName}}
+ {{item.PrivilegeName}}