Ver código fonte

样式修改

github-duan 4 anos atrás
pai
commit
420334dacd

+ 73 - 2
components/page-component/app-shipping-address/app-shipping-address.vue

xqd xqd xqd
@@ -1,11 +1,40 @@
 <template>
 	<view class="app-view">
 		<view class="app-information">
-			<view class="app-contact-information main-between">
+	<!-- 		<view class="app-contact-information main-between">
                 <text>收货人:{{item.name}}</text>
                 <text>{{item.mobile}}</text>
 			</view>
-            <text>收货地址: {{item.address}}</text>
+            <text>收货地址: {{item.address}}</text> -->
+			<view class="">
+				<view class="felx-three">
+					<view class="box-grow-2">
+						参训人: {{verifyUndefined(previewData.address.name)}}
+					</view>	
+					<view class="box-grow-3">
+						性别: {{verifyUndefined(previewData.address.sex) == ''? '':previewData.address.sex == 0 ?'未知':previewData.address.sex == 1? '男':'女'}}
+					</view>	
+					<view class="box-grow-4">
+						联系电话: {{verifyUndefined(previewData.address.mobile)}}
+					</view>
+				</view>
+				<view class="felx-three">
+					<view class="box-grow-2">
+						年龄: {{verifyUndefined(previewData.address.age)}}
+					</view>	
+					<view class="box-grow-3">
+						体重: {{verifyUndefined(previewData.address.weight)}}
+					</view>	
+					<view class="box-grow-4">
+						身高: {{verifyUndefined(previewData.address.height)}}
+					</view>
+				</view>
+				<view class="felx-three">
+					<view class="box-grow-5">
+						身份证号码:{{previewData.address.idcard}}
+					</view>	
+				</view>
+			</view>
 		</view>
 		<view @click.stop="editStop" class="app-operating dir-left-nowrap cross-center">
             <view v-if="is_hide_default_btn" class="dir-left-nowrap cross-center">
@@ -58,6 +87,14 @@
             }
 	    },
         methods: {
+			verifyUndefined(value){
+				// if(value == 'undefined' || value == ''){
+				// 	return ''
+				// }else{
+				// 	return value
+				// }
+				return (value == 'undefined' || value == '')? '': value
+			},
             changeDefault() {
                 const self = this;
                 self.$request({
@@ -112,6 +149,40 @@
 </script>
 
 <style scoped lang="scss">
+	.felx-three{
+		display: flex;
+		align-items: center;
+		justify-content: space-around;
+		padding-bottom: 23rpx;
+		.box-grow-2, .box-grow-3, .box-grow-4{
+			font-size: 24rpx;
+			font-family: Source Han Sans CN;
+			font-weight: 400;
+			color: rgba(100,100,100,1);
+			overflow: hidden;
+			text-overflow: ellipsis;
+			white-space: nowrap;
+		}	
+		.box-grow-2{
+			width: 30%;
+		}
+		.box-grow-3{
+			width: 30%;
+		}
+		.box-grow-4{
+			width: 40%;
+		}
+		.box-grow-5{
+			width: 100%;
+			font-size: 24rpx;
+			font-family: Source Han Sans CN;
+			font-weight: 400;
+			color: rgba(100,100,100,1);
+			overflow: hidden;
+			text-overflow: ellipsis;
+			white-space: nowrap;
+		}
+	}
 	text {
 		font-size: #{28rpx};
 		color: #353535;

+ 1 - 1
manifest.json

xqd
@@ -11,7 +11,7 @@
     "app-plus" : {},
     "quickapp" : {},
     "mp-weixin" : {
-        "appid" : "wx7881c559997a5d6d",
+        "appid" : "wxa6d3f8efdc58ff7e",
         "setting" : {
             "urlCheck" : false,
             "postcss" : false

+ 2 - 2
pages.json

xqd
@@ -293,9 +293,9 @@
       "root": "pages/address",
       "pages": [
         {
-          "path": "address",
+          "path": "address", 
           "style": {
-            "navigationBarTitleText": "收货地址"
+            "navigationBarTitleText": "报名信息"
           }
         },
         {

+ 7 - 5
pages/order-submit/order-submit.vue

xqd
@@ -401,11 +401,13 @@
         },
         methods: {
 			verifyUndefined(value){
-				if(value == 'undefined' || value == ''){
-					return ''
-				}else{
-					return value
-				}
+				// if(value == 'undefined' || value == ''){
+				// 	return ''
+				// }else{
+				// 	return value
+				// }
+				console.log(value)
+				return (value == 'undefined' || value == '')? '': value
 			},
             updateList(e,index) {
                 this.previewData.mch_list[index] = e;