diff --git a/app.json b/app.json
index 30cc1c1..3e4055e 100644
--- a/app.json
+++ b/app.json
@@ -21,6 +21,7 @@
"pages/message/detail/index",
"pages/storage/index/index",
"pages/client/index/index",
+ "pages/client/registe/index",
"pages/client/home/index",
"pages/client/order-list/index",
"pages/client/factory-list/index",
diff --git a/components/dialog/index.wxml b/components/dialog/index.wxml
index d814a3c..57d8d11 100644
--- a/components/dialog/index.wxml
+++ b/components/dialog/index.wxml
@@ -1,64 +1,34 @@
-
-
毛重:{{item.totalWeight}}公斤
-
- 取消
- 定价
+
+ 代付中
-
- 审核
-
-
- 待过皮重
-
-
- 待付款
+
+ 待结算
已完成
diff --git a/pages/process/order-info/index.wxml b/pages/process/order-info/index.wxml
index ce3bbf7..74873f7 100644
--- a/pages/process/order-info/index.wxml
+++ b/pages/process/order-info/index.wxml
@@ -13,11 +13,19 @@
待过磅审核
-
+
待付款(请前往后台支付)
-
+
+
+ 代付审核中
+
+
+
+ 待结算(请前往后台支付)
+
+
已完成
@@ -146,12 +154,13 @@
-
+
diff --git a/pages/process/order-list/index.js b/pages/process/order-list/index.js
index 67d0ab8..809fd18 100644
--- a/pages/process/order-list/index.js
+++ b/pages/process/order-list/index.js
@@ -5,6 +5,7 @@ const event = require('../../../utils/event')
const util = require('../../../utils/util')
const app = getApp()
+//1-定价 2-待过皮重 3-待过榜审核 4-待付款 41-代付中 42-待结算 5-已完成 6-已关闭
Page({
// * 页面的初始数据
data: {
@@ -14,10 +15,12 @@ Page({
{id: 0, name: '全部', badge: 0, status: '' },
{id: 1, name: '待定价', badge: 0, status: 1 },
{id: 2, name: '待过皮重', badge: 0, status: 2 },
- {id: 3, name: '过磅审核', badge: 0, status: 3 },
+ {id: 3, name: '待过榜审核', badge: 0, status: 3 },
{id: 4, name: '待付款', badge: 0, status: 4 },
- {id: 5, name: '已完成', badge: 0, status: 5 },
- // {id: 6, name: '已取消', badge: 0, status: 6 }
+ {id: 5, name: '代付中', badge: 0, status: 41 },
+ {id: 6, name: '待结算', badge: 0, status: 42 },
+ {id: 7, name: '已完成', badge: 0, status: 5 },
+ // {id: 8, name: '已取消', badge: 0, status: 6 }
],
loading: true,
requesting: false,
@@ -154,7 +157,9 @@ Page({
},
lookItem: function (e) {
var item = this.data.orderList[e.currentTarget.dataset.page][e.currentTarget.dataset.index]
- if(item.status == 2 || item.status == 3 || item.status == 4 || item.status == 5){
+ if(item.status == 1){
+ wx.navigateTo({ url: `/pages/process/order-price/index?id=${item.id}` })
+ } else {
wx.navigateTo({ url: `/pages/process/order-info/index?id=${item.id}` })
}
},
diff --git a/pages/process/order-list/index.wxml b/pages/process/order-list/index.wxml
index 1a4e6eb..e49d679 100644
--- a/pages/process/order-list/index.wxml
+++ b/pages/process/order-list/index.wxml
@@ -44,6 +44,12 @@
待付款
+
+ 代付中
+
+
+ 待结算
+
已完成
diff --git a/pages/process/payment/index.js b/pages/process/payment/index.js
index f59c276..e4c8b79 100644
--- a/pages/process/payment/index.js
+++ b/pages/process/payment/index.js
@@ -20,6 +20,7 @@ Page({
},
amount: 0,
orderList: null,
+ orderStatus: null,
params: {
settleType: '1',
ids: [],
@@ -27,6 +28,7 @@ Page({
},
requesting: false,
popup: false,
+ show: false,
detail: null
},
/**
@@ -65,7 +67,15 @@ Page({
this.data.params.bankCardNo = element.bankCardNo
}
}
- this.setData({ height: app.globalData.fragmentHeight, safeBottom: app.globalData.safeBottom, orderList, amount, params: this.data.params })
+ this.data.orderStatus = orderList[0].status
+ this.setData({
+ height: app.globalData.fragmentHeight,
+ safeBottom: app.globalData.safeBottom,
+ orderList,
+ amount,
+ params: this.data.params,
+ orderStatus: this.data.orderStatus
+ })
} else {
this.setData({ height: app.globalData.fragmentHeight, safeBottom: app.globalData.safeBottom })
}
@@ -107,6 +117,29 @@ Page({
bindInput: function (e) {
this.data.params[e.target.id] = e.detail.value
},
+ agentPayment: function(settleType){
+ if(Number(settleType) == 1 || Number(settleType) == 2){
+ settleType = 3
+ }
+ wx.showLoading({ title: '正在处理', mask: true })
+ this.data.requesting = true
+ this.data.params.settleType = settleType
+ paymentOrder(this.data.params).then(result => {
+ wx.hideLoading()
+ if(!util.isEmpty(result.message)){
+ util.showBackToast(result.message)
+ } else {
+ util.showBackToast('订单已支付')
+ }
+ const channel = this.getOpenerEventChannel()
+ channel.emit('onOrderChange', { what: 12, desc: 'PaymentOrder' })
+ event.emit('OrderMessage', { what: 12, desc: 'PaymentOrder' })
+ }).catch(err => {
+ wx.hideLoading()
+ this.data.requesting = false
+ util.showToast(err)
+ })
+ },
paymentOrder: function(){
if(this.data.requesting){
return
@@ -116,29 +149,12 @@ Page({
return
}
Dialog.confirm({ title: '温馨提示', message: '订单已经付款,在此进行确认?' }).then(() => {
- wx.showLoading({ title: '正在获取', mask: true })
- this.data.requesting = true
- this.data.params.settleType = Number(this.data.params.settleType)
- paymentOrder(this.data.params).then(result => {
- wx.hideLoading()
- if(!util.isEmpty(result.message)){
- util.showBackToast(result.message)
- } else {
- util.showBackToast('订单已支付')
- }
- const channel = this.getOpenerEventChannel()
- channel.emit('onOrderChange', { what: 12, desc: 'PaymentOrder' })
- event.emit('OrderMessage', { what: 12, desc: 'PaymentOrder' })
- }).catch(err => {
- wx.hideLoading()
- this.data.requesting = false
- util.showToast(err)
- })
+ this.agentPayment(this.data.params.settleType)
}).catch(err => {
})
},
onPopupClose: function(){
- this.setData({ popup: false })
+ this.setData({ popup: false, show: false})
},
viewImage: function (e) {
var imgList = []
@@ -152,5 +168,9 @@ Page({
}
}
wx.previewImage({ urls: imgList, current: e.currentTarget.dataset.url })
+ },
+ registerCustomer: function(){
+ var cid = this.data.orderList[0].factoryCustomerId
+ wx.navigateTo({ url: '/pages/client/registe/index?id=' + cid })
}
})
\ No newline at end of file
diff --git a/pages/process/payment/index.wxml b/pages/process/payment/index.wxml
index 6c6973b..66a97a6 100644
--- a/pages/process/payment/index.wxml
+++ b/pages/process/payment/index.wxml
@@ -27,7 +27,7 @@
-
+
@@ -70,7 +70,9 @@
@@ -199,4 +201,43 @@
-
\ No newline at end of file
+
+
+
+
+
+
+ 该客户注册成为纸通宝用户,才可以使用千鸟代付,通过以下两种方式让您的客户注册成纸通宝用户。
+ 1:让客户使用微信扫下面的二维码注册。
+
+
+
+
+
+
+ 2:使用客户的手机号码,获取千鸟互联的验证码进行注册。
+
+
\ No newline at end of file
diff --git a/pages/process/payment/index.wxss b/pages/process/payment/index.wxss
index d304903..2028e22 100644
--- a/pages/process/payment/index.wxss
+++ b/pages/process/payment/index.wxss
@@ -1,5 +1,7 @@
/* pages/process/payment/index.wxss */
-.checkbox{
+@import '../../../components/common/index.wxss';
+
+.checkbox {
padding-top: 6rpx;
}
@@ -7,8 +9,46 @@
margin-right: 24rpx;
}
-.lable{
+.lable {
padding: 32rpx 32rpx 24rpx 32rpx;
- margin-top:18rpx;
- border-bottom:1rpx solid #eee
+ margin-top: 18rpx;
+ border-bottom: 1rpx solid #eee
+}
+
+.van-dialog {
+ top: 50% !important;
+ overflow: hidden;
+ width: 320px;
+ width: var(--dialog-width, 320px);
+ font-size: 16px;
+ font-size: var(--dialog-font-size, 16px);
+ border-radius: 16rpx;
+ border-radius: var(--dialog-border-radius, 16rpx);
+ background-color: #fff;
+ background-color: var(--dialog-background-color, #fff)
+}
+
+.van-dialog__message {
+ overflow-y: auto;
+ text-align: center;
+ -webkit-overflow-scrolling: touch;
+ font-size: 14px;
+ font-size: var(--dialog-message-font-size, 14px);
+ line-height: 20px;
+ line-height: var(--dialog-message-line-height, 20px);
+ max-height: 60vh;
+ max-height: var(--dialog-message-max-height, 60vh);
+ padding: 24px;
+ padding: var(--dialog-message-padding, 24px)
+}
+
+van-dialog__button {
+ -webkit-flex: 1;
+ flex: 1
+}
+
+.van-dialog__cancel,
+.van-dialog__confirm {
+ border: 0 !important;
+ border-radius: 0px;
}
\ No newline at end of file
diff --git a/project.config.json b/project.config.json
index a3b16fb..8ac0a38 100644
--- a/project.config.json
+++ b/project.config.json
@@ -14,7 +14,7 @@
"coverView": true,
"nodeModules": true,
"autoAudits": false,
- "showShadowRootInWxmlPanel": true,
+ "showShadowRootInWxmlPanel": false,
"scopeDataCheck": false,
"uglifyFileName": true,
"checkInvalidKey": true,