Commit f9b5ddb6 by 陈超

T

parent a890284c
...@@ -163,12 +163,12 @@ ...@@ -163,12 +163,12 @@
height="68" height="68"
width="128" width="128"
fit="cover" fit="cover"
src="https://img.yzcdn.cn/vant/cat.jpeg"> :src="item.cover">
</van-image> </van-image>
<div class="weight_full layout_v"> <div class="weight_full layout_v">
<span class="text_14_600 color_333333 van-multi-ellipsis--l2">[优惠大礼包]5年高考3年模拟理综全套</span> <span class="text_14_600 color_333333 van-multi-ellipsis--l2">{{item.title}}</span>
<div class="layout_h_b" style="margin-top: 0.5rem;"> <div class="layout_h_b" style="margin-top: 0.5rem;">
<span class="text_14_600 color_FF3B3B self_center">¥0</span> <span class="text_14_600 color_FF3B3B self_center">¥{{item.price}}</span>
<div class="item_green_button">购买</div> <div class="item_green_button">购买</div>
</div> </div>
</div> </div>
...@@ -341,11 +341,18 @@ ...@@ -341,11 +341,18 @@
let that = this let that = this
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "{:U('mall/Goods/index')}"+"?api=1&search=" + '', url: "{:U('mall/Goods/index')}"+"?api=1&search=" + that.keyword,
dataType: "json", dataType: "json",
success: function(res) { success: function(res) {
let array = res.data.length > 0 ? res.data : [] let array = res.data.length > 0 ? res.data : []
console.log(data) that.options[2].items = array.map( r => {
return {
id: r.uid,
title: r.title,
cover: r.cover,
price: r.price
}
})
} }
}) })
} }
......
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