Feat:抽奖2.0(查漏补缺)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user