Feat:抽奖2.0(查漏补缺)
This commit is contained in:
+5
-5
@@ -416,31 +416,31 @@
|
||||
{
|
||||
"path": "views/county-lottery-rules",
|
||||
"style": {
|
||||
"navigationStyle": "custom"
|
||||
"navigationBarTitleText": "活动规则"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "views/county-my-tickets",
|
||||
"style": {
|
||||
"navigationStyle": "custom"
|
||||
"navigationBarTitleText": "我的抽奖码"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "views/county-winners",
|
||||
"style": {
|
||||
"navigationStyle": "custom"
|
||||
"navigationBarTitleText": "中奖名单"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "views/county-claim-address",
|
||||
"style": {
|
||||
"navigationStyle": "custom"
|
||||
"navigationBarTitleText": "填写收货地址"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "views/county-realname",
|
||||
"style": {
|
||||
"navigationStyle": "custom"
|
||||
"navigationBarTitleText": "实名认证"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -186,6 +186,61 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-else-if="order.isDrawOrder === 1">
|
||||
<view class="item-info acea-row row-between row-top draw-order-info">
|
||||
<view class="pictrue">
|
||||
<image :src="order.drawOrderInfo && order.drawOrderInfo.prizeImage" />
|
||||
</view>
|
||||
<view class="text" style="margin-top: 0 !important;">
|
||||
<view class="acea-row name-wrap" style="flex-wrap: nowrap">
|
||||
<view class="name more-t v12-font-bold">{{ (order.drawOrderInfo && order.drawOrderInfo.prizeName) || '抽奖商品' }}</view>
|
||||
<view class="money draw-price">
|
||||
<view class="draw-price-origin">
|
||||
<text class="v12-font-22">¥</text>
|
||||
<text class="v12-font-28">{{ force2Decimal((order.drawOrderInfo && order.drawOrderInfo.prizePrice) || 0) }}</text>
|
||||
</view>
|
||||
<view class="v12-font-22 v12-secondary-dark-text draw-qty">x1</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="totalPrice acea-row row-between row-middle" :style="{'padding-bottom': '0'}">
|
||||
<view v-if="order.createTime">
|
||||
<span class="orderTime v12-font-24 v12-dark1-text">{{ order.createTime }}</span>
|
||||
</view>
|
||||
<view class="v12-font-24 v12-dark1-text">
|
||||
共{{ order.totalNum || 0 }}件商品
|
||||
<text v-if="order.isGiftCardReceiveBlind === 0">
|
||||
<text class="v12-dark-text v12-font-28 v12-font-bold">
|
||||
,总金额
|
||||
</text>
|
||||
<text class="v12-font-22 v12-primary-text v12-font-bold">
|
||||
¥
|
||||
</text>
|
||||
<text class="money font-color-lightred v12-font-28 v12-primary-text v12-font-bold">
|
||||
{{ force2Decimal(order.payPrice) }}
|
||||
</text>
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="v12-mt-3">
|
||||
<u-line></u-line>
|
||||
</view>
|
||||
<view class="draw-code-row acea-row row-between row-middle">
|
||||
<view class="v12-font-28 v12-dark-text">
|
||||
抽奖码:
|
||||
<text class="v12-primary-text v12-font-bold draw-ticket-code">
|
||||
{{ order.drawOrderInfo && order.drawOrderInfo.ticketCode }}
|
||||
</text>
|
||||
</view>
|
||||
<view
|
||||
v-if="order.drawOrderInfo && order.drawOrderInfo.drawStatusName"
|
||||
class="font-color-white statusTag v12-primary"
|
||||
>
|
||||
{{ order.drawOrderInfo.drawStatusName }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-else>
|
||||
<view
|
||||
v-for="(cart,cartInfoIndex) in order.cartInfo"
|
||||
@@ -237,7 +292,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="!order.experienceOrderInfo" class="totalPrice acea-row row-between row-middle" :style="{'padding-bottom': order.isTravelGroup === 1 ? '0rpx !important' : '30rpx'}">
|
||||
<view v-if="!order.experienceOrderInfo && order.isDrawOrder === 0" class="totalPrice acea-row row-between row-middle" :style="{'padding-bottom': order.isTravelGroup === 1 ? '0rpx !important' : '30rpx'}">
|
||||
<view v-if="order.createTime">
|
||||
<span class="orderTime v12-font-24 v12-dark1-text">{{ order.createTime }}</span>
|
||||
</view>
|
||||
@@ -293,8 +348,9 @@
|
||||
v-if="!order.isGiftCardSend && !order.experienceOrderInfo"
|
||||
class="bottom flex jc-between ai-center"
|
||||
>
|
||||
|
||||
<view
|
||||
v-if="[2, 3].includes(parseInt(order._status._type)) && order.isTickets === 0"
|
||||
v-if="[2, 3].includes(parseInt(order._status._type)) && order.isTickets === 0 && order.isDrawOrder === 0"
|
||||
class="group-btn"
|
||||
>
|
||||
<text
|
||||
@@ -316,6 +372,11 @@
|
||||
</view>
|
||||
<template v-else>
|
||||
<view class="v12-justify-between" style="width: 100%">
|
||||
<view
|
||||
v-if="order.isDrawOrder > 0"
|
||||
class="bnt service"
|
||||
>联系客服
|
||||
</view>
|
||||
<view>
|
||||
<view
|
||||
v-if="order.isGiftCardReceiveBlind === 0 &&
|
||||
@@ -340,6 +401,7 @@
|
||||
>删除订单</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</template>
|
||||
<view class="flex">
|
||||
<template v-if="parseInt(order._status._type) === 0">
|
||||
@@ -348,7 +410,7 @@
|
||||
@click="cancelOrder(order)"
|
||||
>取消订单</view>
|
||||
<view
|
||||
v-if="order.isTravelGroup === 0"
|
||||
v-if="order.isTravelGroup === 0 && order.isDrawOrder === 0"
|
||||
class="bnt cancelBnt v12-dark-text v12-dark-border"
|
||||
@click="addressTap(order)"
|
||||
>修改地址</view>
|
||||
@@ -369,7 +431,7 @@
|
||||
@click="applyRefund(order)"
|
||||
>{{ '申请退款' }}</view>
|
||||
<view
|
||||
v-if="canShowModifyAddress(order)"
|
||||
v-if="canShowModifyAddress(order) && order.isDrawOrder === 0"
|
||||
class="bnt service"
|
||||
@click="addressTap(order)"
|
||||
>修改地址</view>
|
||||
@@ -404,7 +466,7 @@
|
||||
</template>
|
||||
<template v-if="parseInt(order._status._type) === 2 && order.isTickets === 0 && order.isTravelGroup === 0">
|
||||
<view
|
||||
v-if="order.isExtendedDelivery === 0"
|
||||
v-if="order.isExtendedDelivery === 0 && order.isDrawOrder === 0"
|
||||
class="bnt default"
|
||||
@click="toDelay(order.orderId)"
|
||||
>延长收货
|
||||
@@ -1543,4 +1605,28 @@ page {
|
||||
width: 160rpx !important;
|
||||
height: 160rpx !important;
|
||||
}
|
||||
.draw-order-info .draw-price{
|
||||
text-align: right;
|
||||
}
|
||||
.draw-order-info .draw-price-origin{
|
||||
color: #999;
|
||||
text-decoration: line-through;
|
||||
}
|
||||
.draw-order-info .draw-qty{
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
.draw-code-row{
|
||||
margin: 0rpx 0rpx 20rpx 30rpx;
|
||||
padding-top: 20rpx;
|
||||
}
|
||||
.draw-ticket-code{
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
.draw-status-tag{
|
||||
color: #fff;
|
||||
background: #c52733;
|
||||
border-radius: 999rpx;
|
||||
padding: 6rpx 24rpx;
|
||||
line-height: 1.4;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
</div>
|
||||
<div class="v12-font-28 v12-secondary-dark-text v12-justify-between">
|
||||
<text class=" more-t" style="flex: 2;">{{ orderInfo.userAddress }}</text>
|
||||
<view v-if="canShowModifyAddress(orderInfo)" @click="goAddress" class="v12-btn cancel v12-dark-text v12-dark-border v12-radius-40" >修改地址</view>
|
||||
<view v-if="canShowModifyAddress(orderInfo) && orderInfo.isDrawOrder === 0" @click="goAddress" class="v12-btn cancel v12-dark-text v12-dark-border v12-radius-40" >修改地址</view>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -216,7 +216,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="v12-justify-between v12-flex-column v12-dark-text v12-text-right">
|
||||
<view class=" ">
|
||||
<view class=" " v-if="orderInfo.isDrawOrder === 0">
|
||||
<text class="v12-font-22">
|
||||
¥
|
||||
</text>
|
||||
@@ -240,7 +240,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="" v-if="orderInfo.cartInfo &&( d === orderInfo.cartInfo.length - 1)">
|
||||
<view class="" v-if="orderInfo.cartInfo &&( d === orderInfo.cartInfo.length - 1) && orderInfo.isDrawOrder === 0">
|
||||
<view class="v12-justify-between v12-align-center v12-mt-3 v12-dark-text" v-if="orderInfo.isGiftCardReceiveBlind === 0">
|
||||
<view class="v12-font-24 v12-dark-text">
|
||||
商品总价
|
||||
@@ -312,6 +312,13 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<u-divider></u-divider>
|
||||
<view>
|
||||
<text class="v12-font-bold">抽奖码:</text>
|
||||
<text class="v12-font-bold v12-primary-text">{{ orderInfo.drawOrderInfo.ticketCode }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -482,11 +489,12 @@
|
||||
<template v-if="status.type == 1" >
|
||||
<view class="v12-justify-between " style="width: 100%">
|
||||
<view class="v12-justify-between ">
|
||||
<view v-if="orderInfo.isGiftCardReceiveBlind === 0" class="bnt v12-dark-text v12-dark-border cancel" @click="goRoom(orderInfo)">联系商家</view>
|
||||
<view class="bnt v12-dark-text v12-dark-border cancel" @click="delayOrder">催发货</view>
|
||||
<view v-if="canShowModifyAddress(orderInfo)" class="bnt v12-dark-text v12-dark-border cancel" @click="goAddress">修改地址</view>
|
||||
<view v-if="orderInfo.isDrawOrder > 0" class="bnt v12-dark-text v12-dark-border cancel">联系客服</view>
|
||||
<view v-if="orderInfo.isGiftCardReceiveBlind === 0 && orderInfo.isDrawOrder === 0" class="bnt v12-dark-text v12-dark-border cancel" @click="goRoom(orderInfo)">联系商家</view>
|
||||
<view v-if="orderInfo.isDrawOrder === 0" class="bnt v12-dark-text v12-dark-border cancel" @click="delayOrder">催发货</view>
|
||||
<view v-if="canShowModifyAddress(orderInfo) && orderInfo.isDrawOrder === 0" class="bnt v12-dark-text v12-dark-border cancel" @click="goAddress">修改地址</view>
|
||||
</view>
|
||||
<view class="bnt v12-primary-text v12-primary-border cancel" @click="goGoodsReturn2(orderInfo)">申请退款</view>
|
||||
<view v-if="orderInfo.isDrawOrder === 0" class="bnt v12-primary-text v12-primary-border cancel" @click="goGoodsReturn2(orderInfo)">申请退款</view>
|
||||
</view>
|
||||
</template>
|
||||
<template v-if="status.type == 2">
|
||||
@@ -495,7 +503,7 @@
|
||||
<view class="" v-else></view>
|
||||
<view class="v12-justify-between">
|
||||
<view class="btn-more" style="position: relative">
|
||||
<view class=" v12-font-24 v12-mr-2" @click.stop="showMore = !showMore">更多</view>
|
||||
<view v-if="orderInfo.isDrawOrder === 0" class=" v12-font-24 v12-mr-2" @click.stop="showMore = !showMore">更多</view>
|
||||
<view class="group-float" v-show="showMore" :style="{top: orderInfo.isExtendedDelivery==0 ? '-60px' : '-32px'}">
|
||||
<view v-if="orderInfo.isExtendedDelivery==0" class="btn flex jc-center ai-center v12-font-24" @click="toDelay(orderInfo.orderId)">延长收货</view>
|
||||
<view class="btn flex jc-center ai-center v12-font-24" @click="goGoodsReturn(orderInfo)">申请退款</view>
|
||||
@@ -514,7 +522,7 @@
|
||||
<view class="bnt v12-dark-text v12-dark-border cancel" @click="goRoom(orderInfo)">联系商家</view>
|
||||
<view class="v12-justify-between">
|
||||
<view class="btn-more" style="position: relative">
|
||||
<text class=" v12-font-24 v12-mr-2" @click.stop="showMore = !showMore">更多</text>
|
||||
<text v-if="orderInfo.isDrawOrder === 0" class=" v12-font-24 v12-mr-2" @click.stop="showMore = !showMore">更多</text>
|
||||
<view class="group-float" v-show="showMore" :style="{top: '-32px'}">
|
||||
<view class="btn flex jc-center ai-center v12-font-24" @click="goGoodsReturn(orderInfo)">申请退款</view>
|
||||
</view>
|
||||
@@ -550,7 +558,10 @@
|
||||
</view>
|
||||
</template>
|
||||
<template v-if="status.type == 4">
|
||||
<view class="bnt v12-dark-text v12-dark-border cancel" @click="delOrder">删除订单</view>
|
||||
<view class="v12-justify-between " style="width: 100%">
|
||||
<view v-if="orderInfo.isDrawOrder > 0" class="bnt v12-dark-text v12-dark-border cancel" >联系客服</view>
|
||||
<view class="bnt v12-dark-text v12-dark-border cancel" @click="delOrder">删除订单</view>
|
||||
</view>
|
||||
<!-- <view
|
||||
v-if="orderInfo.isTickets !== 1"
|
||||
class="bnt v12-dark-text v12-dark-border default"
|
||||
@@ -1216,6 +1227,9 @@ export default {
|
||||
} else if (this.orderInfo.isGiftCardReceive === 1 || this.orderInfo.isGiftCardSend === 1) {
|
||||
this.orderTypeName = "礼包订单"
|
||||
this.orderTypeNameStatus = false
|
||||
}else if (this.orderInfo.isDrawOrder === 1) {
|
||||
this.orderTypeName = "抽奖订单"
|
||||
this.orderTypeNameStatus = false
|
||||
}
|
||||
this.system_store = res.data.systemStore || {}
|
||||
this.mapKey = res.data.mapKay
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<view class="claim-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">
|
||||
@@ -11,25 +11,27 @@
|
||||
<view class="ring"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<scroll-view class="page-body" scroll-y :style="{ paddingTop: `calc(${statusBarHeight}px + 88rpx)` }">
|
||||
<view class="section-title">奖品信息</view>
|
||||
<scroll-view class="page-body" scroll-y >
|
||||
<view class="card prize-card">
|
||||
<view class="prize-image-wrap">
|
||||
<image class="prize-image" :src="prizeImage" mode="aspectFill" />
|
||||
</view>
|
||||
<view class="prize-info">
|
||||
<view class="prize-name">{{ form.prizeName || '神秘奖品' }}</view>
|
||||
<view class="prize-desc">颜色随机</view>
|
||||
<view class="prize-code">抽奖码:{{ form.ticketCode || '--' }}</view>
|
||||
<view class="section-title">奖品信息</view>
|
||||
<view class="prize-content">
|
||||
<view class="prize-image-wrap">
|
||||
<image class="prize-image" :src="prizeImage" mode="aspectFill" />
|
||||
</view>
|
||||
<view class="prize-info">
|
||||
<view class="prize-name">{{ form.prizeName || '神秘奖品' }}</view>
|
||||
<view class="prize-desc">颜色随机</view>
|
||||
<view class="prize-code">抽奖码:{{ form.ticketCode || '--' }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="card form-card">
|
||||
<view class="form-row">
|
||||
<text class="label">收货人</text>
|
||||
<input v-model="form.realName" class="input" placeholder="张三" placeholder-style="color:#999;" />
|
||||
<input v-model="form.realName" class="input" placeholder="请填写收货人" placeholder-style="color:#b2b2b2;" />
|
||||
</view>
|
||||
<view class="form-row">
|
||||
<text class="label">手机号码</text>
|
||||
@@ -38,8 +40,8 @@
|
||||
class="input"
|
||||
type="number"
|
||||
maxlength="11"
|
||||
placeholder="12345678910"
|
||||
placeholder-style="color:#999;"
|
||||
placeholder="请填写收货手机号"
|
||||
placeholder-style="color:#b2b2b2;"
|
||||
/>
|
||||
</view>
|
||||
<view class="form-row">
|
||||
@@ -53,12 +55,12 @@
|
||||
@callback="onCityChange"
|
||||
/>
|
||||
</view>
|
||||
<text class="iconfont icon-dizhi locate-icon" @click="getCurAddressFn"></text>
|
||||
<image class="locate-icon" :src="`${webUrl}/home/dingwei.png`" mode="aspectFit" @click="getCurAddressFn"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="form-row no-border">
|
||||
<text class="label">详细地址</text>
|
||||
<input v-model="form.detail" class="input" placeholder="请填写具体地址" placeholder-style="color:#999;" />
|
||||
<input v-model="form.detail" class="input" placeholder="请填写具体地址" placeholder-style="color:#b2b2b2;" />
|
||||
</view>
|
||||
|
||||
<view class="analysis-box">
|
||||
@@ -87,7 +89,7 @@
|
||||
<view class="popup-panel auth-panel" @click.stop>
|
||||
<view class="popup-close" @click="closePopup">×</view>
|
||||
<view class="popup-icon-wrap">
|
||||
<text class="popup-icon">🪪</text>
|
||||
<image class="popup-realname-icon" :src="webUrl + '/home/shiming.png'" mode="aspectFit" />
|
||||
</view>
|
||||
<view class="popup-title">实名认证</view>
|
||||
<view class="popup-desc">根据平台活动规则,领取电子数码产品需要进行实名认证</view>
|
||||
@@ -101,7 +103,7 @@
|
||||
<view class="popup-panel success-panel" @click.stop>
|
||||
<view class="popup-close" @click="closePopup">×</view>
|
||||
<view class="popup-icon-wrap">
|
||||
<text class="popup-icon">🎉</text>
|
||||
<image class="popup-success-icon" :src="webUrl + '/home/qingzhu.png'" mode="aspectFit" />
|
||||
</view>
|
||||
<view class="popup-title">提交成功</view>
|
||||
<view class="popup-desc">奖品将在7个工作日内寄出</view>
|
||||
@@ -125,6 +127,7 @@ export default {
|
||||
components: { CitySelect },
|
||||
data() {
|
||||
return {
|
||||
webUrl: this.$VUE_APP_RESOURCES_URL,
|
||||
statusBarHeight: 20,
|
||||
district: [],
|
||||
addressText: '',
|
||||
@@ -139,12 +142,13 @@ export default {
|
||||
prizeName: '',
|
||||
prizeType: '',
|
||||
prizeTypeName: '',
|
||||
prizeImage: '',
|
||||
ticketCode: '',
|
||||
realName: '',
|
||||
phone: '',
|
||||
detail: ''
|
||||
},
|
||||
showRealnamePopup: true,
|
||||
showRealnamePopup: false,
|
||||
showSubmitSuccessPopup: false,
|
||||
userInfo: {},
|
||||
realnameStatus: 0,
|
||||
@@ -154,7 +158,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
prizeImage() {
|
||||
return 'https://img2.baidu.com/it/u=1255257059,3076495012&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=800'
|
||||
return this.form.prizeImage || ''
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
@@ -163,14 +167,17 @@ export default {
|
||||
this.form.prizeName = decodeURIComponent(options.prizeName || '')
|
||||
this.form.prizeType = decodeURIComponent(options.prizeType || '')
|
||||
this.form.prizeTypeName = decodeURIComponent(options.prizeTypeName || '')
|
||||
this.form.prizeImage = decodeURIComponent(options.prizeImage || '')
|
||||
this.form.ticketCode = decodeURIComponent(options.ticketCode || '')
|
||||
this.getCityList()
|
||||
this.fetchRealnameStatus()
|
||||
},
|
||||
onShow() {
|
||||
const done = uni.getStorageSync('countyClaimAuthDone')
|
||||
if (done && this.waitSubmitAfterRealname) {
|
||||
const needAutoSubmit = uni.getStorageSync('countyClaimNeedAutoSubmit')
|
||||
if (done && (this.waitSubmitAfterRealname || needAutoSubmit)) {
|
||||
uni.removeStorageSync('countyClaimAuthDone')
|
||||
uni.removeStorageSync('countyClaimNeedAutoSubmit')
|
||||
this.fetchRealnameStatus().then(() => {
|
||||
this.submitPhysicalClaim()
|
||||
})
|
||||
@@ -406,7 +413,7 @@ export default {
|
||||
<style scoped lang="less">
|
||||
.claim-page {
|
||||
min-height: 100vh;
|
||||
background: #f5f6f8;
|
||||
background: #F0F0F0;
|
||||
}
|
||||
|
||||
.custom-header {
|
||||
@@ -415,7 +422,6 @@ export default {
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 20;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.header-inner {
|
||||
@@ -480,9 +486,9 @@ export default {
|
||||
}
|
||||
|
||||
.section-title {
|
||||
color: #999;
|
||||
font-size: 26rpx;
|
||||
margin: 10rpx 4rpx 16rpx;
|
||||
color: #9b9b9b;
|
||||
font-size: 28rpx;
|
||||
margin-bottom: 18rpx;
|
||||
}
|
||||
|
||||
.card {
|
||||
@@ -492,14 +498,17 @@ export default {
|
||||
}
|
||||
|
||||
.prize-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 24rpx;
|
||||
}
|
||||
|
||||
.prize-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.prize-image-wrap {
|
||||
width: 140rpx;
|
||||
height: 140rpx;
|
||||
width: 182rpx;
|
||||
height: 182rpx;
|
||||
border-radius: 16rpx;
|
||||
border: 2rpx solid #f0f0f0;
|
||||
margin-right: 24rpx;
|
||||
@@ -520,28 +529,28 @@ export default {
|
||||
}
|
||||
|
||||
.prize-name {
|
||||
font-size: 32rpx;
|
||||
font-size: 30rpx;
|
||||
font-weight: 700;
|
||||
color: #333;
|
||||
color: #2f2f2f;
|
||||
margin-bottom: 12rpx;
|
||||
}
|
||||
|
||||
.prize-desc,
|
||||
.prize-code {
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
margin-top: 6rpx;
|
||||
font-size: 28rpx;
|
||||
color: #9c9c9c;
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
|
||||
.form-card {
|
||||
padding: 10rpx 24rpx 24rpx;
|
||||
padding: 0 24rpx 24rpx;
|
||||
}
|
||||
|
||||
.form-row {
|
||||
min-height: 100rpx;
|
||||
min-height: 92rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-bottom: 2rpx dashed #eee;
|
||||
border-bottom: 2rpx dashed #e5e5e5;
|
||||
}
|
||||
|
||||
.form-row.no-border {
|
||||
@@ -549,9 +558,10 @@ export default {
|
||||
}
|
||||
|
||||
.label {
|
||||
width: 150rpx;
|
||||
color: #333;
|
||||
width: 180rpx;
|
||||
color: #262626;
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.input {
|
||||
@@ -568,7 +578,7 @@ export default {
|
||||
|
||||
.city-select {
|
||||
flex: 1;
|
||||
color: #999;
|
||||
color: #b2b2b2;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
@@ -577,23 +587,24 @@ export default {
|
||||
}
|
||||
|
||||
.locate-icon {
|
||||
color: #666;
|
||||
font-size: 36rpx;
|
||||
width: 42rpx;
|
||||
height: 42rpx;
|
||||
margin-left: 20rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.analysis-box {
|
||||
background: #f8f8f8;
|
||||
border-radius: 16rpx;
|
||||
padding: 20rpx;
|
||||
margin-top: 10rpx;
|
||||
padding: 20rpx 20rpx 16rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.analysis-textarea {
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
height: 110rpx;
|
||||
color: #333;
|
||||
font-size: 26rpx;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
|
||||
.analysis-actions {
|
||||
@@ -612,7 +623,7 @@ export default {
|
||||
.btn-clear {
|
||||
color: #BD3124;
|
||||
border: 2rpx solid #BD3124;
|
||||
padding: 6rpx 28rpx;
|
||||
padding: 6rpx 32rpx;
|
||||
margin-right: 20rpx;
|
||||
background: transparent;
|
||||
}
|
||||
@@ -621,7 +632,7 @@ export default {
|
||||
color: #fff;
|
||||
background: #BD3124;
|
||||
border: 2rpx solid #BD3124;
|
||||
padding: 6rpx 30rpx;
|
||||
padding: 6rpx 32rpx;
|
||||
}
|
||||
|
||||
.btn-recognize.disabled {
|
||||
@@ -629,8 +640,8 @@ export default {
|
||||
}
|
||||
|
||||
.tips {
|
||||
color: #666;
|
||||
font-size: 22rpx;
|
||||
color: #2f2f2f;
|
||||
font-size: 24rpx;
|
||||
line-height: 1.5;
|
||||
margin: 20rpx 10rpx;
|
||||
}
|
||||
@@ -640,19 +651,19 @@ export default {
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: #f5f6f8;
|
||||
padding: 20rpx 40rpx calc(20rpx + env(safe-area-inset-bottom));
|
||||
padding: 24rpx 40rpx calc(30rpx + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
.submit-btn {
|
||||
height: 90rpx;
|
||||
border-radius: 45rpx;
|
||||
height: 92rpx;
|
||||
border-radius: 46rpx;
|
||||
background: #BD3124;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
line-height: 90rpx;
|
||||
font-size: 32rpx;
|
||||
font-weight: 500;
|
||||
line-height: 92rpx;
|
||||
font-size: 40rpx;
|
||||
font-weight: 700;
|
||||
letter-spacing: 18rpx;
|
||||
}
|
||||
|
||||
.popup-mask {
|
||||
@@ -667,26 +678,28 @@ export default {
|
||||
}
|
||||
|
||||
.popup-panel {
|
||||
width: 100%;
|
||||
width: 540rpx;
|
||||
height: 550rpx;
|
||||
background: #fff;
|
||||
border-radius: 24rpx;
|
||||
padding: 40rpx 32rpx 32rpx;
|
||||
padding: 40rpx 32rpx;
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.popup-title {
|
||||
text-align: center;
|
||||
color: #222;
|
||||
font-size: 34rpx;
|
||||
color: #333;
|
||||
font-size: 50rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.popup-desc {
|
||||
color: #666;
|
||||
font-size: 26rpx;
|
||||
font-size: 28rpx;
|
||||
line-height: 1.6;
|
||||
text-align: center;
|
||||
margin-top: 14rpx;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
|
||||
.popup-close {
|
||||
@@ -695,12 +708,13 @@ export default {
|
||||
top: 16rpx;
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
border: 2rpx solid #111;
|
||||
border: 4rpx solid #333;
|
||||
border-radius: 50%;
|
||||
font-size: 32rpx;
|
||||
line-height: 38rpx;
|
||||
text-align: center;
|
||||
color: #111;
|
||||
color: #333;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.popup-icon-wrap {
|
||||
@@ -712,11 +726,21 @@ export default {
|
||||
font-size: 54rpx;
|
||||
}
|
||||
|
||||
.popup-realname-icon {
|
||||
width: 92rpx;
|
||||
height: 92rpx;
|
||||
}
|
||||
|
||||
.popup-success-icon {
|
||||
width: 92rpx;
|
||||
height: 92rpx;
|
||||
}
|
||||
|
||||
.popup-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: 30rpx;
|
||||
margin-top: 120rpx;
|
||||
}
|
||||
|
||||
.popup-btn {
|
||||
|
||||
@@ -1,19 +1,17 @@
|
||||
<template>
|
||||
<view class="county-lottery-rules-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">
|
||||
<!-- <view class="right-dot"></view>
|
||||
<view class="right-ring"></view> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<view class="page-body" :style="{ paddingTop: `${statusBarHeight + 88}px` }">
|
||||
<view class="page-body" >
|
||||
<view class="rule-card">
|
||||
<view class="rule-content">
|
||||
<rich-text v-if="ruleContent" :nodes="ruleContent" />
|
||||
|
||||
@@ -45,24 +45,29 @@
|
||||
</view>
|
||||
|
||||
<view class="pool-wrap">
|
||||
<view class="pool-header">
|
||||
<view class="pool-title">奖品池 <text class="sub">/ prize pool</text></view>
|
||||
<view class="pool-header" style="background: linear-gradient(to bottom, #fff 50%, #CB302C 50%);">
|
||||
<view class="pool-title-wrap">
|
||||
<view class="pool-title">奖品池 <text class="sub">/ prize pool</text></view>
|
||||
</view>
|
||||
<view class="pool-desc">实付满{{ buyThresholdText }}元即可获得抽奖码,定时统一开奖</view>
|
||||
</view>
|
||||
<view class="pool-body">
|
||||
<swiper
|
||||
class="pool-swiper"
|
||||
:autoplay="prizeList.length > 3"
|
||||
:circular="prizeList.length > 3"
|
||||
:autoplay="prizeList.length > 1"
|
||||
:circular="prizeList.length > 1"
|
||||
:interval="3000"
|
||||
:duration="500"
|
||||
:display-multiple-items="prizeList.length >= 3 ? 3 : prizeList.length"
|
||||
previous-margin="220rpx"
|
||||
next-margin="220rpx"
|
||||
@change="onSwiperChange"
|
||||
v-if="prizeList.length"
|
||||
>
|
||||
<swiper-item v-for="(prize, gIndex) in prizeList" :key="gIndex">
|
||||
<view class="pool-list-group">
|
||||
<view
|
||||
class="pool-item"
|
||||
:class="{ 'is-active': currentSwiperIndex === gIndex }"
|
||||
style="margin: 0 auto;"
|
||||
>
|
||||
<view class="item-inner">
|
||||
@@ -82,8 +87,9 @@
|
||||
<view class="goods-section">
|
||||
<view class="goods-header-box">
|
||||
<view class="goods-title-pill">
|
||||
<text class="dot">·</text> 活动商品 <text class="dot">·</text>
|
||||
<view class="triangle"></view>
|
||||
<view style="background: #ffb611;
|
||||
padding: 8rpx 40rpx;
|
||||
border-radius: 40rpx;"><text class="dot">·</text> 活动商品 <text class="dot">·</text></view>
|
||||
</view>
|
||||
<view class="goods-sub">—— 购买即得抽奖码 ——</view>
|
||||
</view>
|
||||
@@ -147,7 +153,8 @@ export default {
|
||||
day: '--',
|
||||
time: '--:--:--'
|
||||
},
|
||||
countdownTimer: null
|
||||
countdownTimer: null,
|
||||
currentSwiperIndex: 0
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -300,6 +307,9 @@ export default {
|
||||
url: '/pages/home/index'
|
||||
})
|
||||
},
|
||||
onSwiperChange(e) {
|
||||
this.currentSwiperIndex = e.detail.current
|
||||
},
|
||||
goGoodsDetail(item) {
|
||||
if (!item.id) return
|
||||
uni.navigateTo({ url: `/pages/shop/GoodsCon/index?id=${item.id}&from=countyLottery&activityId=${this.activityId}` })
|
||||
@@ -488,12 +498,24 @@ export default {
|
||||
width: 44rpx;
|
||||
padding: 24rpx 0;
|
||||
text-align: center;
|
||||
border-radius: 24rpx 0 0 24rpx;
|
||||
border-radius: 24rpx 24rpx 0 24rpx;
|
||||
z-index: 10;
|
||||
writing-mode: vertical-rl;
|
||||
letter-spacing: 6rpx;
|
||||
font-weight: bold;
|
||||
box-shadow: -2rpx 2rpx 8rpx rgba(0, 0, 0, 0.1);
|
||||
line-height: 44rpx;
|
||||
&::after{
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -14rpx;
|
||||
right: 0; /* 修改为对齐右侧,以匹配侧边栏的布局 */
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-width: 14rpx 0 0 14rpx; /* 将三角形反转:顶部和左侧保留宽度,形成一个斜边向右下的直角三角形 */
|
||||
border-style: solid;
|
||||
border-color: #fff transparent transparent transparent; /* 顶部为白色 */
|
||||
}
|
||||
}
|
||||
|
||||
.side-entry.rules {
|
||||
@@ -508,7 +530,7 @@ export default {
|
||||
margin: 0 24rpx;
|
||||
background: #fff;
|
||||
border-radius: 40rpx;
|
||||
padding: 10rpx 10rpx 10rpx 30rpx;
|
||||
padding: 0rpx 0rpx 0rpx 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
@@ -538,7 +560,7 @@ export default {
|
||||
background: #3b7cf6;
|
||||
color: #fff;
|
||||
font-size: 24rpx;
|
||||
padding: 8rpx 20rpx;
|
||||
padding: 16rpx 20rpx;
|
||||
border-radius: 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -555,25 +577,30 @@ export default {
|
||||
.pool-wrap {
|
||||
margin: 24rpx;
|
||||
background: #cb302c;
|
||||
border-radius: 24rpx;
|
||||
border-radius: 40rpx;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
|
||||
|
||||
.pool-header {
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
|
||||
.pool-title-wrap{
|
||||
background: #CB302C;
|
||||
border-top-right-radius: 40rpx;
|
||||
position: relative;
|
||||
}
|
||||
.pool-title {
|
||||
background: #ffb611;
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
font-size: 34rpx;
|
||||
padding: 10rpx 24rpx;
|
||||
padding: 10rpx 14rpx;
|
||||
border-radius: 40rpx;
|
||||
margin: 20rpx 30rpx 20rpx 20rpx;
|
||||
margin: 10rpx;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
|
||||
position: relative;
|
||||
|
||||
.sub {
|
||||
font-size: 20rpx;
|
||||
font-weight: bold;
|
||||
@@ -598,20 +625,30 @@ export default {
|
||||
}
|
||||
|
||||
.pool-swiper {
|
||||
height: 250rpx;
|
||||
height: 310rpx; /* 增加高度防止放大后被裁剪,并留出阴影和标签的空间 */
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.pool-list-group {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.pool-item {
|
||||
width: 220rpx;
|
||||
margin-right: 32rpx;
|
||||
width: 220rpx; /* 恢复正常大小 */
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
transform: scale(0.85); /* 默认两侧缩小 */
|
||||
transition: transform 0.3s ease;
|
||||
|
||||
&.is-active {
|
||||
transform: scale(1.1); /* 当前项放大 */
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.item-inner {
|
||||
background: #fff;
|
||||
@@ -684,34 +721,37 @@ export default {
|
||||
|
||||
.goods-title-pill {
|
||||
position: absolute;
|
||||
top: -24rpx;
|
||||
top: -34rpx;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background: #ffb611;
|
||||
color: #333;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
padding: 8rpx 40rpx;
|
||||
border-radius: 40rpx;
|
||||
border: 6rpx solid #fff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
white-space: nowrap;
|
||||
box-shadow: 0 -6rpx 0 #CB302C;
|
||||
|
||||
.dot {
|
||||
margin: 0 8rpx;
|
||||
}
|
||||
|
||||
.triangle {
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -16rpx;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-left: 12rpx solid transparent;
|
||||
border-right: 12rpx solid transparent;
|
||||
border-top: 12rpx solid #ffb611;
|
||||
transform: translateX(-50%) rotate(-45deg);
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
border: 6rpx solid #fff;
|
||||
background: #ffb611;
|
||||
/* 为了不让这个三角形的边框跑到上方的背景前,可以设置层级或者利用边框隐藏等,目前看原来的效果是直接叠加在底下的。
|
||||
由于要模拟原本的 .triangle 元素层级,我们用 z-index: -1 把它垫在 pill 下面即可 */
|
||||
z-index: -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<view class="realname-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">
|
||||
@@ -11,11 +11,12 @@
|
||||
<view class="ring"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<view class="page-body" :style="{ paddingTop: `calc(${statusBarHeight}px + 88rpx)` }">
|
||||
<view class="page-body">
|
||||
<view class="body-title">请完善以下信息</view>
|
||||
<view class="body-desc">根据平台活动规则,领取电子数码产品需要进行实名认证</view>
|
||||
<view class="body-desc">根据平台活动规则,领取电子数码产品需要进行实名认。
|
||||
我们会对信息进行严格保密</view>
|
||||
|
||||
<view class="form-wrap">
|
||||
<view class="form-row">
|
||||
@@ -79,11 +80,30 @@ export default {
|
||||
icon: 'none'
|
||||
})
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
this.backToClaimPage()
|
||||
}, 300)
|
||||
}
|
||||
})
|
||||
},
|
||||
backToClaimPage() {
|
||||
const targetRoute = 'pkg-video/views/county-claim-address'
|
||||
const pages = getCurrentPages()
|
||||
const targetIndex = pages.findIndex(
|
||||
item =>
|
||||
item.route === targetRoute ||
|
||||
item.route === `/${targetRoute}`
|
||||
)
|
||||
if (targetIndex >= 0) {
|
||||
const delta = pages.length - 1 - targetIndex
|
||||
uni.navigateBack({
|
||||
delta: delta > 0 ? delta : 1
|
||||
})
|
||||
return
|
||||
}
|
||||
uni.redirectTo({
|
||||
url: '/pkg-video/views/county-claim-address'
|
||||
})
|
||||
},
|
||||
goBack() {
|
||||
uni.navigateBack()
|
||||
},
|
||||
@@ -121,7 +141,7 @@ export default {
|
||||
icon: 'success'
|
||||
})
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
this.backToClaimPage()
|
||||
}, 350)
|
||||
} catch (e) {
|
||||
uni.showToast({
|
||||
@@ -211,16 +231,20 @@ export default {
|
||||
}
|
||||
|
||||
.body-title {
|
||||
font-size: 44rpx;
|
||||
color: #111;
|
||||
font-size: 40rpx;
|
||||
color: #333;
|
||||
font-weight: 700;
|
||||
padding: 20rpx;
|
||||
}
|
||||
|
||||
.body-desc {
|
||||
margin-top: 12rpx;
|
||||
color: #666;
|
||||
font-size: 30rpx;
|
||||
font-size: 28rpx;
|
||||
line-height: 1.45;
|
||||
padding: 20rpx;
|
||||
background: rgba(244,244,244,0.39);
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
|
||||
.form-wrap {
|
||||
@@ -243,12 +267,12 @@ export default {
|
||||
.label {
|
||||
width: 150rpx;
|
||||
color: #333;
|
||||
font-size: 30rpx;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
|
||||
.input {
|
||||
flex: 1;
|
||||
font-size: 30rpx;
|
||||
font-size: 32rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
@@ -262,7 +286,6 @@ export default {
|
||||
}
|
||||
|
||||
.submit-btn {
|
||||
height: 88rpx;
|
||||
border-radius: 44rpx;
|
||||
background: #bd3124;
|
||||
color: #fff;
|
||||
@@ -270,6 +293,6 @@ export default {
|
||||
text-align: center;
|
||||
font-size: 38rpx;
|
||||
font-weight: 600;
|
||||
letter-spacing: 4rpx;
|
||||
letter-spacing: 14rpx;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<template>
|
||||
<view class="winners-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>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<view class="content-wrap" v-if="loaded">
|
||||
<view v-if="!showHistory" class="draw-info-wrap" :style="{ backgroundImage: `url(${webUrl}/zhongjiang5.png)` }">
|
||||
@@ -53,34 +53,53 @@
|
||||
<view class="draw-time" style="margin-top: 60rpx">开奖时间:{{ drawTime }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="win-banner" v-if="hasWon === 1 && userWinList.length > 0" :style="{ backgroundImage: `url(${webUrl}/zhongjiangn.png)` }">
|
||||
<view class="win-banner-subtitle">
|
||||
您的抽奖码 <text class="code">{{ userWinList[0].ticketCode }}</text> 获得了
|
||||
</view>
|
||||
|
||||
<view class="prize-card" v-for="(prize, index) in userWinList" :key="index">
|
||||
<view class="prize-img-wrap">
|
||||
<image class="prize-img" :src="prize.prizeImage" mode="aspectFill"></image>
|
||||
<view class="win-banner" v-if="hasWon === 1 && userWinList.length > 0">
|
||||
<view class="win-banner-bg-top" :style="{ backgroundImage: `url(${webUrl}/zhongjiangtop.png)` }"></view>
|
||||
<view class="win-banner-bg-bottom" :style="{ backgroundImage: `url(${webUrl}/zhongjiangbottom.png)` }"></view>
|
||||
<view class="win-banner-content">
|
||||
<view class="win-banner-subtitle">
|
||||
您的抽奖码 <text class="code">{{ userWinList[0].ticketCode }}</text> 获得了
|
||||
</view>
|
||||
<view class="prize-info">
|
||||
<view class="prize-name-wrap">
|
||||
<text class="prize-level">{{ prize.levelName }}:</text>
|
||||
<text class="prize-name">{{ prize.prizeName }}</text>
|
||||
|
||||
<view class="prize-card" v-for="(prize, index) in userWinList" :key="index">
|
||||
<view class="prize-img-wrap">
|
||||
<image class="prize-img" :src="prize.prizeImage" mode="aspectFill"></image>
|
||||
</view>
|
||||
<view class="prize-info">
|
||||
<view class="prize-name-wrap">
|
||||
<text class="prize-level">{{ prize.levelName }}:</text>
|
||||
<text class="prize-name">{{ prize.prizeName }}</text>
|
||||
</view>
|
||||
<view class="prize-desc">{{ prize.prizeDesc || "默认" }}</view>
|
||||
</view>
|
||||
<view class="prize-desc">{{ prize.prizeDesc || "默认" }}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<button class="my-tickets-btn" @click="handleClaimNow">
|
||||
<text class="btn-text">立即领取</text>
|
||||
</button>
|
||||
<view class="claim-tip">*请在7天内领取,过期失效</view>
|
||||
<button v-if="!showHistory" class="my-tickets-btn" @click="handleClaimNow">
|
||||
<text class="btn-text">立即领取</text>
|
||||
</button>
|
||||
<button v-if="showHistory" class="my-tickets-btn" @click="navToMyTickets">
|
||||
<text class="btn-text">我的抽奖码</text>
|
||||
</button>
|
||||
<view class="claim-tip">*请在7天内领取,过期失效</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 把半圆提出来,跟大卡片平级,并且放在大卡片前面,让大卡片的背景可以遮住它们的下半截 -->
|
||||
<view class="badge-side-wrap">
|
||||
<view class="badge-side left-side"></view>
|
||||
<view class="badge-side right-side"></view>
|
||||
</view>
|
||||
|
||||
<view class="winners-list-wrap">
|
||||
<view class="list-title-badge" :style="{ backgroundImage: `url(${webUrl}/zhongjiang6.png)` }">
|
||||
<text class="gift-icon" style="opacity: 0;">🎁</text>
|
||||
<text class="title-text" style="opacity: 0;">中奖名单</text>
|
||||
<view class="list-title-badge">
|
||||
<!-- 主图背景 -->
|
||||
<view class="badge-bg" :style="{ backgroundImage: `url(${webUrl}/zhongjiang6.png)` }"></view>
|
||||
|
||||
<!-- 内容区 -->
|
||||
<view class="badge-content">
|
||||
<text class="gift-icon" style="opacity: 0;">🎁</text>
|
||||
<text class="title-text" style="opacity: 0;">中奖名单</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="list-content">
|
||||
@@ -108,7 +127,7 @@
|
||||
<view class="coupon-popup" @click.stop>
|
||||
<view class="popup-close" @click="closeCouponSuccessPopup">×</view>
|
||||
<view class="popup-icon-wrap">
|
||||
<text class="popup-icon">🎉</text>
|
||||
<image class="popup-success-icon" :src="webUrl + '/home/qingzhu.png'" mode="aspectFit" />
|
||||
</view>
|
||||
<view class="popup-title">领取成功</view>
|
||||
<view class="popup-desc">您的奖品已经领取成功,请前往“我的优惠券”查看详情</view>
|
||||
@@ -229,9 +248,17 @@ export default {
|
||||
return prizeType === 3 || prize.prizeType === "coupon" || /券/.test(prizeName)
|
||||
},
|
||||
navToReceiveInfo(prize = {}) {
|
||||
const query = `?source=lottery&ticketCode=${encodeURIComponent(prize.ticketCode || "")}&prizeName=${encodeURIComponent(prize.prizeName || "")}`
|
||||
const query = [
|
||||
`source=lottery`,
|
||||
`lotteryRecordId=${encodeURIComponent(prize.lotteryRecordId || "")}`,
|
||||
`ticketCode=${encodeURIComponent(prize.ticketCode || "")}`,
|
||||
`prizeName=${encodeURIComponent(prize.prizeName || "")}`,
|
||||
`prizeType=${encodeURIComponent(prize.prizeType || "")}`,
|
||||
`prizeTypeName=${encodeURIComponent(prize.prizeTypeName || "")}`,
|
||||
`prizeImage=${encodeURIComponent(prize.prizeImage || "")}`
|
||||
].join("&")
|
||||
uni.navigateTo({
|
||||
url: `/pages/user/address/AddAddress/index${query}`
|
||||
url: `/pkg-video/views/county-claim-address?${query}`
|
||||
})
|
||||
},
|
||||
closeCouponSuccessPopup() {
|
||||
@@ -276,11 +303,13 @@ export default {
|
||||
},
|
||||
mapUserWinList(ticketList = []) {
|
||||
return ticketList.map(item => ({
|
||||
lotteryRecordId: item.id || item.lotteryRecordId || item.ticketId || item.recordId || "",
|
||||
levelName: item.levelName || item.prizeLevelName || "中奖奖品",
|
||||
prizeName: item.prizeName || item.awardName || "神秘奖品",
|
||||
prizeDesc: item.prizeDesc || item.remark || "默认",
|
||||
ticketCode: item.ticketCode || item.code || "--",
|
||||
prizeType: item.prizeType,
|
||||
prizeTypeName: item.prizeTypeName || item.prizeCategoryName || "",
|
||||
prizeImage: item.prizeImage || item.image || ""
|
||||
}))
|
||||
},
|
||||
@@ -318,6 +347,10 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.popup-success-icon {
|
||||
width: 92rpx;
|
||||
height: 92rpx;
|
||||
}
|
||||
.winners-page {
|
||||
min-height: 100vh;
|
||||
background: #f4f6f8;
|
||||
@@ -489,10 +522,35 @@ export default {
|
||||
text-align: center;
|
||||
margin-bottom: 62rpx;
|
||||
position: relative;
|
||||
background-size: 100%;
|
||||
background-repeat: no-repeat;
|
||||
background-color: transparent;
|
||||
|
||||
.win-banner-bg-top {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 120rpx; /* 根据顶部图实际比例微调 */
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.win-banner-bg-bottom {
|
||||
position: absolute;
|
||||
top: 118rpx; /* 让上下拼接处没有缝隙,可以覆盖 2rpx */
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.win-banner-content {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.win-badge {
|
||||
position: absolute;
|
||||
top: -34rpx;
|
||||
@@ -521,7 +579,7 @@ export default {
|
||||
font-size: 28rpx;
|
||||
color: #fff;
|
||||
margin-bottom: 20rpx;
|
||||
margin-top: 8rpx;
|
||||
margin-top: 50rpx;
|
||||
font-weight: 700;
|
||||
|
||||
.code {
|
||||
@@ -589,8 +647,10 @@ export default {
|
||||
}
|
||||
|
||||
.my-tickets-btn {
|
||||
background: linear-gradient(180deg, #ffd33d 0%, #ffb300 100%);
|
||||
border: 4rpx solid #1f1f1f;
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
border-radius: 48rpx;
|
||||
padding: 0;
|
||||
height: 90rpx;
|
||||
@@ -599,19 +659,21 @@ export default {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: inset 0 -8rpx 0 rgba(0, 0, 0, 0.12), 0 8rpx 0 #1f1f1f;
|
||||
|
||||
box-shadow: inset 0 -12rpx 0 #FAA100, inset 0 12rpx 0 #FAA100, inset -12rpx 0rpx 0rpx #FAA100, inset 12rpx 0rpx 0 #FAA100;
|
||||
transition: all 0.1s;
|
||||
background: #FDB400;
|
||||
|
||||
&:active {
|
||||
transform: translateY(4rpx);
|
||||
box-shadow: inset 0 -4rpx 0 rgba(0, 0, 0, 0.12), 0 4rpx 0 #1f1f1f;
|
||||
box-shadow: inset 0 -4rpx 0 #FAA100;
|
||||
}
|
||||
|
||||
.btn-text {
|
||||
font-size: 50rpx;
|
||||
font-size: 44rpx;
|
||||
font-weight: 900;
|
||||
color: #fff;
|
||||
text-shadow: -2rpx -2rpx 0 #1f1f1f, 2rpx -2rpx 0 #1f1f1f, -2rpx 2rpx 0 #1f1f1f, 2rpx 2rpx 0 #1f1f1f, 0 4rpx 0 #1f1f1f;
|
||||
color: #111;
|
||||
text-shadow: -2rpx -2rpx 0 #fff, 2rpx -2rpx 0 #fff, -2rpx 2rpx 0 #fff, 2rpx 2rpx 0 #fff, 0 2rpx 0 #fff;
|
||||
letter-spacing: 2rpx;
|
||||
}
|
||||
}
|
||||
@@ -624,11 +686,41 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
/* 新增:半圆挂在列表大卡片外部的相对容器上 */
|
||||
.badge-side-wrap {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 0; /* 占位 0,不影响后续流 */
|
||||
z-index: 1; /* 在 winners-list-wrap 之前,所以会被它的 z-index 盖住,或自然被后面元素盖住 */
|
||||
|
||||
.badge-side {
|
||||
position: absolute;
|
||||
top: -18rpx; /* 调整此值以对齐中奖名单背景的垂直中线 */
|
||||
width: 40rpx;
|
||||
height: 38rpx;
|
||||
background-color: #fdb400;
|
||||
border: 4rpx solid #111;
|
||||
}
|
||||
|
||||
.left-side {
|
||||
left: calc(50% - 160rpx); /* 根据主图 280rpx 宽算,一半140rpx,加上突出的 20rpx */
|
||||
border-radius: 40rpx 0 0 40rpx;
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.right-side {
|
||||
right: calc(50% - 160rpx);
|
||||
border-radius: 0 40rpx 40rpx 0;
|
||||
border-left: none;
|
||||
}
|
||||
}
|
||||
|
||||
.winners-list-wrap {
|
||||
background: #fff;
|
||||
border-radius: 28rpx;
|
||||
padding: 46rpx 24rpx 10rpx;
|
||||
position: relative;
|
||||
z-index: 2; /* 确保盖住上面的 badge-side-wrap */
|
||||
box-shadow: 0 5rpx 0 #e6e8ec;
|
||||
|
||||
.list-title-badge {
|
||||
@@ -638,20 +730,42 @@ export default {
|
||||
transform: translateX(-50%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 14rpx 34rpx;
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
background-color: transparent;
|
||||
justify-content: center;
|
||||
width: 280rpx; /* 根据实际标题框宽度设定,让它包裹住背景图 */
|
||||
height: 80rpx;
|
||||
z-index: 3;
|
||||
|
||||
.gift-icon {
|
||||
font-size: 28rpx;
|
||||
margin-right: 8rpx;
|
||||
/* 主背景图,层级2,盖住半圆的一部分 */
|
||||
.badge-bg {
|
||||
position: absolute;
|
||||
top: -5rpx;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.title-text {
|
||||
font-size: 34rpx;
|
||||
font-weight: 900;
|
||||
color: #222;
|
||||
/* 文字内容,层级3,位于最上层 */
|
||||
.badge-content {
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 34rpx;
|
||||
height: 100%;
|
||||
|
||||
.gift-icon {
|
||||
font-size: 28rpx;
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
|
||||
.title-text {
|
||||
font-size: 34rpx;
|
||||
font-weight: 900;
|
||||
color: #222;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -671,7 +785,7 @@ export default {
|
||||
flex: 1;
|
||||
|
||||
.item-prize {
|
||||
font-size: 36rpx;
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
margin-bottom: 8rpx;
|
||||
line-height: 1.25;
|
||||
@@ -686,7 +800,7 @@ export default {
|
||||
}
|
||||
|
||||
.item-code {
|
||||
font-size: 32rpx;
|
||||
font-size: 28rpx;
|
||||
color: #666;
|
||||
font-weight: 700;
|
||||
|
||||
@@ -702,14 +816,14 @@ export default {
|
||||
text-align: right;
|
||||
|
||||
.user-name {
|
||||
font-size: 32rpx;
|
||||
font-size: 28rpx;
|
||||
color: #666;
|
||||
font-weight: 700;
|
||||
margin-bottom: 8rpx;
|
||||
}
|
||||
|
||||
.user-phone {
|
||||
font-size: 30rpx;
|
||||
font-size: 28rpx;
|
||||
color: #999;
|
||||
font-weight: 600;
|
||||
}
|
||||
@@ -737,8 +851,8 @@ export default {
|
||||
}
|
||||
|
||||
.coupon-popup {
|
||||
width: 100%;
|
||||
max-width: 620rpx;
|
||||
width: 550rpx;
|
||||
height: 560rpx;
|
||||
background: #fff;
|
||||
border-radius: 32rpx;
|
||||
padding: 26rpx 34rpx 42rpx;
|
||||
@@ -752,7 +866,7 @@ export default {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
border-radius: 50%;
|
||||
border: 2rpx solid #333;
|
||||
border: 4rpx solid #333;
|
||||
font-size: 40rpx;
|
||||
font-weight: 700;
|
||||
color: #333;
|
||||
@@ -776,7 +890,7 @@ export default {
|
||||
|
||||
.popup-title {
|
||||
text-align: center;
|
||||
font-size: 60rpx;
|
||||
font-size: 50rpx;
|
||||
font-weight: 900;
|
||||
color: #222;
|
||||
margin-top: 12rpx;
|
||||
|
||||
Reference in New Issue
Block a user