From f7034f535b85264e0c5b18e82fc295dab2052304 Mon Sep 17 00:00:00 2001
From: Jacob <hlnie@tohours.com>
Date: 星期五, 23 十月 2026 20:19:01 +0800
Subject: [PATCH] fix: 临时关闭悦养豆第三方小程序跳转入口
---
pages/user/index.vue | 112 ++++++++++++++++++++++++++-----------------------------
1 files changed, 53 insertions(+), 59 deletions(-)
diff --git a/pages/user/index.vue b/pages/user/index.vue
index e48ac95..04b050f 100644
--- a/pages/user/index.vue
+++ b/pages/user/index.vue
@@ -43,7 +43,8 @@
</view>
</view>
<view class="num-wrapper">
- <view class="num-item" @click="goToThird()">
+ <!-- TODO 涓存椂娉ㄩ噴锛氭偊鍏昏眴绗笁鏂瑰皬绋嬪簭璺宠浆 @click="goToThird()" -->
+ <view class="num-item">
<text class="num">{{ toThousands(careBeanNum) || 0 }}</text>
<view class="txt">鎮﹀吇璞�</view>
</view>
@@ -463,69 +464,62 @@
go();
}
},
- goToThird() {
- let that = this;
+ // TODO 涓存椂娉ㄩ噴锛氭偊鍏昏眴绗笁鏂瑰皬绋嬪簭璺宠浆锛屽緟寮�鏀炬椂鎭㈠
+ // goToThird() {
+ // let that = this;
- function go() {
- //绗笁鏂瑰皬绋嬪簭
- let url = '/pages/profile/care-coupon-detail?'
- url += 'sourceScene=user';
+ // function go() {
+ // //绗笁鏂瑰皬绋嬪簭
+ // let url = '/pages/profile/care-coupon-detail?'
+ // url += 'sourceScene=user';
- url += '&agentNo=' + ((that.$store.getters.belong && that.$store.getters.belong.agentNo) ? that.$store.getters.belong
- .agentNo : '');
- url += '&agentChannel=' + ((that.$store.getters.belong && that.$store.getters.belong.channel) ? that.$store.getters
- .belong.channel : ''); //褰掑睘浠g悊浜烘笭閬�
- url += '&agentCompany=' + ((that.$store.getters.belong && that.$store.getters.belong.companyCode) ? that.$store.getters
- .belong.companyCode : ''); //agentCompany
- url += '&agentBranch=' + ((that.$store.getters.belong && that.$store.getters.belong.branchCode) ? that.$store.getters
- .belong
- .branchCode : ''); //褰掑睘浠g悊浜烘敮鍏徃
- url += '&custAgentOrgNo=' + ((that.$store.getters.belong && that.$store.getters.belong.subCode) ? that.$store.getters
- .belong.subCode : ''); //褰掑睘浠g悊浜烘満鏋勭紪鐮�
- url += '&unionId=' + that.$store.getters.unionId;
- url += '&mobile=' + ((that.$store.getters.belong && that.$store.getters.belong.mobile) ? that.$store.getters.belong
- .mobile : that.$store.getters.userInfo.mobile);
+ // url += '&agentNo=' + ((that.$store.getters.belong && that.$store.getters.belong.agentNo) ? that.$store.getters.belong
+ // .agentNo : '');
+ // url += '&agentChannel=' + ((that.$store.getters.belong && that.$store.getters.belong.channel) ? that.$store.getters
+ // .belong.channel : ''); //褰掑睘浠g悊浜烘笭閬�
+ // url += '&agentCompany=' + ((that.$store.getters.belong && that.$store.getters.belong.companyCode) ? that.$store.getters
+ // .belong.companyCode : ''); //agentCompany
+ // url += '&agentBranch=' + ((that.$store.getters.belong && that.$store.getters.belong.branchCode) ? that.$store.getters
+ // .belong
+ // .branchCode : ''); //褰掑睘浠g悊浜烘敮鍏徃
+ // url += '&custAgentOrgNo=' + ((that.$store.getters.belong && that.$store.getters.belong.subCode) ? that.$store.getters
+ // .belong.subCode : ''); //褰掑睘浠g悊浜烘満鏋勭紪鐮�
+ // url += '&unionId=' + that.$store.getters.unionId;
+ // url += '&mobile=' + ((that.$store.getters.belong && that.$store.getters.belong.mobile) ? that.$store.getters.belong
+ // .mobile : that.$store.getters.userInfo.mobile);
- // let params={};
- // params['custAgentNo']=((that.$store.getters.belong && that.$store.getters.belong.agentNo) ? that.$store
- // .getters.belong.agentNo : '');
- // params['custAgentChnl']=((that.$store.getters.belong && that.$store.getters.belong.channel) ? that.$store
- // .getters.belong.channel : '');
- // params['custAgentCoy']=((that.$store.getters.belong && that.$store.getters.belong.companyCode) ? that
- // .$store.getters.belong.companyCode : '');
- // params['custAgentBranch']=((that.$store.getters.belong && that.$store.getters.belong.branchCode) ? that
- // .$store.getters.belong.branchCode : '');
- // params['custAgentOrgNo']=((that.$store.getters.belong && that.$store.getters.belong.subCode) ? that
- // .$store.getters.belong.subCode : '');
+ // // let params={};
+ // // params['custAgentNo']=((that.$store.getters.belong && that.$store.getters.belong.agentNo) ? that.$store
+ // // .getters.belong.agentNo : '');
+ // // params['custAgentChnl']=((that.$store.getters.belong && that.$store.getters.belong.channel) ? that.$store
+ // // .getters.belong.channel : '');
+ // // params['custAgentCoy']=((that.$store.getters.belong && that.$store.getters.belong.companyCode) ? that
+ // // .$store.getters.belong.companyCode : '');
+ // // params['custAgentBranch']=((that.$store.getters.belong && that.$store.getters.belong.branchCode) ? that
+ // // .$store.getters.belong.branchCode : '');
+ // // params['custAgentOrgNo']=((that.$store.getters.belong && that.$store.getters.belong.subCode) ? that
+ // // .$store.getters.belong.subCode : '');
- console.log(url);
- const accountInfo = wx.getAccountInfoSync()
- const envVersion = accountInfo.miniProgram.envVersion
- console.log("envVersion::::", envVersion)
+ // console.log(url);
+ // const accountInfo = wx.getAccountInfoSync()
+ // const envVersion = accountInfo.miniProgram.envVersion
+ // console.log("envVersion::::", envVersion)
- uni.navigateToMiniProgram({
- appId: THIRD_APPID,
- path: url,
- envVersion: envVersion != 'release' ? 'trial' : 'release'
- })
-
- // let webUrl='https://ossacmall.bluedeer.com.cn/qr/index.html?isMall=true'+(envVersion == 'release' ? '' : '&isTrial=true')+'¶ms='+encodeURIComponent(JSON.stringify(params))+'&pageUrl='+encodeURIComponent(url);
- // if(HTTP_REQUEST_URL.indexOf('tohours')>0){
- // webUrl=webUrl.replace('https://ossacmall.bluedeer.com.cn/qr','https://sit.tohours.com/crmeb_web/qr/')
- // }
- // uni.navigateTo({
- // url: '/pages/users/web_page/index?webUel='+encodeURIComponent(webUrl)
- // })
- }
- if (!that.$store.getters.isLogin) {
- toLogin(that);
- that.loginBackFn = function () {
- go();
- }
- } else {
- go();
- }
- },
+ // uni.navigateToMiniProgram({
+ // appId: THIRD_APPID,
+ // path: url,
+ // envVersion: envVersion != 'release' ? 'trial' : 'release'
+ // })
+ // }
+ // if (!that.$store.getters.isLogin) {
+ // toLogin(that);
+ // that.loginBackFn = function () {
+ // go();
+ // }
+ // } else {
+ // go();
+ // }
+ // },
// 鑾峰彇鍦板潃鏁版嵁
getCityList: function () {
let that = this;
--
Gitblit v1.4.0