This commit is contained in:
齐天大圣 2023-11-30 17:30:54 +08:00
parent 2426562ac7
commit 02bff90102
2 changed files with 9 additions and 42 deletions

View File

@ -10,11 +10,11 @@
<!-- <view class="mub-box" v-for="(item,index) in activityList" :key="index" @click="getactvity(item.path)"> -->
<view class="mub-box" v-for="(item,index) in activityList" :key="index" @click="intoOtherPage()">
<view class="box-img">
<image src="../../static/imgs/xp.jpg" mode=""></image>
<image src="../../static/imgs/hd.png" mode=""></image>
</view>
<view class="box-size">
<view class="box-s-title">{{item.title || "活动标题"}}</view>
<view class="box-s-size">{{item.size || "内容"}}</view>
<view class="box-s-title">{{item.name || "活动标题"}}</view>
<view class="box-s-size">{{item.des || "内容"}}</view>
</view>
<view class="box-bottom">
<view class="">活动时间</view>
@ -35,40 +35,14 @@
data() {
return {
title: '',
activityList: [{
title: "活动名称",
size: '文字信息文字信息文字信息文字信息文字信息文字信息文字信息文字信息',
path: null,
time: "2023.1.24-2035.1.24 "
},
{
title: "活动名称",
size: '文字信息文字信息文字信息文字信息文字信息文字信息文字信息文字信息',
path: null,
time: "2023.1.24-2035.1.24 "
},
{
title: "活动名称",
size: '文字信息文字信息文字信息文字信息文字信息文字信息文字信息文字信息',
path: null,
time: "2023.1.24-2035.1.24 "
},
]
}
},
datas() {
return {
datas: [{
"activeDescribe": ""
}]
activityList: [],
}
},
components: {
},
onShow() {
this.getData();
},
methods: {
intoOtherPage() {
@ -77,19 +51,12 @@
})
},
getData() {
// request({
// url: '/business/marketingActivity/activeConsumption/AppletList',
// method: 'get',
// success: function(res) {
// this.datas = res.data
// }
// })
request({
url: '/business/marketingActivity/activeConsumption/AppletList',
url: 'business/marketingActivity/activeExchange/applet',
method: 'get',
}).then(res => {
console.log(res);
this.datas = res.data
this.activityList = res.data
})
},
getactvity(url) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB