微信小程序:列表滑动、动态渲染数据
/* 获取骑行卡套餐 */
rideCardList: function () {
let that = this;
App._post_form('/post', {
module: 'UserService.rideCardList',
}, function (result) {
if (result.state === "000") {
that.setData({
list: result.data,
ridecardId: result.data[0].id,
money: result.data[0].actual_amount,
day: result.data[0].number_day,
name: result.data[0].name,
})
wx.hideLoading();
} else {
wx.hideLoading