1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-goods_logistics-index"],{"0c08":function(t,e,i){"use strict";i("7a82");var o=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("99af");var n=i("b68d"),a=i("b907"),c=o(i("a2eb")),s=i("1939"),r=i("26cb"),d=o(i("f9a5")),u={components:{recommend:d.default},data:function(){return{orderId:"",product:{productInfo:{}},orderInfo:{},expressList:[],hostProduct:[],loading:!1,goodScroll:!0,params:{page:1,limit:10}}},computed:(0,r.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,e){t&&(this.getExpress(),this.get_host_product())},deep:!0}},onLoad:function(t){if(!t.orderId)return this.$util.Tips({title:"缺少订单号"});this.orderId=t.orderId,this.isLogin?(this.getExpress(),this.get_host_product()):(0,s.toLogin)()},onReady:function(){this.$nextTick((function(){var t=this,e=new c.default(".copy-data");e.on("success",(function(){t.$util.Tips({title:"复制成功"})}))}))},methods:{onLoadFun:function(){this.getExpress(),this.get_host_product()},copyOrderId:function(){uni.setClipboardData({data:this.orderInfo.deliveryId})},getExpress:function(){var t=this;(0,n.express)(t.orderId).then((function(e){var i=e.data.express||{};t.$set(t,"product",e.data.order.info[0]||{}),t.$set(t,"orderInfo",e.data.order),t.$set(t,"expressList",i.list||[])}))},get_host_product:function(){if(this.loading=!0,this.goodScroll){var t=this;(0,a.getProductHot)(t.params.page,t.params.limit).then((function(e){t.loading=!1,t.goodScroll=e.data.list.length>=t.params.limit,t.params.page++,t.hostProduct=t.hostProduct.concat(e.data.list)}))}}},onReachBottom:function(){1!=this.params.page&&this.get_host_product()}};e.default=u},"0e1b":function(t,e,i){var o=i("24fb");e=o(!1),e.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/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.logistics .header[data-v-38dcb393]{padding:%?23?% %?30?%;background-color:#fff;height:%?166?%;box-sizing:border-box}.logistics .header .pictrue[data-v-38dcb393]{width:%?120?%;height:%?120?%}.logistics .header .pictrue uni-image[data-v-38dcb393]{width:100%;height:100%;border-radius:%?6?%}.logistics .header .text[data-v-38dcb393]{width:%?540?%;font-size:%?28?%;color:#999;margin-top:%?6?%}.logistics .header .text .name[data-v-38dcb393]{width:%?365?%;color:#282828}.logistics .header .text .money[data-v-38dcb393]{text-align:right}.logistics .logisticsCon[data-v-38dcb393]{background-color:#fff;margin:%?12?% 0}.logistics .logisticsCon .company[data-v-38dcb393]{height:%?120?%;margin:0 0 %?45?% %?30?%;padding-right:%?30?%;border-bottom:%?1?% solid #f5f5f5}.logistics .logisticsCon .company .picTxt[data-v-38dcb393]{width:%?520?%}.logistics .logisticsCon .company .picTxt .iconfont[data-v-38dcb393]{width:%?50?%;height:%?50?%;background-color:#666;text-align:center;line-height:%?50?%;color:#fff;font-size:%?35?%}.logistics .logisticsCon .company .picTxt .text[data-v-38dcb393]{width:%?450?%;font-size:%?26?%;color:#282828}.logistics .logisticsCon .company .picTxt .text .name[data-v-38dcb393]{color:#999}.logistics .logisticsCon .company .picTxt .text .express[data-v-38dcb393]{margin-top:%?5?%}.logistics .logisticsCon .company .copy[data-v-38dcb393]{font-size:%?20?%;width:%?106?%;height:%?40?%;text-align:center;line-height:%?40?%;border-radius:%?20?%;border:%?1?% solid #999}.logistics .logisticsCon .item[data-v-38dcb393]{padding:0 %?40?%;position:relative}.logistics .logisticsCon .item .circular[data-v-38dcb393]{width:%?20?%;height:%?20?%;border-radius:50%;position:absolute;top:%?-1?%;left:%?31.5?%;background-color:#ddd}.logistics .logisticsCon .item .circular.on[data-v-38dcb393]{background-color:#e93323}.logistics .logisticsCon .item .text.on-font[data-v-38dcb393]{color:#e93323}.logistics .logisticsCon .item .text .data.on-font[data-v-38dcb393]{color:#e93323}.logistics .logisticsCon .item .text[data-v-38dcb393]{font-size:%?26?%;color:#666;width:%?615?%;border-left:%?1?% solid #e6e6e6;padding:0 0 %?60?% %?38?%}.logistics .logisticsCon .item .text.on[data-v-38dcb393]{border-left-color:#f8c1bd}.logistics .logisticsCon .item .text .data[data-v-38dcb393]{font-size:%?24?%;color:#999;margin-top:%?10?%}.logistics .logisticsCon .item .text .data .time[data-v-38dcb393]{margin-left:%?15?%}',""]),t.exports=e},"1d06":function(t,e,i){"use strict";i.r(e);var o=i("0c08"),n=i.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);e["default"]=n.a},"1f3e":function(t,e,i){var o=i("0e1b");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=i("4f06").default;n("35d490c1",o,!0,{sourceMap:!1,shadowMode:!1})},"22a7":function(t,e,i){"use strict";i.r(e);var o=i("b66f"),n=i("1d06");for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);i("f4c0");var c=i("f0c5"),s=Object(c["a"])(n["default"],o["b"],o["c"],!1,null,"38dcb393",null,!1,o["a"],void 0);e["default"]=s.exports},"2ea0":function(t,e,i){"use strict";var o=i("a4a1"),n=i.n(o);n.a},"34de":function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"recommend"},[i("v-uni-view",{staticClass:"title acea-row row-center-wrapper"},[i("v-uni-text",{staticClass:"iconfont icon-zhuangshixian"}),i("v-uni-text",{staticClass:"name"},[t._v("热门推荐")]),i("v-uni-text",{staticClass:"iconfont icon-zhuangshixian lefticon"})],1),i("v-uni-view",{staticClass:"recommendList acea-row row-between-wrapper"},t._l(t.hostProduct,(function(e,o){return i("v-uni-view",{key:o,staticClass:"item",attrs:{"hover-class":"none"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goDetail(e)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:e.image}}),e.activityH5&&"1"===e.activityH5.type?i("span",{staticClass:"pictrue_log_big pictrue_log_class"},[t._v("秒杀")]):t._e(),e.activityH5&&"2"===e.activityH5.type?i("span",{staticClass:"pictrue_log_big pictrue_log_class"},[t._v("砍价")]):t._e(),e.activityH5&&"3"===e.activityH5.type?i("span",{staticClass:"pictrue_log_big pictrue_log_class"},[t._v("拼团")]):t._e()],1),i("v-uni-view",{staticClass:"name line1"},[t._v(t._s(e.storeName))]),i("v-uni-view",{staticClass:"money font-color"},[t._v("¥"),i("v-uni-text",{staticClass:"num"},[t._v(t._s(e.price))])],1)],1)})),1)],1)},n=[]},a322:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i("26cb"),n=i("a9d2"),a={computed:(0,o.mapGetters)(["uid"]),props:{hostProduct:{type:Array,default:function(){return[]}}},data:function(){return{}},methods:{goDetail:function(t){(0,n.goShopDetail)(t,this.uid).then((function(e){uni.navigateTo({url:"/pages/goods_details/index?id=".concat(t.id)})}))}}};e.default=a},a4a1:function(t,e,i){var o=i("adf7");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=i("4f06").default;n("9c8c2aae",o,!0,{sourceMap:!1,shadowMode:!1})},adf7:function(t,e,i){var o=i("24fb");e=o(!1),e.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/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.recommend[data-v-12c6ef78]{background-color:#fff}.recommend .title[data-v-12c6ef78]{height:%?135?%;line-height:%?135?%;font-size:%?28?%;color:#282828}.recommend .title .name[data-v-12c6ef78]{margin:0 %?28?%}.recommend .title .iconfont[data-v-12c6ef78]{font-size:%?170?%;color:#454545}.recommend .title .iconfont.lefticon[data-v-12c6ef78]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.recommend .recommendList[data-v-12c6ef78]{padding:0 %?30?%;padding-bottom:%?50?%}.recommend .recommendList .item[data-v-12c6ef78]{width:%?335?%;margin-bottom:%?30?%}.recommend .recommendList .item .pictrue[data-v-12c6ef78]{position:relative;width:100%;height:%?335?%}.recommend .recommendList .item .pictrue uni-image[data-v-12c6ef78]{width:100%;height:100%;border-radius:%?14?%}.recommend .recommendList .item .name[data-v-12c6ef78]{font-size:%?28?%;color:#282828;margin-top:%?20?%}.recommend .recommendList .item .money[data-v-12c6ef78]{font-size:%?20?%;margin-top:%?8?%;font-weight:600}.recommend .recommendList .item .money .num[data-v-12c6ef78]{font-size:%?28?%}',""]),t.exports=e},b66f:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticClass:"logistics"},[i("v-uni-view",{staticClass:"header acea-row row-between row-top"},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:t.product.productImg}})],1),i("v-uni-view",{staticClass:"text acea-row row-between"},[i("v-uni-view",{staticClass:"name line2"},[t._v(t._s(t.product.productName))]),i("v-uni-view",{staticClass:"money"},[i("v-uni-view",[t._v("¥"+t._s(t.product.price))]),i("v-uni-view",[t._v("x"+t._s(t.product.payNum))])],1)],1)],1),i("v-uni-view",{staticClass:"logisticsCon"},[i("v-uni-view",{staticClass:"company acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"picTxt acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"iconfont icon-wuliu"}),i("v-uni-view",{staticClass:"text"},[i("v-uni-view",[i("v-uni-text",{staticClass:"name line1"},[t._v("物流公司:")]),t._v(t._s(t.orderInfo.deliveryName))],1),i("v-uni-view",{staticClass:"express line1"},[i("v-uni-text",{staticClass:"name"},[t._v("快递单号:")]),t._v(t._s(t.orderInfo.deliveryId))],1)],1)],1),i("v-uni-view",{staticClass:"copy copy-data",attrs:{"data-clipboard-text":t.orderInfo.deliveryId}},[t._v("复制单号")])],1),t._l(t.expressList,(function(e,o){return i("v-uni-view",{key:o,staticClass:"item"},[i("v-uni-view",{staticClass:"circular",class:0===o?"on":""}),i("v-uni-view",{staticClass:"text",class:0===o?"on-font on":""},[i("v-uni-view",[t._v(t._s(e.status))]),i("v-uni-view",{staticClass:"data",class:0===o?"on-font on":""},[t._v(t._s(e.time))])],1)],1)}))],2),t.hostProduct.length?i("recommend",{attrs:{hostProduct:t.hostProduct}}):t._e()],1)],1)},n=[]},b907:function(t,e,i){"use strict";i("7a82");var o=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.collectAdd=function(t,e){return n.default.post("front/collect/add",{id:t,category:void 0===e?"product":e})},e.collectAll=function(t,e){return n.default.post("collect/all",{id:t,category:void 0===e?"product":e})},e.collectDel=function(t){return n.default.post("collect/cancel/".concat(t))},e.collectDelete=function(t){return n.default.post("collect/delete",t)},e.getCategoryList=function(){return n.default.get("front/category",{},{noAuth:!0})},e.getCollectUserList=function(t){return n.default.get("collect/user",t)},e.getGroomList=function(t,e){return n.default.get("index/product/"+t,e,{noAuth:!0})},e.getProductCode=function(t){return n.default.get("front/product/code/"+t,{})},e.getProductDetail=function(t,e){return n.default.get("front/product/detail/"+t+"?type="+e,{},{noAuth:!0})},e.getProductGood=function(){return n.default.get("front/product/good")},e.getProductHot=function(t,e){return n.default.get("front/product/hot",{page:void 0===t?1:t,limit:void 0===e?4:e},{noAuth:!0})},e.getProductslist=function(t){return n.default.get("front/products",t,{noAuth:!0})},e.getReplyConfig=function(t){return n.default.get("front/reply/config/"+t,{},{noAuth:!0})},e.getReplyList=function(t,e){return n.default.get("reply/list/"+t,e,{noAuth:!0})},e.getReplyProduct=function(t){return n.default.get("front/reply/product/"+t,{noAuth:!0})},e.getSearchKeyword=function(){return n.default.get("search/keyword",{},{noAuth:!0})},e.postCartAdd=function(t){return n.default.post("front/cart/save",t,{})},e.storeListApi=function(t){return n.default.post("store/list",t,{},1)};var n=o(i("0a86"))},da88:function(t,e,i){"use strict";i.r(e);var o=i("a322"),n=i.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);e["default"]=n.a},f4c0:function(t,e,i){"use strict";var o=i("1f3e"),n=i.n(o);n.a},f9a5:function(t,e,i){"use strict";i.r(e);var o=i("34de"),n=i("da88");for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);i("2ea0");var c=i("f0c5"),s=Object(c["a"])(n["default"],o["b"],o["c"],!1,null,"12c6ef78",null,!1,o["a"],void 0);e["default"]=s.exports}}]); |