guhongwei 2 anni fa
parent
commit
269dc978ae
3 ha cambiato i file con 32 aggiunte e 6 eliminazioni
  1. 7 3
      common/css/font-icon.css
  2. 6 0
      pages.json
  3. 19 3
      pagesHome/order/detail.vue

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

@@ -2,9 +2,9 @@
   font-family: "iconfont"; /* Project id 3674157 */
   /* Color fonts */
   src: 
-       url('https://at.alicdn.com/t/c/font_3674157_ray10a4m6vd.woff2?t=1664416888930') format('woff2'),
-       url('https://at.alicdn.com/t/c/font_3674157_ray10a4m6vd.woff?t=1664416888930') format('woff'),
-       url('https://at.alicdn.com/t/c/font_3674157_ray10a4m6vd.ttf?t=1664416888930') format('truetype');
+       url('//at.alicdn.com/t/c/font_3674157_4s064dmj9m7.woff2?t=1664429461870') format('woff2'),
+       url('//at.alicdn.com/t/c/font_3674157_4s064dmj9m7.woff?t=1664429461870') format('woff'),
+       url('//at.alicdn.com/t/c/font_3674157_4s064dmj9m7.ttf?t=1664429461870') format('truetype');
 }
 
 .iconfont {
@@ -15,6 +15,10 @@
   -moz-osx-font-smoothing: grayscale;
 }
 
+.icon-duihao:before {
+  content: "\e684";
+}
+
 .icon-yduishoucangkongxin:before {
   content: "\e6ac";
 }

+ 6 - 0
pages.json

@@ -192,6 +192,12 @@
 					"style": {
 						"navigationBarTitleText": "商品详情"
 					}
+				},
+				{
+					"path": "order/order",
+					"style": {
+						"navigationBarTitleText": "提交订单"
+					}
 				}
 			]
 		}

+ 19 - 3
pagesHome/order/detail.vue

@@ -204,7 +204,7 @@
 					send_time: '24h',
 					specs: {
 						flavor: '果木熏火腿',
-						num: 0
+						num: 1
 					},
 					brief: '简介',
 				},
@@ -227,7 +227,7 @@
 				background: '#f9f9f9',
 				color: '#000',
 				// 显示文字判断
-				type:'0'
+				type: '0'
 			};
 		},
 		onShow: function() {},
@@ -293,7 +293,22 @@
 				that.menu = !that.menu
 			},
 			// 立即购买
-			toBuy() {},
+			toBuy() {
+				const that = this;
+				if (that.Selected) {
+					uni.navigateTo({
+						url: `/pagesHome/order/order`
+					})
+				} else {
+					uni.showModal({
+						title: '提示',
+						content: '请选择规格',
+						confirmColor: '#ff0000',
+						showCancel: false,
+						success: function(res) {}
+					});
+				}
+			},
 			// 计算高度
 			handleScroll(e) {
 				const that = this;
@@ -515,6 +530,7 @@
 		position: fixed;
 		top: 4vw;
 		right: 5vw;
+
 		text {
 			font-size: 30px;
 			background-color: #0000005f;