diff --git a/api/shop.js b/api/shop.js index 0c301c6..ff1bc2d 100644 --- a/api/shop.js +++ b/api/shop.js @@ -8,7 +8,14 @@ import request from "@/utils/request.js"; * 获取主页数据 无需授权 * */ -export function getIndexData() +export function shopInit(data) { - return request.get("common/home",{},{ noAuth : true}); + return request.get("store/merchant/category",data,{ noAuth : true}); +} +//获取附件商家 +export function shopNearby(data){ + return request.get('store/merchant/lst',data,{noAuth:true}); +} +export function shopDetail(data){ + return request.get('store/merchant/detail/'+data.id,{},{noAuth:true}); } \ No newline at end of file diff --git a/manifest.json b/manifest.json index e249d16..9aa4239 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "name" : "多商户商城", + "name" : "铸源商城", "appid" : "__UNI__496DF55", "description" : "", "versionName" : "1.0.4", diff --git a/pages.json b/pages.json index 9d9b4c7..57a5f22 100644 --- a/pages.json +++ b/pages.json @@ -64,6 +64,17 @@ // #endif } }, + { + "path": "pages/shop/search/index", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "商家搜索" + // #ifdef MP || APP-PLUS + , + "navigationBarBackgroundColor": "#F2F2F2" + // #endif + } + }, { "path": "pages/goods_details/index", "style": { diff --git a/pages/shop/css/shop.css b/pages/shop/css/shop.css index 14172a8..3f69e14 100644 --- a/pages/shop/css/shop.css +++ b/pages/shop/css/shop.css @@ -126,8 +126,12 @@ .content .content-list .list-container .list-item .list-item-right .item-content{ display: flex; justify-content: space-between; + white-space: pre-wrap !important; padding-right: 6rpx; } +.content .content-list .list-container .list-item .list-item-right .item-content .right-center-left{ + min-height: 80rpx; +} .content .content-list .list-container .list-item .list-item-right .item-content .right-center-left .center-left-score{ color:#FE8C16; font-size: 24rpx; @@ -157,16 +161,18 @@ padding-right: 6rpx; grid-gap: 12rpx; max-width: 500rpx; + width: 100vw; } .content .content-list .list-container .list-item .list-item-right .item-address .address{ overflow: hidden; white-space: nowrap; text-overflow: ellipsis; - min-width: 0; + min-width: 360rpx; max-width: 360rpx; + } .content .content-list .list-container .list-item .list-item-right .item-address .distance{ - display: 1; + flex: 1; display: flex; overflow:hidden; } \ No newline at end of file diff --git a/pages/shop/index.vue b/pages/shop/index.vue index e875de2..901e34e 100644 --- a/pages/shop/index.vue +++ b/pages/shop/index.vue @@ -16,86 +16,41 @@ - + - 餐饮美食 - - - - 丽人美妆 - - - - 休闲娱乐 - - - - 运动健身 - - - - 婚庆服务 - - - - 亲子 - - - - 教育培训 - - - - 汽车服务 - - - - 家装 - - - - 生活服务 + {{item.category_name}} 全部商家 - 附近商家 + 附近商家 - - - - + + + + - - - - - - - - - - + - 特色餐厅(福田店) + {{item.mer_name}} - 4.7分 + {{item.service_score}}分 - 营业时间:12:00-24:00 + 营业时间:{{item.config.mer_take_time.join('-')}} 去选购 - 深圳市福田区购物公园cocopark购物中心 - 100.23km + {{item.mer_address}} + {{item.distance}} @@ -113,9 +68,11 @@ + diff --git a/pages/shop_details/index.vue b/pages/shop_details/index.vue index 2183275..4ca7bf7 100644 --- a/pages/shop_details/index.vue +++ b/pages/shop_details/index.vue @@ -1,25 +1,25 @@