|
|
@ -17,15 +17,18 @@ |
|
|
</u-collapse-item> |
|
|
</u-collapse-item> |
|
|
</u-collapse> --> |
|
|
</u-collapse> --> |
|
|
<!-- --> |
|
|
<!-- --> |
|
|
|
|
|
<scroll-view :scroll-y="true" class="main_con" style="max-height: 1280rpx;" lower-threshold="50"> |
|
|
<view class="item" v-for="(item, index) in itemList" :key="index" :class="{'on': index==myIndex, 'bg': index==myIndex}"> |
|
|
<view class="item" v-for="(item, index) in itemList" :key="index" |
|
|
|
|
|
:class="{'on': index==myIndex, 'bg': index==myIndex}"> |
|
|
<view class="div1"> |
|
|
<view class="div1"> |
|
|
|
|
|
|
|
|
<view class="btx"> |
|
|
<view class="btx"> |
|
|
{{item.head}} |
|
|
{{item.head}} |
|
|
</view> |
|
|
</view> |
|
|
<image src="../../../static/tongyonh/plus.png" mode="aspectFit" class="teximg" v-if="index!=myIndex" @click="toClass(index)" ></image> |
|
|
<image src="../../../static/tongyonh/plus.png" mode="aspectFit" class="teximg" |
|
|
<image src="../../../static/tongyonh/xmark.png" mode="aspectFit" class="teximg" v-if="index==myIndex" @click.stop="noClass"></image> |
|
|
v-if="index!=myIndex" @click="toClass(index)"></image> |
|
|
|
|
|
<image src="../../../static/tongyonh/xmark.png" mode="aspectFit" class="teximg" |
|
|
|
|
|
v-if="index==myIndex" @click.stop="noClass"></image> |
|
|
<view class="div"> |
|
|
<view class="div"> |
|
|
{{item.body}} |
|
|
{{item.body}} |
|
|
</view> |
|
|
</view> |
|
|
@ -33,7 +36,7 @@ |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
</scroll-view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -53,13 +56,13 @@ |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
myIndex:-1, |
|
|
myIndex: -1, |
|
|
recordInfo:[], |
|
|
recordInfo: [], |
|
|
form:{ |
|
|
form: { |
|
|
pageNum:1, |
|
|
pageNum: 1, |
|
|
pageSize:10, |
|
|
pageSize: 10, |
|
|
auAdPositionType:'user_questions', |
|
|
auAdPositionType: 'user_questions', |
|
|
terminalType:'user_client', |
|
|
terminalType: 'user_client', |
|
|
}, |
|
|
}, |
|
|
itemList: [{ |
|
|
itemList: [{ |
|
|
head: this.$t('index').t1, |
|
|
head: this.$t('index').t1, |
|
|
@ -111,18 +114,18 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
noClass(){ |
|
|
noClass() { |
|
|
console.log(12121) |
|
|
console.log(12121) |
|
|
this.myIndex=-1 |
|
|
this.myIndex = -1 |
|
|
console.log(this.myIndex) |
|
|
console.log(this.myIndex) |
|
|
}, |
|
|
}, |
|
|
toClass(i){ |
|
|
toClass(i) { |
|
|
this.myIndex=i |
|
|
this.myIndex = i |
|
|
}, |
|
|
}, |
|
|
async getHomeSlideFunc() { |
|
|
async getHomeSlideFunc() { |
|
|
const response = await this.$api.getAuAdList(this.form) |
|
|
const response = await this.$api.getAuAdList(this.form) |
|
|
this.recordInfo = response.rows |
|
|
this.recordInfo = response.rows |
|
|
console.log(response,777777777) |
|
|
console.log(response, 777777777) |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
|