zhengkaixin 3 년 전
부모
커밋
fc99506047
4개의 변경된 파일100개의 추가작업 그리고 9개의 파일을 삭제
  1. 13 8
      App.vue
  2. 75 0
      jpsoft.vue
  3. 8 0
      pages.json
  4. 4 1
      utils/init.js

+ 13 - 8
App.vue

@@ -53,14 +53,19 @@
 		margin: -10px 1px 10px 1px;
 	}
 	.uni-modal .uni-modal__btn{
-			  flex: 1;
-			  height: 43px;
-			  line-height: 43px !important;;
-			  font-size: 13px !important;
-			  box-sizing: border-box;
-			  cursor: pointer;
-			  text-align: center;
-			  border-radius: 1px;
+		flex: 1;
+		height: 43px;
+		line-height: 43px !important;;
+		font-size: 13px !important;
+		box-sizing: border-box;
+		cursor: pointer;
+		text-align: center;
+		border-radius: 1px;
+	}
+	@media screen and (max-width: 320px) {
+	   /deep/.u-tabbar__content {
+			height: 42px!important;
+	   }
 	}
 
 </style>

+ 75 - 0
jpsoft.vue

@@ -0,0 +1,75 @@
+<template>
+	<view>
+		openId:<u-input v-model="openId" :border="true"></u-input>
+		<u-button @click="submit" >提交</u-button>
+	</view>
+</template>
+
+<script>
+
+	
+	export default {
+		data() {
+			return {
+				openId:"",
+				form: {
+					phone: '',
+					code: '',
+				},
+				
+			}
+		},
+		onLoad(op) {
+		
+		},
+		methods: {
+			submit(){
+				var NODE_NAME=  process.env['NODE_NAME']
+				if(NODE_NAME=="production"){
+					
+					alert("该功能只支持测试环境")
+				}else{
+					this.carhelp.setOpenId(this.openId);
+					this.carhelp.setToken("");
+					this.carhelp.set("token_tdate","")
+					uni.showToast({
+						title:"修改成功"
+					})
+				}
+				
+				
+			}
+		},
+		onReady() {
+			this.openId=this.carhelp.getOpenId();
+			
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.login-title {
+		display: flex;
+		align-items: center;
+		margin: 25px 30px;
+
+		h3 {
+			font-size: 20px;
+			margin-left: 10rpx;
+			color: #1677ff;
+			font-weight: normal;
+		}
+	}
+
+	.login-main {
+		margin: 0 30px;
+	}
+
+	.login-btn {
+		margin: 30px;
+	}
+
+	.login-code {
+		color: #1677ff;
+	}
+</style>

+ 8 - 0
pages.json

@@ -11,6 +11,14 @@
 				//"navigationStyle": "custom" // 隐藏系统导航栏
 			}
 		},
+		{
+			"name":"充电中",
+			"path": "jpsoft",
+			"style": {
+			
+				//"navigationStyle": "custom" // 隐藏系统导航栏
+			}
+		},
 		{
 			"name": "充电中",
 			"path": "pages/index/index",

+ 4 - 1
utils/init.js

@@ -22,7 +22,10 @@ var app = {
 					}
 				}
 			} else{
-				alert("请使用微信打开本页面")
+				var NODE_NAME=  process.env['NODE_NAME']
+				if(NODE_NAME=="production"){
+					alert("请使用微信打开本页面")
+				}
 			}
 		}else{
 			carhelp.setOpenId(process.car.openId)