|
|
@ -41,19 +41,18 @@ |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
<view class="new-perple-top-right" |
|
|
|
@click="$utils.navigateTo(`/pages_order/home/introduce`)"> |
|
|
|
@click="$utils.navigateTo(`/pages_order/home/journalism`)"> |
|
|
|
<image :src="configList.index_model" mode="aspectFill"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="new-perple-main"> |
|
|
|
|
|
|
|
<view class="red-packet"> |
|
|
|
<!-- <view class="red-packet"> |
|
|
|
<image src="@/static/image/home/red-packet.png" mode="aspectFill"></image> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
|
|
|
|
<view v-for="(item, index) in adList" :key="item.id" |
|
|
|
v-if="index < 4" |
|
|
|
@click="$utils.navigateTo(`/pages_order/home/notice?id=${item.id}`)" |
|
|
|
@click="$utils.navigateTo(`/pages_order/home/newsDetail?id=${item.id}`)" |
|
|
|
class="activity"> |
|
|
|
<image :src="item.icon" mode="aspectFill"></image> |
|
|
|
<view class="title">{{ item.title }}</view> |
|
|
@ -204,7 +203,10 @@ |
|
|
|
|
|
|
|
//获取首页广告 |
|
|
|
getRiceAdList() { |
|
|
|
this.$api('getRiceProductList', res => { |
|
|
|
this.$api('getRiceProductList', { |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 4, |
|
|
|
}, res => { |
|
|
|
if (res.code == 200) { |
|
|
|
this.adList = res.result.records |
|
|
|
} |
|
|
@ -349,13 +351,14 @@ |
|
|
|
flex-direction: column; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
width: 20%; |
|
|
|
width: 25%; |
|
|
|
background: white; |
|
|
|
border-radius: 10px; |
|
|
|
|
|
|
|
image { |
|
|
|
width: 100rpx; |
|
|
|
height: 100rpx; |
|
|
|
width: 140rpx; |
|
|
|
height: 140rpx; |
|
|
|
border-radius: 10rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.title { |
|
|
|