Commit 7424c056 by zhangxw

bug修复

1 parent ef7db0f8
...@@ -141,6 +141,7 @@ Page({ ...@@ -141,6 +141,7 @@ Page({
let { type } = e.currentTarget.dataset let { type } = e.currentTarget.dataset
let { orderObj, merchantList, allCourseList } = this.data let { orderObj, merchantList, allCourseList } = this.data
if (orderObj.taskStatus == 2) return if (orderObj.taskStatus == 2) return
console.log(orderObj.courseList)
this.setData({ this.setData({
selectType: type, selectType: type,
showSelectPopup: true, showSelectPopup: true,
...@@ -149,7 +150,8 @@ Page({ ...@@ -149,7 +150,8 @@ Page({
selectMultiple: type != 'merchant', selectMultiple: type != 'merchant',
labelKey: type == 'merchant' ? 'merchantName' : 'title', labelKey: type == 'merchant' ? 'merchantName' : 'title',
valueKey: type == 'merchant'? 'merchantId' : 'courseId', 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!