浏览代码

添加关联公众号

306132416@qq.com 5 年之前
父节点
当前提交
f88f3f571b
共有 3 个文件被更改,包括 17 次插入5 次删除
  1. 1 1
      pages/index/customPage/index.vue
  2. 1 1
      pages/index/dealerPage/index.vue
  3. 15 3
      pages/index/index.vue

+ 1 - 1
pages/index/customPage/index.vue

@@ -58,7 +58,7 @@
 							</picker> -->
 						</view>
 					<view class="textarea-box">
-					     <textarea  auto-height placeholder="请输入详细地址" v-model="addressDetail" />
+					     <textarea  auto-height placeholder="请输入详细地址" v-model="addressDetail" maxlength="25" />
 					 </view>
 			</view>		
 		</view>

+ 1 - 1
pages/index/dealerPage/index.vue

@@ -74,7 +74,7 @@
 			   				</view>
 			   			</view>
 					<view class="textarea-box">
-					     <textarea  auto-height placeholder="请输入详细地址" />
+					     <textarea  auto-height placeholder="请输入详细地址" maxlength="25" />
 					 </view>
 			</view>		
 		</view>

+ 15 - 3
pages/index/index.vue

@@ -1,5 +1,8 @@
 <template>
 	<view class="content">
+		  <!-- #ifdef MP-WEIXIN -->
+		                <official-account class="relevance"></official-account>
+		  <!-- #endif -->
 		<image class="logo" src="/static/bg-home.jpg" mode="widthFix"></image>
 		<view class="getPhone-box" :style="{ bottom: bottomCss}">
 			<button type="primary" class="custom-btn"  open-type="getPhoneNumber"  style="margin-right: 5%!important;"
@@ -29,11 +32,11 @@
 		},
 		onLoad() {
 		  this.getEquipmentHeight();
-		  this.loginRequest();
 		  console.log('onload')
 		  // getApp().globalData.lastId = options.scene ? options.scene : getApp().globalData.user_id
 		},
 		onShow() {
+			this.loginRequest();
 			console.log('onshow')
 		},
 		onShareAppMessage() {
@@ -105,6 +108,7 @@
 				});
 			},
 			judgeUserType(type,pass){
+				console.log(type,pass)
 				switch (true){
 					case type === 3:  //需要授权
 					    console.log(type,pass)
@@ -125,7 +129,7 @@
 					    		complete: () => {}
 					    	})
 						break;
-					case type === (1 || 2) && pass === -1:  //禁止入场
+					case  pass === -1:  //禁止入场
 					    	uni.redirectTo({
 					    		url: '/pages/index/failPage/index', //失败页面
 					    		success: res => {},
@@ -191,7 +195,15 @@
 		// background-repeat: no-repeat;
 		// background-size: 100% 100%;
 	}
-
+	/* #ifdef MP-WEIXIN */
+    .relevance {
+		width: 100%;
+		height: 60px;
+		position: absolute;
+		top: 0;
+		z-index: 999;
+	}
+	/* #endif */
 	.logo {
 		width: 100%;
 		position: relative;