detection-user/unpackage/dist/build/mp-weixin/pages/detection/MerchantDetails.js
2024-09-18 18:50:21 +08:00

1 line
5.2 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/detection/MerchantDetails"],{"0aee":function(t,e,n){"use strict";(function(t,e){var a=n("47a9");n("c55e");a(n("3240"));var o=a(n("f48c"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},2698:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var a={uOverlay:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-overlay/u-overlay")]).then(n.bind(null,"d308"))},uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"ee17"))},uniRate:function(){return n.e("uni_modules/uni-rate/components/uni-rate/uni-rate").then(n.bind(null,"f963"))}},o=function(){var t=this,e=t.$createElement,n=(t._self._c,(t.obj.distance/1e3).toFixed(2)),a=t.__map(t.shoplist,(function(e,n){var a=t.__get_orig(e),o=e.skuList.length,i=e.skuList.length;return{$orig:a,g1:o,g2:i}}));t._isMounted||(t.e0=function(e){t.show=!1}),t.$mp.data=Object.assign({},{$root:{g0:n,l0:a}})},i=[]},5009:function(t,e,n){"use strict";(function(t){var a=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n("7eb4")),i=a(n("ee10")),r=(a(n("f76e")),a(n("1fab"))),u=n("f6da"),s={data:function(){return{id:"",imgs:"",show:!1,bannerlist:[],shoplist:[],longitude:"105.442024",latitude:"28.871325",indicatorDots:!1,autoplay:!0,interval:2e3,duration:500,pageNum:1,pageSize:5,totalPages:0,obj:{partnerName:"检测店铺"},baseUrl:this.$baseImageUrl,couponlist:[],plist:[],total:0}},components:{},onReachBottom:function(){""!=this.plist&&(console.log("分页"),this.pageSize>this.totalPages?t.showToast({title:"没有下一页了",icon:"none"}):(this.pageNum++,console.log(222),this.getCommentOrderList()))},onLoad:function(t){this.id=t.id,this.canLedCoupon(),this.getCommentOrderList(),this.getindex()},mounted:function(){this.imgs=this.baseUrl},methods:{getCommentOrderList:function(){var e=this;return(0,i.default)(o.default.mark((function n(){var a,i,s;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if((0,u.getToken)()){n.next=2;break}return n.abrupt("return");case 2:return t.showLoading(),a={partnerId:e.id,pageSize:e.pageSize,pageNum:e.pageNum},n.next=6,(0,r.default)({url:"/orderApi/getCommentOrderList",method:"get",params:a});case 6:i=n.sent,1!=e.pageNum?(t.hideLoading(),e.plist=e.plist.concat(i.rows)):(t.hideLoading(),e.plist=i.rows),s=i.total,e.totalPages=Math.ceil(s/e.pageSize);case 10:case"end":return n.stop()}}),n)})))()},canLedCoupon:function(){var t=this;return(0,i.default)(o.default.mark((function e(){var n,a;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if((0,u.getToken)()){e.next=2;break}return e.abrupt("return");case 2:return n={partnerId:t.id},e.next=5,(0,r.default)({url:"/appInspection/goods/canLedCoupon",method:"get",params:n});case 5:a=e.sent,console.log(a),t.couponlist=a.data.slice(0,3),a.data.length>0&&(t.show=!0);case 9:case"end":return e.stop()}}),e)})))()},drawDownCoupon:function(){var e=this;return(0,i.default)(o.default.mark((function n(){var a;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a={partnerId:e.id},n.next=3,(0,r.default)({url:"/appInspection/goods/drawDownCoupon",method:"post",params:a});case 3:n.sent,t.showToast({title:"领取成功"}),e.show=!1;case 6:case"end":return n.stop()}}),n)})))()},gettel:function(){t.makePhoneCall({phoneNumber:this.obj.contactNumber})},getback:function(){t.navigateBack({delta:1})},fang:function(){console.log("1212"),t.openLocation({latitude:this.obj.latitude,longitude:this.obj.longitude,success:function(){console.log("success")}})},getindex:function(){var e=this;return(0,i.default)(o.default.mark((function n(){var a,i;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=e,t.getLocation({type:"wgs84",success:function(t){var e={partnerId:a.id,longitude:t.longitude,latitude:t.latitude};(0,r.default)({url:"/appInspection/partner/shopDetail",method:"get",params:e}).then((function(t){a.obj=t.data,a.bannerlist=t.data.imageList}))},fail:function(t){var e={partnerId:a.id,longitude:a.longitude,latitude:a.latitude};(0,r.default)({url:"/appInspection/partner/shopDetail",method:"get",params:e}).then((function(t){a.obj=t.data,a.bannerlist=t.data.imageList}))}}),n.next=4,(0,r.default)({url:"/appInspection/goods/list?partnerId="+e.id,method:"get"});case 4:i=n.sent,e.shoplist=i.data;case 6:case"end":return n.stop()}}),n)})))()},going:function(e){t.navigateTo({url:"/pages/detection/Merchantproducts?id="+e})}}};e.default=s}).call(this,n("df3c")["default"])},d03d:function(t,e,n){"use strict";var a=n("d6f2"),o=n.n(a);o.a},d6f2:function(t,e,n){},f1da:function(t,e,n){"use strict";n.r(e);var a=n("5009"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},f48c:function(t,e,n){"use strict";n.r(e);var a=n("2698"),o=n("f1da");for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("d03d");var r=n("828b"),u=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"2c7ef698",null,!1,a["a"],void 0);e["default"]=u.exports}},[["0aee","common/runtime","common/vendor"]]]);