diff --git a/apis/orderApi.js b/apis/orderApi.js index 3e81ca6..00eb2dd 100644 --- a/apis/orderApi.js +++ b/apis/orderApi.js @@ -61,7 +61,7 @@ export const submitClientOrder = (data) => { */ export const getClientOrderInfo = (data) => { return http.get({ - url: '/base-paper-trading/get/customer/order/details', + url: '/base-paper-trading/get/customer/order/details1', data }) } @@ -159,3 +159,16 @@ export function getCooperationList(data) { data }) } + +/** + * 提交微信直付单,返回微信支付参数 + * @param {object} data + * @property {string} data.customerOrderId + * @property {string} data.wxAppid + */ +export function makeSupplierPay(data) { + return http.post({ + url: '/base-paper-trading/submit/wx/straight/pay', + data + }) +} diff --git a/components/qn-select/qn-select.vue b/components/qn-select/qn-select.vue index 41b45bf..7fe659d 100644 --- a/components/qn-select/qn-select.vue +++ b/components/qn-select/qn-select.vue @@ -61,6 +61,9 @@ export default { label: '' } }, + created() { + this.handleChange(this.value, this.options) + }, methods: { handleSelect(item) { if (this.multiple) { diff --git a/enums/index.js b/enums/index.js index c4fbeb5..6dc646c 100644 --- a/enums/index.js +++ b/enums/index.js @@ -3,6 +3,8 @@ const urlEnv = env === 'production' ? '' : `-${env}` export const XAPPID = '503258978847966407' +export const WX_APPID = 'wx6c66084e2de41575' + export const H5_URL = `https://printpackage${urlEnv}.qniao.cn` /** @@ -220,7 +222,7 @@ export const orderStatusMap = { } /** - * 供应商订单状态 待客户确认订单/30202,待供应商确认订单/30205,待发货/30106,已发货/30107 已发货在H5客户端显示 待收货/30107 ,待客户借款/30207,支付中/30208,待客户支付/30214,付款失败/30211,已完成/30213,待客户还款/30217,已取消/30212,还款中/30216 + * 供应商订单状态 待客户确认订单/30202,待供应商确认订单/30205,待发货/30106,已发货/30107 已发货在H5客户端显示 待收货/30107 ,待客户借款/30207,支付中/30208,待客户支付/30214,微信服务商支付/30215,付款失败/30211,已完成/30213,待客户还款/30217,已取消/30212,还款中/30216 */ export const supplierOrderStatusEnum = { WAIT_CLIENT_CONFIRM: 30202, @@ -230,6 +232,7 @@ export const supplierOrderStatusEnum = { WAIT_CLIENT_LOAN: 30207, PAYING: 30208, WAIT_CLIENT_PAY: 30214, + WX_PAY_SUPPLIER: 30215, PAY_FAIL: 30211, FINISHED: 30213, WAIT_CLIENT_REPAY: 30217, diff --git a/env/index.js b/env/index.js index bcf6a22..a0bfcb1 100644 --- a/env/index.js +++ b/env/index.js @@ -1,8 +1,8 @@ /** * @description 唯一环境变量 */ -// const env = 'test' +const env = 'test' // const env = 'dev' -const env = 'production' +// const env = 'production' export default env diff --git a/manifest.json b/manifest.json index c95377e..bb53463 100644 --- a/manifest.json +++ b/manifest.json @@ -24,7 +24,6 @@ }, /* 模块配置 */ "modules" : { - "iBeacon" : {}, "Share" : {}, "Payment" : {}, "Push" : {}, @@ -39,8 +38,6 @@ "", "", "", - "", - "", "", "", "", @@ -52,9 +49,7 @@ "", "", "", - "", - "", - "" + "" ], "abiFilters" : [ "armeabi-v7a", "x86" ] }, diff --git a/pages.json b/pages.json index d8f4d71..3d66110 100644 --- a/pages.json +++ b/pages.json @@ -175,7 +175,7 @@ "path": "pages/order-detail/index", "style": { "navigationBarTitleText": "订单详情", - "enablePullDownRefresh": false, + "enablePullDownRefresh": true, "navigationStyle": "custom" } }, diff --git a/pages/digital-workshops/index.vue b/pages/digital-workshops/index.vue index 72f9dd9..ab261f9 100644 --- a/pages/digital-workshops/index.vue +++ b/pages/digital-workshops/index.vue @@ -1,10 +1,7 @@