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

@ -66,7 +66,7 @@
getTPigCinemaToken, getTPigCinemaToken,
getCacheParam, getCacheParam,
delCacheParam, delCacheParam,
getCmsContent, getCmsContent,
findByLatAndLng findByLatAndLng
} from "../../../Utils/Api.js"; //api } from "../../../Utils/Api.js"; //api
import wybPopup from '../../../components/wyb-popup/wyb-popup.vue'; import wybPopup from '../../../components/wyb-popup/wyb-popup.vue';
@ -233,15 +233,15 @@
success: function(res) { success: function(res) {
switch (uni.getSystemInfoSync().platform) { switch (uni.getSystemInfoSync().platform) {
case 'android': case 'android':
let zuob = JSON.parse(res); let zuob = JSON.parse(res);
app.globalData.latitude = zuob.latitude; app.globalData.latitude = zuob.latitude;
app.globalData.longitude = zuob.longitude; app.globalData.longitude = zuob.longitude;
that.findByLatAndLng(zuob.longitude,zuob.latitude); that.findByLatAndLng(zuob.longitude, zuob.latitude);
break; break;
case 'ios': case 'ios':
app.globalData.latitude = res.latitude; app.globalData.latitude = res.latitude;
app.globalData.longitude = res.longitude; app.globalData.longitude = res.longitude;
that.findByLatAndLng(res.longitude,res.latitude); that.findByLatAndLng(res.longitude, res.latitude);
break; break;
} }
@ -249,23 +249,23 @@
fail: function() {} fail: function() {}
}); });
}); });
}, },
// //
findByLatAndLng(item, item1) { findByLatAndLng(item, item1) {
let datas = { let datas = {
lng: item, lng: item,
lat: item1 lat: item1
} }
findByLatAndLng(datas).then(res => { findByLatAndLng(datas).then(res => {
if (res.return_code == '000000') { if (res.return_code == '000000') {
// res.return_data.provinceName // res.return_data.provinceName
app.globalData.cityName = res.return_data.provinceName; app.globalData.cityName = res.return_data.provinceName;
app.globalData.qianzhuCityName = res.return_data.cityName; app.globalData.qianzhuCityName = res.return_data.cityName;
app.globalData.cityId = res.return_data.regionId; app.globalData.cityId = res.return_data.regionId;
// app.globalData.cityId = '520000'; // app.globalData.cityId = '520000';
app.globalData.companyId = res.return_data.companyId; app.globalData.companyId = res.return_data.companyId;
} }
}); });
}, },
// //
getCmsContentcmsContent() { getCmsContentcmsContent() {
@ -411,10 +411,12 @@
}) })
}, },
// //
playPhone() { playPhone() {
let cont = "本服务由惠兑礼品提供\n400-678-738";
let content = cont.replace(/<br>/g,"\n");
uni.showModal({ uni.showModal({
title: '客服', title: '客服',
content: '4006780738', content: content,
success: function(res) { success: function(res) {
if (res.confirm) { if (res.confirm) {
uni.makePhoneCall({ uni.makePhoneCall({
@ -447,9 +449,9 @@
} }
}, },
// //
jumphuafei(item) { jumphuafei(item) {
uni.navigateTo({ uni.navigateTo({
url: item.ext1 url: item.ext1
}) })
// if (!app.globalData.userInfo) { // if (!app.globalData.userInfo) {
// uni.navigateTo({ // uni.navigateTo({

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

Loading…
Cancel
Save