diff --git a/src/pages/generateVideo/index.vue b/src/pages/generateVideo/index.vue index 7b4a375..6bd1211 100644 --- a/src/pages/generateVideo/index.vue +++ b/src/pages/generateVideo/index.vue @@ -129,14 +129,17 @@ function inviteFriend() { //#region 页面跳转 function bueCoin() { - uni.showToast({ - title: "暂未开放", - icon: "none", - mask: true, - }); - // uni.navigateTo({ - // url: "/pages/home/buyCoin", - // }); + if (userInfoModulesPinia.platForm == 3) { + uni.showToast({ + title: "暂未开放", + icon: "none", + mask: true, + }); + } else { + uni.navigateTo({ + url: "/pages/index/buyCoin", + }); + } } //#endregion --------------------- diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index ebc2b3f..df65ba9 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -249,14 +249,17 @@ function chooseAvatar() { //#region 路由跳转 function goBuyCoin() { - uni.showToast({ - title: "暂未开放", - icon: "none", - mask: true, - }); - // uni.navigateTo({ - // url: "/pages/home/buyCoin", - // }); + if (userInfoModulesPinia.platForm == 3) { + uni.showToast({ + title: "暂未开放", + icon: "none", + mask: true, + }); + } else { + uni.navigateTo({ + url: "/pages/index/buyCoin", + }); + } } function goLookPhoto(id, status) { diff --git a/src/pages/lookPhoto/index.vue b/src/pages/lookPhoto/index.vue index f619116..5866ff5 100644 --- a/src/pages/lookPhoto/index.vue +++ b/src/pages/lookPhoto/index.vue @@ -219,14 +219,17 @@ function inviteFriend() { //#region 页面跳转 function buyCoin() { - uni.showToast({ - title: "暂未开放", - icon: "none", - mask: true, - }); - // uni.navigateTo({ - // url: "/pages/index/buyCoin", - // }); + if (userInfoModulesPinia.platForm == 3) { + uni.showToast({ + title: "暂未开放", + icon: "none", + mask: true, + }); + } else { + uni.navigateTo({ + url: "/pages/index/buyCoin", + }); + } } //#endregion --------------------- diff --git a/src/pages/recorded/index.vue b/src/pages/recorded/index.vue index 805e309..ca19f17 100644 --- a/src/pages/recorded/index.vue +++ b/src/pages/recorded/index.vue @@ -105,14 +105,17 @@ function previewImage(index) { //#region 页面跳转 function bueCoin() { - uni.showToast({ - title: "暂未开放", - icon: "none", - mask: true, - }); - // uni.navigateTo({ - // url: "/pages/home/buyCoin", - // }); + if (userInfoModulesPinia.platForm == 3) { + uni.showToast({ + title: "暂未开放", + icon: "none", + mask: true, + }); + } else { + uni.navigateTo({ + url: "/pages/index/buyCoin", + }); + } } //#endregion ---------------------