|
@@ -40,7 +40,7 @@
|
|
</u-cell-group>
|
|
</u-cell-group>
|
|
</view>
|
|
</view>
|
|
<view class="list-box">
|
|
<view class="list-box">
|
|
- <view class="list-title flex justify_center phone">
|
|
|
|
|
|
+ <view class="list-title flex justify_center phone" @click="call">
|
|
<u-icon size="36" name="phone"></u-icon> <text>联系汽配商</text>
|
|
<u-icon size="36" name="phone"></u-icon> <text>联系汽配商</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -55,12 +55,16 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
-
|
|
|
|
|
|
+ dealerPhone: null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapState(['hasLogin'])
|
|
...mapState(['hasLogin'])
|
|
},
|
|
},
|
|
|
|
+ onShow() {
|
|
|
|
+ const shelfInfo = this.$store.state.vuex_storeShelf
|
|
|
|
+ this.dealerPhone = shelfInfo&&shelfInfo.contactMobile ? shelfInfo.contactMobile : ''
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
toPage(path){
|
|
toPage(path){
|
|
if(this.hasLogin){
|
|
if(this.hasLogin){
|
|
@@ -72,6 +76,9 @@
|
|
url: '/pages/login/login'
|
|
url: '/pages/login/login'
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ call(){
|
|
|
|
+ this.callPhone(this.dealerPhone)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|