|
@@ -23,6 +23,14 @@ Page({
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
*/
|
|
onLoad: function (options) {
|
|
onLoad: function (options) {
|
|
|
|
+ if (!options.activityId) {
|
|
|
|
+ this.popMessage ('入参错误');
|
|
|
|
+ wx.navigateTo({
|
|
|
|
+ url: './index',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ this.data.activityId = options.activityId
|
|
this.setData({
|
|
this.setData({
|
|
isLogin: getMobileCache() != ''
|
|
isLogin: getMobileCache() != ''
|
|
})
|
|
})
|
|
@@ -78,7 +86,7 @@ Page({
|
|
page: this.data.page,
|
|
page: this.data.page,
|
|
pageSize: this.data.pageSize,
|
|
pageSize: this.data.pageSize,
|
|
mobile: getMobileCache(),
|
|
mobile: getMobileCache(),
|
|
- goodsType: 1
|
|
|
|
|
|
+ activityId: this.data.activityId,
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.uaerPrizeListView(res.data)
|
|
this.uaerPrizeListView(res.data)
|
|
@@ -110,7 +118,7 @@ Page({
|
|
let createTime = v.createTime
|
|
let createTime = v.createTime
|
|
v.couponBeginTimestamp = parseTime(beginTime, "{y}.{m}.{d}")
|
|
v.couponBeginTimestamp = parseTime(beginTime, "{y}.{m}.{d}")
|
|
v.couponEndTimestamp = parseTime(endTime, "{y}.{m}.{d}")
|
|
v.couponEndTimestamp = parseTime(endTime, "{y}.{m}.{d}")
|
|
- v.createTime = parseTime(createTime, "{y}.{m}.{d} {h}:{s}")
|
|
|
|
|
|
+ v.createTime = parseTime(createTime, "{y}.{m}.{d} {h}:{i}")
|
|
})
|
|
})
|
|
|
|
|
|
this.data.userDrawItemList = this.data.userDrawItemList.concat(...data)
|
|
this.data.userDrawItemList = this.data.userDrawItemList.concat(...data)
|