|
@@ -193,7 +193,7 @@ page {
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
- <footer @callPhone="openPhonePanel"></footer>
|
|
|
+ <footer v-show="hasCustomePhone" @callPhone="openPhonePanel" @custome-phone-show="customePhoneShow"></footer>
|
|
|
<custome-service-panel
|
|
|
:show="visiblePhone"
|
|
|
:phone="phone"
|
|
@@ -216,6 +216,7 @@ wepy.page({
|
|
|
components: {},
|
|
|
props: {},
|
|
|
data: {
|
|
|
+ hasCustomePhone: null,
|
|
|
visiblePhone: false,
|
|
|
phone: '',
|
|
|
userInfo: null,
|
|
@@ -234,6 +235,10 @@ wepy.page({
|
|
|
|
|
|
computed: {},
|
|
|
methods: {
|
|
|
+ // 是否有客服
|
|
|
+ customePhoneShow(val) {
|
|
|
+ this.hasCustomePhone = val
|
|
|
+ },
|
|
|
getUserInfo() {
|
|
|
queryUserById().then(res => {
|
|
|
this.userInfo = res.data
|
|
@@ -273,8 +278,8 @@ wepy.page({
|
|
|
usingComponents: {
|
|
|
'page-top-bar': '~@/components/common/page-top-bar',
|
|
|
'add-miniprogram-to-desk-panel': './component/add-miniprogram-to-desk-panel',
|
|
|
- 'custome-service-panel': './component/custome-service-panel',
|
|
|
- 'footer':'./footer'
|
|
|
+ 'custome-service-panel': '~@/components/coustome/custome-service-panel',
|
|
|
+ 'footer':'~@/components/coustome/footer'
|
|
|
},
|
|
|
"componentPlaceholder": {
|
|
|
"add-miniprogram-to-desk-panel": "view",
|