|
|
@@ -17,9 +17,9 @@
|
|
|
<view class="guarantee-item">
|
|
|
<view class="item-header">
|
|
|
<image src="/static/img/1-2.png" mode="widthFix" class="item-icon"></image>
|
|
|
- <text class="item-title">5天验</text>
|
|
|
+ <text class="item-title">{{ verifyPeriodLabel }}</text>
|
|
|
</view>
|
|
|
- <view class="item-desc">本单获得5天验资格,订单将在"到仓签收"后5天内验货完毕,未完成验货将获得3元补贴到余额,可随验货书款一起提现。</view>
|
|
|
+ <view class="item-desc">本单获得{{ verifyPeriodLabel }}资格,订单将在到仓签收后{{ verifyCompleteDays }}天内验货完毕,未完成验货将获得3元补贴到余额,可随验货书款一起提现。</view>
|
|
|
</view>
|
|
|
|
|
|
<!-- 极速打款 -->
|
|
|
@@ -48,6 +48,28 @@
|
|
|
|
|
|
<script>
|
|
|
export default {
|
|
|
+ props: {
|
|
|
+ verifyPeriodDays: {
|
|
|
+ type: [Number, String],
|
|
|
+ default: null,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ /** 结算时效展示:15/7 天验,未选默认 5 天验 */
|
|
|
+ verifyPeriodDisplayDays() {
|
|
|
+ const days = Number(this.verifyPeriodDays)
|
|
|
+ if (days === 15) return 15
|
|
|
+ if (days === 7) return 7
|
|
|
+ return 5
|
|
|
+ },
|
|
|
+ verifyPeriodLabel() {
|
|
|
+ return `${this.verifyPeriodDisplayDays}天验`
|
|
|
+ },
|
|
|
+ /** 验货完成时限:15 天验为 15 天内,7 天验或未选为 7 天内 */
|
|
|
+ verifyCompleteDays() {
|
|
|
+ return Number(this.verifyPeriodDays) === 15 ? 15 : 7
|
|
|
+ },
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
showPopup: false
|