|
|
|
|
@ -6,10 +6,9 @@
|
|
|
|
|
<view class="formSystem">
|
|
|
|
|
<view class="systemtop">
|
|
|
|
|
<view class="systemtitle">蟹太太提货系统</view>
|
|
|
|
|
<view class="systemtext">
|
|
|
|
|
<text>2024年提货已开放!</text>
|
|
|
|
|
<text>自2024年<text class="colorOrange">9月25日</text>起 至2024年<text
|
|
|
|
|
class="colorOrange">12月15日</text></text>
|
|
|
|
|
<view class="systemtext" v-if="showHelp">
|
|
|
|
|
<text style="width: 70%;margin: 0 auto;margin-top: 20rpx;">该产品于<text class="colorOrange">{{openDate}}</text>至<text
|
|
|
|
|
class="colorOrange">{{endDate}}</text>可提货</text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="formChange">
|
|
|
|
|
@ -54,7 +53,10 @@
|
|
|
|
|
trigger: 'change'
|
|
|
|
|
}]
|
|
|
|
|
},
|
|
|
|
|
dateFalse:'',
|
|
|
|
|
dateFalse:'',
|
|
|
|
|
showHelp:false,
|
|
|
|
|
openDate:'',
|
|
|
|
|
endDate:''
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
onLoad() {
|
|
|
|
|
@ -76,8 +78,15 @@
|
|
|
|
|
let today = this.$moment().format('YYYY-MM-DD')
|
|
|
|
|
console.log(today,open_date,this.$moment(today).isBefore(open_date))
|
|
|
|
|
if(open_date){
|
|
|
|
|
this.openDate = this.$moment(res.card.sku.open).format('YYYY年MM月DD日')
|
|
|
|
|
this.endDate = this.$moment(res.card.sku.end).format('YYYY年MM月DD日')
|
|
|
|
|
this.showHelp = true
|
|
|
|
|
if(this.$moment(today).isBefore(open_date)){
|
|
|
|
|
toast(this.dateFalse+',请于'+open_date+'再次提货',4000)
|
|
|
|
|
if(!isNull(res.card.sku.help)){
|
|
|
|
|
toast(res.card.sku.help,4000)
|
|
|
|
|
}else{
|
|
|
|
|
toast(this.dateFalse,4000)
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -143,7 +152,7 @@
|
|
|
|
|
.systemtop {
|
|
|
|
|
padding-top: 80rpx;
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding-bottom: 58rpx;
|
|
|
|
|
padding-bottom: 38rpx;
|
|
|
|
|
border-bottom: 1rpx dashed #a4a5a4;
|
|
|
|
|
position: relative;
|
|
|
|
|
margin-bottom: 80rpx;
|
|
|
|
|
@ -173,7 +182,7 @@
|
|
|
|
|
font-size: 36rpx;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
color: #b98b44;
|
|
|
|
|
margin-bottom: 25rpx;
|
|
|
|
|
/* margin-bottom: 25rpx; */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.systemtext text {
|
|
|
|
|
|