|
|
@@ -37,21 +37,19 @@
|
|
|
</view>
|
|
|
<view class="image-box" >
|
|
|
<view class="dec">
|
|
|
- <block v-if="myInfo.lifelong == 0">
|
|
|
- <block v-if="showDeadline">
|
|
|
- <text class="dec-deadline-text" @click="goRenew(0)">到期时间 {{ myInfo.shopInfo && myInfo.shopInfo.deadline ? myInfo.shopInfo.deadline.substr(0,11) : '' }}</text>
|
|
|
- <view class="dec-renew" @click="goRenew(0)">
|
|
|
- <text class="dec-renew-label">去续费</text>
|
|
|
- <text class="iconfont iconxiangyou dec-renew-arrow"></text>
|
|
|
- </view>
|
|
|
- </block>
|
|
|
- <block v-else>
|
|
|
- <text class="dec-deadline-text" @click="goRenew(1)">打开小程序看时间</text>
|
|
|
- <view class="dec-renew" @click="goRenew(1)">
|
|
|
- <text class="dec-renew-label">去打开</text>
|
|
|
- <text class="iconfont iconxiangyou dec-renew-arrow"></text>
|
|
|
- </view>
|
|
|
- </block>
|
|
|
+ <block v-if="showDeadline">
|
|
|
+ <text class="dec-deadline-text" @click="goRenew(0)">到期时间 {{ myInfo.shopInfo && myInfo.shopInfo.deadline ? myInfo.shopInfo.deadline.substr(0,11) : '' }}</text>
|
|
|
+ <view class="dec-renew" @click="goRenew(0)">
|
|
|
+ <text class="dec-renew-label">去续费</text>
|
|
|
+ <text class="iconfont iconxiangyou dec-renew-arrow"></text>
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
+ <block v-else>
|
|
|
+ <text class="dec-deadline-text" @click="goRenew(1)">打开小程序看时间</text>
|
|
|
+ <view class="dec-renew" @click="goRenew(1)">
|
|
|
+ <text class="dec-renew-label">去打开</text>
|
|
|
+ <text class="iconfont iconxiangyou dec-renew-arrow"></text>
|
|
|
+ </view>
|
|
|
</block>
|
|
|
</view>
|
|
|
<image :src="`${constant.imgUrl}/ghs/me/upgrade2.png`"></image>
|
|
|
@@ -325,6 +323,11 @@ export default {
|
|
|
mixins: [list],
|
|
|
computed: {
|
|
|
...mapGetters(["getLoginInfo", "getDictionariesInfo"]),
|
|
|
+ // 仅苹果 App 不显示到期/续费区域,小程序、安卓 App、H5 等均显示
|
|
|
+ showRenewDec() {
|
|
|
+ const { uniPlatform, platform } = uni.getSystemInfoSync()
|
|
|
+ return !(uniPlatform === 'app' && platform === 'ios')
|
|
|
+ },
|
|
|
},
|
|
|
data () {
|
|
|
return {
|