Compare commits

...

2 Commits

  1. 8
      components/cart-choose/cart-choose.vue
  2. 2
      pages/user/order_list/order_list.vue
  3. 15
      physical-merchants/classify/cart/cart.vue
  4. 42
      physical-merchants/classify/order/wuliuPupup/wuliuPupup.vue

@ -135,17 +135,19 @@
handler(n,o){ handler(n,o){
this.chooseNumber = 1; this.chooseNumber = 1;
this.chooseIndex = 0; this.chooseIndex = 0;
for(let i=0;i<n.length;i++){ for(let i=0;i<n.length;i++){
if(n[i].stock>0){ if(n[i].stock>0){
this.chooseIndex = i; this.chooseIndex = i;
// console.log(this.chooseIndex,"this.chooseIndex") // console.log(this.chooseIndex,"this.chooseIndex")
return return
} }
} }
if(this.specificationList.length>0&&this.specificationList[this.chooseIndex].stock==0){
this.chooseNumber = 0;
}else{
this.chooseNumber = 1;
}
}, },
deep:true, deep:true,

@ -706,7 +706,7 @@
overflow: auto; overflow: auto;
.onorder { .onorder {
width: 100%; width: 100%;
height: 50vw; // height: 50vw;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-content: center; align-content: center;

@ -213,14 +213,19 @@
this.initData(); this.initData();
}, },
methods: { methods: {
initData() { initData(status) {
if(!status){
uni.showLoading({ uni.showLoading({
title: '加载中', title: '加载中',
mask:true, mask:true,
duration:2000 duration:2000
}); });
console.log(20)
}
getShoppingCartList().then(res => { getShoppingCartList().then(res => {
if(!status){
uni.hideLoading(); uni.hideLoading();
}
if (res.return_code == '000000') { if (res.return_code == '000000') {
this.allCheck.whetherCheck = false; this.allCheck.whetherCheck = false;
this.cartList = res.return_data; this.cartList = res.return_data;
@ -473,7 +478,8 @@
if (res.return_code == '000000') { if (res.return_code == '000000') {
//
this.initData();
} else { } else {
// //
uni.showToast({ uni.showToast({
@ -481,10 +487,11 @@
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
//
this.initData(2);
} }
//
this.initData();
}) })

@ -1,7 +1,7 @@
<template> <template>
<wybPopup ref="popup" zIndex="999" type="bottom" width="500" height="500" :scrollY="true" radius="0" :showCloseIcon="true"> <wybPopup @touchmove.stop ref="popup" zIndex="999" type="bottom" width="500" height="500" :scrollY="true" radius="0" :showCloseIcon="true">
<view class="pd-main wuliupop backcor9"> <view class="pd-main wuliupop backcor9">
<view class="pop-title fontwig6"><text>物流信息</text></view> <view class="pop-title fontwig6 backcor9"><text>物流信息</text></view>
<view class="pd-main backcolorfff border-8r font14" > <view class="pd-main backcolorfff border-8r font14" >
<view class="dis-flex flex-sp mart10 marb10 paddbotm10 border-b"> <view class="dis-flex flex-sp mart10 marb10 paddbotm10 border-b">
<view class="dis-flex"> <view class="dis-flex">
@ -135,18 +135,7 @@
trackNode trackNode
}, },
created(){ created(){
// this.tracesData=dataList.data;
// this.tracesData.logisticsTraceDetails=this.tracesData.logisticsTraceDetails.sort((item,item2)=>{
// if(item.logisticsStatus == 'TRANSPORT'){
// item.isMainNode=false;
// }else{
// item.isMainNode=true;
// }
// return item2.time - item.time;
// })
}, },
methods:{ methods:{
show(logisticsNo){ show(logisticsNo){
@ -178,9 +167,11 @@
}else{ }else{
item.isMainNode=true; item.isMainNode=true;
} }
return item2.time - item.time; return item2.time - item.time;
}) })
/* */
let mobile = /(1[0-9]{10})|([0-9]{3,4})?[0-9]{7,8}/g; // let mobile = /(1[0-9]{10})|([0-9]{3,4})?[0-9]{7,8}/g; //
let phone = []; let phone = [];
this.tracesData.logisticsTraceDetails.map(item=>{ this.tracesData.logisticsTraceDetails.map(item=>{
@ -191,11 +182,13 @@
phone.push((num.match(mobile))) phone.push((num.match(mobile)))
} }
// } // }
}) })
this.phoneNumber =phone.flat(Infinity); this.phoneNumber =phone.flat(Infinity);
// console.log(this.phoneNumber, phone) // console.log(this.phoneNumber, phone)
/* */
} else { } else {
uni.showToast({ uni.showToast({
title: res.return_msg, title: res.return_msg,
@ -231,24 +224,7 @@
}, },
// //
callPhone(){ callPhone(){
// uni.showModal({
// title: '',
// content: '4006780738',
// success: function(res) {
// if (res.confirm) {
// uni.makePhoneCall({
// phoneNumber: '4006780738', //
// success: function(e) {
// console.log(e);
// },
// fail: function(e) {
// console.log(e);
// }
// })
// }
// }
// })
if(this.phoneNumber.length==0){ if(this.phoneNumber.length==0){
uni.showToast({ uni.showToast({
title:"暂无可拨打电话号码", title:"暂无可拨打电话号码",
@ -283,6 +259,8 @@
} }
}); });
}, },

Loading…
Cancel
Save