1.修改拨打电话

master
杨杰 2 years ago
parent e34c3241d4
commit 619f5dc757
  1. 4
      .gitignore
  2. 6
      high-unionPay/pages/tabBar/category/category.vue
  3. 58
      high-unionPay/pages/tabBar/home/home.vue
  4. 4
      high-unionPay/pages/tabBar/user/user.vue

4
.gitignore vendored

@ -1 +1,3 @@
unpackage/
unpackage/
.hbuilderx/launch.json
node_modules

@ -271,10 +271,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({

@ -66,7 +66,7 @@
getTPigCinemaToken,
getCacheParam,
delCacheParam,
getCmsContent,
getCmsContent,
findByLatAndLng
} from "../../../Utils/Api.js"; //api
import wybPopup from '../../../components/wyb-popup/wyb-popup.vue';
@ -233,15 +233,15 @@
success: function(res) {
switch (uni.getSystemInfoSync().platform) {
case 'android':
let zuob = JSON.parse(res);
let zuob = JSON.parse(res);
app.globalData.latitude = zuob.latitude;
app.globalData.longitude = zuob.longitude;
that.findByLatAndLng(zuob.longitude,zuob.latitude);
app.globalData.longitude = zuob.longitude;
that.findByLatAndLng(zuob.longitude, zuob.latitude);
break;
case 'ios':
app.globalData.latitude = res.latitude;
app.globalData.longitude = res.longitude;
that.findByLatAndLng(res.longitude,res.latitude);
app.globalData.longitude = res.longitude;
that.findByLatAndLng(res.longitude, res.latitude);
break;
}
@ -249,23 +249,23 @@
fail: function() {}
});
});
},
//
findByLatAndLng(item, item1) {
let datas = {
lng: item,
lat: item1
}
findByLatAndLng(datas).then(res => {
if (res.return_code == '000000') {
// res.return_data.provinceName
app.globalData.cityName = res.return_data.provinceName;
app.globalData.qianzhuCityName = res.return_data.cityName;
app.globalData.cityId = res.return_data.regionId;
// app.globalData.cityId = '520000';
app.globalData.companyId = res.return_data.companyId;
}
});
},
//
findByLatAndLng(item, item1) {
let datas = {
lng: item,
lat: item1
}
findByLatAndLng(datas).then(res => {
if (res.return_code == '000000') {
// res.return_data.provinceName
app.globalData.cityName = res.return_data.provinceName;
app.globalData.qianzhuCityName = res.return_data.cityName;
app.globalData.cityId = res.return_data.regionId;
// app.globalData.cityId = '520000';
app.globalData.companyId = res.return_data.companyId;
}
});
},
//
getCmsContentcmsContent() {
@ -411,10 +411,12 @@
})
},
//
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({
@ -447,9 +449,9 @@
}
},
//
jumphuafei(item) {
uni.navigateTo({
url: item.ext1
jumphuafei(item) {
uni.navigateTo({
url: item.ext1
})
// if (!app.globalData.userInfo) {
// uni.navigateTo({

@ -429,9 +429,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({

Loading…
Cancel
Save