about page add phone number

This commit is contained in:
ghusermoon 2020-09-10 10:38:33 +08:00
parent 51c6a3b820
commit 5b89988e4d

View File

@ -17,7 +17,7 @@
</view>
<view>
<text class="title">联系我们</text>
<text class="tips">0539-09875421</text>
<text class="tips">{{ phoneNumber }}</text>
</view>
</view>
</view>
@ -29,10 +29,12 @@ export default {
version: '',
phone_type: "",
status: '',
phoneNumber: '',
}
},
onLoad() {
this.getVersion();
this.getPhone();
this.phone_type = this.$u.os();
},
methods: {
@ -46,6 +48,13 @@ export default {
}
})
},
getPhone() {
this.$u.api.getConfigInfo({
code: 'site_tel400'
}).then(res => {
this.phoneNumber = res.data.config.value;
})
},
viewAboutUs() {
this.$u.route('/pageE/mine/ArticleDetails', {
type: 2