|
@@ -202,7 +202,102 @@
|
|
|
|
|
|
</view>
|
|
</view>
|
|
<view class="notice2">
|
|
<view class="notice2">
|
|
-
|
|
|
|
|
|
+ <view class="titleHead">适用充电站点</view>
|
|
|
|
+
|
|
|
|
+ <!-- 附近站点 -->
|
|
|
|
+ <view class="station" v-for="(stationData,i) in pageListGetObj.list" :key="i"
|
|
|
|
+ @click="gotoUrl('pages/searchPile/stationAndPile/stationDetails?id=' + stationData.id)">
|
|
|
|
+ <view class="head">
|
|
|
|
+ <view class="title oldTextjp" oldstyle="font-size: 20px;">
|
|
|
|
+ {{stationData.name}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="distance ">
|
|
|
|
+ <!-- <text class="iconfont" style="color:#666666"></text>{{stationData.distance!=null&&stationData.distance>0.1 ? stationData.distance.toFixed(1)+'公里':'小于100米'}} -->
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="sign" v-if="stationData.stationType==50">
|
|
|
|
+ {{stationData.address}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="sign" v-else>
|
|
|
|
+
|
|
|
|
+ <!-- -->
|
|
|
|
+ <view class="sign-1"
|
|
|
|
+ v-if="stationData.giveDiscount&&stationData.discountRatio&&stationData.discountRatio!=100">
|
|
|
|
+ 会员服务费{{discountRatio10(stationData.discountRatio)}}折</view>
|
|
|
|
+ <view class="sign-3" v-if="stationData.category=='超充'">160kW超充站</view>
|
|
|
|
+ <view class="sign-4"
|
|
|
|
+ v-if="stationData.nightLowPriceEnabled">
|
|
|
|
+ 夜间超低价</view>
|
|
|
|
+ <view class="sign-2" v-if="stationData.platformType==1">自营站</view>
|
|
|
|
+ <view class="sign-2" v-if="stationData.tagList.length != 0"
|
|
|
|
+ v-for="(tagName,tagIndex) in stationData.tagList" :key="tagIndex">{{tagName}}</view>
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+ <view class="price-free oldTextClass">
|
|
|
|
+ <view class="price" v-if="userInfo&&userInfo.userType==2">
|
|
|
|
+ <view class="price-1">
|
|
|
|
+ <text class="num">
|
|
|
|
+ {{!stationData.giveDiscount ? (stationData.electricityPrice+stationData.servicePrice).toFixed(2)
|
|
|
|
+ : (stationData.electricityPrice+stationData.discountServicePrice).toFixed(2)}}</text>
|
|
|
|
+ <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="price-2 " oldstyle="font-size: 48rpx;" v-if="stationData.giveDiscount">
|
|
|
|
+ <text
|
|
|
|
+ class="num">{{(stationData.electricityPrice+stationData.servicePrice).toFixed(2)}}</text>
|
|
|
|
+ <text class="unit ">元/度</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <!-- 游客价格-->
|
|
|
|
+ <view class="price" v-else>
|
|
|
|
+ <view class="price-1">
|
|
|
|
+ <text class="num">
|
|
|
|
+ {{(stationData.electricityPrice+stationData.servicePrice).toFixed(2)}}</text>
|
|
|
|
+ <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="price-3 " oldstyle="font-size: 48rpx;" v-if="stationData.giveDiscount">
|
|
|
|
+ <text class="num1">会员</text>
|
|
|
|
+ <text class="num">{{ (stationData.electricityPrice+stationData.discountServicePrice).toFixed(2)}}</text>
|
|
|
|
+ <text class="unit ">元/度</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <view class="free">
|
|
|
|
+
|
|
|
|
+ <view class="fast" v-if="stationData.fastNum">
|
|
|
|
+ <view class="fast-font">
|
|
|
|
+ 快
|
|
|
|
+ </view>
|
|
|
|
+ <view class="num">
|
|
|
|
+ {{stationData.fastAvailableNum}}/{{stationData.fastNum}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="slow oldTextjp2" oldstyle="margin-left: 1px;" v-if="stationData.slowNum">
|
|
|
|
+ <view class="slow-font">
|
|
|
|
+ 慢
|
|
|
|
+ </view>
|
|
|
|
+ <view class="num">
|
|
|
|
+ {{stationData.slowAvailableNum}}/{{stationData.slowNum}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="bottom" @click="getPageList(true)"
|
|
|
|
+ v-if="pageListGetObj.recordsTotal!=pageListGetObj.list.length">
|
|
|
|
+ <view class="bot">
|
|
|
|
+ <view class="bot-line"></view>
|
|
|
|
+ <view class="bot-text " style="color: #00B962;text-align: center;margin-top: 10px">
|
|
|
|
+ 点击查看更多(共{{pageListGetObj.recordsTotal}}站点)</view>
|
|
|
|
+ <view class="bot-line"></view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="bottom" v-else>
|
|
|
|
+ <view class="bot">
|
|
|
|
+ <view class="bot-line"></view>
|
|
|
|
+ <view class="bot-text " style="color: #00B962;text-align: center;margin-top: 10px;">已经到底了</view>
|
|
|
|
+ <view class="bot-line"></view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
|
|
<view class="upupupView" v-show="flag==1">
|
|
<view class="upupupView" v-show="flag==1">
|
|
<view class="upupupImg">
|
|
<view class="upupupImg">
|
|
@@ -213,17 +308,13 @@
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
- <!-- 按钮 -->
|
|
|
|
- <view class="button" >
|
|
|
|
- <button class="btn " v-if="ispay"> {{userCard&&ispay?userCard.endTime:''}}到期
|
|
|
|
- </button>
|
|
|
|
- <button class="btn " v-else >
|
|
|
|
- 暂停购买
|
|
|
|
- </button>
|
|
|
|
- </view>
|
|
|
|
- <view class="button" v-if="false&&!ispay" >
|
|
|
|
-
|
|
|
|
- <button class="btn " v-if="userInfo.userType=='1'">游客无法购买
|
|
|
|
|
|
+ <!-- 按钮 -->
|
|
|
|
+ <view class="button" v-if="!ispay">
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <button class="btn " v-if="userCard&&userCard.classify==2">已购买其他卡
|
|
|
|
+ </button>
|
|
|
|
+ <button class="btn " v-else-if="userInfo.userType=='1'">游客无法购买月卡
|
|
</button>
|
|
</button>
|
|
<button class="btn " v-else-if="!isReady">加载中
|
|
<button class="btn " v-else-if="!isReady">加载中
|
|
</button>
|
|
</button>
|
|
@@ -347,17 +438,8 @@
|
|
this.consumerPhone = consumerPhone
|
|
this.consumerPhone = consumerPhone
|
|
}
|
|
}
|
|
|
|
|
|
- this.ykgz = this.carhelp.getConfig().ykgz
|
|
|
|
-
|
|
|
|
- var userCard = this.carhelp.getPersonInfoPlus().userCard
|
|
|
|
- if(userCard&&userCard.classify==1){
|
|
|
|
- this.userCard=userCard
|
|
|
|
- this.ispay = this.userCardBool(this.userCard)
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- //this.checkSubscribe()
|
|
|
|
- this.getCardList();
|
|
|
|
|
|
+ this.ykgz = this.carhelp.getConfig().ykgz
|
|
|
|
+ //this.checkSubscribe()
|
|
|
|
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
@@ -482,8 +564,7 @@
|
|
window.location.href = url
|
|
window.location.href = url
|
|
|
|
|
|
},
|
|
},
|
|
- checkSubscribe() {
|
|
|
|
- return
|
|
|
|
|
|
+ checkSubscribe() {
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: "加载中",
|
|
title: "加载中",
|
|
mask: true,
|
|
mask: true,
|
|
@@ -514,7 +595,7 @@
|
|
userCardBool(userCard) {
|
|
userCardBool(userCard) {
|
|
|
|
|
|
|
|
|
|
- if (userCard) {
|
|
|
|
|
|
+ if (userCard&&userCard.classify==1) {
|
|
var date = new Date().getTime()
|
|
var date = new Date().getTime()
|
|
var date2 = newDate(userCard.endTime).getTime();
|
|
var date2 = newDate(userCard.endTime).getTime();
|
|
if (date < date2) {
|
|
if (date < date2) {
|
|
@@ -529,9 +610,9 @@
|
|
mask: true,
|
|
mask: true,
|
|
})
|
|
})
|
|
API.cardList({
|
|
API.cardList({
|
|
- type:1
|
|
|
|
|
|
+
|
|
}).then((response) => {
|
|
}).then((response) => {
|
|
- uni.hideLoading()
|
|
|
|
|
|
+
|
|
this.cardList = response.data.cardList;
|
|
this.cardList = response.data.cardList;
|
|
|
|
|
|
for (var i in this.cardList) {
|
|
for (var i in this.cardList) {
|
|
@@ -579,7 +660,7 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getPageList(bl) {
|
|
getPageList(bl) {
|
|
- return
|
|
|
|
|
|
+
|
|
var cardId = this.cardId
|
|
var cardId = this.cardId
|
|
if (this.ispay) {
|
|
if (this.ispay) {
|
|
cardId = this.userCard.rentCardId;
|
|
cardId = this.userCard.rentCardId;
|
|
@@ -633,8 +714,7 @@
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- getUserInfo() {
|
|
|
|
- return
|
|
|
|
|
|
+ getUserInfo() {
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: "加载中",
|
|
title: "加载中",
|
|
mask: true,
|
|
mask: true,
|
|
@@ -665,7 +745,7 @@
|
|
|
|
|
|
var userCard = res.data.userCard;
|
|
var userCard = res.data.userCard;
|
|
this.userCard = userCard
|
|
this.userCard = userCard
|
|
- //this.ispay = this.userCardBool(userCard)
|
|
|
|
|
|
+ this.ispay = this.userCardBool(userCard)
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
|
|