|
@@ -186,7 +186,7 @@
|
|
|
<div class="bargaining-success">
|
|
|
<div class="bargaining-success-title">恭喜您,砍价成功</div>
|
|
|
<div class="bargaining-success-tips">
|
|
|
- 您的云手机【获取云手机名称】发放成功/续费成功
|
|
|
+ 您的云手机【{{ info.diskName }}】发放成功/续费成功
|
|
|
</div>
|
|
|
<div class="bargaining-success-btn">
|
|
|
<div @click="claimTheNextOne">免费领下一台云机</div>
|
|
@@ -356,14 +356,6 @@ export default {
|
|
|
|
|
|
setTimeout(() => {
|
|
|
this.bargainingStatus(true);
|
|
|
- switch (+this.type) {
|
|
|
- case 3: // 成功,领取下一台云机界面
|
|
|
- this.successfulBargainingVisible = true;
|
|
|
- break;
|
|
|
- case 4: // 失败,领取下一台云机界面
|
|
|
- this.expireVisible = true;
|
|
|
- break;
|
|
|
- }
|
|
|
});
|
|
|
},
|
|
|
computed: {
|
|
@@ -501,6 +493,16 @@ export default {
|
|
|
if (Object.keys(this.inviteeData).length) {
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
+ switch (+this.type) {
|
|
|
+ case 3: // 成功,领取下一台云机界面
|
|
|
+ this.successfulBargainingVisible = true;
|
|
|
+ break;
|
|
|
+ case 4: // 失败,领取下一台云机界面
|
|
|
+ this.expireVisible = true;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
const data = await this.getSystemTime();
|
|
|
this.systemTime = data.data;
|
|
|
if (this.info.bargainingStatus === 0) {
|
|
@@ -517,10 +519,13 @@ export default {
|
|
|
(this.$userAgent.isSzx || this.$userAgent.isSzxBrowser) &&
|
|
|
this.$userAgent.isAndroid
|
|
|
) {
|
|
|
- window.native.webBackStatus(true);
|
|
|
- window.appGoBackCallback = () => {
|
|
|
- this.exitVisible = true;
|
|
|
- };
|
|
|
+ // 旧版本做兼容,如果有的情况下的话就显示
|
|
|
+ if (window.native.webBackStatus) {
|
|
|
+ window.native.webBackStatus(true);
|
|
|
+ window.appGoBackCallback = () => {
|
|
|
+ this.exitVisible = true;
|
|
|
+ };
|
|
|
+ }
|
|
|
}
|
|
|
// 对微信做拦截
|
|
|
if (this.$userAgent.isWx) {
|
|
@@ -583,7 +588,7 @@ export default {
|
|
|
(this.$userAgent.isSzx || this.$userAgent.isSzxBrowser) &&
|
|
|
this.$userAgent.isAndroid
|
|
|
) {
|
|
|
- window.native.webBackStatus(false);
|
|
|
+ window.native.webBackStatus && window.native.webBackStatus(false);
|
|
|
}
|
|
|
this.$router.replace('/claimCloudPhone/chooseCloudPhone?exit=1');
|
|
|
}
|