|
@@ -9,10 +9,11 @@
|
|
<view class="two">
|
|
<view class="two">
|
|
<view class="list" v-for="(item,index) in list" :key="index" @tap="toBuy(item)">
|
|
<view class="list" v-for="(item,index) in list" :key="index" @tap="toBuy(item)">
|
|
<view class="img">
|
|
<view class="img">
|
|
- <image class="image" :src="item.goods.file&&item.goods.file.length?item.goods.file[0].url:''" mode=""></image>
|
|
|
|
|
|
+ <image class="image" :src="item.file&&item.file.length?item.file[0].url:''" mode="">
|
|
|
|
+ </image>
|
|
</view>
|
|
</view>
|
|
<view class="name">
|
|
<view class="name">
|
|
- <text>{{item.goods.name}}</text>
|
|
|
|
|
|
+ <text>{{item.goods_name}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="money">
|
|
<view class="money">
|
|
<view class="money_1">
|
|
<view class="money_1">
|
|
@@ -95,7 +96,8 @@
|
|
uni.setNavigationBarTitle({
|
|
uni.setNavigationBarTitle({
|
|
title: res.data.act_time.title
|
|
title: res.data.act_time.title
|
|
});
|
|
});
|
|
- if (res.data.content.value) res.data.content.value = res.data.content.value.replace(/\<img/gi, '<img class="rich-img"');
|
|
|
|
|
|
+ if (res.data.content.value) res.data.content.value = res.data.content.value.replace(/\<img/gi,
|
|
|
|
+ '<img class="rich-img"');
|
|
that.$set(that, `info`, res.data);
|
|
that.$set(that, `info`, res.data);
|
|
that.search()
|
|
that.search()
|
|
}
|
|
}
|
|
@@ -106,7 +108,7 @@
|
|
let info = {
|
|
let info = {
|
|
skip: that.skip,
|
|
skip: that.skip,
|
|
limit: that.limit,
|
|
limit: that.limit,
|
|
- platformAct: that.id
|
|
|
|
|
|
+ platform_act: that.id
|
|
}
|
|
}
|
|
let res = await that.$api(`/goodsJoinAct`, 'GET', {
|
|
let res = await that.$api(`/goodsJoinAct`, 'GET', {
|
|
...info,
|
|
...info,
|
|
@@ -146,7 +148,7 @@
|
|
toBuy(e) {
|
|
toBuy(e) {
|
|
const that = this;
|
|
const that = this;
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: `/pagesHome/order/detail?id=${e.goods._id}`
|
|
|
|
|
|
+ url: `/pagesHome/order/detail?id=${e.goods}`
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 清空列表
|
|
// 清空列表
|