From 5b89988e4dbd3418c023c01ad262064991720d9c Mon Sep 17 00:00:00 2001 From: ghusermoon <2673031505@qq.com> Date: Thu, 10 Sep 2020 10:38:33 +0800 Subject: [PATCH] about page add phone number --- pageE/setting/version.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pageE/setting/version.vue b/pageE/setting/version.vue index a209801..542a303 100644 --- a/pageE/setting/version.vue +++ b/pageE/setting/version.vue @@ -17,7 +17,7 @@ 联系我们 - 0539-09875421 + {{ phoneNumber }} @@ -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