Commit 58357ecf by 陈超

T

parent bf61f045
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
</template> </template>
<template v-if="showList(1)"> <template v-if="showList(1)">
<!-- <div @click="onTapQuestion(item)" v-for="(item, idx) in options[1].items" :key="idx" class="layout_v home_question_item"> <div @click="onTapQuestion(item)" v-for="(item, idx) in options[1].items" :key="idx" class="layout_v home_question_item">
<div class="layout_h"> <div class="layout_h">
<div class="home_item_mark_orange layout_center">付费</div> <div class="home_item_mark_orange layout_center">付费</div>
<span class="text_14_600 color_333333 weight_full van-multi-ellipsis--l2" style="margin-right: 1.5rem;margin-left: 0.625rem;">{{item.title}}</span> <span class="text_14_600 color_333333 weight_full van-multi-ellipsis--l2" style="margin-right: 1.5rem;margin-left: 0.625rem;">{{item.title}}</span>
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
<van-image src="__THEME__/img/down_load_icon.png" width="13" height="16" ></van-image> <van-image src="__THEME__/img/down_load_icon.png" width="13" height="16" ></van-image>
</div> </div>
<div class="home_divider divider"></div> <div class="home_divider divider"></div>
</div> --> </div>
</template> </template>
<template v-if="showList(2)"> <template v-if="showList(2)">
...@@ -348,22 +348,22 @@ ...@@ -348,22 +348,22 @@
}) })
}, },
searchQuestion: function() { searchQuestion: function() {
let that = this // let that = this
$.ajax({ // $.ajax({
type: "GET", // type: "GET",
url: "{:U('exams/Index/paper')}"+"&api=1&search=" + that.keyword, // url: "{:U('exams/Index/paper')}"+"&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 : []
that.options[1] = array.map( r => { // that.options[1] = array.map( r => {
return { // return {
id: r.exams_paper_id, // id: r.exams_paper_id,
title: r.exams_paper_title, // title: r.exams_paper_title,
price: r.price // price: r.price
} // }
}) // })
} // }
}) // })
}, },
searchGoods: function() { searchGoods: function() {
let that = this let that = this
......
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