1.修改客服电话文案

2.修改首页定位问题
yj-dev
杨杰 2 years ago
parent a9adb4f5f4
commit 5792bde606
  1. 25
      pages/goods/externalCoupon/externalCoupon.vue
  2. 49
      pages/order/confirmation.vue
  3. 6
      pages/tabBar/category/category.vue
  4. 121
      pages/tabBar/home/home.vue
  5. 6
      pages/tabBar/user/user.vue

@ -17,11 +17,11 @@
<button class="coupne-btn width60w mart20 marb20" v-if="userInfo == 1" lang="zh_CN"
@click="jumpres">点击领取</button>
<button class="coupne-btn width60w mart20 marb20" style="background-color: red;"
v-if="userInfo != 1 && couponsDetails.highDiscountAgentCode.status == 2"
@click="receiveDiscount">点击领取</button>
<button class="coupne-btn width60w mart20 marb20" style="background-color: #f6f6f6;"
v-if="userInfo != 1 && couponsDetails.highDiscountAgentCode.status == 1"
@click="receiveDiscount">点击领取</button>
v-if="userInfo != 1 && couponsDetails.highDiscountAgentCode.status == 1"
@click="receiveDiscount">点击领取</button>
<button class="coupne-btn width60w mart20 marb20" style="background-color: #f6f6f6;"
v-if="userInfo != 1 && couponsDetails.highDiscountAgentCode.status != 1"
@click="receiveDiscount">点击领取</button>
<view class="width90 mart10 fcor666">去使用</view>
<view v-if="minecoupones == '' " class="mart60 fotct font14 fcor666">
<image mode="widthFix" style="width: 70vw;" :src="imagewxUrl+imgadres"></image>
@ -261,9 +261,18 @@
//
toGoods(e) {
if (app.globalData.userInfo) {
uni.navigateTo({
url: '../../order/confirmation?id=' + e
})
if (app.globalData.openId) {
uni.navigateTo({
url: '../../order/confirmation?id=' + e
})
} else {
uni.showToast({
icon: 'none',
title: '网络异常,请稍后重试',
duration: 2000
})
}
} else {
uni.showToast({
icon: 'none',

@ -87,14 +87,14 @@
</view>
</view>
</view>
<view class="width94 backcorfff mart10">
<view class="width94 alijusstart height50 font14 fcor666">
<view class="width40 fcor333 fontwig6 font16" style="padding-left: 2%;">邀请码</view>
<input class="width60 fotrt font15" v-model="identificationCode" placeholder="请输入邀请码" />
</view>
</view>
<view class="width94 backcorfff mart10">
<view class="width94 alijusstart height50 font14 fcor666">
<view class="width40 fcor333 fontwig6 font16" style="padding-left: 2%;">邀请码</view>
<input class="width60 fotrt font15" v-model="identificationCode" placeholder="请输入邀请码" />
</view>
</view>
<view class="width94 comorder mart10">
<view class="height50 width100 backcorfff">
<view class="width100 flleft fcor333 fontwig6 font16" style="padding-left: 4%;">
@ -103,6 +103,18 @@
</view>
</view>
<view class="width94 line1 mart5 marb5"></view>
<view class="height50 width100 backcorfff" @tap="paytype='weixin'"
v-if="couponList.payType == 1 || couponList.payType==3 ">
<view class="width50 flleft fcor333 font16" style="padding-left: 4%;">
微信支付
</view>
<view class="width40 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun"
style="align-items: center;">
<radio :checked="paytype=='weixin'" color="#0083f5" />
</view>
</view>
<view class="width94 line1 mart5 marb5" v-if="couponList.payType == 1 || couponList.payType==3"></view>
<view class="height50 width100 backcorfff"
v-if="couponList.payType == 1 || couponList.payType == 2 || couponList.payType==3"
@tap="paytype='jinbi'">
@ -115,18 +127,7 @@
</view>
</view>
<view class="width94 line1 mart5 marb5"
v-if="couponList.payType == 1 || couponList.payType == 2 || couponList.payType==3"></view>
<view class="height50 width100 backcorfff" @tap="paytype='weixin'"
v-if="couponList.payType == 1 || couponList.payType==3 ">
<view class="width50 flleft fcor333 font16" style="padding-left: 4%;">
微信支付
</view>
<view class="width40 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun"
style="align-items: center;">
<radio :checked="paytype=='weixin'" color="#0083f5" />
</view>
</view>
<view class="width94 line1 mart5 marb5" v-if="couponList.payType == 1 || couponList.payType==3"></view>
v-if="couponList.payType == 1 || couponList.payType == 2 || couponList.payType==3"></view>
<view class="height50 width100 backcorfff" @tap="paytype='gonghuika'" v-if="couponList.payType== 4">
<view class="width70 flleft fcor333 font16 text1" style="padding-left: 4%;">
汇联通工会卡<text class="font14 fcor666 margle">可用余额: {{tongCardPrice}}</text>
@ -138,8 +139,8 @@
</view>
</view>
<!-- <view class="width94 comorder mart10">
<view class="height50 width100 backcorfff">
<view class="width80p flleft fcor333 fontwig6 font14" style="padding-left: 4%;">
@ -233,7 +234,7 @@
radioStatus: true,
memDiscountId: '',
user: '',
paytype: '',
paytype: 'weixin',
PaymentPassword: '',
orderId: '',
jumpType: '',
@ -258,7 +259,7 @@
},
onShow() {
let that = this;
that.paytype = '';
// that.paytype = '';
that.user = app.globalData.userInfo;
that.findUser();
},

@ -279,10 +279,12 @@
// uni.showToast({title: ""});
},
//
playPhone() {
playPhone() {
let cont = "本服务由惠兑礼品提供\n400-678-738";
let content = cont.replace(/<br>/g,"\n");
uni.showModal({
title: '客服',
content: '4006780738',
content: content,
success: function(res) {
if (res.confirm) {
uni.makePhoneCall({

@ -253,53 +253,53 @@
})
},
})
// #endif
//
that.postionIng();
// #endif
// #ifdef H5
// if (app.globalData.h5code) {
// that.getH5AccessToken();
// }
uni.showLoading({
title: '加载中'
})
var geolocation = new qq.maps.Geolocation('7UMBZ-HFEHX-HSD4Q-Z3QY6-OQKN7-2QBDB', "嗨森逛");
// uni.showLoading({
// title: ''
// })
// var geolocation = new qq.maps.Geolocation('7UMBZ-HFEHX-HSD4Q-Z3QY6-OQKN7-2QBDB', "");
//
geolocation.getLocation(
res => {
uni.hideLoading();
app.globalData.latitude = res.lat;
app.globalData.longitude = res.lng;
uni.setStorage({
key: "latitude",
data: res.lat
})
uni.setStorage({
key: "longitude",
data: res.lng
})
that.findByLatAndLng(res.lng, res.lat);
},
err => {
uni.hideLoading();
uni.showModal({
title: '获取定位权限失败,默认城市重庆市',
content: '请确定手机定位已打开,并且当前浏览器允许获取定位,都开启后请刷新页面。'
})
that.city = '重庆市';
app.globalData.cityName = '重庆市';
app.globalData.cityId = '500000';
that.getCouponListArea();
that.getCouponListgold();
that.getunioncardCouponListgold();
that.getCmsContent();
that.getCmsAactibity();
that.getCmsContentcmshome();
that.getCmsContentcmsContent();
}
);
// geolocation.getLocation(
// res => {
// uni.hideLoading();
// app.globalData.latitude = res.lat;
// app.globalData.longitude = res.lng;
// uni.setStorage({
// key: "latitude",
// data: res.lat
// })
// uni.setStorage({
// key: "longitude",
// data: res.lng
// })
// that.findByLatAndLng(res.lng, res.lat);
// },
// err => {
// uni.hideLoading();
// uni.showModal({
// title: ',',
// content: ''
// })
// that.city = '';
// app.globalData.cityName = '';
// app.globalData.cityId = '500000';
// that.getCouponListArea();
// that.getCouponListgold();
// that.getunioncardCouponListgold();
// that.getCmsContent();
// that.getCmsAactibity();
// that.getCmsContentcmshome();
// that.getCmsContentcmsContent();
// }
// );
// #endif
uni.getStorage({
key: "user",
@ -456,10 +456,21 @@
success: function(res) {
app.globalData.latitude = res.latitude;
app.globalData.longitude = res.longitude;
uni.setStorage({
key: "latitude",
data: res.latitude
})
uni.setStorage({
key: "longitude",
data: res.longitude
})
uni.hideLoading();
that.findByLatAndLng(res.longitude, res.latitude);
},
fail: (err) => {
uni.hideLoading();
if (err.errCode == 2) {
uni.showToast({
title: '请开启系统定位',
@ -467,6 +478,16 @@
icon: 'none'
})
}
that.city = '重庆市';
app.globalData.cityName = '重庆市';
app.globalData.cityId = '500000';
that.getCouponListArea();
that.getCouponListgold();
that.getunioncardCouponListgold();
that.getCmsContent();
that.getCmsAactibity();
that.getCmsContentcmshome();
that.getCmsContentcmsContent();
}
})
},
@ -502,14 +523,14 @@
uni.setStorage({
key: "cityId",
data: res.return_data.regionId
})
uni.setStorage({
key: "cityName",
data: res.return_data.provinceName
})
uni.setStorage({
key: "qianzhuCityName",
data: res.return_data.cityName
})
uni.setStorage({
key: "cityName",
data: res.return_data.provinceName
})
uni.setStorage({
key: "qianzhuCityName",
data: res.return_data.cityName
})
uni.setStorage({
key: "companyId",
@ -914,9 +935,11 @@
},
//
playPhone() {
let cont = "本服务由惠兑礼品提供\n400-678-738";
let content = cont.replace(/<br>/g, "\n");
uni.showModal({
title: '客服',
content: '4006780738',
content: content,
success: function(res) {
if (res.confirm) {
uni.makePhoneCall({

@ -488,11 +488,13 @@
url: url
})
}
// #ifdef H5
// #ifdef H5
let cont = "本服务由惠兑礼品提供\n400-678-738";
let content = cont.replace(/<br>/g,"\n");
if (item == '客服') {
uni.showModal({
title: '客服',
content: '4006780738',
content: content,
success: function(res) {
if (res.confirm) {
uni.makePhoneCall({

Loading…
Cancel
Save