Browse Source

Merge branch 'feat' into develop

feat
JinxChen 1 year ago
parent
commit
77d8004c53
3 changed files with 17 additions and 13 deletions
  1. +3
    -2
      README.md
  2. +7
    -5
      src/views/card-active/index.vue
  3. +7
    -6
      src/views/package-home/index.vue

+ 3
- 2
README.md View File

@@ -1,7 +1,7 @@
<!-- <!--
* @Date: 2022-08-17 16:19:13 * @Date: 2022-08-17 16:19:13
* @LastEditors: JinxChen * @LastEditors: JinxChen
* @LastEditTime: 2023-03-02 00:24:48
* @LastEditTime: 2023-03-02 01:14:22
* @FilePath: \TelpoH5FrontendWeb\README.md * @FilePath: \TelpoH5FrontendWeb\README.md
* @description: 项目说明 * @description: 项目说明
--> -->
@@ -242,4 +242,5 @@ feature
- 增加 已购买未激活容错页面 - 增加 已购买未激活容错页面
- 修复 已购买未激活未跳转容错页面的问题 - 修复 已购买未激活未跳转容错页面的问题
- 修改 激活界面文字提示 - 修改 激活界面文字提示
- 修改 页面支付逻辑,由未激活充值购买变成已激活充值购买
- 修改 页面支付逻辑,由未激活充值购买变成已激活充值购买
- 增加 已购买未激活容错页面

+ 7
- 5
src/views/card-active/index.vue View File

@@ -35,19 +35,21 @@ export default {
methods: { methods: {
onShowDialog() { onShowDialog() {
// 检测到您已充值、但未激活电话卡。。。。 // 检测到您已充值、但未激活电话卡。。。。
// 您已充值,按确定继续使用
let that = this; let that = this;
this.$dialog.confirm({ this.$dialog.confirm({
title: '激活提示',
message: `<span>检测到您已充值、但未激活电话卡</span></br><span>请点击确认前往激活电话卡。</span>`,
title: '使用提示',
message: `<span>您已充值、按确定继续使用</span>`,
showCancelButton: false showCancelButton: false
}).then(() => { }).then(() => {
that.$router.replace({
/* that.$router.replace({
name: 'activeStatus', name: 'activeStatus',
query: { query: {
serialNo: this.$route.query.imei, serialNo: this.$route.query.imei,
iccid: this.$route.query.iccid || '', iccid: this.$route.query.iccid || '',
} }
})
}) */
document.location.replace("https://xrpt.jiankangtongxue.cn/WCUParentWebUI.WX/Home/SmartDigitalSsjl");
}) })
}, },
// 激活接口 // 激活接口
@@ -115,7 +117,7 @@ export default {
}) })
}, },
onBackHome() { onBackHome() {
document.location.replace(" https://xrpt.jiankangtongxue.cn/WCUParentWebUI.WX/Home/")
document.location.replace("https://xrpt.jiankangtongxue.cn/WCUParentWebUI.WX/Home/SmartDigitalSsjl");
} }
} }
} }


+ 7
- 6
src/views/package-home/index.vue View File

@@ -28,10 +28,10 @@ export default {
this.getToken(); this.getToken();
this.getAuth(); this.getAuth();
this.getParams(); this.getParams();
//this.checkImei();
this.checkImei();
}, },
mounted() { mounted() {
this.checkBrowser();
}, },
methods: { methods: {
checkImei() { checkImei() {
@@ -46,6 +46,7 @@ export default {
this.isRecharge = data.isRecharge; this.isRecharge = data.isRecharge;
console.log("是否已经支付", this.isRecharge); console.log("是否已经支付", this.isRecharge);
}; };
this.checkBrowser();
}).catch(e => { }).catch(e => {
console.log("e", e.message); console.log("e", e.message);
}) })
@@ -112,11 +113,11 @@ export default {
getWxCode() { getWxCode() {
let params = this.params; let params = this.params;
let commonUrl = process.env.VUE_APP_BASE_API; let commonUrl = process.env.VUE_APP_BASE_API;
let redUrl = encodeURIComponent(`${commonUrl}/h5-frontendweb/#/${params.routerName}?imei=${params.imei}&appId=${params.appId}&iccid=${params.iccid}`);
/* let redUrl = encodeURIComponent(`${commonUrl}/h5-frontendweb/#/${params.routerName}?imei=${params.imei}&appId=${params.appId}&iccid=${params.iccid}`);
let url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${params.appId}&redirect_uri=${redUrl}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`; let url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${params.appId}&redirect_uri=${redUrl}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`;
window.location.href = url;
window.location.href = url; */
// todo 暂时去掉 // todo 暂时去掉
/* if(this.isRecharge) {
if(this.isRecharge) {
// 如果是已经支付,但未激活,跳转激活界面 // 如果是已经支付,但未激活,跳转激活界面
this.$router.replace({ this.$router.replace({
name: 'cardActive', name: 'cardActive',
@@ -129,7 +130,7 @@ export default {
let redUrl = encodeURIComponent(`${commonUrl}/h5-frontendweb/#/${params.routerName}?imei=${params.imei}&appId=${params.appId}&iccid=${params.iccid}`); let redUrl = encodeURIComponent(`${commonUrl}/h5-frontendweb/#/${params.routerName}?imei=${params.imei}&appId=${params.appId}&iccid=${params.iccid}`);
let url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${params.appId}&redirect_uri=${redUrl}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`; let url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${params.appId}&redirect_uri=${redUrl}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`;
window.location.href = url; window.location.href = url;
} */
}


}, },
// 获取url传过来的参数 // 获取url传过来的参数


Loading…
Cancel
Save