bug--拨打电话无效
This commit is contained in:
@ -126,7 +126,7 @@
|
|||||||
<view class="name">
|
<view class="name">
|
||||||
{{ orderInfo.realName }}
|
{{ orderInfo.realName }}
|
||||||
<text class="phone">{{ orderInfo.userPhone }}</text>
|
<text class="phone">{{ orderInfo.userPhone }}</text>
|
||||||
<text class="iconfont icon-tonghua font-color-red"></text>
|
<text @click="telPhone(orderInfo.userPhone)" class="iconfont icon-tonghua font-color-red"></text>
|
||||||
</view>
|
</view>
|
||||||
<view>{{ orderInfo.userAddress }}</view>
|
<view>{{ orderInfo.userAddress }}</view>
|
||||||
</view>
|
</view>
|
||||||
@ -134,7 +134,7 @@
|
|||||||
<div class="name">
|
<div class="name">
|
||||||
{{ system_store.name}}
|
{{ system_store.name}}
|
||||||
<span class="phone">{{ system_store.phone }}</span>
|
<span class="phone">{{ system_store.phone }}</span>
|
||||||
<span class="iconfont icon-tonghua font-color-red" :href="'tel:' + system_store.phone"></span>
|
<span @click="telPhone(system_store.phone)" class="iconfont icon-tonghua font-color-red" :href="'tel:' + system_store.phone"></span>
|
||||||
</div>
|
</div>
|
||||||
<div>{{ system_store.address }}</div>
|
<div>{{ system_store.address }}</div>
|
||||||
</div>
|
</div>
|
||||||
@ -366,6 +366,15 @@ export default {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
//拨打电话
|
||||||
|
telPhone(phoneNumber) {
|
||||||
|
uni.makePhoneCall({
|
||||||
|
phoneNumber: phoneNumber,
|
||||||
|
fail() {
|
||||||
|
console.log("取消拨打");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
showChang: function (data) {
|
showChang: function (data) {
|
||||||
// 这里判断是不是微信小程序
|
// 这里判断是不是微信小程序
|
||||||
this.$yrouter.push({
|
this.$yrouter.push({
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<view v-if="storeInfo.id">
|
<view v-if="storeInfo.id">
|
||||||
<!-- 轮播图 -->
|
<!-- 轮播图 -->
|
||||||
<product-con-swiper :img-urls="storeInfo.sliderImageArr"></product-con-swiper>
|
<product-con-swiper :img-urls="storeInfo.sliderImageArr"></product-con-swiper>
|
||||||
|
|
||||||
<!-- 商品信息描述 -->
|
<!-- 商品信息描述 -->
|
||||||
<view class="wrapper">
|
<view class="wrapper">
|
||||||
<view class="share acea-row row-between row-bottom">
|
<view class="share acea-row row-between row-bottom">
|
||||||
@ -70,7 +70,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="addressBox">
|
<view class="addressBox">
|
||||||
<a :href="'tel:'+systemStore.phone" class="iconfont icon-dadianhua01 font-color-red phone"></a>
|
<a class="iconfont icon-dadianhua01 font-color-red phone" @click="telPhone(systemStore.phone)"></a>
|
||||||
<view class="addressTxt corlor-yshop">距离{{systemStore.distance}}千米</view>
|
<view class="addressTxt corlor-yshop">距离{{systemStore.distance}}千米</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -172,7 +172,7 @@
|
|||||||
:posterData="posterData" :goodId="id"></StorePoster>
|
:posterData="posterData" :goodId="id"></StorePoster>
|
||||||
<!-- 分享弹窗 -->
|
<!-- 分享弹窗 -->
|
||||||
<ShareInfo v-on:setShareInfoStatus="setShareInfoStatus" :shareInfoStatus="shareInfoStatus"></ShareInfo>
|
<ShareInfo v-on:setShareInfoStatus="setShareInfoStatus" :shareInfoStatus="shareInfoStatus"></ShareInfo>
|
||||||
|
|
||||||
<view class="generate-posters acea-row row-middle on" v-if="posters">
|
<view class="generate-posters acea-row row-middle on" v-if="posters">
|
||||||
<view class="item" @click="setPosterImageStatus">
|
<view class="item" @click="setPosterImageStatus">
|
||||||
<view class="iconfont icon-haibao"></view>
|
<view class="iconfont icon-haibao"></view>
|
||||||
@ -340,6 +340,14 @@
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
telPhone(phoneNumber) {
|
||||||
|
uni.makePhoneCall({
|
||||||
|
phoneNumber: phoneNumber,
|
||||||
|
fail() {
|
||||||
|
console.log("取消拨打");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
showChang: function (data) {
|
showChang: function (data) {
|
||||||
this.$yrouter.push({
|
this.$yrouter.push({
|
||||||
path: "/pages/map/index",
|
path: "/pages/map/index",
|
||||||
@ -931,7 +939,7 @@
|
|||||||
filter: blur(2px);
|
filter: blur(2px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.product-con .product-intro .conter view {
|
.product-con .product-intro .conter view {
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="row-right">
|
<view class="row-right">
|
||||||
<view>
|
<view>
|
||||||
<a class="store-phone" :href="'tel:' + item.phone">
|
<a class="store-phone" @click="telPhone(item.phone)">
|
||||||
<text class="iconfont icon-dadianhua01"></text>
|
<text class="iconfont icon-dadianhua01"></text>
|
||||||
</a>
|
</a>
|
||||||
</view>
|
</view>
|
||||||
@ -35,7 +35,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import Loading from "@/components/Loading";
|
import Loading from "@/components/Loading";
|
||||||
import { storeListApi } from "@/api/store";
|
import { storeListApi } from "@/api/store";
|
||||||
import { isWeixin } from "@/utils/index";
|
import { isWeixin,tel } from "@/utils/index";
|
||||||
import { wechatEvevt, wxShowLocation } from "@/libs/wechat";
|
import { wechatEvevt, wxShowLocation } from "@/libs/wechat";
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import cookie from "@/utils/store/cookie";
|
import cookie from "@/utils/store/cookie";
|
||||||
@ -79,6 +79,15 @@ export default {
|
|||||||
this.$yrouter.back();
|
this.$yrouter.back();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
//拨打电话
|
||||||
|
telPhone(phoneNumber) {
|
||||||
|
uni.makePhoneCall({
|
||||||
|
phoneNumber: phoneNumber,
|
||||||
|
fail() {
|
||||||
|
console.log("取消拨打");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
// 获取门店列表数据
|
// 获取门店列表数据
|
||||||
getList: function() {
|
getList: function() {
|
||||||
if (this.loading || this.loaded) return;
|
if (this.loading || this.loaded) return;
|
||||||
|
Reference in New Issue
Block a user