Commit 7424c056 by zhangxw

bug修复

1 parent ef7db0f8
......@@ -141,6 +141,7 @@ Page({
let { type } = e.currentTarget.dataset
let { orderObj, merchantList, allCourseList } = this.data
if (orderObj.taskStatus == 2) return
console.log(orderObj.courseList)
this.setData({
selectType: type,
showSelectPopup: true,
......@@ -149,7 +150,8 @@ Page({
selectMultiple: type != 'merchant',
labelKey: type == 'merchant' ? 'merchantName' : 'title',
valueKey: type == 'merchant'? 'merchantId' : 'courseId',
selectValue: type == 'merchant' ? [orderObj.merchantId] : orderObj.courseList
selectValue: type == 'merchant' ? [orderObj.merchantId] : orderObj.courseList?.map(val => {return val.courseId}),
selectValues: type == 'merchant' ? [orderObj.merchantId] : orderObj.courseList?.map(val => {return val.courseId})
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!