|
@@ -73,6 +73,8 @@
|
|
|
<view class="iconfont tittle-font" @click="show = true">
|
|
|

|
|
|
</view>
|
|
|
+
|
|
|
+
|
|
|
|
|
|
<view class="progress-bar">
|
|
|
<u-circle-progress width="440" active-color="green" :percent="percent?percent:percentValue" border-width="50">
|
|
@@ -181,10 +183,24 @@
|
|
|
shape="circle" >结束充电</u-button>
|
|
|
</view>
|
|
|
|
|
|
- <u-modal v-model="show" @confirm="confirmPhone" :confirm-text="confirmText" confirm-color="#606266"
|
|
|
+ <u-modal v-model="show" @confirm="confirmPhone"
|
|
|
+ :confirm-text="confirmText" confirm-color="#606266"
|
|
|
:show-cancel-button="true" ref="uModal" :asyncClose="true" :title="title" :content="consumerPhone">
|
|
|
+ </u-modal>
|
|
|
+
|
|
|
+ <u-modal v-model="show2" @confirm="gotoGz"
|
|
|
+ cancel-text="暂不关注" @cancel="cancelGz"
|
|
|
+ confirm-text="前往关注"
|
|
|
+
|
|
|
+ confirm-color="#53b56b"
|
|
|
+ :show-cancel-button="true"
|
|
|
+ ref="uModal2" :asyncClose="true"
|
|
|
+ >
|
|
|
+ <view style="padding: 15px;"
|
|
|
+
|
|
|
+ >请关注<span style=" color: #53b56b;">{{projectName}}</span>公众号,以便第一时间收到充电结束消息提醒</view>
|
|
|
</u-modal>
|
|
|
-
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -211,11 +227,15 @@
|
|
|
chargingGun: {},
|
|
|
chargingRecord: {},
|
|
|
show: false,
|
|
|
+ show2: false,
|
|
|
isReady:true,
|
|
|
- waitNum:'',
|
|
|
+ waitNum:'',
|
|
|
+ projectName:"",
|
|
|
}
|
|
|
},
|
|
|
- onLoad(op) {
|
|
|
+ onLoad(op) {
|
|
|
+ this.projectName=process.car.ProjectName;
|
|
|
+
|
|
|
if (op.id) {
|
|
|
this.id = op.id;
|
|
|
this.init()
|
|
@@ -225,7 +245,8 @@
|
|
|
// img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
|
|
|
if (consumerPhone) {
|
|
|
this.consumerPhone = consumerPhone
|
|
|
- }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
},
|
|
|
onUnload() {
|
|
@@ -235,6 +256,15 @@
|
|
|
this.addpercent()
|
|
|
},
|
|
|
methods: {
|
|
|
+ cancelGz(){
|
|
|
+ this.carhelp.setGzDate()
|
|
|
+ },
|
|
|
+ gotoGz(){
|
|
|
+ this.carhelp.setGzDate()
|
|
|
+ var url="https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=Mzg4Njc5ODEyMw==#wechat_redirect";
|
|
|
+ window.location.href=url
|
|
|
+
|
|
|
+ },
|
|
|
gotoMain(i){
|
|
|
if(i==0){
|
|
|
uni.reLaunch({
|
|
@@ -338,6 +368,11 @@
|
|
|
}else if(this.chargingGun.gunType==2){
|
|
|
//交流
|
|
|
}
|
|
|
+ if (this.chargingRecord.status == 1) {
|
|
|
+ if(this.carhelp.getGzDate()){
|
|
|
+ this.show2=true;
|
|
|
+ }
|
|
|
+ }
|
|
|
if(this.isReady&&this.chargingRecord.status!=2){
|
|
|
var time=500;
|
|
|
if(this.chargingRecord.status==0){
|