|
@@ -32,10 +32,16 @@
|
|
|
<!-- prompt-wrap -->
|
|
<!-- prompt-wrap -->
|
|
|
<div class="prompt-wrap">
|
|
<div class="prompt-wrap">
|
|
|
<block v-if="pageStatus == 1">
|
|
<block v-if="pageStatus == 1">
|
|
|
- <div class="prompt-tit">恭喜您, 续订成功!</div>
|
|
|
|
|
|
|
+ <div class="prompt-tit" style="color: #09bb07">恭喜您, 续订成功!</div>
|
|
|
<div>
|
|
<div>
|
|
|
<span class="app-color-2">你的帐号有效期已延长至:</span>
|
|
<span class="app-color-2">你的帐号有效期已延长至:</span>
|
|
|
- <span>2020-11-05 23:09</span>
|
|
|
|
|
|
|
+ <span>{{ data.deadline | formatTime('YYYY-MM-DD hh:mm:ss') }}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <block v-if="pageStatus == 2">
|
|
|
|
|
+ <div class="prompt-tit">申请已提交</div>
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <span class="app-color-2">审核大约需要一个工作日,请耐心等候</span>
|
|
|
</div>
|
|
</div>
|
|
|
</block>
|
|
</block>
|
|
|
</div>
|
|
</div>
|
|
@@ -51,10 +57,10 @@
|
|
|
<!-- button -->
|
|
<!-- button -->
|
|
|
<div class="button-wrap">
|
|
<div class="button-wrap">
|
|
|
<block v-if="pageStatus == 1 || pageStatus == 7">
|
|
<block v-if="pageStatus == 1 || pageStatus == 7">
|
|
|
- <button class="admin-button-com big blue">{{ btnText }}</button>
|
|
|
|
|
|
|
+ <button class="admin-button-com big blue" @click="jumpPage">{{ btnText }}</button>
|
|
|
</block>
|
|
</block>
|
|
|
<block v-else>
|
|
<block v-else>
|
|
|
- <button class="admin-button-com big default">{{ btnText }}</button>
|
|
|
|
|
|
|
+ <button class="admin-button-com big default" @click="jumpPage">{{ btnText }}</button>
|
|
|
</block>
|
|
</block>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -74,11 +80,14 @@
|
|
|
* @parmas 6 授权成功 - 扫码支付 -- successPayCode
|
|
* @parmas 6 授权成功 - 扫码支付 -- successPayCode
|
|
|
* @parmas 7 授权提示 - 扫码支付 -- successPayCode
|
|
* @parmas 7 授权提示 - 扫码支付 -- successPayCode
|
|
|
*/
|
|
*/
|
|
|
|
|
+import { accountDet, applyStatus } from '@/api/official'
|
|
|
|
|
+import { getShopUser } from '@/utils/auth'
|
|
|
export default {
|
|
export default {
|
|
|
name: 'callback',
|
|
name: 'callback',
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- pageStatus: 7,
|
|
|
|
|
|
|
+ data: {},
|
|
|
|
|
+ pageStatus: '2',
|
|
|
promptData: [
|
|
promptData: [
|
|
|
'确认你已经有公众号(服务号),并且已认证和申请微 信支付',
|
|
'确认你已经有公众号(服务号),并且已认证和申请微 信支付',
|
|
|
'满足以上条件,可以点下方按钮开始授权。',
|
|
'满足以上条件,可以点下方按钮开始授权。',
|
|
@@ -117,6 +126,57 @@ export default {
|
|
|
}
|
|
}
|
|
|
return text
|
|
return text
|
|
|
}
|
|
}
|
|
|
|
|
+ },
|
|
|
|
|
+ onLoad() {
|
|
|
|
|
+ let token = uni.getStorageSync('token')
|
|
|
|
|
+ if (!token) {
|
|
|
|
|
+ getShopUser()
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ mounted() {
|
|
|
|
|
+ // this.pageStatus = this.option.pageStatus
|
|
|
|
|
+ // this.init()
|
|
|
|
|
+ },
|
|
|
|
|
+ methods: {
|
|
|
|
|
+ init() {
|
|
|
|
|
+ this._getStatus()
|
|
|
|
|
+ if (this.pageStatus == 1 || this.pageStatus == 5) {
|
|
|
|
|
+ this._accountDet()
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ // 获取状态
|
|
|
|
|
+ _getStatus() {
|
|
|
|
|
+ applyStatus().then(res => {
|
|
|
|
|
+ let status = res.data.status
|
|
|
|
|
+ if (status == 1) {
|
|
|
|
|
+ this.pageStatus = 2
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ // 获取用户信息
|
|
|
|
|
+ _accountDet() {
|
|
|
|
|
+ accountDet().then(res => {
|
|
|
|
|
+ this.data = res.data
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ jumpPage() {
|
|
|
|
|
+ if (this.btnText == '返回首页') {
|
|
|
|
|
+ this.$util.pageTo({
|
|
|
|
|
+ url: '/official/index',
|
|
|
|
|
+ query: {
|
|
|
|
|
+ id: this.option.id
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ } else if (this.btnText == '返回管理中心') {
|
|
|
|
|
+ this.$util.pageTo({
|
|
|
|
|
+ url: '/official/index',
|
|
|
|
|
+ query: {
|
|
|
|
|
+ id: this.option.id
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
@@ -177,7 +237,6 @@ export default {
|
|
|
.prompt-wrap {
|
|
.prompt-wrap {
|
|
|
margin-top: 60px;
|
|
margin-top: 60px;
|
|
|
.prompt-tit {
|
|
.prompt-tit {
|
|
|
- color: #09bb07;
|
|
|
|
|
font-size: 36px;
|
|
font-size: 36px;
|
|
|
margin-bottom: 10px;
|
|
margin-bottom: 10px;
|
|
|
}
|
|
}
|