diff --git a/components/modalView/index.js b/components/modalView/index.js
index c006924..080a14f 100644
--- a/components/modalView/index.js
+++ b/components/modalView/index.js
@@ -117,7 +117,7 @@ Component({
if(valid.length>0)return;
}
this.setData({
- show:false
+ _show:false
});
this.triggerEvent('ok',this.properties.content);
},
@@ -125,6 +125,7 @@ Component({
this.setData({
show:false
})
+ this.triggerEvent('afterLeave')
}
},
diff --git a/pages/help/index/index.js b/pages/help/index/index.js
index 558fb03..238a686 100644
--- a/pages/help/index/index.js
+++ b/pages/help/index/index.js
@@ -201,7 +201,7 @@ Page({
params.packages = realItem;
}
if(res.data.price_request.pickup_images){
- params.pickup_images_count = res.data.price_request.pickup_images_count;
+ // params.pickup_images_count = res.data.price_request.pickup_images_count;
params.pickup_images = res.data.price_request.pickup_images;
}
userApi.order.pre(params).then((data)=>{
diff --git a/pages/help/package/index.js b/pages/help/package/index.js
index 62175ec..00000c1 100644
--- a/pages/help/package/index.js
+++ b/pages/help/package/index.js
@@ -23,13 +23,33 @@ Page({
isShowStationEditor:false,
- currentEditStation:{}
+ currentEditStation:{},
+
+ isShowSameStation:false,
+ ignoreSameStation:false,
+ sameStationName:''
},
async bottomBarButtonTap(){
const data = [];
+ const pickupImgs = [];
let hasSame = false;
this.data.choosedStationList.find((item,index)=>{
+ //查找ai识别中相同驿站
+ //代码写好,暂不开启
+ if(false){
+ let sameStations = this.data.choosedStationList.filter((_item)=>{
+ return (_item.name==item.name)&&!_item.id;
+ });
+ if(sameStations.length>1&&!this.data.ignoreSameStation){
+ hasSame = true;
+ this.setData({
+ isShowSameStation:true,
+ sameStationName:sameStations[0].name
+ })
+ return true;
+ }
+ }
if(item.pickup_codes.length>0&&item.pickup_codes[0]!=''){
//倒着找相同的索引 因为需要从后往前找
const codes = item.pickup_codes.join(',').split(',').reverse();
@@ -50,12 +70,14 @@ Page({
icon:'none',
title: '取件码重复',
})
- console.log(this.data.choosedStationList[index],'----');
this.setData({
[`choosedStationList[${index}]`]:this.data.choosedStationList[index]
})
return true;
}
+ if(item.imgUrl){
+ pickupImgs.push(item.imgUrl);
+ }
data.push({
id:item.id||'',
name:item.name,
@@ -70,7 +92,7 @@ Page({
if(data.length>0){
let priceRequest = {
packages:data,
- pickup_images:data[0].imgUrl
+ pickup_images:pickupImgs.join(',')
};
if(this.data.timePeriodsIndex==-1){
wx.showToast({
@@ -374,6 +396,34 @@ Page({
urls: [url],
})
},
+ ignoreSameStation(){
+ this.data.ignoreSameStation = true;
+ },
+ sameStationAfterLeave(){
+ console.log(this.data.ignoreSameStation);
+ if(this.data.ignoreSameStation){
+ this.bottomBarButtonTap();
+ }
+ },
+ mergeStation(){
+ this.data.ignoreSameStation = false;
+ this.data.choosedStationList.map((item,index)=>{
+ if(!item.id){
+ //从当前往后找所有的
+ this.data.choosedStationList.map((_item,_index)=>{
+ if(_index>index){
+ if(_item.name == item.name&&!_item.id){
+ item.pickup_codes = item.pickup_codes.concat(_item.pickup_codes);
+ this.data.choosedStationList.splice(_index,1);
+ }
+ }
+ })
+ }
+ });
+ this.setData({
+ choosedStationList:this.data.choosedStationList
+ })
+ },
/**
* 生命周期函数--监听页面初次渲染完成
*/
diff --git a/pages/help/package/index.wxml b/pages/help/package/index.wxml
index 69682ca..a9bb921 100644
--- a/pages/help/package/index.wxml
+++ b/pages/help/package/index.wxml
@@ -101,4 +101,12 @@
\ No newline at end of file
+ contentPlaceholder="驿站名不能为空"/>
+
+
+
+ 检测到有多个,是否需要合并,
+ 多个驿站会产生额外配送费用。
+
+
\ No newline at end of file
diff --git a/pages/help/package/index.wxss b/pages/help/package/index.wxss
index 4ee9438..4c8adde 100644
--- a/pages/help/package/index.wxss
+++ b/pages/help/package/index.wxss
@@ -258,4 +258,12 @@
.manually-code .icon{
width:28rpx;height:28rpx;
margin-right:12rpx;
+}
+
+.same-station-view .content-text{
+ color: #666666;
+ font-size: 28rpx;
+ text-align: center;
+ margin:22rpx 0 40rpx 0;
+ line-height: 48rpx;
}
\ No newline at end of file
diff --git a/pages/my/index/index.wxml b/pages/my/index/index.wxml
index ca50ba1..3a5e5e9 100644
--- a/pages/my/index/index.wxml
+++ b/pages/my/index/index.wxml
@@ -7,7 +7,10 @@
- {{userInfo.nickname}}
+
+ {{userInfo.nickname}}
+ {{userInfo.phone}}
+
@@ -32,7 +35,7 @@
邀请好友下单
- 邀请好友领券下单,自己再得1张跑腿券
+ 邀请好友领券下单,自己再得1张配送券
diff --git a/pages/my/index/index.wxss b/pages/my/index/index.wxss
index 927ec34..9b220ac 100644
--- a/pages/my/index/index.wxss
+++ b/pages/my/index/index.wxss
@@ -29,6 +29,12 @@
flex:1;
margin-left:30rpx;
}
+.user-info .content .phone{
+ margin-top:18rpx;
+ font-size: 30rpx;
+ font-weight: normal;
+ color: #333;
+}
.user-info .content .qrcode{
width:56rpx;height:56rpx;
}
diff --git a/pages/my/setting/index/index.js b/pages/my/setting/index/index.js
index 88189a6..24bc280 100644
--- a/pages/my/setting/index/index.js
+++ b/pages/my/setting/index/index.js
@@ -110,6 +110,11 @@ Page({
url: `/pages/browser/index?url=${encodeURIComponent(this.data.appConfig.url_delivery_contract)}`,
})
},
+ navToFee(){
+ wx.navigateTo({
+ url: `/pages/browser/index?url=${encodeURIComponent(this.data.appConfig.url_addition_fee_policy)}`,
+ })
+ },
/**
* 生命周期函数--监听页面初次渲染完成
*/
diff --git a/pages/my/setting/index/index.wxml b/pages/my/setting/index/index.wxml
index 94ddef7..c73a0ed 100644
--- a/pages/my/setting/index/index.wxml
+++ b/pages/my/setting/index/index.wxml
@@ -27,6 +27,10 @@
配送服务协议
+
+ 加价收费标准
+
+
diff --git a/pages/order/index/index.wxml b/pages/order/index/index.wxml
index 5ad5283..54bb49c 100644
--- a/pages/order/index/index.wxml
+++ b/pages/order/index/index.wxml
@@ -14,7 +14,7 @@
-->
-
+
{
+ this.setData({
+ appConfig:data
+ })
+ })
},
getDetail(){
this.setData({
@@ -87,6 +96,11 @@ Page({
current:event.currentTarget.dataset.item
})
},
+ navToFee(){
+ wx.navigateTo({
+ url: `/pages/browser/index?url=${encodeURIComponent(this.data.appConfig.url_addition_fee_policy)}`,
+ })
+ },
/**
* 生命周期函数--监听页面初次渲染完成
*/
diff --git a/pages/order/markup/index.json b/pages/order/markup/index.json
index 8faf4f6..646a7f9 100644
--- a/pages/order/markup/index.json
+++ b/pages/order/markup/index.json
@@ -2,5 +2,6 @@
"usingComponents": {
"modal-view":"/components/modalView",
"merchant-order":"/components/merchantOrder"
- }
+ },
+ "navigationBarTitleText": "订单加价申请"
}
\ No newline at end of file
diff --git a/pages/order/markup/index.wxml b/pages/order/markup/index.wxml
index 82f0261..edced99 100644
--- a/pages/order/markup/index.wxml
+++ b/pages/order/markup/index.wxml
@@ -13,7 +13,7 @@
- 跑腿员
+ 配送员
@@ -28,11 +28,15 @@
加价原因
{{applyDetail.reason}}
-
+
+
+ 加价收费标准
+
+
加价金额
{{applyDetail.additional_fee_amount}}元