master
游梦婷 2 years ago
parent c7ca758b0d
commit 8191c8c8fb
  1. 13
      physical-merchants/address/addNewAddress/addNewAddress.vue
  2. 39
      physical-merchants/address/address.vue
  3. 62
      physical-merchants/classify/cart/cart.vue
  4. 35
      physical-merchants/classify/goods-search/goods-search.vue
  5. 39
      physical-merchants/classify/goodsDetail/goodsDetail.vue
  6. 7
      physical-merchants/classify/order/orderDetail.vue
  7. 5
      physical-merchants/classify/order/paymentResult.vue
  8. 69
      physical-merchants/classify/order/wuliuPupup/wuliuPupup.vue
  9. 4
      physical-merchants/settleAccounts/settleAccounts.vue

@ -17,7 +17,7 @@
<view class="form-gorup-title">联系人<text class="form-group-tips-must">*</text> <view class="form-gorup-title">联系人<text class="form-group-tips-must">*</text>
</view> </view>
<input type="text" name="name" v-model="userAddress.name" maxlength="5" <input type="text" name="name" v-model="userAddress.name"
placeholder-class="corf6" class="fcor666 bs-bb" placeholder="联系人2~5个字符"> placeholder-class="corf6" class="fcor666 bs-bb" placeholder="联系人2~5个字符">
<view class="width100 mart10 border-b"> <view class="width100 mart10 border-b">
@ -114,6 +114,17 @@
onLoad(params) { onLoad(params) {
this.dataParams = params this.dataParams = params
}, },
watch:{
'userAddress.name':{
handler(n) {
if(n.length>5){
setTimeout(()=>{
this.userAddress.name = this.userAddress.name.substr(0,5)
},0)
}
},
},
},
computed: { computed: {
// regionName() { // regionName() {

@ -84,27 +84,30 @@
}); });
this.addressList=[]; this.addressList=[];
getDeliveryAddressList().then(res => { getDeliveryAddressList().then(res => {
uni.hideLoading();
if (res.return_code == '000000') {
if (res.return_data.length > 0) { setTimeout(()=>{
// console.log(res.return_data)
this.addressList = res.return_data;
this.addressList.map(item => {
if (item.whetherDefault) {
this.selectId = item.id;
}
})
}
} else { uni.hideLoading();
uni.showToast({ if (res.return_code == '000000') {
title: res.return_msg,
icon: 'none',
duration: 2000
})
}
if (res.return_data.length > 0) {
// console.log(res.return_data)
this.addressList = res.return_data;
this.addressList.map(item => {
if (item.whetherDefault) {
this.selectId = item.id;
}
})
}
} else {
uni.showToast({
title: res.return_msg,
icon: 'none',
duration: 2000
})
}
},100)
}) })
}, },

@ -82,7 +82,7 @@
</label> </label>
<!-- --> <!-- -->
</checkbox-group> </checkbox-group>
<view v-if="!isEdit" class="paddleft5 fcorred " @click="editDelete">编辑</view> <view v-if="!isEdit" class="paddleft5 paddtright5 fcorred " @click="editDelete">编辑</view>
<view v-if="isEdit" class="icon-ymt delete paddleft5 fcorred font16" @click="deleteCart">删除</view> <view v-if="isEdit" class="icon-ymt delete paddleft5 fcorred font16" @click="deleteCart">删除</view>
</view> </view>
@ -208,37 +208,37 @@
this.initData(); this.initData();
}, },
methods: { methods: {
initData(status) { initData() {
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){ setTimeout(()=>{
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;
// //
// this.cartList[0].loseEfficacy=true; // this.cartList[0].loseEfficacy=true;
this.allCheckInit(); //
} else {
uni.showToast({
title: res.return_msg,
icon: 'none',
duration: 2000
})
}
},100)
this.allCheckInit(); //
} else {
uni.showToast({
title: res.return_msg,
icon: 'none',
duration: 2000
})
}
}) })
}, },
editDelete() { editDelete() {
@ -504,13 +504,16 @@
this.initData(); this.initData();
} else { } else {
// //
uni.showToast({ setTimeout(()=>{
title: res.return_msg, uni.showToast({
icon: 'none', title: res.return_msg,
duration: 2000 icon: 'none',
}) duration: 2000
})
},200)
// //
this.initData(2); this.initData();
} }
@ -708,7 +711,10 @@
.tool-jiesuan {} .tool-jiesuan {}
.jiesuan-btn { .jiesuan-btn {
width: 240rpx; max-width: 240rpx;
min-width: 100px;
font-size: 16px;
flex: 1;
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
text-align: center; text-align: center;

@ -122,27 +122,30 @@
getListGoodsDetail(params).then(res => { getListGoodsDetail(params).then(res => {
uni.hideLoading(); setTimeout(()=>{
if (res.return_code == '000000') { uni.hideLoading();
if (res.return_code == '000000') {
if (res.return_data.list.length > 0) { if (res.return_data.list.length > 0) {
_this.data_list = _this.data_list.concat(res.return_data.list); _this.data_list = _this.data_list.concat(res.return_data.list);
this.page.pageStart = res.return_data.pageNum; this.page.pageStart = res.return_data.pageNum;
this.page.pageSize = res.return_data.pageSize; this.page.pageSize = res.return_data.pageSize;
this.page.total = res.return_data.total; this.page.total = res.return_data.total;
this.page.navigateLastPage = res.return_data.navigateLastPage this.page.navigateLastPage = res.return_data.navigateLastPage
} else {
_this.data_list = []
}
} else { } else {
_this.data_list = [] uni.showToast({
title: res.return_msg,
icon: 'none',
duration: 2000
})
} }
},100)
} else {
uni.showToast({
title: res.return_msg,
icon: 'none',
duration: 2000
})
}
}) })
} }
} }

@ -282,26 +282,33 @@
}); });
findGoodsDetailById(params).then(res => { findGoodsDetailById(params).then(res => {
uni.hideLoading();
if (res.return_code == '000000') { setTimeout(()=>{
this.goodsDetail = res.return_data; uni.hideLoading();
this.goodsDetail.bannerImg = res.return_data.bannerImg.split(",").map(temp => this
.imageUrl + temp); if (res.return_code == '000000') {
this.goodsDetail.detailImg = res.return_data.detailImg.split(",").map(temp => this
.imageUrl + temp); this.goodsDetail = res.return_data;
console.log(this.goodsDetail, ) this.goodsDetail.bannerImg = res.return_data.bannerImg.split(",").map(temp => this
.imageUrl + temp);
this.goodsDetail.detailImg = res.return_data.detailImg.split(",").map(temp => this
.imageUrl + temp);
console.log(this.goodsDetail, )
// let list =item.map(temp=>this.imageUrl + temp)
} else {
uni.showToast({
title: res.return_msg,
icon: 'none',
duration: 2000
})
}
},100)
// let list =item.map(temp=>this.imageUrl + temp)
} else {
uni.showToast({
title: res.return_msg,
icon: 'none',
duration: 2000
})
}
}) })
}, },

@ -370,7 +370,12 @@
orderNo: this.orderId, orderNo: this.orderId,
} }
getDetailByOrderNo(params).then(res => { getDetailByOrderNo(params).then(res => {
uni.hideLoading();
setTimeout(()=>{
uni.hideLoading();
},100)
if (res.return_code == '000000') { if (res.return_code == '000000') {
this.recinfo = res.return_data; this.recinfo = res.return_data;
// if (res.return_data.productType == 6) { // if (res.return_data.productType == 6) {

@ -75,7 +75,10 @@
orderNo: this.orderId, orderNo: this.orderId,
} }
getDetailByOrderNo(params).then(res => { getDetailByOrderNo(params).then(res => {
uni.hideLoading(); setTimeout(()=>{
uni.hideLoading();
},100)
if (res.return_code == '000000') { if (res.return_code == '000000') {
this.recinfo = res.return_data; this.recinfo = res.return_data;

@ -154,48 +154,53 @@
mask:true, mask:true,
}); });
getLogisticsMsg(params).then(res=>{ getLogisticsMsg(params).then(res=>{
uni.hideLoading();
if (res.return_code == '000000') {
this.tracesData=res.return_data; setTimeout(()=>{
this.tracesData.logisticsTraceDetails =JSON.parse(this.tracesData.logisticsTraceDetails)
this.tracesData.logisticsTraceDetails=this.tracesData.logisticsTraceDetails.sort((item,item2)=>{ uni.hideLoading();
if (res.return_code == '000000') {
if(item.logisticsStatus == 'TRANSPORT'){ this.tracesData=res.return_data;
item.isMainNode=false; this.tracesData.logisticsTraceDetails =JSON.parse(this.tracesData.logisticsTraceDetails)
}else{
item.isMainNode=true;
}
return item2.time - item.time;
})
this.tracesData.logisticsTraceDetails=this.tracesData.logisticsTraceDetails.sort((item,item2)=>{
let mobile = /(1[0-9]{10})|([0-9]{3,4})?[0-9]{7,8}/g; // if(item.logisticsStatus == 'TRANSPORT'){
let phone = []; item.isMainNode=false;
this.tracesData.logisticsTraceDetails.map(item=>{ }else{
// item.isMainNode=true;
// if(item.logisticsStatus == 'SIGN'||item.logisticsStatus == 'DELIVERING'){
let num = item.desc.replace(/\s|[(]|[)]|[(]|[)]|[-]*/g, ''); //
if(num.match(mobile)){
phone.push((num.match(mobile)))
} }
// }
}) return item2.time - item.time;
})
this.phoneNumber =phone.flat(Infinity);
// console.log(this.phoneNumber, phone)
let mobile = /(1[0-9]{10})|([0-9]{3,4})?[0-9]{7,8}/g; //
let phone = [];
this.tracesData.logisticsTraceDetails.map(item=>{
//
// if(item.logisticsStatus == 'SIGN'||item.logisticsStatus == 'DELIVERING'){
let num = item.desc.replace(/\s|[(]|[)]|[(]|[)]|[-]*/g, ''); //
if(num.match(mobile)){
phone.push((num.match(mobile)))
}
// }
})
this.phoneNumber =phone.flat(Infinity);
// console.log(this.phoneNumber, phone)
} else {
uni.showToast({
title: res.return_msg,
icon: 'none',
duration: 2000
})
}
},100)
} else {
uni.showToast({
title: res.return_msg,
icon: 'none',
duration: 2000
})
}
}) })
}, },
// //

@ -478,7 +478,9 @@
}); });
this.postPrice = 0; this.postPrice = 0;
getAddressPrice().then(res => { getAddressPrice().then(res => {
uni.hideLoading(); setTimeout(()=>{
uni.hideLoading();
},100)
this.isFirstSearchAddress = false; this.isFirstSearchAddress = false;
if (res.return_code == '000000') { if (res.return_code == '000000') {
if (res.return_data) { if (res.return_data) {

Loading…
Cancel
Save