zs 2 gadi atpakaļ
vecāks
revīzija
e13fe7e718
2 mainītis faili ar 231 papildinājumiem un 5 dzēšanām
  1. 27 3
      common/css/font-icon.css
  2. 204 2
      pagesMy/order/index.vue

+ 27 - 3
common/css/font-icon.css

@@ -2,9 +2,9 @@
   font-family: "iconfont"; /* Project id 3674157 */
   /* Color fonts */
   src: 
-       url('//at.alicdn.com/t/c/font_3674157_4egmlcp9c8w.woff2?t=1664261897033') format('woff2'),
-       url('//at.alicdn.com/t/c/font_3674157_4egmlcp9c8w.woff?t=1664261897033') format('woff'),
-       url('//at.alicdn.com/t/c/font_3674157_4egmlcp9c8w.ttf?t=1664261897033') format('truetype');
+       url('//at.alicdn.com/t/c/font_3674157_g19wel1yxjd.woff2?t=1664269541651') format('woff2'),
+       url('//at.alicdn.com/t/c/font_3674157_g19wel1yxjd.woff?t=1664269541651') format('woff'),
+       url('//at.alicdn.com/t/c/font_3674157_g19wel1yxjd.ttf?t=1664269541651') format('truetype');
 }
 
 .iconfont {
@@ -15,6 +15,30 @@
   -moz-osx-font-smoothing: grayscale;
 }
 
+.icon-shangdian:before {
+  content: "\e67a";
+}
+
+.icon-shangjiantou:before {
+  content: "\e603";
+}
+
+.icon-xiajiantou:before {
+  content: "\e604";
+}
+
+.icon-shangjiantou-copy:before {
+  content: "\e714";
+}
+
+.icon-xiajiantou-copy:before {
+  content: "\e715";
+}
+
+.icon-del-copy:before {
+  content: "\e716";
+}
+
 .icon-del:before {
   content: "\e616";
 }

+ 204 - 2
pagesMy/order/index.vue

@@ -1,6 +1,61 @@
 <template>
 	<mobile-frame>
-		订单列表
+		<view class="main">
+			<view class="one">
+				<input type="text" v-model="searchInfo.name" @input="toInput" placeholder="搜索商品">
+			</view>
+			<view class="two">
+				<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage">
+					<view class="list-scroll-view">
+						<view class="two_1">
+							<view class="cond_1">
+								默认
+							</view>
+							<view class="cond_1">
+								默认
+							</view>
+							<view class="cond_1">
+								默认
+							</view>
+							<view class="cond_1">
+								默认
+							</view>
+						</view>
+						<view class="two_2">
+							<view class="list" v-for="(item,index) in list" :key="index">
+								<view class="list_1">
+									<view class="name">
+										<text @click="toDel(item)" class="iconfont icon-shangdian"></text>
+										<text>{{item.shop}}</text>
+									</view>
+									<view class="status">{{item.status=='0'?'待付款':'已付款'}}</view>
+								</view>
+								<view class="list_2">
+									<image class="image" :src="item.url" mode=""></image>
+									<view class="other">
+										<view class="name">{{item.name}}</view>
+										<view class="other_1">
+											口味: {{item.num||'暂无'}}
+										</view>
+									</view>
+									<view class="money">
+										<text>¥</text>
+										<text>{{item.money}}</text>
+										<view class="num">
+											×{{item.num}}
+										</view>
+									</view>
+								</view>
+								<view class="list_3">
+									<text>共{{item.num}}件商品</text>
+									<text>总价¥{{item.money}}</text>
+								</view>
+							</view>
+						</view>
+					</view>
+				</scroll-view>
+			</view>
+		</view>
 	</mobile-frame>
 </template>
 
@@ -8,16 +63,163 @@
 	export default {
 		data() {
 			return {
-
+				searchInfo: {},
+				list: [ //商品列表
+					{
+						url: require('@/static/test.png'),
+						shop: '官方自营店',
+						name: '商品名称',
+						money: '10.00',
+						status: '0',
+						num: 2,
+					},
+					{
+						url: require('@/static/test.png'),
+						name: '商品名称',
+						shop: '官方自营店',
+						money: '10.00',
+						status: '0',
+						num: 2,
+					},
+					{
+						url: require('@/static/test.png'),
+						name: '商品名称',
+						shop: '官方自营店',
+						money: '10.00',
+						status: '0',
+						num: 2,
+					},
+				]
 			};
 		},
 		onShow: function() {},
 		methods: {
+			// 分页
+			toPage(e) {
 
+			},
+			// 输入框
+			toInput(e) {
+				const that = this;
+				that.$set(that.searchInfo, `name`, e.detail.value)
+			}
 		}
 	}
 </script>
 
 <style lang="scss">
+	.main {
+		display: flex;
+		flex-direction: column;
+		width: 100vw;
+		height: 100vh;
+
+		.one {
+			padding: 2vw;
+
+			input {
+				padding: 2vw;
+				background-color: var(--f1Color);
+				font-size: var(--font14Size);
+				border-radius: 5px;
+			}
+		}
+
+		.two {
+			position: relative;
+			flex-grow: 1;
+
+			.two_1 {
+				background-color: var(--fffColor);
+				padding: 2vw;
+				display: flex;
+				flex-direction: row;
+			}
+
+			.two_2 {
+				display: flex;
+				flex-direction: column;
+				padding: 2vw 2vw 0 2vw;
+
+				.list {
+					width: 95vw;
+					border-radius: 5px;
+					border: 1px solid red;
+					margin: 2vw 0 0 0;
+
+					.list_1 {
+						display: flex;
+						flex-direction: row;
+						justify-content: space-between;
+						padding: 2vw;
+
+						.name {
+							font-size: var(--font16Size);
+
+							text {
+								margin: 0 1vw 0 0;
+							}
+						}
+
+						.status {
+							font-size: var(--font16Size);
+							color: var(--ff0Color);
+						}
+					}
 
+					.list_2 {
+						display: flex;
+						flex-direction: row;
+						justify-content: space-between;
+						padding: 2vw;
+						background-color: var(--f1Color);
+
+						.image {
+							width: 25vw;
+							height: 25vw;
+							margin: 0 2vw 0 0;
+						}
+
+						.other {
+							display: flex;
+							flex-direction: column;
+							flex-grow: 1;
+
+							.name {
+								font-size: var(--font16Size);
+								font-weight: bold;
+								margin: 0 0 2vw 0;
+							}
+
+							.other_1 {
+								font-size: var(--font14Size);
+								color: var(--f85Color);
+							}
+						}
+
+						.money {
+							font-size: var(--font14Size);
+
+							.num {
+								text-align: right;
+							}
+						}
+					}
+				}
+			}
+		}
+	}
+
+	.scroll-view {
+		position: absolute;
+		top: 0;
+		left: 0;
+		right: 0;
+		bottom: 0;
+
+		.list-scroll-view {
+			display: flex;
+			flex-direction: column;
+		}
+	}
 </style>