|
|
|
|
@ -34,7 +34,8 @@
|
|
|
|
|
<view class="add_l">暂无</view>
|
|
|
|
|
<view class="add_r" @click="">
|
|
|
|
|
<text class="iconfont icon-dianhua"></text>
|
|
|
|
|
<text>电话</text>
|
|
|
|
|
<text @click="calltel">电话:<text style="color:#bf617c">{{tel}}</text>
|
|
|
|
|
</text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
@ -46,6 +47,11 @@
|
|
|
|
|
<view class="name">{{info.merchant.username}}</view>
|
|
|
|
|
<view class="date-txt" v-if="false">周一至周日 09:00-18:00</view>
|
|
|
|
|
<view class="txt" v-if="false">{{info.merchant.address}}</view>
|
|
|
|
|
<view class="add_r" @click="">
|
|
|
|
|
<text class="iconfont icon-dianhua"></text>
|
|
|
|
|
<text @click="calltel">电话:<text style="color:#bf617c">{{tel}}</text>
|
|
|
|
|
</text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
@ -231,6 +237,7 @@
|
|
|
|
|
})
|
|
|
|
|
return {
|
|
|
|
|
id: "",
|
|
|
|
|
tel: "18550406975",
|
|
|
|
|
showPass: false,
|
|
|
|
|
info: {},
|
|
|
|
|
dataList: [],
|
|
|
|
|
@ -285,11 +292,11 @@
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
|
|
|
|
|
var that = this;
|
|
|
|
|
console.log("01.onShow",that);
|
|
|
|
|
weixin.getOpenidInfo(info => {
|
|
|
|
|
|
|
|
|
|
console.log("02.getOpenidInfo",info);
|
|
|
|
|
var that = this;
|
|
|
|
|
console.log("01.onShow", that);
|
|
|
|
|
weixin.getOpenidInfo(info => {
|
|
|
|
|
|
|
|
|
|
console.log("02.getOpenidInfo", info);
|
|
|
|
|
that.user_info = info.user_info;
|
|
|
|
|
that.openid = that.user_info.openid;
|
|
|
|
|
that.form.member_name = that.user_info.name || that.user_info.wechat_nickname;
|
|
|
|
|
@ -333,6 +340,36 @@
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
calltel(phone) {
|
|
|
|
|
const res = uni.getSystemInfoSync();
|
|
|
|
|
phone = this.tel
|
|
|
|
|
// ios系统默认有个模态框
|
|
|
|
|
if (res.platform == 'ios') {
|
|
|
|
|
uni.makePhoneCall({
|
|
|
|
|
phoneNumber: phone,
|
|
|
|
|
|
|
|
|
|
success() {
|
|
|
|
|
console.log('拨打成功了');
|
|
|
|
|
},
|
|
|
|
|
fail() {
|
|
|
|
|
console.log('拨打失败了');
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
//安卓手机手动设置一个showActionSheet
|
|
|
|
|
uni.showActionSheet({
|
|
|
|
|
itemList: [phone, '呼叫'],
|
|
|
|
|
success: function(res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
if (res.tapIndex == 1) {
|
|
|
|
|
uni.makePhoneCall({
|
|
|
|
|
phoneNumber: phone,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
toPassGetPhone() {
|
|
|
|
|
this.showPhone = false;
|
|
|
|
|
this.showPop = true;
|
|
|
|
|
@ -694,7 +731,7 @@
|
|
|
|
|
api: '/api/member/order-add',
|
|
|
|
|
method: 'POST',
|
|
|
|
|
data: this.form,
|
|
|
|
|
utilSuccess: r => {
|
|
|
|
|
utilSuccess: r => {
|
|
|
|
|
if (parseFloat(r.data.total) == 0) {
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
url: '../buyMemberSuccess/buyMemberSuccess?id=' +
|
|
|
|
|
@ -746,7 +783,7 @@
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
utilFail: r => {
|
|
|
|
|
utilFail: r => {
|
|
|
|
|
uni.showModal({
|
|
|
|
|
title: '',
|
|
|
|
|
content: r,
|
|
|
|
|
@ -827,10 +864,12 @@
|
|
|
|
|
button::after {
|
|
|
|
|
border: none
|
|
|
|
|
}
|
|
|
|
|
.noscroll{
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
|
|
|
|
.noscroll {
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
position: fixed;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.userBoxBottomPass {
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
text-align: center;
|
|
|
|
|
|