Feat:抽奖2.0(查漏补缺)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<view class="county-my-tickets-page">
|
||||
<view class="custom-header" :style="{ paddingTop: `${statusBarHeight}px` }">
|
||||
<!-- <view class="custom-header" :style="{ paddingTop: `${statusBarHeight}px` }">
|
||||
<view class="header-inner">
|
||||
<view class="header-back" @click="goBack">
|
||||
<text class="header-back-icon">‹</text>
|
||||
<u-icon name="arrow-left" size="24" color="#333" class="header-back-icon"></u-icon>
|
||||
</view>
|
||||
<view class="header-title">我的抽奖码</view>
|
||||
<view class="header-right">
|
||||
@@ -22,9 +22,9 @@
|
||||
{{ tab.label }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<scroll-view class="page-body" scroll-y :style="{ paddingTop: `calc(${statusBarHeight}px + 168rpx)` }">
|
||||
<scroll-view class="page-body" scroll-y>
|
||||
<view class="tip-bar" v-if="summaryText">
|
||||
<view class="tip-text one-t">{{ summaryText }}</view>
|
||||
<view class="tip-btn" @click="goWinnersPage">查看全部 <text class="icon-expand">⤢</text></view>
|
||||
@@ -34,7 +34,7 @@
|
||||
<view class="ticket-card" v-for="item in displayList" :key="item.id">
|
||||
<view class="ticket-head">
|
||||
<view class="ticket-code">
|
||||
<text class="code-icon">🎟</text>
|
||||
<image class="code-icon" :src="`${webUrl}/home/juan.png`" mode="aspectFit" />
|
||||
<text class="code-label">抽奖码:</text>
|
||||
<text class="code-value">{{ item.ticketCode || '--' }}</text>
|
||||
</view>
|
||||
@@ -97,6 +97,7 @@ export default {
|
||||
name: 'CountyMyTicketsPage',
|
||||
data() {
|
||||
return {
|
||||
webUrl: this.$VUE_APP_RESOURCES_URL,
|
||||
statusBarHeight: 20,
|
||||
loading: false,
|
||||
activeTab: 'all',
|
||||
@@ -266,7 +267,8 @@ export default {
|
||||
`ticketCode=${encodeURIComponent(item.ticketCode || '')}`,
|
||||
`prizeName=${encodeURIComponent(item.prizeName || '')}`,
|
||||
`prizeType=${encodeURIComponent(item.prizeType || '')}`,
|
||||
`prizeTypeName=${encodeURIComponent(item.prizeTypeName || '')}`
|
||||
`prizeTypeName=${encodeURIComponent(item.prizeTypeName || '')}`,
|
||||
`prizeImage=${encodeURIComponent(item.prizeImage || '')}`
|
||||
].join('&')
|
||||
uni.navigateTo({
|
||||
url: `/pkg-video/views/county-claim-address?${query}`
|
||||
@@ -282,6 +284,10 @@ export default {
|
||||
})
|
||||
},
|
||||
goOrder(item) {
|
||||
if (this.isCouponPrize(item)) {
|
||||
this.goMyCoupons()
|
||||
return
|
||||
}
|
||||
if (!item.sourceOrderId) {
|
||||
uni.showToast({
|
||||
title: '缺少订单号',
|
||||
@@ -470,8 +476,9 @@ export default {
|
||||
|
||||
.code-icon {
|
||||
margin-right: 8rpx;
|
||||
color: #333;
|
||||
font-size: 28rpx;
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.code-label {
|
||||
|
||||
Reference in New Issue
Block a user