Merge pull request 'about page add phone number' (#358) from zhy into master

Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/358
This commit is contained in:
hansu 2020-09-10 10:39:15 +08:00
commit b5e8936307

View File

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