|
|
@@ -6,7 +6,7 @@
|
|
|
<view :class="['iconfont', 'iconchenggong']"></view>
|
|
|
<view class="result-title">充值成功</view>
|
|
|
<view class="account">你的账号已延长至</view>
|
|
|
- <view class="account">{{deadline}}</view>
|
|
|
+ <view class="account">{{userInfo.deadline}}</view>
|
|
|
<view
|
|
|
class="close_btn"
|
|
|
@click="goClose"
|
|
|
@@ -17,17 +17,18 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getMerchantDetail } from '@/api/merchant/index'
|
|
|
+import { mapGetters } from 'vuex'
|
|
|
export default {
|
|
|
name: "AppResult",
|
|
|
data () {
|
|
|
return {
|
|
|
- deadline: ''
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.getData()
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ ...mapGetters({ userInfo: "getUser"})
|
|
|
+ },
|
|
|
methods: {
|
|
|
goClose () {
|
|
|
this.$util.pageTo({
|
|
|
@@ -35,12 +36,6 @@ export default {
|
|
|
type: 4
|
|
|
})
|
|
|
},
|
|
|
- getData () {
|
|
|
- getMerchantDetail().then(res => {
|
|
|
- console.log('res', res)
|
|
|
- this.deadline = res.data.deadline
|
|
|
- }).catch(err => { console.log(err) })
|
|
|
- }
|
|
|
}
|
|
|
};
|
|
|
</script>
|