diff --git a/pages/admin/shopInfo/index.vue b/pages/admin/shopInfo/index.vue index 632d722..b034e34 100644 --- a/pages/admin/shopInfo/index.vue +++ b/pages/admin/shopInfo/index.vue @@ -37,7 +37,7 @@ 商户入住时间 - {{ shopInfo.create_time }} + {{ shopInfo.create_time.split(' ')[0] }} 请填写商户入住时间 @@ -72,24 +72,28 @@ - - + 客服电话 @@ -102,22 +106,20 @@ - - 商户信息 - - - - - - + + 商户信息 + + + + - - 请上传商户轮播图 - (图片最多可上传10张,图片格式支持JPG、PNG、JPEG) + + 请上传商户轮播图 + (图片最多可上传10张,图片格式支持JPG、PNG、JPEG) - + @@ -145,6 +147,14 @@ export default { mer_id:'', detail:'', pics:[], + time:'', + time2:'', + day:[], + // week: [ "周一", "周二", "周三", "周四", "周五", "周六","周日"], + week:[{name:'周一',value:1},{name:'周二',value:2}, + {name:'周三',value:3},{name:'周四',value:4}, + {name:'周五',value:5},{name:'周六',value:6}, + {name:'周日',value:7}] }; }, onLoad(option){ @@ -155,10 +165,22 @@ export default { this.getInfo() }, methods:{ + checkboxChange (e) { + this.day = e.detail.value.map(Number); + }, + bindTimeChange(e) { + this.time = e.detail.value + }, + bindTimeChange2(e) { + this.time2 = e.detail.value + }, getInfo(){ getAdminInfo(this.mer_id).then((res)=>{ if(res){ this.shopInfo=res.data; + this.time=res.data.mer_take_time[0]; + this.time2=res.data.mer_take_time[1]; + this.pics=res.data.detail.images; } }) }, @@ -167,6 +189,9 @@ export default { detail:this.shopInfo.detail.detail, promise:this.shopInfo.detail.promise, images:this.pics, + mer_take_phone:this.shopInfo.mer_take_phone, + mer_take_day:this.day, + mer_take_time:[this.shopInfo.mer_take_time[0],this.shopInfo.mer_take_time[1]], services:['wifi','免费停车'] } @@ -225,6 +250,10 @@ export default { padding-top: 20rpx; padding-bottom: 156rpx; } +/deep/ .uni-checkbox-input.uni-checkbox-input-checked{ + border: 1px solid #2291F8 !important; + background-color: #2291F8 !important; +} .pictrue { width: 130rpx; height: 130rpx; @@ -267,7 +296,7 @@ export default { .tip { padding: 16rpx 0 0 40rpx; font-size: 22rpx; - color: #e93323; + color: #2291f8; display: flex; align-items: center; margin-bottom: 40rpx; @@ -293,7 +322,6 @@ export default { margin-top: 20rpx; padding: 20rpx 0; justify-content: center; - flex-direction: column; align-items: center; } .item-desc { @@ -305,6 +333,9 @@ export default { } .update-list{ display: flex; + flex-direction: row; + grid-gap: 12px; + flex-wrap: wrap; } .popup_group { background: #fff; @@ -357,7 +388,7 @@ export default { &_button { width: 690rpx; height: 86rpx; - background: #e93323; + background: #2291f8; border-radius: 43px; display: flex; align-items: center; @@ -524,7 +555,7 @@ export default { } .select { - background: #e93323; + background: #2291f8; border: none; .iconfont { color: #fff;