diff --git a/app.json b/app.json
index b4ae20d..06d4421 100644
--- a/app.json
+++ b/app.json
@@ -87,23 +87,23 @@
"pages/template/index",
"pages/store/index"
],
-
+ "plugins": {
+ "live-player-plugin": {
+ "version": "1.1.1",
+ "provider": "wx2b03c6e691cd7370"
+ }
+ },
"subPackages": [{
"root": "packageA/",
"name":"pack1",
- "pages": [
- "pages/liveStream/liveStream",
+ "pages": [
"pages/prom_list/prom_list",
"pages/quan_list/quan_list",
"pages/quan_pro/quan_pro",
+ "pages/liveStream/liveStream",
"pages/liveStreamDetails/liveStreamDetails"
- ],
- "plugins": {
- "live-player-plugin": {
- "version": "1.0.13",
- "provider": "wx2b03c6e691cd7370"
- }
- }
+ ]
+
}],
"permission": {
diff --git a/components/diy_goodsGroup/diy_goodsGroup.js b/components/diy_goodsGroup/diy_goodsGroup.js
index 7f4bcb7..b5f9507 100644
--- a/components/diy_goodsGroup/diy_goodsGroup.js
+++ b/components/diy_goodsGroup/diy_goodsGroup.js
@@ -83,39 +83,10 @@ Component({
},
pageLifetimes: {
+ //游客登陆后,只要更新卡的情况
show: function () {
- this.data.firist_type_curr=0,
- this.data.currentPage=1,
- this.setData({ goods_array: null})
-
- // 页面被展示
- // 在组件实例进入页面节点树时执行
- this.data.classstyle_id = this.data.object.classstyle;
- this.data.goodscount = this.data.object.goodscount;
- this.data.wgroup = this.data.object.wgroup;
-
- this.setData({
- classstyle_id: this.data.object.classstyle
- })
- if (this.data.object.goodsclass == 1) {
- this.data.is_recommend = 1
- }
- if (this.data.object.goodsclass == 2) {
- this.data.is_hot = 1
- }
- if (this.data.object.goodsclass == 3) {
- this.data.is_new = 1
- }
- this.data.requestData = new Array();
- //---将数组---
- this.data.g_id = this.data.object.data;
- var arr = [];
- for (var i = 0; i < this.data.g_id .length; i += this.data.goodscount) {
- arr.push(this.data.g_id .slice(i, i + this.data.goodscount));
- }
-
- this.data.firist_type_data = arr;
- this.init(this.data.classstyle_id, this.data.wgroup);
+ //--初始化卡类--
+ this.card_init();
},
},
@@ -178,16 +149,18 @@ Component({
break;
case "2":
var item = {};
+ var r_data={
+ store_id: os.stoid ,
+ pageSize: th.data.goodscount,
+ page: th.data.currentPage,
+ isonsale: 1,
+ };
+ if(th.data.is_recommend) r_data.is_recommend=th.data.is_recommend;
+ if(th.data.is_hot) r_data.is_hot=th.data.is_hot;
+ if(th.data.is_new) r_data.is_new=th.data.is_new;
+
app.request.promiseGet("/api/weshop/goods/page", {
- data: {
- store_id: os.stoid ,
- is_recommend: th.data.is_recommend,
- is_hot: th.data.is_hot,
- is_new: th.data.is_new,
- pageSize: th.data.goodscount,
- page: th.data.currentPage,
- isonsale: 1,
- }
+ data:r_data
}).then(res => {
//商品地址
var goods = res.data.data.pageData;
diff --git a/components/diy_searchbox/diy_searchbox.wxml b/components/diy_searchbox/diy_searchbox.wxml
index cb77060..2ce8ff1 100644
--- a/components/diy_searchbox/diy_searchbox.wxml
+++ b/components/diy_searchbox/diy_searchbox.wxml
@@ -10,7 +10,7 @@
-
+
@@ -26,7 +26,7 @@
- 在店铺内搜索
+ 在店铺内搜索
diff --git a/components/goods_list/goods_list.js b/components/goods_list/goods_list.js
index 60e5404..b436a56 100644
--- a/components/goods_list/goods_list.js
+++ b/components/goods_list/goods_list.js
@@ -23,6 +23,13 @@ Component({
},
ready: function () {
},
+ pageLifetimes:{
+ //要处理一下,游客登陆后的界面的变化,主要还该是改变会员
+ show: function () {
+ this.init();
+ }
+ },
+
methods: {
init: function () {
var th = this;
diff --git a/pages/giftpack/giftpacklist/giftpacklist.js b/pages/giftpack/giftpacklist/giftpacklist.js
index 05050b3..1e0becd 100644
--- a/pages/giftpack/giftpacklist/giftpacklist.js
+++ b/pages/giftpack/giftpacklist/giftpacklist.js
@@ -239,7 +239,7 @@ Page({
}
}
} else {
- getApp().my_warnning("系统繁忙,请稍后再试", 0, th);
+ getApp().my_warnning(res.data.msg, 0, th);
return false;
}
}
@@ -283,6 +283,7 @@ Page({
_this2.setData({
giftDate: res.data.data.endTime,
+ giftStart: res.data.data.starTime,
giftPosPrice: res.data.data.giftPosPrice,
giftQty: res.data.data.giftQty,
giftIntegral: res.data.data.payIntegral,
@@ -293,7 +294,7 @@ Page({
isStart:isStart,
})
} else {
- getApp().my_warnning("系统繁忙,请稍后再试", 0, _this2);
+ getApp().my_warnning(res.data.msg, 0, _this2);
return false;
}
}
@@ -337,7 +338,6 @@ Page({
},
"put"
-
)
},
diff --git a/pages/giftpack/giftpacklist/giftpacklist.wxml b/pages/giftpack/giftpacklist/giftpacklist.wxml
index de8a720..70208c2 100644
--- a/pages/giftpack/giftpacklist/giftpacklist.wxml
+++ b/pages/giftpack/giftpacklist/giftpacklist.wxml
@@ -7,8 +7,18 @@
{{giftTitle}}
- {{"兑换截至时间:"+giftDate}}
- {{"活动结束至时间:"+giftDate}}
+
+
+ {{"活动开始时间:"+giftStart}}
+
+
+
+ {{"兑换结束时间:"+giftDate}}
+
+ {{"活动结束时间:"+giftDate}}
+
+
+
@@ -100,29 +110,39 @@
-
-
+
+
+
+
+
+
+
+
-
+
diff --git a/pages/index/index/index.wxss b/pages/index/index/index.wxss
index 087b2b7..e3f1467 100644
--- a/pages/index/index/index.wxss
+++ b/pages/index/index/index.wxss
@@ -9,6 +9,7 @@
width: 100%;
height: 88rpx;
z-index: 10;
+ background-color: #ff7295;
}
.classify-img {
diff --git a/pages/template/index.js b/pages/template/index.js
index 28870d2..bfbc70d 100644
--- a/pages/template/index.js
+++ b/pages/template/index.js
@@ -45,6 +45,11 @@ Page({
var data = res.data.data;
if (data) {
var temp_data = data;
+
+ wx.setNavigationBarTitle({
+ title: temp_data.page_title,
+ });
+
var t_arr = JSON.parse(temp_data.json_str);
th.setData({
template_arr: t_arr,
@@ -63,9 +68,7 @@ Page({
}
})
- wx.setNavigationBarTitle({
- title: '模板预览',
- });
+
},