小程序前端/小程序前端/pages/user_vip/index.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// pages/member-center/index.js
import { userLevelGrade, userLevelTask, userLevelDetection } from '../../api/user.js';
import { getProductHot } from '../../api/store.js';
const app=getApp();
Page({
/**
* 页面的初始数据
*/
data: {
parameter: {
'navbar': '1',
'return': '1',
'title': '会员中心',
'class':'1',
'color':true
},
VipList: [],
indicatorDots: false,
circular: true,
autoplay: false,
interval: 3000,
duration: 500,
swiperIndex: 0,
growthValue: true,
task:[],//任务列表
illustrate:'',//任务说明
level_id:0,//任务id,
host_product:[],
},
/**
* 授权回调
*/
onLoadFun:function(){
this.setLeveLComplete();
this.get_host_product();
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
var that = this;
setTimeout(function () {
that.setData({
loading: true
})
}, 500)
},
/**
* 获取我的推荐
*/
get_host_product: function () {
var that = this;
getProductHot().then(res=>{
that.setData({ host_product: res.data });
});
},
/**
* 会员切换
后面还有 61 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
