pages-merchant-index.e55be0dd.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-merchant-index"],{"104d":function(t,a,e){"use strict";(function(t){e("6a54");var i=e("f5bd").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("64aa");var o=i(e("9b1b")),n=e("8f59"),d=(0,o.default)((0,o.default)({},(0,n.mapState)(["user","lbs"])),{},{data:function(){return{data:{imgs:[],content_imgs:[]},id:0,isShow:!1}},onLoad:function(t){this.id=t.id||0,this.initView()},methods:(0,o.default)((0,o.default)({},(0,n.mapMutations)(["checkUserLogin"])),{},{initView:function(){var a=this,e={};e.id=this.id,null!=this.lbs&&(e.lat=this.utils.isDefine(this.lbs.latitude)?this.lbs.latitude:0,e.lng=this.utils.isDefine(this.lbs.longitude)?this.lbs.longitude:0),uni.showLoading({title:"获取数据中.."}),this.request.post("merchantItem",e).then((function(t){uni.hideLoading(),200==t.code?a.data=t.data:a.utils.Tip(t.msg)})).catch((function(a){t.log(a),uni.hideLoading(),uni.showModal({title:"系统提示",content:"加载失败,返回在尝试",showCancel:!1})}))},tapImg:function(t,a){uni.previewImage({current:a,urls:t})},tapTel:function(t){if(null!=t.tel){var a=uni.getSystemInfoSync();"android"==a.platform?uni.showModal({content:"确认拨打"+t.tel,confirmText:"确定",cancelText:"取消",success:function(a){a.confirm&&this.$store.dispatch("permission/requestPermissions","CALL_PHONE").then((function(a){1===a&&uni.makePhoneCall({phoneNumber:t.tel})}))}}):uni.makePhoneCall({phoneNumber:t.tel})}else this.utils.showAlert({title:"系统提示",content:"暂无联系方式"})},tapLbs:function(a){uni.openLocation({latitude:Number(a.lat),longitude:Number(a.lng),name:a.name,address:a.address,scale:12,success:function(){t.log("success")},fail:function(t){}})}})});a.default=d}).call(this,e("ba7c")["default"])},3982:function(t,a,e){"use strict";e.r(a);var i=e("104d"),o=e.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(n);a["default"]=o.a},"9a6f":function(t,a,e){"use strict";e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return o})),e.d(a,"a",(function(){}));var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"app-body"},[e("v-uni-view",{staticClass:"top-info"},[e("v-uni-view",{staticClass:"merchant-info fx-r"},[e("v-uni-image",{staticClass:"img",attrs:{src:t.data.logo,mode:"aspectFill"}}),e("v-uni-view",{staticClass:"info"},[e("v-uni-view",{staticClass:"title"},[t._v(t._s(t.data.name||""))]),e("v-uni-view",{staticClass:"dm fx-r fx-bc"},[e("v-uni-image",{attrs:{src:"/static/img/shop-small-location.png"}}),t._v("距离"+t._s(t.data.dis_km||"无"))],1)],1)],1),e("v-uni-view",{staticClass:"top-foot fx-r fx-bc fx-ac"},[e("v-uni-view",{staticClass:"left"},[e("v-uni-view",{staticClass:"address"},[t._v("地址:"+t._s(t.data.address||"-无-"))]),e("v-uni-view",{staticClass:"business"},[t._v("营业时间:"+t._s(t.data.business||"-"))])],1),e("v-uni-view",{staticClass:"fx-g1"}),e("v-uni-view",{staticClass:"right fx-r fx-bc"},[e("v-uni-view",{staticClass:"witem fx-h fx-bc fx-ac",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.tapTel(t.data)}}},[e("v-uni-image",{attrs:{src:"/static/img/shop-tel.png"}}),e("v-uni-view",{staticClass:"text"},[t._v("电话")])],1),e("v-uni-view",{staticClass:"wline"}),e("v-uni-view",{staticClass:"witem fx-h fx-bc fx-ac",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.tapLbs(t.data)}}},[e("v-uni-image",{attrs:{src:"/static/img/shop-location.png"}}),e("v-uni-view",{staticClass:"text"},[t._v("导航")])],1)],1)],1)],1),e("v-uni-view",{staticClass:"pannel"},[e("v-uni-view",{staticClass:"title"},[t._v("门头照片")]),e("v-uni-view",{staticClass:"items fx-r"},[t._l(t.data.imgs,(function(a,i){return e("v-uni-view",{staticClass:"item "},[e("v-uni-image",{attrs:{mode:"aspectFill",src:a},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.tapImg(t.data.imgs,i)}}})],1)})),0==t.data.imgs.length?e("v-uni-view",{staticClass:"fx-h fx-bc fx-ac",staticStyle:{width:"100%"}},[e("v-uni-image",{staticStyle:{width:"40vw",height:"40vw"},attrs:{src:"/static/img/no-empty.png"}})],1):t._e()],2)],1),e("v-uni-view",{staticClass:"pannel"},[e("v-uni-view",{staticClass:"title"},[t._v("店门图片")]),e("v-uni-view",{staticClass:"items fx-r"},[t._l(t.data.content_imgs,(function(a,i){return e("v-uni-view",{staticClass:"item "},[e("v-uni-image",{attrs:{mode:"aspectFill",src:a},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.tapImg(t.data.content_imgs,i)}}})],1)})),0==t.data.content_imgs.length?e("v-uni-view",{staticClass:"fx-h fx-bc fx-ac",staticStyle:{width:"100%"}},[e("v-uni-image",{staticStyle:{width:"40vw",height:"40vw"},attrs:{src:"/static/img/no-empty.png"}})],1):t._e()],2)],1),e("v-uni-view",{staticStyle:{height:"120rpx"}}),e("v-uni-view",{staticClass:"foot fx-r fx-bc fx-ac"},[e("v-uni-view",{staticClass:"sbtn",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.tapTel(t.data)}}},[t._v("联系商家")]),e("v-uni-view",{staticClass:"sbtn2",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.tapLbs(t.data)}}},[t._v("导航到店")])],1)],1)},o=[]},a3bf:function(t,a,e){var i=e("c86c");a=i(!1),a.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-b37ed3ca]{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-b37ed3ca]{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-b37ed3ca]{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-b37ed3ca]{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-b37ed3ca]{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-b37ed3ca]{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top[data-v-b37ed3ca]{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left[data-v-b37ed3ca]{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right[data-v-b37ed3ca]{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom[data-v-b37ed3ca]{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom[data-v-b37ed3ca]{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-b37ed3ca]{padding:0;background-color:initial;font-size:inherit;line-height:inherit;color:inherit}.u-reset-button[data-v-b37ed3ca]::after{border:none}.u-hover-class[data-v-b37ed3ca]{opacity:.7}.u-primary-light[data-v-b37ed3ca]{color:#ecf5ff}.u-warning-light[data-v-b37ed3ca]{color:#fdf6ec}.u-success-light[data-v-b37ed3ca]{color:#f5fff0}.u-error-light[data-v-b37ed3ca]{color:#fef0f0}.u-info-light[data-v-b37ed3ca]{color:#f4f4f5}.u-primary-light-bg[data-v-b37ed3ca]{background-color:#ecf5ff}.u-warning-light-bg[data-v-b37ed3ca]{background-color:#fdf6ec}.u-success-light-bg[data-v-b37ed3ca]{background-color:#f5fff0}.u-error-light-bg[data-v-b37ed3ca]{background-color:#fef0f0}.u-info-light-bg[data-v-b37ed3ca]{background-color:#f4f4f5}.u-primary-dark[data-v-b37ed3ca]{color:#398ade}.u-warning-dark[data-v-b37ed3ca]{color:#f1a532}.u-success-dark[data-v-b37ed3ca]{color:#53c21d}.u-error-dark[data-v-b37ed3ca]{color:#e45656}.u-info-dark[data-v-b37ed3ca]{color:#767a82}.u-primary-dark-bg[data-v-b37ed3ca]{background-color:#398ade}.u-warning-dark-bg[data-v-b37ed3ca]{background-color:#f1a532}.u-success-dark-bg[data-v-b37ed3ca]{background-color:#53c21d}.u-error-dark-bg[data-v-b37ed3ca]{background-color:#e45656}.u-info-dark-bg[data-v-b37ed3ca]{background-color:#767a82}.u-primary-disabled[data-v-b37ed3ca]{color:#9acafc}.u-warning-disabled[data-v-b37ed3ca]{color:#f9d39b}.u-success-disabled[data-v-b37ed3ca]{color:#a9e08f}.u-error-disabled[data-v-b37ed3ca]{color:#f7b2b2}.u-info-disabled[data-v-b37ed3ca]{color:#c4c6c9}.u-primary[data-v-b37ed3ca]{color:#3c9cff}.u-warning[data-v-b37ed3ca]{color:#f9ae3d}.u-success[data-v-b37ed3ca]{color:#5ac725}.u-error[data-v-b37ed3ca]{color:#f56c6c}.u-info[data-v-b37ed3ca]{color:#909399}.u-primary-bg[data-v-b37ed3ca]{background-color:#3c9cff}.u-warning-bg[data-v-b37ed3ca]{background-color:#f9ae3d}.u-success-bg[data-v-b37ed3ca]{background-color:#5ac725}.u-error-bg[data-v-b37ed3ca]{background-color:#f56c6c}.u-info-bg[data-v-b37ed3ca]{background-color:#909399}.u-main-color[data-v-b37ed3ca]{color:#303133}.u-content-color[data-v-b37ed3ca]{color:#606266}.u-tips-color[data-v-b37ed3ca]{color:#909193}.u-light-color[data-v-b37ed3ca]{color:#c0c4cc}.u-safe-area-inset-top[data-v-b37ed3ca]{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right[data-v-b37ed3ca]{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom[data-v-b37ed3ca]{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left[data-v-b37ed3ca]{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}uni-toast[data-v-b37ed3ca]{z-index:10090}uni-toast .uni-toast[data-v-b37ed3ca]{z-index:10090}[data-v-b37ed3ca]::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}\r\n/**配置数据**/.app-body[data-v-b37ed3ca]{padding:%?20?% 0}.top-info[data-v-b37ed3ca]{background:#fff;padding:%?20?%}.top-info .merchant-info[data-v-b37ed3ca]{border-bottom:1px solid #f1f1f1;padding-bottom:%?20?%}.top-info .merchant-info .img[data-v-b37ed3ca]{width:80px;height:80px;border-radius:%?8?%}.top-info .merchant-info .info[data-v-b37ed3ca]{margin-left:%?20?%}.top-info .merchant-info .info .title[data-v-b37ed3ca]{font-weight:700;font-size:%?36?%;color:#000}.top-info .merchant-info .info .dm[data-v-b37ed3ca]{font-weight:400;font-size:%?22?%;color:#666;margin-top:%?40?%}.top-info .merchant-info .info .dm uni-image[data-v-b37ed3ca]{width:%?20?%;height:%?28?%;margin-right:%?8?%}.top-info .top-foot[data-v-b37ed3ca]{padding:%?20?% 0;position:relative}.top-info .top-foot .left .address[data-v-b37ed3ca]{font-weight:700;font-size:%?24?%;color:#101010}.top-info .top-foot .left .business[data-v-b37ed3ca]{font-size:%?24?%;color:#666;margin-top:%?10?%}.top-info .top-foot .right .wline[data-v-b37ed3ca]{margin:0 %?24?%;height:%?40?%;width:1px;background:#eee}.top-info .top-foot .right .witem uni-image[data-v-b37ed3ca]{width:%?46?%;height:%?46?%}.top-info .top-foot .right .witem .text[data-v-b37ed3ca]{font-size:12px;color:#666}.pannel[data-v-b37ed3ca]{background:#fff;margin-top:%?20?%;padding:%?40?%;padding-bottom:%?20?%}.pannel .title[data-v-b37ed3ca]{font-weight:700;font-size:%?30?%;color:#464646}.pannel .items[data-v-b37ed3ca]{margin-top:%?20?%}.pannel .items .item[data-v-b37ed3ca]{width:calc(50% - %?10?%);margin-right:%?10?%;margin-left:0;margin-bottom:%?10?%}.pannel .items .item[data-v-b37ed3ca]:nth-child(2n){margin-left:%?10?%;margin-right:0}.pannel .items .item uni-image[data-v-b37ed3ca]{width:100%;height:%?240?%}.foot[data-v-b37ed3ca]{position:fixed;bottom:0;width:100%;background:#fff;height:%?120?%;box-shadow:0 0 20px 0 rgba(50,50,52,.06)}.foot .sbtn[data-v-b37ed3ca]{width:40vw;height:%?80?%;background:linear-gradient(180deg,#ffa30b,#ffd158);box-shadow:0 %?4?% %?14?% %?4?% rgba(255,164,13,.48);border-radius:%?40?%;font-size:%?32?%;color:#fff;line-height:%?80?%;text-align:center;margin-right:3vw}.foot .sbtn2[data-v-b37ed3ca]{width:40vw;height:%?80?%;background:linear-gradient(180deg,#ff6223,#ffab60);box-shadow:0 %?4?% %?14?% %?4?% rgba(255,111,46,.48);border-radius:%?40?%;font-size:%?32?%;color:#fff;line-height:%?80?%;text-align:center;margin-left:3vw}',""]),t.exports=a},d016:function(t,a,e){"use strict";var i=e("eb48"),o=e.n(i);o.a},eb48:function(t,a,e){var i=e("a3bf");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=e("967d").default;o("86e871f2",i,!0,{sourceMap:!1,shadowMode:!1})},fa40:function(t,a,e){"use strict";e.r(a);var i=e("9a6f"),o=e("3982");for(var n in o)["default"].indexOf(n)<0&&function(t){e.d(a,t,(function(){return o[t]}))}(n);e("d016");var d=e("828b"),r=Object(d["a"])(o["default"],i["b"],i["c"],!1,null,"b37ed3ca",null,!1,i["a"],void 0);a["default"]=r.exports}}]);