|
@@ -300,7 +300,17 @@
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
- <view class="botton">
|
|
|
+ <view class="botton">
|
|
|
+ <view style=" display: flex;
|
|
|
+ justify-content: center;">
|
|
|
+ <u-checkbox-group >
|
|
|
+ <u-checkbox
|
|
|
+
|
|
|
+ v-model="contractSignTime"
|
|
|
+
|
|
|
+ >我已阅读并同意</u-checkbox><span style="color: rgba(0, 185, 98, 1);" @click="gotoUrl('pages/article/details?code=YHXY')">《优电联盟用户使用协议》</span>
|
|
|
+ </u-checkbox-group>
|
|
|
+ </view>
|
|
|
<button class="bottonBtn" @click="submit">开始充电</button>
|
|
|
|
|
|
</view>
|
|
@@ -445,6 +455,17 @@
|
|
|
|
|
|
</view>
|
|
|
</template>
|
|
|
+
|
|
|
+ <u-modal v-model="contractSignTimeBl"
|
|
|
+ :show-confirm-button="true" :show-title="false" :show-cancel-button="true"
|
|
|
+ cancel-text="放弃充电" confirm-text="同意并充电" @confirm="contractSignTimeSubmit()"
|
|
|
+ >
|
|
|
+ <view class="slot-content" style="padding:40rpx; text-align: center;margin-top: 10rpx;">
|
|
|
+ 我已阅读并同意<br/>
|
|
|
+ <span style="color: rgba(0, 185, 98, 1);" @click="gotoUrl('pages/article/details?code=YHXY')">《优电联盟用户使用协议》</span>
|
|
|
+ </view>
|
|
|
+ </u-modal>
|
|
|
+
|
|
|
<quickRegistration v-if="personInfo.userType == '1'" @login="loginMethod" :carNum="carNumber" ></quickRegistration>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -485,7 +506,9 @@
|
|
|
show: false,
|
|
|
moneyActiveClass_n: "50",
|
|
|
moneyActiveClass: "-1",
|
|
|
- moneyActiveClass_f: "-1",
|
|
|
+ moneyActiveClass_f: "-1",
|
|
|
+ contractSignTime:"",
|
|
|
+ contractSignTimeBl:false,
|
|
|
detail: {},
|
|
|
couponsuse: '',
|
|
|
showmodal: false,
|
|
@@ -1194,13 +1217,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
- }).catch(error => {
|
|
|
+ }).catch((error)=> {
|
|
|
+
|
|
|
uni.hideLoading()
|
|
|
if (error == '用户账户余额不足!') {
|
|
|
|
|
|
- } else {
|
|
|
- uni.showToast({
|
|
|
- title: error
|
|
|
+ } else {
|
|
|
+
|
|
|
+ // uni.showToast({
|
|
|
+ // title: error
|
|
|
+ // })
|
|
|
+ uni.showModal({
|
|
|
+ title: "提示",
|
|
|
+ content: error,
|
|
|
+ //showCancel: false,
|
|
|
+ confirmText: "首页>找桩",
|
|
|
+ success: res1 => {
|
|
|
+ if (res1.confirm) {
|
|
|
+ //this.alerttipsCk()
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/searchPile/searchPile'
|
|
|
+ })
|
|
|
+ } else if (res1.cancel) {
|
|
|
+ //('用户点击取消');
|
|
|
+ }
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -1235,7 +1276,7 @@
|
|
|
stationId: this.stationId
|
|
|
}).then((res2) => {
|
|
|
this.user = res2.data
|
|
|
-
|
|
|
+ this.contractSignTime=res2.data.regUser.contractSignTime
|
|
|
if(this.user.chargingFunds){
|
|
|
this.chargingFundsBl=true;
|
|
|
}
|
|
@@ -1332,11 +1373,32 @@
|
|
|
}
|
|
|
|
|
|
|
|
|
+ },
|
|
|
+ contractSignTimeSubmit(){
|
|
|
+ this.contractSignTime=true;
|
|
|
+ this.submit()
|
|
|
+ },
|
|
|
+ updateContractSignTime(){
|
|
|
+ if(this.user&&this.user.regUser&&!this.user.regUser.contractSignTime){
|
|
|
+ API.updateContractSignTime({
|
|
|
+ openId:this.carhelp.getOpenId()
|
|
|
+ }).then((res) => {
|
|
|
+
|
|
|
+ }).catch(error => {
|
|
|
+ uni.showToast({
|
|
|
+ title: error
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
},
|
|
|
submit() {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+ if(!this.contractSignTime){
|
|
|
+ this.contractSignTimeBl=true;
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
if (!this.submitForm.channelNo) {
|
|
|
uni.showToast({
|
|
|
title: '请先选择充电通道'
|
|
@@ -1350,7 +1412,7 @@
|
|
|
} else {
|
|
|
this.submitInit()
|
|
|
}
|
|
|
-
|
|
|
+ this.updateContractSignTime()
|
|
|
this.confirm()
|
|
|
|
|
|
|
|
@@ -1504,7 +1566,7 @@
|
|
|
|
|
|
.recharge {
|
|
|
padding: 32rpx;
|
|
|
- padding-bottom: 100px;
|
|
|
+ padding-bottom: 250rpx;
|
|
|
|
|
|
.title {
|
|
|
@include themeify {
|
|
@@ -1829,7 +1891,7 @@
|
|
|
|
|
|
button {
|
|
|
|
|
|
- margin-left: 40rpx;
|
|
|
+
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|