|
@@ -301,13 +301,52 @@ import {
|
|
|
},
|
|
|
carClick() {
|
|
|
if(this.carList.carNum != null) {
|
|
|
- if(this.userCardBool){
|
|
|
- this.monthlyCardBuy();
|
|
|
-
|
|
|
+ var date = '2022/08/01 00:00:00';
|
|
|
+ var now= new Date().getTime()
|
|
|
+ var datetime= new Date(date).getTime()
|
|
|
+
|
|
|
+
|
|
|
+ if(now<datetime){
|
|
|
+ //this.monthlyCardBuy();
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ confirmText:'修改车牌',
|
|
|
+ //showCancel:false,
|
|
|
+ content: '根据平台要求,8月1日后将暂停车牌号修改,修改请需要联系客服人员',
|
|
|
+ success: res => {
|
|
|
+ if (res.confirm) {
|
|
|
+ // uni.navigateTo({
|
|
|
+ // url: '/pages/monthlyCardActivity/monthlyCardBuy'
|
|
|
+ // })
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/user/car/carAdd?id=' + this.carList.id
|
|
|
+ })
|
|
|
+ } else if (res.cancel) {
|
|
|
+ //('用户点击取消');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
}else{
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/user/car/carAdd?id=' + this.carList.id
|
|
|
- })
|
|
|
+
|
|
|
+
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ //confirmText:'查看活动',
|
|
|
+ showCancel:false,
|
|
|
+ content: '车牌号码输入后暂时不可以修改,修改请需要联系客服人员',
|
|
|
+ success: res => {
|
|
|
+ if (res.confirm) {
|
|
|
+ // uni.navigateTo({
|
|
|
+ // url: '/pages/monthlyCardActivity/monthlyCardBuy'
|
|
|
+ // })
|
|
|
+
|
|
|
+ } else if (res.cancel) {
|
|
|
+ //('用户点击取消');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|