Commit 33f6a949 by yuzhenWang

Merge branch 'feature-20250718wyz-修复申请加盟bug' into 'uat'

Feature 20250718wyz 修复申请加盟bug

See merge request !52
parents 4585d978 d843ec03
...@@ -539,7 +539,7 @@ ...@@ -539,7 +539,7 @@
"style": { "style": {
"navigationBarTitleText": "协议" "navigationBarTitleText": "协议"
} }
}, }
] ]
},{ },{
"root": "officialWebsite", "root": "officialWebsite",
......
<template> <template>
<!-- :style="{paddingTop: showFlag ? '0' : '60rpx'}" --> <!-- :style="{paddingTop: showFlag ? '0' : '60rpx'}" -->
<view class="container" > <view class="container" :style="{paddingTop: showFlag ? '0' : '60rpx'}">
<view class="homeHeader" v-if="showFlag"> <view class="homeHeader" v-if="showFlag">
<view class="one"> <view class="one">
<text style="font-size: 80rpx;">01</text> <text style="font-size: 80rpx;">01</text>
...@@ -210,6 +210,9 @@ ...@@ -210,6 +210,9 @@
this.$refs.partnerTipPopup.close() this.$refs.partnerTipPopup.close()
}, },
gotoShare(item){ gotoShare(item){
if(uni.getStorageSync('cffp_userInfo')){
this.userInfo = JSON.parse(uni.getStorageSync('cffp_userInfo'))
}
this.shareItem = JSON.parse(JSON.stringify(item)) this.shareItem = JSON.parse(JSON.stringify(item))
// 未登录去登录 // 未登录去登录
if(uni.getStorageSync('loginType')!=='codelogin'){ if(uni.getStorageSync('loginType')!=='codelogin'){
...@@ -224,7 +227,18 @@ ...@@ -224,7 +227,18 @@
this.sharelogin = true this.sharelogin = true
return return
} }
if(this.runEnv == 'browser'){
dataHandling.pocessTracking(
'点击',
`用户在产品中心浏览器端点击产品分享按钮`,
'点击',
2,
'产品中心',
'pages/courselist/courselist'
)
this.$refs.popup.open()
return
}
// 已登录,未成为合伙人 // 已登录,未成为合伙人
if(this.userInfo&&!this.userInfo['partnerType']) { if(this.userInfo&&!this.userInfo['partnerType']) {
dataHandling.pocessTracking( dataHandling.pocessTracking(
......
...@@ -280,6 +280,7 @@ ...@@ -280,6 +280,7 @@
}, },
onShow() { onShow() {
console.log('11111');
this.loginType = uni.getStorageSync('loginType') this.loginType = uni.getStorageSync('loginType')
this.init(); this.init();
this.showSearch = false; this.showSearch = false;
...@@ -325,6 +326,7 @@ ...@@ -325,6 +326,7 @@
nickName:res['data']['nickName'], nickName:res['data']['nickName'],
} }
uni.setStorageSync('cffp_userInfo', JSON.stringify(cffp_userInfo)); uni.setStorageSync('cffp_userInfo', JSON.stringify(cffp_userInfo));
console.log('cffp_userInfo.partnerType',cffp_userInfo.partnerType);
if(cffp_userInfo.partnerType){ if(cffp_userInfo.partnerType){
this.featureLists = [{key: '00',name: '成交订单',icon:'icon-dingdan',link: '/pages/saleCourseLists/saleCourseLists',isOpen: true,enName:'order'}, this.featureLists = [{key: '00',name: '成交订单',icon:'icon-dingdan',link: '/pages/saleCourseLists/saleCourseLists',isOpen: true,enName:'order'},
{key: '01',name: '佣金',icon: 'icon-yongjin',link: '/pages/pointsExchange/pointsExchange',isOpen: true,isJoin: true}, {key: '01',name: '佣金',icon: 'icon-yongjin',link: '/pages/pointsExchange/pointsExchange',isOpen: true,isJoin: true},
...@@ -390,6 +392,34 @@ ...@@ -390,6 +392,34 @@
this.querySystemMessage() this.querySystemMessage()
this.queryInfo() this.queryInfo()
}else { }else {
this.featureLists =[
{
key: '02',
name: '申请加盟',
icon: 'icon-hezuo',
link: '/myPackageA/applyFranchise/applyFranchise',
isOpen: true,
isApply:true
},
{
key: '07',
name: '分享产品',
icon: 'icon-zhuanfa',
link: '/pages/courselist/courselist',
isOpen: true,
},
{
key: '04',
name: '邀请加盟',
icon: 'icon-yaoqing',
link: '/pages/inviteJoin/inviteJoin',
isOpen: true,
isJoin: true
},
]
console.log('this.featureLists',this.featureLists);
uni.removeTabBarBadge({ index: 3 }); uni.removeTabBarBadge({ index: 3 });
} }
if (uni.getStorageSync('isLogin')) { if (uni.getStorageSync('isLogin')) {
...@@ -398,6 +428,7 @@ ...@@ -398,6 +428,7 @@
this.loginornot = false this.loginornot = false
}else{ }else{
this.loginornot = true; this.loginornot = true;
} }
this.queryAreaCenterInfo(); this.queryAreaCenterInfo();
} else { } else {
......
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