Browse Source

首页添加分享

release/210823_需求对对碰
王饶冀 3 years ago
parent
commit
ac77419929
2 changed files with 17 additions and 7 deletions
  1. BIN
      images/home/ShareApp.png
  2. 17
    7
      pages/index/index.js

BIN
images/home/ShareApp.png View File


+ 17
- 7
pages/index/index.js View File

@@ -72,8 +72,8 @@ Page({
// 当前登录用户已设置的关注类型
attentionTypeIds: "",
// 用来判断关注显示按钮
paramIsInterest:0,
customerId:null,
paramIsInterest: 0,
customerId: null,
},
onLoad() {
},
@@ -83,12 +83,12 @@ Page({
const businessCommunicationCustomer = wx.getStorageSync('businessCommunicationCustomer') || null;
if (businessCommunicationCustomer) {
let attentionTypeIds = businessCommunicationCustomer.attentionTypeIds;
if(attentionTypeIds){
if (attentionTypeIds) {
attentionTypeIds = attentionTypeIds.split(',');
}
this.setData({
attentionTypeIds,
customerId:businessCommunicationCustomer.customerId
customerId: businessCommunicationCustomer.customerId
})
}
},
@@ -202,7 +202,7 @@ Page({
type = app.globalData.businessCommunicationCustomer.attentionTypeIds;
}
let paramIsInterest = 0;
if(isInterest){
if (isInterest) {
paramIsInterest = isInterest;
}
this.setData({
@@ -250,8 +250,8 @@ Page({
this.setData({
listLoading: false
})
if(this.data.attentionTypeIds && this.data.currentTab == 'my'){
if(this.data.attentionTypeIds.length > 0 && this.data.total == 0){
if (this.data.attentionTypeIds && this.data.currentTab == 'my') {
if (this.data.attentionTypeIds.length > 0 && this.data.total == 0) {
this.getListData(1);
}
}
@@ -285,4 +285,14 @@ Page({
}
})
},
/**
* 用户点击右上角分享
*/
onShareAppMessage(){
return {
title: "分享你一个需求交流平台!推荐你一起来关注~",
imageUrl: '/image/home/ShareApp.png',
path: 'pages/index/index'
}
},
})

Loading…
Cancel
Save