Fix:5801 【商城小程序】从(体验版)香道滇小程序【商户入驻】点击礼品集采中心入驻接口会跳转到(正式版)香道滇产业供应链
This commit is contained in:
@@ -42,9 +42,20 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
goSupplierMini() {
|
goSupplierMini() {
|
||||||
|
// 区分当前小程序环境:正式版跳正式版,体验版/开发版跳体验版
|
||||||
|
let envVersion = 'release'
|
||||||
|
try {
|
||||||
|
const accountInfo = uni.getAccountInfoSync()
|
||||||
|
if (accountInfo && accountInfo.miniProgram && accountInfo.miniProgram.envVersion !== 'release') {
|
||||||
|
envVersion = 'trial'
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
envVersion = 'release'
|
||||||
|
}
|
||||||
uni.navigateToMiniProgram({
|
uni.navigateToMiniProgram({
|
||||||
appId: "wx9ca93d1f2a9c8156",
|
appId: "wx9ca93d1f2a9c8156",
|
||||||
path: "pages/auth/login",
|
path: "pages/auth/login",
|
||||||
|
envVersion,
|
||||||
success(msg) {
|
success(msg) {
|
||||||
console.log("success", msg)
|
console.log("success", msg)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user