tagging/CommissionArea/CommissionArea.js
(完整代码) 1KBconst publicApi = require('../../PublicMethod/tagging/bzlist');
const publicMethods = require('../../PublicMethod/public');
const publicMethodsApi = require('../../PublicMethod/api');
const CommonMethod = require('../../utils/CommonMethod');
let app = getApp();
Page({
data: {
pages: 0,
cla: "tagging",
},
onLoad: function (options) {
let that = this;
//获取位置
CommonMethod.getAdd('/tagging/index/bzlist').then(res => {
console.log(res);
that.data.currentlt = res.latitude;
that.data.currentlg = res.longitude;
that.setData({
showpage: !1
})
that.getvip()
})
},
// 跳转
navTo(e) {
console.log(e.currentTarget.dataset.id)
publicMethods.navto('/tagging/detail/detail?id=' + e.currentTarget.dataset.id);
},
// 获取vip数据
getvip() {
let that = this;
return publicApi.getVIPAll( that.data.currentlt,that.data.currentlg).then(res => {
let hasvip = res.data;
console.log(hasvip)
for(let i in hasvip){
if(hasvip[i].imgurl){
hasvip[i].imgurl = `https://image.soulide.com/${hasvip[i].imgurl}`
}
if (hasvip[i].detail != undefined) {
hasvip[i].detail = hasvip[i].detail.replace(/>/g, '>');
hasvip[i].detail = hasvip[i].detail.replace(/</g, '<');
hasvip[i].detail = hasvip[i].detail.replace(/"/g, "'");
hasvip[i].detail = hasvip[i].detail.replace(/\\n/g, "");
}
}
that.setData({
vip:res.data
})
})
},
searchBtn: function (e) {
publicMethods.reLaunch('/pages/tagging/index');
},
onReady: function () {
},
onShow: function () {
}
})
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
