Просмотр исходного кода

improve: 自定义表单调整

From-wh 2 лет назад
Родитель
Сommit
009459355e

+ 3 - 3
template/uni-app/pages/goods/order_confirm/index.vue

@@ -126,15 +126,15 @@
 					</view>
 					<!-- text -->
 					<view v-if="item.label=='text'" class="confirm">
-						<input type="text" :placeholder="$t(`请填写`)+' '+item.title" v-model="item.value" />
+						<input type="text" :placeholder="$t(`请填写${item.title}`)" v-model="item.value" />
 					</view>
 					<!-- number -->
 					<view v-if="item.label=='number'" class="confirm">
-						<input type="number" :placeholder="$t(`请填写`)+item.title" v-model="item.value" />
+						<input type="number" :placeholder="$t(`请填写${item.title}`)" v-model="item.value" />
 					</view>
 					<!-- email -->
 					<view v-if="item.label=='email'" class="confirm">
-						<input type="text" :placeholder="$t(`请填写`)+item.title" v-model="item.value" />
+						<input type="text" :placeholder="$t(`请填写${item.title}`)" v-model="item.value" />
 					</view>
 					<!-- data -->
 					<view v-if="item.label=='data'" class="uni-list">

+ 9 - 3
template/uni-app/pages/goods/order_details/index.vue

@@ -243,12 +243,12 @@
 			<view class='wrapper' v-if="customForm && customForm.length">
 				<view class='item acea-row row-between' v-for="(item,index) in customForm" :key="index">
 					<view class='upload' v-if="item.label == 'img'">
-						<view>{{item.title}}:</view>
+						<view class="diy-from-title">{{item.title}}:</view>
 						<view class='pictrue' v-for="(img,index) in item.value" :key="index">
 							<image :src='img'></image>
 						</view>
 					</view>
-					<view v-if="item.label !== 'img'">{{item.title}}:</view>
+					<view v-if="item.label !== 'img'" class="diy-from-title">{{item.title}}:</view>
 					<view v-if="item.label !== 'img'" class='conter'>{{item.value}}</view>
 				</view>
 				<view class="copy-text" @click="copyText()">{{$t(`复制`)}}</view>
@@ -269,7 +269,7 @@
 				</view>
 			</view>
 			<view v-if="orderInfo.status!=0">
-				<view class='wrapper' v-if='orderInfo.delivery_type=="express"'>
+				<view class='`' v-if='orderInfo.delivery_type=="express"'>
 					<view class='item acea-row row-between'>
 						<view>{{$t(`配送方式`)}}:</view>
 						<view class='conter'>{{$t(`发货`)}}</view>
@@ -1944,12 +1944,18 @@
 		color: #868686;
 		// width: 380rpx;
 		text-align: justify;
+		flex: 1;
 	}
 
 	.order-details .wrapper .item .conter .upload {
 		padding-bottom: 36rpx;
 	}
 
+	.order-details .wrapper .diy-from-title {
+		white-space: nowrap;
+		width: 5em;
+	}
+
 	.order-details .wrapper .item .conter .upload .pictrue {
 		margin: 22rpx 23rpx 0 0;
 		width: 156rpx;