Browse Source

优化体验

李书文 1 year ago
parent
commit
20112cfc9d

+ 4 - 3
pages/market/one/list.vue

@@ -11,12 +11,12 @@
 					<text v-if="index > 0 && item.isAsc == 'desc'" class="icon">&#xeb0a;</text>
 					<text v-if="index > 0 && item.isAsc == 'asc'" class="icon">&#xeb0b;</text>
 				</view>
-				<view class="type" @click="go()">
+				<view class="type omit" @click="go()">
 					<text>{{ param.goodsType || '分类' }}</text>
 					<text class="icon">&#xe8f2;</text>
 				</view>
 			</view>
-			<view class="item" v-for="(item, index) in list" :key="index" @click="detail(item.id)">
+			<view class="item animated fadeInDown" v-for="(item, index) in list" :key="index" @click="detail(item.id)">
 				<view class="title">{{ item.merchantName }}</view>
 				<view class="goodsType omit">{{ item.goodsType }}</view>
 				<image src="../../../static/news.jpg" mode="aspectFill" class="pic"></image>
@@ -47,7 +47,8 @@ export default {
 			sort: [
 				{ name: '综合', sortName: 'id', isAsc: 'desc', check: false },
 				{ name: '日期', sortName: 'create_time', isAsc: 'desc', check: false },
-				{ name: '价格', sortName: 'price', isAsc: 'desc', check: false }
+				{ name: '价格', sortName: 'price', isAsc: 'desc', check: false },
+				{ name: '数量', sortName: 'stock', isAsc: 'desc', check: false },
 			],
 			list: [],
 			param: { pageNo: 1, pageSize: 10 },

+ 1 - 0
pages/market/productType.vue

@@ -90,6 +90,7 @@ export default {
 		color: $font-c;
 		.item {
 			padding: 8px 2px 8px 2px;
+			border-bottom: 1px solid #efefef;
 			&.active {
 				color: $main-color;
 			}

+ 2 - 1
pages/market/two/purchaser/address/add.vue

@@ -7,7 +7,7 @@
 			</view>
 			<view class="form_group">
 				<view class="lable re">联系电话</view>
-				<input type="number" placeholder="请输入" v-model="item.phone" />
+				<input type="number" maxlength="11" placeholder="请输入" v-model="item.phone" />
 			</view>
 			<view class="form_group">
 				<view class="lable re">省市区</view>
@@ -64,6 +64,7 @@ export default {
 			let rule = [
 				{ name: 'name', checkType: 'notnull', errorMsg: '请输入收件人姓名' },
 				{ name: 'phone', checkType: 'notnull', errorMsg: '请输入联系电话' },
+				{ name: 'phone', checkType: 'phoneno', errorMsg: '手机号格式不对' },
 				{ name: 'area', checkType: 'notnull', errorMsg: '请选择省市区' },
 				{ name: 'street', checkType: 'notnull', errorMsg: '请输入详细地址' }
 			];