Bläddra i källkod

选择地址 bug 修复

lilei 4 år sedan
förälder
incheckning
89f739b6d3
3 ändrade filer med 16 tillägg och 7 borttagningar
  1. 11 0
      .hbuilderx/launch.json
  2. 4 3
      components/address.vue
  3. 1 4
      pagesA/luckDraw/myJp.vue

+ 11 - 0
.hbuilderx/launch.json

@@ -0,0 +1,11 @@
+{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
+  // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
+    "version": "0.0",
+    "configurations": [{
+            "type": "uniCloud",
+            "default": {
+                "launchtype": "remote"
+            }
+        }
+    ]
+}

+ 4 - 3
components/address.vue

@@ -22,7 +22,7 @@
 				</view>
 			</view>
 			<view class="simple-address__box">
-				<picker-view indicator-style="height: 70rpx;" class="simple-address-view" :value="pickerValue" @change="pickerChange">
+				<picker-view class="simple-address-view" :value="pickerValue" @change="pickerChange">
 					<picker-view-column>
 						<!-- #ifndef APP-NVUE -->
 						<view class="picker-item" :style="{ fontSize: fontSize }" v-for="(item, index) in provinceDataList" :key="index">{{ item.name }}</view>
@@ -317,7 +317,7 @@
 	transition-duration: 0.3s;
 	opacity: 0;
 	/* #ifndef APP-NVUE */
-	z-index: 99;
+	z-index: 99999;
 	/* #endif */
 }
 
@@ -339,11 +339,12 @@
 	bottom: 0;
 	left: 0;
 	right: 0;
+	width: 100%;
 	transition-property: transform;
 	transition-duration: 0.3s;
 	transform: translateY(460rpx);
 	/* #ifndef APP-NVUE */
-	z-index: 99;
+	z-index: 999999;
 	/* #endif */
 }
 

+ 1 - 4
pagesA/luckDraw/myJp.vue

@@ -12,7 +12,7 @@
 				<u-button size="mini" @click="goBack">去抽奖</u-button>
 			</view> -->
 		</view>
-		
+		<Address ref="applyAddress" @onConfirm="areaConfirm"></Address>
 		<!-- 查看详情弹框 -->
 		<u-popup v-model="showViews" mode="center" close-icon-color="#ffffff" closeable :border-radius="30" width="500rpx">
 			<view class="lottery-content">
@@ -73,7 +73,6 @@
 					 	</u-form-item>
 					 	<u-form-item label="省市区" required prop="receiveAreasName">
 					 		<u-input v-model="areaInfo.label" placeholder="请选择省市区" @click="openAddress" type="select" />
-					 		<Address ref="applyAddress" @onConfirm="areaConfirm"></Address>
 					 	</u-form-item>
 					 	<u-form-item label="详细地址" :border-bottom="false" required prop="receiveAddress">
 					 		<!-- <u-input type="textarea" :height="100" auto-height placeholder="请输入收货详细地址(最多100个字符)" :maxlength="100" v-model="form.receiveAddress" class="receiveAddress"/> -->
@@ -86,7 +85,6 @@
 				</view>
 			</view>
 		</u-popup>
-		
 	</view>
 </template>
 
@@ -350,7 +348,6 @@ export default {
 		}
 		.lottery-content{
 			height: 100%;
-			position: relative;
 			background: url(../../static/lottery_winbg1.png) no-repeat center top;
 			background-size: 100% auto;
 			.lottery-confrim-btn{