diff --git a/components/list/activity/activityItem.vue b/components/list/activity/activityItem.vue index 11d5f66..d230f7e 100644 --- a/components/list/activity/activityItem.vue +++ b/components/list/activity/activityItem.vue @@ -14,12 +14,11 @@ {{ item.isComment }}条评论 - - - 联系{{ ta[item.sex] }} - + + @@ -44,11 +43,6 @@ } }, methods: { - callPhone(){ - uni.makePhoneCall({ - phoneNumber: this.item.phone, - }) - }, }, } @@ -71,17 +65,6 @@ color: rgb(132, 132, 132); } - .phone{ - background-color: rgba($uni-color, 0.2); - color: $uni-color; - padding: 8rpx 16rpx; - border-radius: 10rpx; - margin-left: auto; - image{ - width: 20rpx; - height: 20rpx; - } - } } } \ No newline at end of file diff --git a/components/list/dynamic/dynamicItem.vue b/components/list/dynamic/dynamicItem.vue index 615f7be..dfcbc46 100644 --- a/components/list/dynamic/dynamicItem.vue +++ b/components/list/dynamic/dynamicItem.vue @@ -12,22 +12,15 @@ {{ item.isComment }}条评论 - - - 联系{{ ta[item.sex] }} - + @@ -66,18 +54,6 @@ margin: 0rpx 30rpx; color: rgb(132, 132, 132); } - - .phone{ - background-color: rgba($uni-color, 0.2); - color: $uni-color; - padding: 8rpx 16rpx; - border-radius: 10rpx; - margin-left: auto; - image{ - width: 20rpx; - height: 20rpx; - } - } } } \ No newline at end of file diff --git a/components/user/callPhone.vue b/components/user/callPhone.vue new file mode 100644 index 0000000..80bfe20 --- /dev/null +++ b/components/user/callPhone.vue @@ -0,0 +1,41 @@ + + + + + \ No newline at end of file diff --git a/main.js b/main.js index c589c46..29294f7 100644 --- a/main.js +++ b/main.js @@ -16,14 +16,17 @@ import './utils/index.js' + //组件注册 import configPopup from '@/components/config/configPopup.vue' import navbar from '@/components/base/navbar.vue' import tabbar from '@/components/base/tabbar.vue' +import callPhone from '@/components/user/callPhone.vue' Vue.component('configPopup',configPopup) Vue.component('navbar', navbar) Vue.component('tabbar', tabbar) +Vue.component('callPhone', callPhone) const app = new Vue({ diff --git a/pages_order/activity/activityDetail.vue b/pages_order/activity/activityDetail.vue index 77e7427..13da292 100644 --- a/pages_order/activity/activityDetail.vue +++ b/pages_order/activity/activityDetail.vue @@ -7,7 +7,7 @@ - + @@ -26,12 +26,10 @@ 导航 --> - - - 联系{{ ta[detail.sex] }} - + @@ -115,17 +113,6 @@ } }) }, - callPhone(){ - uni.makePhoneCall({ - phoneNumber: this.detail.phone, - success() { - console.log('安卓拨打成功'); - }, - fail() { - console.log('安卓拨打失败'); - } - }) - }, } } @@ -153,18 +140,6 @@ display: flex; align-items: center; } - - .phone{ - background-color: rgba($uni-color, 0.2); - color: $uni-color; - padding: 8rpx 16rpx; - border-radius: 10rpx; - margin-left: auto; - image{ - width: 20rpx; - height: 20rpx; - } - } } } diff --git a/pages_order/car/carListDetail.vue b/pages_order/car/carListDetail.vue index e0974a2..2f43139 100644 --- a/pages_order/car/carListDetail.vue +++ b/pages_order/car/carListDetail.vue @@ -29,12 +29,10 @@ {{ $dayjs(detail.createTime).format('YYYY-MM-DD') }} - - - 联系司机 - + diff --git a/pages_order/components/list/cart/cartItem.vue b/pages_order/components/list/cart/cartItem.vue index 3c16ed0..4f71254 100644 --- a/pages_order/components/list/cart/cartItem.vue +++ b/pages_order/components/list/cart/cartItem.vue @@ -21,12 +21,10 @@ {{ $dayjs(item.createTime).format('YYYY-MM-DD') }} - - - 联系司机 - + diff --git a/pages_order/components/list/workList/workItem.vue b/pages_order/components/list/workList/workItem.vue index 041bcaa..ff5b6ae 100644 --- a/pages_order/components/list/workList/workItem.vue +++ b/pages_order/components/list/workList/workItem.vue @@ -40,11 +40,10 @@ {{ $dayjs(item.createTime).format('YYYY-MM-DD') }} - - - 联系老板 - + diff --git a/pages_order/post/postDetail.vue b/pages_order/post/postDetail.vue index 25b24e5..4c2bf48 100644 --- a/pages_order/post/postDetail.vue +++ b/pages_order/post/postDetail.vue @@ -23,12 +23,10 @@ 导航 --> - - - 联系{{ ta[detail.sex] }} - +