Explorar o código

新用户扫码

zhengkaixin %!s(int64=3) %!d(string=hai) anos
pai
achega
b1636a451f

+ 4 - 0
pages/login/login.vue

@@ -83,8 +83,12 @@
 					if(str2 == 'A') {
 						this.code = str2;
 						this.codeId = str3;
+						uni.showToast({
+							title:"注册后享受充电服务"
+						})
 					}
 				} 
+				
 			}
 		},
 		methods: {

+ 6 - 3
pages/searchPile/chargeProcess/charge.vue

@@ -1,6 +1,6 @@
 <template>
 	<view>
-		<u-navbar title="充电"></u-navbar>
+		<u-navbar title="充电"  :is-back="isback" ></u-navbar>
 		<view class="recharge" >
 			<view class="title">请选择充电金额</view>
 			<p>当前余额¥{{user.balance}}</p>
@@ -76,7 +76,8 @@
 
 	export default {
 		data() {
-			return {
+			return {
+				isback:true,
 				moneyActiveClass: "5",
 				detail: {},
 				//提交信息
@@ -136,7 +137,9 @@
 				this.submitForm.carNumber = op.carNumber;
 				this.carhelp.setGunIdCharge(this.submitForm);
 			}
-
+			if(op.isback){
+				this.isback=false;
+			}
 
 		},
 		onShow() {

+ 46 - 12
pages/searchPile/stationAndPile/chargingPileDetails.vue

@@ -3,7 +3,8 @@
 		<u-navbar title="充电桩详情" :is-back="false" ></u-navbar>
 
 		<!-- 充电桩信息 -->
-		<view class="main">
+		<view class="main">
+			
 			<view class="main-detail">
 				<view class="detail-name">
 					充电桩编号
@@ -27,9 +28,28 @@
 					充电功率
 				</view>
 				<view class="detail-content" style="font-weight: 900;">{{detail.chargingPower/1000}}kW</view>
+			</view>
+			<!-- 收费标准 -->
+			<view class="rates">
+				<view class="rates-title">
+					<view class="title-left">
+						默认车牌号
+					</view>
+					<view class="title-right" v-if="car">
+						{{car.carNum}}
+					</view>
+					<view class="title-right" v-else>
+						<view style="color:#00b962"  @click="carDet">点击绑定</view>
+					</view>
+				</view>
+				
+				<view style="padding: 15px;" >
+					{{content}}
+ 				</view>
+				
 			</view>
 			<!-- 收费标准 -->
-			<view class="rates">
+			<view class="rates ">
 				<view class="rates-title">
 					<view class="title-left">
 						收费标准
@@ -60,12 +80,12 @@
 
 					</view>
 				</view>
-
+				
 			</view>
 
-			<!-- 提示 -->
-			<view class="tips">
-				<u-alert-tips size="12" :show-icon="true"  type="warning" :description="description"></u-alert-tips>
+			<!-- 提示 -->
+			<view class="tips ratesbottom ">
+				<u-alert-tips size="12" :show-icon="true"  type="warning" :description="description"></u-alert-tips>
 			</view>
 		</view>
 		<!-- 底部按钮 -->
@@ -88,7 +108,8 @@
 				id: "",
 				car: {},
 				gun: {},
-				prices: {},
+				prices: {},
+				content:"",
 				detail: {
 					no: '',
 					interface: '',
@@ -114,7 +135,11 @@
 			}
 		},
 		onReady() {
-
+			var  carDet=this.carhelp.getConfig().carDet
+						// img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"		
+						if(carDet){
+							this.content=carDet
+						}
 		},
 		onShow() {
 			uni.hideToast();
@@ -124,14 +149,20 @@
 			}
 
 		},
-		methods: {
+		methods: {
+			carDet(){
+				this.onShowRole = true
+				uni.navigateTo({
+					url: "/pages/user/car/carDet?jpcode=jp_team51_charge_id:A_" +  this.id
+				})
+			},
 			role() {
 				uni.hideToast();
 				console.log(1)
 				var id = this.id;
 				var info = this.carhelp.getPersonInfo();
 				if (info) {
-					if (this.car == null) {
+					if (false&&this.car == null) {
 						uni.showModal({
 							content: "需要绑定车辆后扫码充电",
 							confirmText: "前往绑定",
@@ -196,7 +227,7 @@
 				this.role()
 				if(this.isReady){
 					uni.navigateTo({
-						url:'/pages/searchPile/chargeProcess/charge?deviceNo='+this.detail.deviceNo+"&gun="+this.gun.channelNo+"&carNumber="+this.car.carNum
+						url:'/pages/searchPile/chargeProcess/charge?deviceNo='+this.detail.deviceNo+"&gun="+this.gun.channelNo+"&carNumber="+(this.car?this.car.carNum:'')
 					})
 				}
 				
@@ -207,7 +238,10 @@
 </script>
 
 
-<style lang="scss">
+<style lang="scss">
+	.ratesbottom{
+		padding-bottom: 80px;
+	}
 	// 头部
 	.title {
 		width: 100%;

+ 7 - 1
pages/user/finance/rechargeRes.vue

@@ -39,6 +39,7 @@
 				id: "",
 				charge:false,
 				chargeObj:{},
+				
 
 			}
 		},
@@ -52,6 +53,10 @@
 				this.charge=true
 				this.chargeObj=obj
 			}
+			
+		},
+		onReady() {
+			
 		},
 		methods: {
 
@@ -79,8 +84,9 @@
 				})
 			},
 			chargeLook(){
+				
 				uni.redirectTo({
-					url:'/pages/searchPile/chargeProcess/charge?deviceNo='+this.chargeObj.deviceNo+"&gun="+this.chargeObj.channelNo+"&carNumber="+this.chargeObj.carNum
+					url:'/pages/searchPile/chargeProcess/charge?isback=1&deviceNo='+this.chargeObj.deviceNo+"&gun="+this.chargeObj.channelNo+"&carNumber="+this.chargeObj.carNumber
 				})
 				
 			},