Commit 9bc5f809 by 谢中龙

修改业绩页面

parent 909d1e01
......@@ -17,6 +17,7 @@ wxService.page({
],
current : 1,
currentOrderData : {},
avator: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/biaka_default_u_logo.png',
info : {},
achievement : {},
......@@ -41,6 +42,20 @@ wxService.page({
this.getGuidOrderPreview(this.data.current);
},
//获取头像
getAvator() {
wx.qy.getAvatar({
success: res => {
this.setData({
avator: res.avatar
});
},
fail: res => {
}
});
},
/**
* 生命周期函数--监听页面加载
*/
......@@ -77,6 +92,8 @@ wxService.page({
this.getGuidOrderPreview(this.data.current);
//获取导购业绩日统计
this.getGuidAchievementDay();
//获取导购头像
this.getAvator();
},
/**
......
......@@ -4,7 +4,7 @@
<!-- 个人信息 -->
<view class='info'>
<view class='center'>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/biaka_default_u_logo.png' mode='aspectFit'></image>
<image src='{{avator}}' mode='aspectFit'></image>
<view class='rg-name'>
<view>{{info.member.name}}</view>
<view>{{info.memberCardNo}}</view>
......
......@@ -44,40 +44,43 @@ wxService.page({
//获取小程序码
getMiniQrcode(id){
// subPackage / page / pages / scanCoupon / scanCoupon
let currentUserInfo = wx.getStorageSync('_guidCouponInfo');
let memberId = currentUserInfo.memberId;
let currentCouponInfo = wx.getStorageSync('_guidCouponInfo');
console.log('_guidCouponInfo-----' ,currentCouponInfo)
let memberId = currentCouponInfo.memberId;
let content = {
title: currentUserInfo.title,
id: currentUserInfo.id,
url: currentUserInfo.imageBg
title: currentCouponInfo.title,
id: currentCouponInfo.id,
url: currentCouponInfo.imageBg
}
let tentacleInfo = {
content: JSON.stringify(content),
contentId: currentUserInfo.id,
contentId: currentCouponInfo.id,
contentType: app.globalData.contants.SHARE_TYPE.PRODUCT_DETAIL, //内容类型 STAFF_RECOMMAND
title: currentUserInfo.title, //标题
title: currentCouponInfo.title, //标题
type: 3// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
}
wxService.getTentacleContent(tentacleInfo).then(res => {
if (res && res.id) {
let tentacleId = res.id;
let inner_id = Integer.digit(currentUserInfo.id, 10, 64);
let inner_id = Integer.digit(currentCouponInfo.id, 10, 64);
let inner_tentacleId = Integer.digit(tentacleId, 10, 64);
//生成二维码
let data = {
"autoColor": true,
"page": 'subPackage/page/pages/scanCoupon/scanCoupon',
// "page": 'subPackage/page/pages/h5/h5page',
// "page": 'pages/index/index',
"scene": '?i=' + inner_id + '&t=' + inner_tentacleId,
"width": 260
}
wxService.post(`/marketing/quickMark/getAppQrCodePicture`, data).then(res => {
const { result, data } = res.data
if (result == 0) {
let url = app.globalData.imageUrl + data;
this.setData({
qrcodeImg: app.globalData.imageUrl + data
qrcodeImg: url
});
}
})
......
......@@ -14,6 +14,7 @@ wxService.page({
}
],
name: '',
loadingText: '数据加载中..'
},
/**
......@@ -46,8 +47,13 @@ wxService.page({
item.member.memberWeixin.headimgurl ? item.member.memberWeixin.headimgurl : defaultImg) : defaultImg
) : defaultImg
});
if(list.length == 0){
this.data.loadingText = '暂无数据~';
}
this.setData({
list: list
list: list,
loadingText: this.data.loadingText
})
}
}
......
......@@ -13,5 +13,5 @@
</view>
<!-- empty -->
<view class='empty' wx:else>数据加载中..</view>
<view class='empty' wx:else>{{loadingText}}</view>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment