1:修改查看卡券详情出现死循环,2:调整样式,3:修改在线加油时显示距离为nullkm

youmengting-dev
游梦婷 1 year ago
parent d91cceda36
commit 08ef214596
  1. 5
      common/share.js
  2. 2
      components/cart-choose/cart-choose.vue
  3. 10
      components/pick-regions/pick-regions.vue
  4. 2
      pages/goods/coupon-details/coupon-details.vue
  5. 2
      pages/goods/refuel/refuel.vue
  6. 3
      pages/goods/store-list/store-details.vue

@ -43,7 +43,7 @@ export default {
//获取当前路由 //获取当前路由
getCurrentRouteYm() { getCurrentRouteYm() {
let currentRoutes = getCurrentPages(); // 获取当前打开过的页面路由数组 let currentRoutes = getCurrentPages(); // 获取当前打开过的页面路由数组
console.log(currentRoutes[currentRoutes.length - 1]); // console.log(currentRoutes[currentRoutes.length - 1]);
let route = currentRoutes[currentRoutes.length - 1]; let route = currentRoutes[currentRoutes.length - 1];
return decodeURIComponent(route.$page.fullPath) return decodeURIComponent(route.$page.fullPath)
}, },
@ -61,7 +61,7 @@ export default {
that.shareLink = app.globalData.h5url + '?accountId=0000016&key=&code=' + that.localPath.split('#')[1]; that.shareLink = app.globalData.h5url + '?accountId=0000016&key=&code=' + that.localPath.split('#')[1];
} }
that.$set(this.shareH5,"link",that.shareLink); that.$set(this.shareH5,"link",that.shareLink);
console.log(that.shareLink,"that.shareLink"); // console.log(that.shareLink,"that.shareLink");
let wx = require('weixin-js-sdk'); let wx = require('weixin-js-sdk');
if (that.resVerifyWx.return_code == '000000') { if (that.resVerifyWx.return_code == '000000') {
@ -100,6 +100,7 @@ export default {
"/physical-merchants/settleAccounts/settleAccounts",//订单确认 "/physical-merchants/settleAccounts/settleAccounts",//订单确认
"/physical-merchants/classify/order/pay",//收银台页 "/physical-merchants/classify/order/pay",//收银台页
"/physical-merchants/classify/order/paymentResult",//支付结果 "/physical-merchants/classify/order/paymentResult",//支付结果
"/physical-merchants/address/addNewAddress/addNewAddress",//添加地址
]; ];
// #ifdef H5 // #ifdef H5

@ -126,7 +126,7 @@
return [] return []
}, },
}, },
// 0,1. 2: // 0,1. 23:
status:{ status:{
type:[Number,String], type:[Number,String],
default:0, default:0,

@ -84,7 +84,7 @@
this.handleDefaultRegion(region) this.handleDefaultRegion(region)
}else{ }else{
console.log(region) // console.log(region)
console.warn('defaultRegion非有效格式') console.warn('defaultRegion非有效格式')
} }
}, },
@ -150,7 +150,7 @@
this.$emit('getRegion',address) this.$emit('getRegion',address)
}, },
handleDefaultRegion(region){ handleDefaultRegion(region){
console.log(region,"region") // console.log(region,"region")
const isCode = !Array.isArray(region) const isCode = !Array.isArray(region)
this.isInitMultiArray = false; this.isInitMultiArray = false;
let children = this.CHINA_REGIONS; let children = this.CHINA_REGIONS;
@ -160,11 +160,11 @@
let condition; let condition;
if(i==2){ if(i==2){
condition = isCode?String(children[j].code).slice(0)==region.slice(0):children[j].name.includes(region[i]); condition = isCode?String(children[j].code).slice(0)==region.slice(0):children[j].name.includes(region[i]);
console.log(String(children[j].code).slice(0),region.slice(0)) // console.log(String(children[j].code).slice(0),region.slice(0))
}else{ }else{
condition = isCode?String(children[j].code).slice(0,(i+1)*2)==region.slice(0,(i+1)*2):children[j].name.includes(region[i]); condition = isCode?String(children[j].code).slice(0,(i+1)*2)==region.slice(0,(i+1)*2):children[j].name.includes(region[i]);
// console.log(String(children[j].code).slice(0,(i+1)*2)==region.slice(0,(i+1)*2)) // console.log(String(children[j].code).slice(0,(i+1)*2)==region.slice(0,(i+1)*2))
console.log(String(children[j].code).slice(0,(i+1)*2),region.slice(0,(i+1)*2)) // console.log(String(children[j].code).slice(0,(i+1)*2),region.slice(0,(i+1)*2))
} }
if(condition){ if(condition){
@ -194,7 +194,7 @@
break; break;
}else{ }else{
// //
console.log(i,j,children.length-1,"匹配失败"); // console.log(i,j,children.length-1,"");
if(i==0 && j==(children.length-1)){ if(i==0 && j==(children.length-1)){
this.isInitMultiArray = true; this.isInitMultiArray = true;
} }

@ -337,9 +337,11 @@
let holdTime = 60; let holdTime = 60;
that.Timer = setInterval(() => { that.Timer = setInterval(() => {
if (holdTime <= 0) { if (holdTime <= 0) {
clearInterval(that.Timer);
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
content: '当前二维码已失效,请刷新后展示', content: '当前二维码已失效,请刷新后展示',
showCancel:false, /* 不显示取消按钮*/
success: function(res) { success: function(res) {
if (res.confirm) { if (res.confirm) {
that.getVerifyQRCode(that.couponDesInfo.highUserCoupon.id); that.getVerifyQRCode(that.couponDesInfo.highUserCoupon.id);

@ -37,7 +37,7 @@
{{item.address}} {{item.address}}
</view> </view>
<view class="width30 flright font13 fcor666 fotct" v-if="item.distance" @click="seeloaction(item)"> <view class="width30 flright font13 fcor666 fotct" v-if="item.distance" @click="seeloaction(item)">
<image mode="widthFix" :src="imagewxUrl+imgadres1" style="width: 10px;"></image> <image mode="widthFix" :src="imagewxUrl+imgadres1" style="width: 10px;margin-right: 3px"></image>
{{item.distance}}km {{item.distance}}km
</view> </view>
</view> </view>

@ -16,7 +16,8 @@
<view class="width20 flright mart10 fotct" @click="seeloaction"> <view class="width20 flright mart10 fotct" @click="seeloaction">
<image mode="widthFix" style="width: 25px;height: 25px;" :src="imagewxUrl+imgadres1"> <image mode="widthFix" style="width: 25px;height: 25px;" :src="imagewxUrl+imgadres1">
</image> </image>
<view class="mart5 fcor999 font13">{{distance}}km</view> <view class="mart5 fcor999 font13" v-if="distance!='null'">{{distance}}km</view>
<view class="mart5 fcor999 font13" v-else>查看位置</view>
</view> </view>
</view> </view>
</view> </view>

Loading…
Cancel
Save