Files
Smart-Farm/uniapp/uni-app/unpackage/dist/build/web/static/js/home-pages-farm-info.a7bc26a3.js
2025-12-22 17:13:05 +08:00

1 line
7.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["home-pages-farm-info"],{"0b81":function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){}));var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.detail.id?e("v-uni-view",{staticClass:"home-farm-info"},[e("uni-nav-bar",{attrs:{fixed:!0,shadow:!1,statusBar:!0,color:"#fff",backgroundColor:t.scrollTop<20?"":t.primaryColor,leftIcon:"icon-left",title:"商户信息"}}),e("v-uni-view",{style:{height:t.configInfo.navBarHeight+"px"}}),e("v-uni-image",{staticClass:"common-bg abs",style:{height:t.configInfo.navBarHeight+104+"px"},attrs:{mode:"aspectFill","lazy-load":!0,src:"https://lbqny.migugu.com/admin/farm/bg-cash.png"}}),e("v-uni-view",{staticClass:"common-top-img"}),e("v-uni-view",{staticClass:"common-top-info rel"},[e("v-uni-view",{staticClass:"top-box abs"},[e("v-uni-view",{staticClass:"farm-item fill-base flex-center ml-md mr-md pd-lg box-shadow radius-24"},[e("v-uni-image",{staticClass:"cover box-shadow-mini radius-24",attrs:{mode:"aspectFill","lazy-load":!0,src:t.detail.cover}}),e("v-uni-view",{staticClass:"flex-1 ml-lg"},[e("v-uni-view",{staticClass:"f-title c-title ellipsis",staticStyle:{"max-width":"460rpx"}},[t._v(t._s(t.detail.title))]),e("v-uni-view",{staticClass:"f-caption c-caption mt-sm"},[t._v("浏览量 "+t._s(t.detail.iv||0))])],1)],1)],1)],1),e("v-uni-view",{staticClass:"space-md"}),e("v-uni-view",{staticClass:"fill-base pt-sm pl-lg pr-lg pb-lg"},[e("v-uni-view",{staticClass:"common-nav-title flex-center c-title"},[e("v-uni-view",{staticClass:"common-line",style:{background:t.primaryColor}}),e("v-uni-view",{staticClass:"f-title text-bold flex-1"},[t._v("店铺描述")])],1),e("v-uni-view",{staticClass:"f-paragraph c-desc"},[e("v-uni-text",{staticStyle:{"word-break":"break-all"},attrs:{decode:"emsp"}},[t._v(t._s(t.detail.desc))])],1)],1),e("v-uni-view",{staticClass:"info-list fill-base pl-lg pb-lg"},t._l(t.detail.imgs,(function(i,n){return e("v-uni-image",{key:n,staticClass:"info-img fill-body radius-16",class:[{"mr-md":n!=t.detail.imgs.length},{"mr-lg":n==t.detail.imgs.length}],attrs:{mode:"aspectFill",src:i},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$util.previewImage({current:i,urls:t.detail.imgs})}}})})),1),e("v-uni-view",{staticClass:"space-md"}),e("v-uni-view",{staticClass:"fill-base pt-sm pl-lg pr-lg pb-lg"},[e("v-uni-view",{staticClass:"common-nav-title flex-center c-title"},[e("v-uni-view",{staticClass:"common-line",style:{background:t.primaryColor}}),e("v-uni-view",{staticClass:"f-title text-bold flex-1"},[t._v("基础信息")])],1),e("v-uni-view",{staticClass:"f-paragraph c-desc mt-sm"},[e("v-uni-view",{staticClass:"flex-between",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.$util.goUrl({url:t.detail.mobile,openType:"call"})}}},[e("v-uni-view",[t._v("联系电话")]),e("v-uni-view",[t._v(t._s(t.detail.mobile))])],1),e("v-uni-view",{staticClass:"flex-warp mt-md",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.toMap.apply(void 0,arguments)}}},[e("v-uni-view",[t._v("店铺地址")]),e("v-uni-view",{staticClass:"flex-1 ml-lg pl-lg"},[t._v(t._s(t.detail.address))])],1),e("v-uni-view",{staticClass:"flex-between mt-md"},[e("v-uni-view",[t._v("是否营业")]),e("v-uni-view",[t._v(t._s(t.openType[t.detail.is_open]))])],1)],1)],1),e("v-uni-view",{staticClass:"space-footer"})],1):t._e()},a=[]},"27e2":function(t,i,e){"use strict";var n=e("84c9"),a=e.n(n);a.a},3698:function(t,i,e){var n=e("c86c");i=n(!1),i.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.home-farm-info .farm-item .cover[data-v-20857b78]{width:%?160?%;height:%?160?%}.home-farm-info .farm-item .icon-dingwei[data-v-20857b78],\n.home-farm-info .farm-item .icon-right[data-v-20857b78]{font-size:%?24?%}.home-farm-info .farm-item .status-btn[data-v-20857b78]{width:%?80?%;height:%?36?%;font-size:%?20?%}.home-farm-info .farm-item .max-title[data-v-20857b78]{max-width:%?370?%}.home-farm-info .farm-item .addr-text[data-v-20857b78]{max-width:%?420?%}.home-farm-info .info-list[data-v-20857b78]{white-space:nowrap;width:100%;overflow:auto}.home-farm-info .info-list .info-img[data-v-20857b78]{width:%?200?%;height:%?200?%;display:inline-block}',""]),t.exports=i},"84c9":function(t,i,e){var n=e("3698");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=e("967d").default;a("9286bc00",n,!0,{sourceMap:!1,shadowMode:!1})},a4be:function(t,i,e){"use strict";e.r(i);var n=e("0b81"),a=e("f4fa");for(var s in a)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(s);e("27e2");var o=e("828b"),l=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"20857b78",null,!1,n["a"],void 0);i["default"]=l.exports},bd84:function(t,i,e){"use strict";e("6a54");var n=e("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=n(e("2634")),s=n(e("2fdc")),o=e("8f59"),l={components:{},data:function(){return{scrollTop:0,options:{},detail:{},openType:{0:"闭店中",1:"营业中"}}},computed:(0,o.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo}}),onLoad:function(t){this.options=t,this.initIndex()},onPageScroll:function(t){this.scrollTop=t.scrollTop},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.stopPullDownRefresh()},methods:{initIndex:function(){var t=this;return(0,s.default)((0,a.default)().mark((function i(){var e,n;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return e=t.options.id,i.next=3,t.$api.home.farmerInfo({id:e});case 3:n=i.sent,n.is_open=1,n.star_percent=(1*n.star/5*100).toFixed(2)+"%",n.iv=1*n.iv+1,t.detail=n;case 8:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.initIndex()},toMap:function(){var t=this;return(0,s.default)((0,a.default)().mark((function i(){var e,n,s,o;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return e=t.detail,n=e.lat,s=e.lng,o=e.address,i.next=3,t.$util.checkAuth({type:"userLocation"});case 3:return i.next=5,uni.getLocation({type:"gcj02"});case 5:return i.next=7,uni.openLocation({latitude:1*n,longitude:1*s,name:o,scale:28});case 7:case"end":return i.stop()}}),i)})))()}}};i.default=l},f4fa:function(t,i,e){"use strict";e.r(i);var n=e("bd84"),a=e.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(s);i["default"]=a.a}}]);