Administrator 4 năm trước cách đây
mục cha
commit
d46e65471f
2 tập tin đã thay đổi với 15 bổ sung14 xóa
  1. 5 5
      pages/user/setting/setting.vue
  2. 10 9
      supplier/pages/user/information.vue

+ 5 - 5
pages/user/setting/setting.vue

@@ -58,8 +58,8 @@
 	}
 	page,.container{
 		/* padding-bottom: 120upx; */
-		background: #F7F7F7;
-		border-top: 1px solid #EBEBEB;
+		background: #fff;
+		/* border-top: 1px solid #EBEBEB; */
 	}
 	.foot-list{
 		width: 100%;
@@ -80,14 +80,14 @@
 		position:relative;
 		background: $bg-color;
 		justify-content: center;
-		// border-bottom: 1px solid #EBEBEB;
+		border-bottom: 1px solid #EBEBEB;
 		&.cell-hover{
 			background:#fafafa;
 		}
 		.cell-more{
 			align-self: baseline;
 			font-size:$font-size-28;
-			color:$text-color;
+			color:#b2b2b2;
 			margin-left:10rpx;
 			.txt{
 				color: #999999;
@@ -97,7 +97,7 @@
 		.cell-tit{
 			flex: 1;
 			font-size: $font-size-28;
-			color: $text-color;
+			color: #666666;
 			margin-right:10rpx;
 		}
 		.cell-tip{

+ 10 - 9
supplier/pages/user/information.vue

@@ -291,8 +291,8 @@
 					{value:'13',name:'纤体减肥'}
 				],
 				params:{
-					userID:10450,
-					shopID:10087,
+					userID:'',
+					shopID:'',
 					townID:'',
 					provinceID: '',//省id
 					cityID: '',
@@ -337,10 +337,8 @@
 			}
 		},
 		onLoad() {
-			// this.$api.getComStorage('userInfo').then((resolve) =>{
-			// 	this.params.userID = resolve.userID;
-			// 	this.params.shopID = resolve.shopID;
-			// })
+		},
+		created() {
 			this.shopInfo();
 		},
 		methods:{
@@ -377,8 +375,11 @@
 				return _ARRAY
 			},
 		  shopInfo(){
-			  // this.$api.getStorage().then((resolve) =>{
-				  this.ShopService.shopInfo({userId:10450}).then(response =>{
+			  this.$api.getStorage().then((resolve) =>{
+				  this.params.userID = resolve.userID;
+				  this.params.shopID = resolve.shopID;
+				  	console.log(resolve)
+				  this.ShopService.shopInfo({userId:this.params.userID}).then(response =>{
 					if(response.code==0){
 						console.log(response)
 						let shop = response.data.shop;
@@ -432,7 +433,7 @@
 						}
 					}
 				 })
-				 // })
+				 })
 			 },
 			shopSubmit(){//提交修改
 				console.log(this.params);