You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
998 B
JavaScript
45 lines
998 B
JavaScript
const util = require("../../../utils/util.js")
|
|
const card = require('../../../utils/card.js');
|
|
Page({
|
|
|
|
data: {
|
|
length:0
|
|
},
|
|
|
|
onLoad: function(options) {
|
|
util.setNavTitle4Color("中奖记录", "#FF7C06", "#ffffff");
|
|
this.memberActivityRecorde();
|
|
},
|
|
memberActivityRecorde:function(){
|
|
var that=this;
|
|
card.memberActivityRecorde(function(success){
|
|
var result=success.data;
|
|
if (result.status==1){
|
|
var data = result.data;
|
|
for (var item of data){
|
|
if (item.deliveryTime){
|
|
item.deliveryTime = util.formatTimeV(new Date(item.deliveryTime), "yyyy-MM-dd");
|
|
}
|
|
}
|
|
that.setData({
|
|
list: data
|
|
})
|
|
}else{
|
|
util.showWaring("暂无记录");
|
|
}
|
|
}, function (error) {
|
|
console.log(err);
|
|
wx.showToast({
|
|
title: "网络连接不稳定, 请重试",
|
|
icon: "none"
|
|
})
|
|
});
|
|
},
|
|
onShow: function() {
|
|
|
|
},
|
|
|
|
onReachBottom: function() {
|
|
|
|
}
|
|
}) |