Commit ecb2e354 by zhangxw

Merge branch 'dev_v4.19.0' of http://192.168.3.233:8090/saas_plus/dj-car-boutiqu…

…e-work-wechat into zhangxw_v4.19.0
2 parents a6408552 92667994
...@@ -79,7 +79,7 @@ Component({ ...@@ -79,7 +79,7 @@ Component({
}, },
{ {
label: '订金金额', label: '订金金额',
key: 'orderPrice' key: 'activityPrice'
}, },
{ {
label: '订金支付时间', label: '订金支付时间',
...@@ -87,7 +87,7 @@ Component({ ...@@ -87,7 +87,7 @@ Component({
}, },
{ {
label: '订单编号', label: '订单编号',
key: 'orderNum' key: 'subOrderCode'
}, },
{ {
label: '尾款金额', label: '尾款金额',
...@@ -233,7 +233,7 @@ Component({ ...@@ -233,7 +233,7 @@ Component({
handleClickBtn(e) { handleClickBtn(e) {
console.log(e.currentTarget.dataset.target) console.log(e.currentTarget.dataset.target)
const {tailOrderStatus, orderNum} = e.currentTarget.dataset.target const {tailOrderStatus, subOrderCode} = e.currentTarget.dataset.target
if (tailOrderStatus == 0) { if (tailOrderStatus == 0) {
wx.$router.go('activityPay') wx.$router.go('activityPay')
} }
...@@ -246,8 +246,14 @@ Component({ ...@@ -246,8 +246,14 @@ Component({
confirmColor: '#3582EE', confirmColor: '#3582EE',
success(res) { success(res) {
if (res.confirm) { if (res.confirm) {
Api.markAsRefunded({orderCode: orderNum}).then(res => { Api.markAsRefunded({orderCode: subOrderCode}).then(res => {
if (res.code == 0){
console.log(res) console.log(res)
wx.$util.showToast('退款成功!')
this.getList()
}else{
wx.$util.showToast(res.message || '接口异常')
}
}) })
} }
} }
......
...@@ -28,10 +28,6 @@ Component({ ...@@ -28,10 +28,6 @@ Component({
key: 'transfer' key: 'transfer'
}, },
{ {
labelName: '手机号',
key: 'orderCode'
},
{
labelName: '活动名称', labelName: '活动名称',
key: 'activityName' key: 'activityName'
}, },
...@@ -46,10 +42,6 @@ Component({ ...@@ -46,10 +42,6 @@ Component({
{ {
labelName: '订金支付时间', labelName: '订金支付时间',
orderType: 'payedDate', orderType: 'payedDate',
},
{
labelName: '增值车损',
key: 'payStatus'
} }
] ]
}, },
......
...@@ -54,7 +54,6 @@ Component({ ...@@ -54,7 +54,6 @@ Component({
}, },
onBottomRefresh() { onBottomRefresh() {
console.log('????????')
this.getActivityList() this.getActivityList()
}, },
......
...@@ -41,15 +41,9 @@ const orderObj = { ...@@ -41,15 +41,9 @@ const orderObj = {
label: '商品名称', label: '商品名称',
name: 'goodsName', name: 'goodsName',
type: 'select', type: 'select',
optionList: [{ optionList: [],
goodId: 1, optionId: 'goodsId',
goodName: '商品1' optionName: 'goodsName'
}, {
goodId: 2,
goodName: '商品2'
}],
optionId: 'goodId',
optionName: 'goodName'
} }
], ],
} }
......
// packageCrowdFunding/pages/newOrder/newOrder.js // packageCrowdFunding/pages/newOrder/newOrder.js
import constantData from './constant/data' import constantData from './constant/data'
import Api from '../../api'
const app = getApp() const app = getApp()
Page({ Page({
/** /**
...@@ -10,7 +10,7 @@ Page({ ...@@ -10,7 +10,7 @@ Page({
*/ */
data: { data: {
orderObj: constantData.orderObj, orderObj: constantData.orderObj,
orderInfo: {orderNo: '52632145854', goodId: 2, referrerId: 2}, orderInfo: {},
}, },
/** /**
...@@ -18,12 +18,22 @@ Page({ ...@@ -18,12 +18,22 @@ Page({
*/ */
onLoad(options) { onLoad(options) {
// 推荐人 // 推荐人
let {orderObj} = this.data let {orderObj,orderInfo} = this.data
// 商品
if (app.globalData?.crowdFundingShopInfo && orderObj?.shopFormList) {
if (app.globalData?.crowdFundingShopInfo?.length > 1) { // 多商品
orderObj.shopFormList[1].optionList = app.globalData?.crowdFundingShopInfo
} else { // 单商品直接带出商品名称
orderObj.shopFormList[1].type = 'input'
orderObj.shopFormList[1].readonly = true
orderInfo.shopmallGoodsId = app.globalData?.crowdFundingShopInfo[0]?.goodsId || ''
orderInfo.goodsName = app.globalData?.crowdFundingShopInfo[0]?.goodsName || ''
}
}
if (app.globalData?.staffListRange && orderObj?.orderFormList) { if (app.globalData?.staffListRange && orderObj?.orderFormList) {
orderObj.orderFormList[orderObj.orderFormList.length - 1].optionList = app.globalData.staffListRange orderObj.orderFormList[orderObj.orderFormList.length - 1].optionList = app.globalData.staffListRange
} }
this.setData({orderObj}) this.setData({orderObj})
console.log(options)
}, },
back() { back() {
wx.$router.back() wx.$router.back()
...@@ -31,17 +41,8 @@ Page({ ...@@ -31,17 +41,8 @@ Page({
onRoute(options) { onRoute(options) {
const {activityName, activityId} = options const {activityName, activityId} = options
// this.setData({
// orderInfo:options
// })
this.getGoods(activityId)
}, },
getGoods(activityId) {
Api.getMerchandiseInformation({actid: '10228'}).then(res => {
console.log(res)
})
},
confirm(e) { confirm(e) {
const {target} = e.currentTarget.dataset const {target} = e.currentTarget.dataset
console.log(this.data.orderInfo) console.log(this.data.orderInfo)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!