From 93bb6d37f1e46e014dbfe7fbc9e69c4478c6cc13 Mon Sep 17 00:00:00 2001
From: Enzo <1284707383@qq.com>
Date: Wed, 29 Sep 2021 15:02:43 +0800
Subject: [PATCH 1/4] =?UTF-8?q?=E5=8A=A8=E6=80=81=E4=B8=8A=E4=BC=A0?=
 =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=88=91=E7=9A=84=E8=AE=A2=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
 common/js/config.js                           |    2 +-
 pages/discover/publish.vue                    |    2 +-
 pages/order/index/onlineorder.vue             | 1187 ++++++++---------
 pages/order/newdetail/newdetail.vue           |  123 +-
 pages/point/exchangeRecord/exchangeRecord.vue |    2 +-
 5 files changed, 696 insertions(+), 620 deletions(-)
diff --git a/common/js/config.js b/common/js/config.js
index 4279dca..0d601a8 100644
--- a/common/js/config.js
+++ b/common/js/config.js
@@ -16,7 +16,7 @@ export default  {
 		//https://demo-guojiang-ec-api.guojiang.club/
 		
 		baseUrl: process.env.NODE_ENV === 'development' ? 
-		'http://192.168.3.81/' : 'https://v3-ec-admin-dev.guojiang.club/', // 运行时自动替换变量
+		'http://192.168.3.165/' : 'https://v3-ec-admin-dev.guojiang.club/', // 运行时自动替换变量
     },
 	 PACKAGES: {
         activity: false,
diff --git a/pages/discover/publish.vue b/pages/discover/publish.vue
index 2eab8e8..32f43f4 100644
--- a/pages/discover/publish.vue
+++ b/pages/discover/publish.vue
@@ -99,7 +99,7 @@
 					header: {
 						Authorization: this.$cookieStorage.get('user_token')
 					},
-					url: 'http://192.168.3.29/api/discover/upload_image',
+					url: this.$config.GLOBAL.baseUrl+'api/discover/upload_image',
 					filePath: img,
 					fileType: 'image',
 					name: 'image',
diff --git a/pages/order/index/onlineorder.vue b/pages/order/index/onlineorder.vue
index bffa7df..d08536f 100644
--- a/pages/order/index/onlineorder.vue
+++ b/pages/order/index/onlineorder.vue
@@ -1,594 +1,593 @@
-
-	
-		 nav_height = e">
-		
-			线上订单
-			线下订单
-		
-		
-			
-				
-			
-			
-				
-				
-			
-			
-				
-					
-						
-						
-							
-								订单编号{{item2.order_no}}
-							
-							
-								
-								{{item2.from}}
-								
-							
-							
-								
-									
-									
-										{{i.item_name}}
-										
-											{{i.item_meta.specs_text}}
-											¥{{item2.items_total_yuan}}
-										
-									
-								
-								
-									{{item2.status_text}}
-									
-								
-							
-						
-						
-						
-							{{tabItem.loadingText}}
-							
-						
-						
-						
-						
-					
-				
-			
-		
-		
-			
-			
-				
-				
-					
-						{{item.balance.balance}}
-						{{item.balance.note}}
-					
-					
-						¥{{item.balance.current}}
-						{{item.created_at}}
-					
-				
-				
-				
-					{{loadingText}}
-					
-				
-				
-				
-			
-		
-	
-
-
-
-
-
-
-
+
+	
+		 nav_height = e">
+		
+			线上订单
+			线下订单
+		
+		
+			
+				
+			
+			
+				
+				
+			
+			
+				
+					
+						
+						
+							
+								订单编号{{item2.order_no}}
+							
+							
+								
+								{{item2.from}}
+								
+							
+							
+								
+									
+									
+										{{i.item_name}}
+										
+											{{i.item_meta.specs_text}}
+											¥{{item2.items_total_yuan}}
+										
+									
+								
+								
+									{{item2.status_text}}
+									
+								
+							
+						
+						
+						
+							{{tabItem.loadingText}}
+							
+						
+						
+						
+						
+					
+				
+			
+		
+		
+			
+			
+				
+				
+					
+						{{item.balance.balance}}
+						{{item.balance.note}}
+					
+					
+						¥{{item.balance.current}}
+						{{item.created_at}}
+					
+				
+				
+				
+					{{loadingText}}
+					
+				
+				
+				
+			
+		
+	
+
+
+
+
+
+
+
diff --git a/pages/order/newdetail/newdetail.vue b/pages/order/newdetail/newdetail.vue
index dfb6101..f4a6278 100644
--- a/pages/order/newdetail/newdetail.vue
+++ b/pages/order/newdetail/newdetail.vue
@@ -1,12 +1,13 @@
 
-	
+	
 		
-		
+		
+		
 			剩余支付时间:
-			
+			
+				
 				
 					
-						
 						
 							{{ minute >= 10 ? minute : "0" + minute }}
 							:
@@ -87,7 +88,8 @@
 				商品订单编号
 				
 					{{order_details.order_no}}
-					复制
+					复制
 				
 			
 			
@@ -173,21 +175,24 @@
 
 
 
@@ -231,6 +295,7 @@
 		padding: 0 32rpx;
 		align-items: center;
 	}
+
 	.waitconfirm-tag {
 		width: 136rpx;
 		height: 53rpx;
@@ -242,6 +307,7 @@
 		justify-content: center;
 		align-items: center;
 	}
+
 	.btn-cancel {
 		width: 220rpx;
 		height: 90rpx;
@@ -253,6 +319,7 @@
 		justify-content: center;
 		align-items: center;
 	}
+
 	.btn-confirm {
 		width: 220rpx;
 		height: 90rpx;
@@ -264,6 +331,7 @@
 		justify-content: center;
 		align-items: center;
 	}
+
 	.btn-atonce {
 		width: 220rpx;
 		height: 90rpx;
@@ -275,6 +343,7 @@
 		justify-content: center;
 		align-items: center;
 	}
+
 	.order-btn {
 		width: 100%;
 		height: 120rpx;
@@ -285,6 +354,7 @@
 		position: fixed;
 		bottom: 0;
 	}
+
 	.tips {
 		display: flex;
 		background-color: #F63434;
@@ -293,42 +363,49 @@
 		justify-content: center;
 		align-items: center;
 	}
-	.card{
+
+	.card {
 		height: max-content;
 		width: 750rpx;
 		padding: 30rpx 32rpx;
 		background-color: #FFFFFF;
-		&:nth-child(n+2){
+
+		&:nth-child(n+2) {
 			margin-top: 20rpx;
 		}
 	}
-	.goods{
-		.shop-name{
+
+	.goods {
+		.shop-name {
 			font-size: 28rpx;
 			color: #222222;
 			font-weight: bold;
 			margin: 0 15rpx;
 		}
-		.goods-img{
+
+		.goods-img {
 			width: 130rpx;
 			height: 130rpx;
 			border-radius: 4rpx;
 			margin-right: 15rpx;
 			background-color: #EEEEEE;
 		}
-		.info{
+
+		.info {
 			width: 540rpx;
 			height: 130rpx;
 			display: flex;
 			flex-direction: column;
 			justify-content: space-around;
-			.price{
+
+			.price {
 				font-size: 32rpx;
 				color: #F63434;
 				font-weight: bold;
 			}
 		}
-		.order-num{
+
+		.order-num {
 			font-size: 24rpx;
 			color: #999999;
 			display: flex;
diff --git a/pages/point/exchangeRecord/exchangeRecord.vue b/pages/point/exchangeRecord/exchangeRecord.vue
index b3b2aba..abde852 100644
--- a/pages/point/exchangeRecord/exchangeRecord.vue
+++ b/pages/point/exchangeRecord/exchangeRecord.vue
@@ -95,7 +95,7 @@
 				this.$http.get({
 					api: 'api/order/point/list',
 					header: {
-					   Authorization: `Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjVkYTY5YjM5NWFhYzM5NzVmMzI3ZTEwZDEyMzAzZjI5MzE4ZmU2OGE2Njg0MTU0MWVjMjQ2NWM4ZWJkYjRlMTUwMmY1NWM0NDlkOTcxZDdjIn0.eyJhdWQiOiIzIiwianRpIjoiNWRhNjliMzk1YWFjMzk3NWYzMjdlMTBkMTIzMDNmMjkzMThmZTY4YTY2ODQxNTQxZWMyNDY1YzhlYmRiNGUxNTAyZjU1YzQ0OWQ5NzFkN2MiLCJpYXQiOjE2MzIzODY3NDAsIm5iZiI6MTYzMjM4Njc0MCwiZXhwIjoxNjYzOTIyNzQwLCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.am-szF_sZcjtyOnEJT1DHMnr1hjAZ90MJc1Pc3AD3FrcQU5xb-u43ddL70ZmM3OxxLTZlmrB8OA3XJYREMtcz26MzwOMfopB9A5AH1EjHiFCV_368cq4ZpXNFi_Sn_LrY9Wje0-WMvkznF8tbrdCNrZn5YyIV47cwEnUNQrrREX4OhcgrSfNvwnh8_O_fueBwws9yY3tTlvVB7-AvG2urFI5XCzygsE3llE0wxF5ZJO1T5QRYLDse2BQ3d9feFzO5_7FiVspKr8DrJUlZP-Zz02UgIDIA_PX0UO2M0KeBwqPYq2d5uEnXT8or7K9coSnHRqbbr4qn6iczxDu4ofM58oCcaPycbtI3RvP2SMZuWmX8fXw-T99XltK_uJEU_wlIkrjvabzyo3tkrxRrwmzJEb3Yf4Lbah_xtfi24Nsu9SRjdw8YoiF6YhuuU5YaOn-wLltgmugfYpkFpEOneVAxoMjkm5IxZAJYMXF-DeSpdOoiTmuIRZYX4GDa55s_31r0YMyF6IIQNUvOjHHk-sJSHG0kPd5QivLP7dxE5XndwyFKAOeM97X2TjdYMhJz0EBCyS4Y_pI6AFWsxJkKsa0aqvBAeJyOV9k8kbYwtPeeBhBNsDWSlGBEZYMcoAv-C-IBZzd7gu2Ceh_MJPItrnsvj8W43Cv1TwxD26bJyt9EUY`
+					    Authorization: this.$cookieStorage.get('user_token')
 					},
 					data: {
 						page: this.page
From cdc1df9431703db39cf23eb13092d94de6dfb9ab Mon Sep 17 00:00:00 2001
From: Enzo <1284707383@qq.com>
Date: Wed, 29 Sep 2021 16:40:23 +0800
Subject: [PATCH 2/4] =?UTF-8?q?=E4=B8=8B=E5=8D=95=E9=A1=B5=E9=9D=A2?=
 =?UTF-8?q?=E5=9C=B0=E5=9D=80=E9=80=89=E6=8B=A9=E4=BC=98=E5=8C=96=20?=
 =?UTF-8?q?=E9=A6=96=E9=A1=B5=E8=B4=AD=E7=89=A9=E8=BD=A6=E6=95=B0=E9=87=8F?=
 =?UTF-8?q?=E5=8A=A8=E6=80=81=E6=98=BE=E7=A4=BA=20=E5=8F=91=E7=8E=B0?=
 =?UTF-8?q?=E8=AF=A6=E6=83=85=E5=92=8C=E5=8F=91=E7=8E=B0=E5=88=97=E8=A1=A8?=
 =?UTF-8?q?=E6=97=A0=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF=E6=97=B6=E7=9A=84?=
 =?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
 common/js/config.js                |  2 +-
 pages/discover/discover.vue        |  4 +++-
 pages/discover/discoverdetails.vue | 18 ++++++++++-----
 pages/index/index/index.vue        | 36 ++++++++++++++++++++++++++----
 pages/order/confirm/confirm.vue    | 20 ++++++++++++-----
 5 files changed, 63 insertions(+), 17 deletions(-)
diff --git a/common/js/config.js b/common/js/config.js
index 0d601a8..29d8be9 100644
--- a/common/js/config.js
+++ b/common/js/config.js
@@ -16,7 +16,7 @@ export default  {
 		//https://demo-guojiang-ec-api.guojiang.club/
 		
 		baseUrl: process.env.NODE_ENV === 'development' ? 
-		'http://192.168.3.165/' : 'https://v3-ec-admin-dev.guojiang.club/', // 运行时自动替换变量
+		'https://jincheng.lubanhudong.com/' : 'https://v3-ec-admin-dev.guojiang.club/', // 运行时自动替换变量
     },
 	 PACKAGES: {
         activity: false,
diff --git a/pages/discover/discover.vue b/pages/discover/discover.vue
index 535ccb9..787955b 100644
--- a/pages/discover/discover.vue
+++ b/pages/discover/discover.vue
@@ -12,11 +12,13 @@
 						
 							
 								
-									
+									
+									
 									V
 								
 								
 									{{item.user.nick_name}}
+									{{item.user.mobile_replace}}
 									{{item.created_at}}
 								
 							
diff --git a/pages/discover/discoverdetails.vue b/pages/discover/discoverdetails.vue
index e2111ea..c6db11b 100644
--- a/pages/discover/discoverdetails.vue
+++ b/pages/discover/discoverdetails.vue
@@ -9,7 +9,8 @@
 				
 				
 					
-						{{discover_details.user.nick_name}}
+						{{discover_details.user.nick_name}}
+						{{discover_details.user.mobile_replace}}
 						
 					
 					{{discover_details.updated_at}}
@@ -46,10 +47,12 @@
 				
 					
 						
-							
+							
+							
 						
 						
-							{{commentitem.user.nick_name}}
+							{{commentitem.user.nick_name}}
+							{{commentitem.user.mobile_replace}}
 							
 								{{commentitem.content}}{{commentitem.created_at}}
 							
@@ -67,14 +70,17 @@
 					
 						
 							
-								
+								
+								
 							
 							
 								
-									{{subitem.user.nick_name}}
+									{{subitem.user.nick_name}}
+									{{subitem.user.mobile_replace}}
 									
 										回复
-										{{subitem.to_user.nick_name}}:
+										{{subitem.to_user.nick_name}}:
+										{{subitem.to_user.mobile_replace}}:
 									
 								
 								
diff --git a/pages/index/index/index.vue b/pages/index/index/index.vue
index 74ce519..5e56fe4 100644
--- a/pages/index/index/index.vue
+++ b/pages/index/index/index.vue
@@ -26,7 +26,7 @@
 									
 								
 								
-								
+								
 									今日头条
 									
 										{{ item.title }}
@@ -63,7 +63,7 @@
 								
 									{{ item.title }}
 									
-										
+										
 									
 								
 		        
@@ -316,7 +316,7 @@
 			
 				
 				购物车
-				99+
+				{{car_num}}
 			
 		
 		
@@ -384,6 +384,7 @@
 				show_ad: false, // 是否显示ad广告
 				ad_modal_list: [], // ad广告列表
 				nav_bg_color: 'rgba(255,255,255,0)' ,// 导航背景颜色
+				car_num: 0
             };
         },
         // 注册组件
@@ -421,7 +422,6 @@
 			}
 		},
 		  onShow(e) {
-			 
 		   
 			this.isLogin=!!this.$cookieStorage.get('user_token')
 			
@@ -429,6 +429,7 @@
 			
 		    if (toekn) {
 		      this.getUserInfo();
+			  this.getcarNum()
 		    }
 	
 		
@@ -544,6 +545,33 @@
             changeAbout() {
                 this.is_show_about = false;
             },
+			getcarNum() {
+				this.$http
+				    .get({
+				        api: 'api/shopping/cart/count',
+						header: {
+						   Authorization: this.$cookieStorage.get('user_token')
+						},
+				    })
+				    .then(res => {
+				        if (res.data.code == 200) {
+				           this.car_num = res.data.data;
+				        } else {
+				            wx.showModal({
+				                content: '请下拉页面刷新重试',
+				                showCancel: false
+				            });
+				        }
+				    })
+				    .catch(() => {
+				        wx.stopPullDownRefresh();
+				        wx.hideLoading();
+				        wx.showModal({
+				            content: '请求失败',
+				            showCancel: false
+				        });
+				    });
+			},
             // 请求数据
             queryMicroData() {
                 this.$http
diff --git a/pages/order/confirm/confirm.vue b/pages/order/confirm/confirm.vue
index 8e91210..e721108 100644
--- a/pages/order/confirm/confirm.vue
+++ b/pages/order/confirm/confirm.vue
@@ -14,12 +14,17 @@
 					更换收获地址
 					
 				
-				
-					{{ address.accept_name }}
-					{{ address.mobile }}
+				
+					
+						{{ address.accept_name }}
+						{{ address.mobile }}
+					
+					
+						{{  address.address_name }}{{ address.address }}
+					
 				
-				
-					{{  address.address_name }}{{ address.address }}
+				
+					暂无收货地址,请前往添加
 				
 			
 			
@@ -223,6 +228,11 @@
 			},
 			// 提交订单
 			confirm(){
+				console.log(this.address)
+				if(this.address == null) {
+					this.$msg('请先添加收货地址!');
+					return
+				}
 				this.$http.post({
 					api: 'api/shopping/order/confirm',
 					data: {
From 00d0ba6b85f0b9298bbd8e1a2e16800b841b3d4f Mon Sep 17 00:00:00 2001
From: Enzo <1284707383@qq.com>
Date: Wed, 29 Sep 2021 16:42:58 +0800
Subject: [PATCH 3/4] =?UTF-8?q?=E5=BA=97=E9=93=BA=E8=AF=A6=E6=83=85?=
 =?UTF-8?q?=E5=95=86=E5=93=81=E6=98=BE=E7=A4=BA=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
 pages/shop/shopdetail.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pages/shop/shopdetail.vue b/pages/shop/shopdetail.vue
index 4a6ddab..0c8d592 100644
--- a/pages/shop/shopdetail.vue
+++ b/pages/shop/shopdetail.vue
@@ -86,7 +86,7 @@
 				
 					
 						
-						
+						
 						
 							{{tabItem.loadingText}}
 							
From 8c4a0a176546303c98a2a341a42edebf9ea13b29 Mon Sep 17 00:00:00 2001
From: Enzo <1284707383@qq.com>
Date: Wed, 29 Sep 2021 17:50:35 +0800
Subject: [PATCH 4/4] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E8=B7=B3=E8=BD=AC?=
 =?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
 components/lf-shopGoodsCard/lf-shopGoodsCard.vue | 2 +-
 pages/index/index/index.vue                      | 3 ++-
 pages/shop/shopdetail.vue                        | 2 +-
 pages/shop/specialList.vue                       | 2 +-
 4 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/components/lf-shopGoodsCard/lf-shopGoodsCard.vue b/components/lf-shopGoodsCard/lf-shopGoodsCard.vue
index 1ba3d2d..982fb70 100644
--- a/components/lf-shopGoodsCard/lf-shopGoodsCard.vue
+++ b/components/lf-shopGoodsCard/lf-shopGoodsCard.vue
@@ -1,6 +1,6 @@
 
 	
-		
+		
 			
 		
 		
diff --git a/pages/index/index/index.vue b/pages/index/index/index.vue
index 5e56fe4..1107d99 100644
--- a/pages/index/index/index.vue
+++ b/pages/index/index/index.vue
@@ -56,7 +56,8 @@
 								
 								
 								
-									{{ item.title }}
+									
+									{{ item.title }}
 									
 								
 								
diff --git a/pages/shop/shopdetail.vue b/pages/shop/shopdetail.vue
index 0c8d592..3238dde 100644
--- a/pages/shop/shopdetail.vue
+++ b/pages/shop/shopdetail.vue
@@ -2,7 +2,7 @@
 	
 		
 		
-			
+			
 		
 		
 			
diff --git a/pages/shop/specialList.vue b/pages/shop/specialList.vue
index 41fefc7..1a51181 100644
--- a/pages/shop/specialList.vue
+++ b/pages/shop/specialList.vue
@@ -9,7 +9,7 @@
 		
 		
 			
-			
+