1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-merchant-list"],{4581:function(t,e,a){"use strict";a.r(e);var i=a("6a6c"),o=a.n(i);for(var d in i)["default"].indexOf(d)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(d);e["default"]=o.a},"6a6c":function(t,e,a){"use strict";(function(t){a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("5c47"),a("c223");var i=a("8f59"),o={computed:(0,i.mapState)(["user","lbs"]),data:function(){return{keyword:"",data:[],h5Foot:0,topHeight:0,page:{page:1,isLoad:!1,isFoot:!1}}},onLoad:function(t){var e=this;this.$nextTick((function(){var t=uni.createSelectorQuery().in(e);t.select("#top-main").boundingClientRect((function(t){e.topHeight=t.height})).exec()})),this.h5Foot=50,this.getData(!0)},methods:{tapInput:function(t){this.page={page:1,isLoad:!1,isFoot:!1},this.getData(!0)},loadMoreData:function(){this.page.isFoot||this.page.isLoad||(this.page.page++,this.getData())},getData:function(){var e=this,a=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.page.isLoad){this.page.isLoad=!0,a&&uni.showLoading({title:"获取数据中.."});var i={};""!=this.keyword&&(i.keyword=this.keyword),i.page=this.page.page,null!=this.lbs&&(i.lat=this.utils.isDefine(this.lbs.latitude)?this.lbs.latitude:0,i.lng=this.utils.isDefine(this.lbs.longitude)?this.lbs.longitude:0),this.request.post("merchantList",i).then((function(t){uni.hideLoading(),e.data=a?t.data.list:e.data.concat(t.data.list),e.page.isLoad=!1,t.data.list.length!=t.data.pageSize&&(e.page.isFoot=!0)})).catch((function(e){t.log(e),uni.hideLoading(),uni.showModal({title:"系统提示",content:"加载失败,重新点击尝试!",showCancel:!1})}))}},tapOpen:function(t){var e=t.currentTarget.dataset.url;uni.navigateTo({url:e})},tapBack:function(){uni.navigateBack({delta:1})}}};e.default=o}).call(this,a("ba7c")["default"])},"9f41":function(t,e,a){"use strict";var i=a("fa46"),o=a.n(i);o.a},d515:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"m-app"},[a("v-uni-view",{staticClass:"mpp"},[a("v-uni-view",{staticClass:"sreach fx-r fx-bc fx-ac",attrs:{id:"top-main"}},[a("v-uni-image",{staticClass:"icon",attrs:{src:"/static/img/tb-seach.png"}}),a("v-uni-input",{attrs:{type:"text","confirm-type":"search",placeholder:"请输入关键词","placeholder-style":"color: #B3B3B3;"},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.tapInput.apply(void 0,arguments)}},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}),a("v-uni-view",{staticClass:"fx-g1"}),""!=t.keyword?a("v-uni-view",{staticClass:"search-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tapInput.apply(void 0,arguments)}}},[t._v("搜索")]):t._e()],1)],1),a("v-uni-scroll-view",{staticClass:"mid-body clearfix",style:"height:calc(100vh - "+t.topHeight+"px - "+t.h5Foot+"px - 20px)",attrs:{"scroll-y":"true"},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.loadMoreData.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"shop-items"},[t._l(t.data,(function(e){return a("v-uni-view",{staticClass:"item fx-r",attrs:{"data-url":"../merchant/index?id="+e.id},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tapOpen.apply(void 0,arguments)}}},[a("v-uni-image",{staticClass:"img",attrs:{src:e.logo,mode:"aspectFill"}}),a("v-uni-view",{staticClass:"info"},[a("v-uni-view",{staticClass:"iview-top fx-r"},[a("v-uni-view",{staticClass:"title"},[t._v(t._s(e.name))]),a("v-uni-view",{staticClass:"fx-g1"}),a("v-uni-view",{staticClass:"ii fx-r fx-bc"},[a("v-uni-image",{attrs:{src:"/static/img/shop-small-location.png"}}),t._v("距离"+t._s(e.dis_km))],1)],1),a("v-uni-view",{staticClass:"address fx-r fx-bc"},[a("v-uni-image",{staticClass:"icon",attrs:{src:"/static/img/address-shop.png"}}),a("v-uni-view",{staticClass:"value"},[t._v(t._s(e.address))])],1),a("v-uni-view",{staticClass:"tel fx-r fx-bc"},[a("v-uni-image",{staticClass:"icon",attrs:{src:"/static/img/tel-shop.png"}}),a("v-uni-view",{staticClass:"value"},[t._v(t._s(e.tel))])],1),a("v-uni-view",{staticClass:"business"},[t._v("营业时间: "+t._s(e.business))]),a("v-uni-view",{staticClass:"wiget fx-r"},[a("v-uni-view",{staticClass:"witem fx-h fx-bc fx-ac",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.tapTel(e)}}},[a("v-uni-image",{attrs:{src:"/static/img/shop-tel.png"}}),a("v-uni-view",{staticClass:"text"},[t._v("电话")])],1),a("v-uni-view",{staticClass:"wline"}),a("v-uni-view",{staticClass:"witem fx-h fx-bc fx-ac",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.tapLbs(e)}}},[a("v-uni-image",{attrs:{src:"/static/img/shop-location.png"}}),a("v-uni-view",{staticClass:"text"},[t._v("导航")])],1)],1)],1)],1)})),t.page.isFoot?t._e():a("v-uni-view",{staticClass:"loading fx-r fx-ac fx-bc"},[a("v-uni-image",{attrs:{src:"/static/img/xloading.png"}}),a("v-uni-text",[t._v("正在载入更多...")])],1),a("v-uni-view",{staticClass:"loading complete",attrs:{hidden:!t.page.isFoot}},[t._v("已加载全部")])],2)],1)],1)},o=[]},da44:function(t,e,a){var i=a("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.u-line-1[data-v-debef914]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important}.u-line-2[data-v-debef914]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important}.u-line-3[data-v-debef914]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important}.u-line-4[data-v-debef914]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important}.u-line-5[data-v-debef914]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important}.u-border[data-v-debef914]{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top[data-v-debef914]{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left[data-v-debef914]{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right[data-v-debef914]{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom[data-v-debef914]{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom[data-v-debef914]{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button[data-v-debef914]{padding:0;background-color:initial;font-size:inherit;line-height:inherit;color:inherit}.u-reset-button[data-v-debef914]::after{border:none}.u-hover-class[data-v-debef914]{opacity:.7}.u-primary-light[data-v-debef914]{color:#ecf5ff}.u-warning-light[data-v-debef914]{color:#fdf6ec}.u-success-light[data-v-debef914]{color:#f5fff0}.u-error-light[data-v-debef914]{color:#fef0f0}.u-info-light[data-v-debef914]{color:#f4f4f5}.u-primary-light-bg[data-v-debef914]{background-color:#ecf5ff}.u-warning-light-bg[data-v-debef914]{background-color:#fdf6ec}.u-success-light-bg[data-v-debef914]{background-color:#f5fff0}.u-error-light-bg[data-v-debef914]{background-color:#fef0f0}.u-info-light-bg[data-v-debef914]{background-color:#f4f4f5}.u-primary-dark[data-v-debef914]{color:#398ade}.u-warning-dark[data-v-debef914]{color:#f1a532}.u-success-dark[data-v-debef914]{color:#53c21d}.u-error-dark[data-v-debef914]{color:#e45656}.u-info-dark[data-v-debef914]{color:#767a82}.u-primary-dark-bg[data-v-debef914]{background-color:#398ade}.u-warning-dark-bg[data-v-debef914]{background-color:#f1a532}.u-success-dark-bg[data-v-debef914]{background-color:#53c21d}.u-error-dark-bg[data-v-debef914]{background-color:#e45656}.u-info-dark-bg[data-v-debef914]{background-color:#767a82}.u-primary-disabled[data-v-debef914]{color:#9acafc}.u-warning-disabled[data-v-debef914]{color:#f9d39b}.u-success-disabled[data-v-debef914]{color:#a9e08f}.u-error-disabled[data-v-debef914]{color:#f7b2b2}.u-info-disabled[data-v-debef914]{color:#c4c6c9}.u-primary[data-v-debef914]{color:#3c9cff}.u-warning[data-v-debef914]{color:#f9ae3d}.u-success[data-v-debef914]{color:#5ac725}.u-error[data-v-debef914]{color:#f56c6c}.u-info[data-v-debef914]{color:#909399}.u-primary-bg[data-v-debef914]{background-color:#3c9cff}.u-warning-bg[data-v-debef914]{background-color:#f9ae3d}.u-success-bg[data-v-debef914]{background-color:#5ac725}.u-error-bg[data-v-debef914]{background-color:#f56c6c}.u-info-bg[data-v-debef914]{background-color:#909399}.u-main-color[data-v-debef914]{color:#303133}.u-content-color[data-v-debef914]{color:#606266}.u-tips-color[data-v-debef914]{color:#909193}.u-light-color[data-v-debef914]{color:#c0c4cc}.u-safe-area-inset-top[data-v-debef914]{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right[data-v-debef914]{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom[data-v-debef914]{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left[data-v-debef914]{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}uni-toast[data-v-debef914]{z-index:10090}uni-toast .uni-toast[data-v-debef914]{z-index:10090}[data-v-debef914]::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}\r\n/**配置数据**/.mpp[data-v-debef914]{padding:10px %?20?%}.sreach[data-v-debef914]{background:#fff;border-radius:%?32?%;padding:%?16?% %?32?%}.sreach .icon[data-v-debef914]{width:%?46?%;height:%?46?%}.sreach uni-input[data-v-debef914]{width:calc(100% - %?46?% - %?16?% - 50px);font-size:16px}.sreach .search-btn[data-v-debef914]{font-size:14px;color:#ff4c4c}.shop-items[data-v-debef914]{background:#fff;padding:10px %?20?%}.shop-items .item[data-v-debef914]{margin-top:%?30?%}.shop-items .item .img[data-v-debef914]{width:%?180?%;height:%?180?%;border-radius:%?10?%}.shop-items .item .info[data-v-debef914]{position:relative;margin-left:%?20?%;width:calc(100% - %?200?%);border-bottom:1px solid #f8f8f8}.shop-items .item .info .title[data-v-debef914]{font-weight:700;font-size:%?34?%;color:#333;width:calc(60%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shop-items .item .info .ii[data-v-debef914]{font-weight:400;font-size:%?22?%;color:#666}.shop-items .item .info .ii uni-image[data-v-debef914]{width:%?20?%;height:%?28?%;margin-right:%?8?%}.shop-items .item .info .address[data-v-debef914]{margin-top:%?20?%}.shop-items .item .info .address .icon[data-v-debef914]{width:%?28?%;height:%?28?%}.shop-items .item .info .address .value[data-v-debef914]{font-size:%?22?%;color:#666;opacity:.5;margin-left:%?10?%}.shop-items .item .info .tel[data-v-debef914]{margin-top:%?16?%}.shop-items .item .info .tel .icon[data-v-debef914]{width:%?28?%;height:%?28?%}.shop-items .item .info .tel .value[data-v-debef914]{font-size:%?22?%;color:#666;opacity:.5;margin-left:%?10?%}.shop-items .item .info .business[data-v-debef914]{font-weight:700;font-size:%?24?%;color:#ff6f0f;background:rgba(252,243,240,.8);border-radius:%?16?% %?16?% %?16?% 0;padding:%?10?% %?10?%;display:inline-block;margin-bottom:%?20?%}.shop-items .item .info .wiget[data-v-debef914]{position:absolute;right:0;bottom:%?20?%}.shop-items .item .info .wiget .wline[data-v-debef914]{margin:0 %?24?%;height:%?40?%;width:1px;background:#eee}.shop-items .item .info .wiget .witem uni-image[data-v-debef914]{width:%?46?%;height:%?46?%}.shop-items .item .info .wiget .witem .text[data-v-debef914]{font-size:14px;color:#666;margin-top:%?8?%}',""]),t.exports=e},ee57:function(t,e,a){"use strict";a.r(e);var i=a("d515"),o=a("4581");for(var d in o)["default"].indexOf(d)<0&&function(t){a.d(e,t,(function(){return o[t]}))}(d);a("9f41");var r=a("828b"),n=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"debef914",null,!1,i["a"],void 0);e["default"]=n.exports},fa46:function(t,e,a){var i=a("da44");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("967d").default;o("2e572297",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|