xcx/pages/wallet/rob/rob.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var util = require('../../../utils/util.js');
var api = require('../../../config/api.js');
var user = require('../../../utils/user.js');
var app = getApp();
Page({
data: {
role: '', //角色
tipsShow: false, //成功提示
userInfo: {
nickName: '点击登录',
avatarUrl: '../../../image/user/user_img.jpg'
},
hasLogin: false,
list: [],
page: 1,
size: 5,
totalPages: 1
},
onLoad: function (options) {
this.setData({
role: options.role
})
},
onShow: function () {
this.setData({
list: [],
page: 1,
size: 5,
totalPages: 1
})
//获取用户的登录信息
if (app.globalData.hasLogin) {
let userInfo = wx.getStorageSync('userInfo');
this.setData({
userInfo: userInfo,
hasLogin: true
});
let that = this;
util.request(api.UserIndex).then(function (res) {
if (res.code === 0) {
that.setData({
user: res.data.user,
});
}
});
that.getReceivedOrderList();
}
},
//获取订单
getReceivedOrderList: function () {
let that = this;
util.request(api.getReceivedOrderList, {
page: that.data.page,
limit: that.data.size,
role:that.data.role
}, "GET").then(function (res) {
if (res.code === 0) {
that.setData({
后面还有 68 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
