Commit 33773b9f by 陈超

T

parent 44e6d026
......@@ -317,7 +317,16 @@
url: "{:U('course/Video/index')}" + "?api=1&search=" + that.keyword,
dataType: "json",
success: function(data) {
console.log(data)
let array = res.data.length > 0 ? res.data : []
that.options.items = array.map( r => {
let pi = r.mz_price
return {
id: r.id,
title: r.video_title,
price: pi.price == 0 ? '免费' : ('¥' + pi.price),
count: on ? r.video_order_count_mark : r.video_order_count
}
})
}
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment