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({
},
{
label: '订金金额',
key: 'orderPrice'
key: 'activityPrice'
},
{
label: '订金支付时间',
......@@ -87,7 +87,7 @@ Component({
},
{
label: '订单编号',
key: 'orderNum'
key: 'subOrderCode'
},
{
label: '尾款金额',
......@@ -233,7 +233,7 @@ Component({
handleClickBtn(e) {
console.log(e.currentTarget.dataset.target)
const {tailOrderStatus, orderNum} = e.currentTarget.dataset.target
const {tailOrderStatus, subOrderCode} = e.currentTarget.dataset.target
if (tailOrderStatus == 0) {
wx.$router.go('activityPay')
}
......@@ -246,8 +246,14 @@ Component({
confirmColor: '#3582EE',
success(res) {
if (res.confirm) {
Api.markAsRefunded({orderCode: orderNum}).then(res => {
console.log(res)
Api.markAsRefunded({orderCode: subOrderCode}).then(res => {
if (res.code == 0){
console.log(res)
wx.$util.showToast('退款成功!')
this.getList()
}else{
wx.$util.showToast(res.message || '接口异常')
}
})
}
}
......
......@@ -28,10 +28,6 @@ Component({
key: 'transfer'
},
{
labelName: '手机号',
key: 'orderCode'
},
{
labelName: '活动名称',
key: 'activityName'
},
......@@ -46,10 +42,6 @@ Component({
{
labelName: '订金支付时间',
orderType: 'payedDate',
},
{
labelName: '增值车损',
key: 'payStatus'
}
]
},
......
......@@ -54,7 +54,6 @@ Component({
},
onBottomRefresh() {
console.log('????????')
this.getActivityList()
},
......
......@@ -41,15 +41,9 @@ const orderObj = {
label: '商品名称',
name: 'goodsName',
type: 'select',
optionList: [{
goodId: 1,
goodName: '商品1'
}, {
goodId: 2,
goodName: '商品2'
}],
optionId: 'goodId',
optionName: 'goodName'
optionList: [],
optionId: 'goodsId',
optionName: 'goodsName'
}
],
}
......
// packageCrowdFunding/pages/newOrder/newOrder.js
import constantData from './constant/data'
import Api from '../../api'
const app = getApp()
Page({
/**
......@@ -10,7 +10,7 @@ Page({
*/
data: {
orderObj: constantData.orderObj,
orderInfo: {orderNo: '52632145854', goodId: 2, referrerId: 2},
orderInfo: {},
},
/**
......@@ -18,12 +18,22 @@ Page({
*/
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) {
orderObj.orderFormList[orderObj.orderFormList.length - 1].optionList = app.globalData.staffListRange
}
this.setData({orderObj})
console.log(options)
},
back() {
wx.$router.back()
......@@ -31,17 +41,8 @@ Page({
onRoute(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) {
const {target} = e.currentTarget.dataset
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!