| | |
| | | </view> |
| | | </view> |
| | | <view class="list"> |
| | | <view class="list-item" v-for="(item, index) in noticeList" :key="index"> |
| | | <view class="list-item-a"> |
| | | <text>{{item.title}}</text> |
| | | <view class="dian" v-if="item.status == 0"></view> |
| | | </view> |
| | | <view class="list-item-b"> |
| | | {{item.content}} |
| | | </view> |
| | | <view class="list-item-xian"></view> |
| | | <view class="list-item-c"> |
| | | <text>{{item.createDate}}</text> |
| | | <view class="list-item-c-to"> |
| | | <text>查看详情</text> |
| | | <image src="/static/icon/ic_ar2@2x.png" mode="widthFix"></image> |
| | | <template v-if="noticeList.length > 0"> |
| | | <view class="list-item" v-for="(item, index) in noticeList" :key="index" @click="jump(item)"> |
| | | <view class="list-item-a"> |
| | | <text>{{item.title}}</text> |
| | | <view class="dian" v-if="item.status == 0"></view> |
| | | </view> |
| | | <view class="list-item-b"> |
| | | {{item.content}} |
| | | </view> |
| | | <view class="list-item-xian"></view> |
| | | <view class="list-item-c"> |
| | | <text>{{item.createDate}}</text> |
| | | <view class="list-item-c-to"> |
| | | <text>查看详情</text> |
| | | <image src="/static/icon/ic_ar2@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | <template v-else> |
| | | <view class="wushuju"> |
| | | <image src="/static/images/default_nodata_grey.png" mode="widthFix"></image> |
| | | </view> |
| | | </template> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | this.getList() |
| | | }, |
| | | methods: { |
| | | jump(item) { |
| | | if (item.objType === 0) { |
| | | uni.navigateTo({ |
| | | url: `/pagesA/pages/order-details/order-details?id=${item.objId}&userType=0` |
| | | }) |
| | | } else if (item.objType === 1) { |
| | | uni.navigateTo({ |
| | | url: '/pages/my-points/my-points' |
| | | }) |
| | | } else if (item.objType === 2) { |
| | | uni.navigateTo({ |
| | | url: '/pages/coupon/coupon' |
| | | }) |
| | | } |
| | | }, |
| | | changeRow(index) { |
| | | this.i = index |
| | | this.next = true |
| | |
| | | width: 100%; |
| | | padding: 22rpx 30rpx; |
| | | box-sizing: border-box; |
| | | .wushuju { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | margin-top: 200rpx; |
| | | image { |
| | | width: 320rpx; |
| | | height: 320rpx; |
| | | } |
| | | } |
| | | .list-item { |
| | | width: 100%; |
| | | padding: 30rpx; |