|
@@ -1,84 +1,80 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <u-popup v-model="showPopup" mode="center" border-radius="24" width="650rpx" bgColor="transparent">
|
|
|
|
|
|
|
+ <custom-popup
|
|
|
|
|
+ v-model="showPopup"
|
|
|
|
|
+ mode="center"
|
|
|
|
|
+ border-radius="24"
|
|
|
|
|
+ width="650rpx"
|
|
|
|
|
+ :bg-color="'transparent'"
|
|
|
|
|
+ >
|
|
|
<view class="popup-container">
|
|
<view class="popup-container">
|
|
|
- <image src="/static/img/activity/bg2.png" class="bg-img"></image>
|
|
|
|
|
- <view
|
|
|
|
|
- class="content-container"
|
|
|
|
|
- hover-class="none"
|
|
|
|
|
- hover-stop-propagation="false"
|
|
|
|
|
- >
|
|
|
|
|
- <!-- 顶部黄色手掌图标和标题 -->
|
|
|
|
|
- <view class="header">
|
|
|
|
|
- <!-- <image src="/static/img/activity/hand.png" class="hand-icon"></image> -->
|
|
|
|
|
- <view class="title-text">你真的太幸运了</view>
|
|
|
|
|
- <view class="title-text">恭喜你获得限时加价权益</view>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <!-- 顶部黄色手掌图标和标题 -->
|
|
|
|
|
+ <view class="header">
|
|
|
|
|
+ <!-- <image src="/static/img/activity/hand.png" class="hand-icon"></image> -->
|
|
|
|
|
+ <view class="title-text">你真的太幸运了</view>
|
|
|
|
|
+ <view class="title-text">恭喜你获得限时加价权益</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
- <!-- 绿色价格信息区域 -->
|
|
|
|
|
- <view class="price-section">
|
|
|
|
|
- <view class="price-row">
|
|
|
|
|
- <text class="price-label">此书预估书款</text>
|
|
|
|
|
- <text class="price-value">¥ {{ bookInfo.recyclePrice }}</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="price-row">
|
|
|
|
|
- <text class="price-label">助力成功提升至</text>
|
|
|
|
|
- <text class="price-value increased">¥ {{ upselledMoney }}</text>
|
|
|
|
|
- <image
|
|
|
|
|
- class="up-icon"
|
|
|
|
|
- src="/static/img/activity/up2.png"
|
|
|
|
|
- mode="widthFix"
|
|
|
|
|
- ></image>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="small-text"
|
|
|
|
|
- >实际金额以最终审核书款为准,活动时间3/25至4/30</view
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <!-- 绿色价格信息区域 -->
|
|
|
|
|
+ <view class="price-section">
|
|
|
|
|
+ <view class="price-row">
|
|
|
|
|
+ <text class="price-label">此书预估书款</text>
|
|
|
|
|
+ <text class="price-value">¥ {{ bookInfo.recyclePrice }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
- <!-- 分享助力区域 -->
|
|
|
|
|
- <view class="share-section">
|
|
|
|
|
- <view class="share-text">分享一位好友助力</view>
|
|
|
|
|
- <view class="add-button">
|
|
|
|
|
- <image
|
|
|
|
|
- class="hand-icon"
|
|
|
|
|
- src="/static/img/activity/invite.png"
|
|
|
|
|
- mode="widthFix"
|
|
|
|
|
- ></image>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="price-row">
|
|
|
|
|
+ <text class="price-label">助力成功提升至</text>
|
|
|
|
|
+ <text class="price-value increased">¥ {{ upselledMoney }}</text>
|
|
|
|
|
+ <image
|
|
|
|
|
+ class="up-icon"
|
|
|
|
|
+ src="/static/img/activity/up2.png"
|
|
|
|
|
+ mode="widthFix"
|
|
|
|
|
+ ></image>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="small-text"
|
|
|
|
|
+ >实际金额以最终审核书款为准,活动时间3/25至4/30</view
|
|
|
|
|
+ >
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
- <!-- 分享按钮 -->
|
|
|
|
|
- <view class="action-buttons">
|
|
|
|
|
- <u-button
|
|
|
|
|
- type="primary"
|
|
|
|
|
- class="share-button"
|
|
|
|
|
- @click="shareAction"
|
|
|
|
|
- open-type="share"
|
|
|
|
|
- >立即分享</u-button
|
|
|
|
|
- >
|
|
|
|
|
- <u-button
|
|
|
|
|
- :custom-style="{
|
|
|
|
|
- marginTop: '20rpx',
|
|
|
|
|
- color: '#09bb07',
|
|
|
|
|
- borderColor: '#09bb07',
|
|
|
|
|
- }"
|
|
|
|
|
- plain
|
|
|
|
|
- class="scan-button"
|
|
|
|
|
- @click="scanAction"
|
|
|
|
|
- >扫码助力</u-button
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <!-- 分享助力区域 -->
|
|
|
|
|
+ <view class="share-section">
|
|
|
|
|
+ <view class="share-text">分享一位好友助力</view>
|
|
|
|
|
+ <view class="add-button">
|
|
|
|
|
+ <image
|
|
|
|
|
+ class="hand-icon"
|
|
|
|
|
+ src="/static/img/activity/invite.png"
|
|
|
|
|
+ mode="widthFix"
|
|
|
|
|
+ ></image>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
+ <!-- 分享按钮 -->
|
|
|
|
|
+ <view class="action-buttons">
|
|
|
|
|
+ <button
|
|
|
|
|
+ class="share-button"
|
|
|
|
|
+ @click="shareAction"
|
|
|
|
|
+ open-type="share"
|
|
|
|
|
+ >立即分享</button
|
|
|
|
|
+ >
|
|
|
|
|
+ <button
|
|
|
|
|
+ class="scan-button"
|
|
|
|
|
+ @click="scanAction"
|
|
|
|
|
+ >扫码助力</button
|
|
|
|
|
+ >
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
<!-- 关闭按钮 -->
|
|
<!-- 关闭按钮 -->
|
|
|
<view class="close-button" @click="closePopup">
|
|
<view class="close-button" @click="closePopup">
|
|
|
<image src="/static/img/activity/close2.png" mode="widthFix"></image>
|
|
<image src="/static/img/activity/close2.png" mode="widthFix"></image>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- </u-popup>
|
|
|
|
|
|
|
+ </custom-popup>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+import customPopup from '../../../components/custom-popup.vue';
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+ components: {
|
|
|
|
|
+ customPopup,
|
|
|
|
|
+ },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
showPopup: false,
|
|
showPopup: false,
|
|
@@ -87,7 +83,9 @@ export default {
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
upselledMoney() {
|
|
upselledMoney() {
|
|
|
- return (this.bookInfo.recyclePrice + this.bookInfo.upsellMoney).toFixed(2);
|
|
|
|
|
|
|
+ return (this.bookInfo.recyclePrice + this.bookInfo.upsellMoney).toFixed(
|
|
|
|
|
+ 2
|
|
|
|
|
+ );
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -114,19 +112,9 @@ export default {
|
|
|
padding: 30rpx;
|
|
padding: 30rpx;
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
padding-bottom: 50rpx;
|
|
padding-bottom: 50rpx;
|
|
|
- .bg-img {
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- top: -0;
|
|
|
|
|
- left: 0;
|
|
|
|
|
- width: 100%;
|
|
|
|
|
- height: 100%;
|
|
|
|
|
- z-index: 0;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .content-container {
|
|
|
|
|
- position: relative;
|
|
|
|
|
- z-index: 1;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ background: url("https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/bg2.png")
|
|
|
|
|
+ no-repeat center center;
|
|
|
|
|
+ background-size: 100% 100%;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.header {
|
|
.header {
|
|
@@ -134,6 +122,7 @@ export default {
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
padding: 20rpx 0 10rpx;
|
|
padding: 20rpx 0 10rpx;
|
|
|
|
|
+ padding-top: 160rpx;
|
|
|
|
|
|
|
|
.title-text {
|
|
.title-text {
|
|
|
font-size: 38rpx;
|
|
font-size: 38rpx;
|
|
@@ -156,7 +145,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.price-section {
|
|
.price-section {
|
|
|
- background-color: #09bb07;
|
|
|
|
|
|
|
+ background-color: #39c248;
|
|
|
border-radius: 16rpx;
|
|
border-radius: 16rpx;
|
|
|
padding: 20rpx 30rpx;
|
|
padding: 20rpx 30rpx;
|
|
|
margin: 20rpx 0;
|
|
margin: 20rpx 0;
|
|
@@ -202,7 +191,7 @@ export default {
|
|
|
margin: 20rpx 0;
|
|
margin: 20rpx 0;
|
|
|
|
|
|
|
|
.share-text {
|
|
.share-text {
|
|
|
- color: #09bb07;
|
|
|
|
|
|
|
+ color: #39c248;
|
|
|
font-size: 32rpx;
|
|
font-size: 32rpx;
|
|
|
text-align: center;
|
|
text-align: center;
|
|
|
margin-bottom: 30rpx;
|
|
margin-bottom: 30rpx;
|
|
@@ -226,15 +215,25 @@ export default {
|
|
|
|
|
|
|
|
.share-button {
|
|
.share-button {
|
|
|
height: 90rpx;
|
|
height: 90rpx;
|
|
|
- background-color: #09bb07 !important;
|
|
|
|
|
- border-color: #09bb07 !important;
|
|
|
|
|
- margin-bottom: 40rpx;
|
|
|
|
|
|
|
+ background: linear-gradient(to bottom, #47d46c, #24ad3c) !important;
|
|
|
|
|
+ margin-bottom: 24rpx;
|
|
|
font-size: 32rpx;
|
|
font-size: 32rpx;
|
|
|
|
|
+ color: #ffffff;
|
|
|
|
|
+ border-radius: 10rpx;
|
|
|
|
|
+ line-height: 90rpx;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.scan-button {
|
|
.scan-button {
|
|
|
height: 90rpx;
|
|
height: 90rpx;
|
|
|
font-size: 32rpx;
|
|
font-size: 32rpx;
|
|
|
|
|
+ color: #39c248;
|
|
|
|
|
+ border: 1rpx solid #39c248;
|
|
|
|
|
+ background-color: transparent;
|
|
|
|
|
+ border-radius: 10rpx;
|
|
|
|
|
+ line-height: 90rpx;
|
|
|
|
|
+ }
|
|
|
|
|
+ button+button{
|
|
|
|
|
+ margin-left: 0;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|