锶源昆仑会员+体验官

This commit is contained in:
2023-07-22 19:04:56 +08:00
commit 5a6b3517e6
439 changed files with 20654 additions and 0 deletions

68
pages/recommend/index.js Normal file
View File

@@ -0,0 +1,68 @@
/*
* 手太欠
* 愿这世界都如故事里一样 美好而动人~
*/
Page({
/**
* 页面的初始数据
*/
data: {
larerType : 1, //默认列表 1 直接 2 间接
count : '', //数量
identity : '', //身份
relationArr: [], //我的伙伴列表
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
// 获取商品详情数据
this.relationsInfo();
},
/**
* 商品详情数据
*/
relationsInfo() {
wx.$api.user.relations({
larer: this.data.larerType
}).then(res => {
this.setData({
count : res.data.count,
relationArr : res.data.users
})
}).catch(err => {})
},
/**
* 状态筛选
*/
onTabs(e){
let val = e.currentTarget.dataset.type
if(this.data.larerType === val) return
this.setData({
larerType: val
})
// 获取商品详情数据
this.relationsInfo();
},
/**
* 拨打电话
*/
telClick(e){
wx.makePhoneCall({
phoneNumber: e.currentTarget.dataset.name
});
}
})