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

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB