pages-users-goods_logistics-index.62db22bd.js 8.9 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-goods_logistics-index"],{"494c":function(t,i,e){"use strict";e.d(i,"b",(function(){return o})),e.d(i,"c",(function(){return s})),e.d(i,"a",(function(){}));var o=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{style:t.viewColor},[e("v-uni-view",{staticClass:"logistics pad20"},[t.product.cart_info?e("v-uni-view",{staticClass:"header acea-row row-between row-top bg-f mt20 boder-24"},[e("v-uni-view",{staticClass:"pictrue"},[e("v-uni-image",{attrs:{src:t.product.cart_info.product.image}})],1),e("v-uni-view",{staticClass:"text acea-row row-between"},[e("v-uni-view",[e("v-uni-view",{staticClass:"name line2",class:20==t.orderInfo.activity_type?"integral-name":""},[t._v(t._s(t.product.cart_info.product.store_name))]),e("v-uni-view",{staticClass:"sku"},[t._v(t._s(t.product.cart_info.productAttr.sku))])],1),e("v-uni-view",{staticClass:"text-right"},[e("v-uni-view",{staticClass:"money regular"},[20==t.orderInfo.activity_type?e("v-uni-view",[t._v(t._s(t.product.cart_info.productAttr.ot_price)+"个积分"),t.product.cart_info.productAttr.price>0?[t._v("+"+t._s(t.product.cart_info.productAttr.price)+"元")]:t._e()],2):e("v-uni-view",[t._v("¥"+t._s(t.product.product_price))]),e("v-uni-view",[t._v("x"+t._s(t.product.product_num))])],1)],1)],1)],1):t._e(),e("v-uni-view",{staticClass:"logisticsCon mt20 bg-f boder-24"},[e("v-uni-view",{staticClass:"company acea-row row-between-wrapper"},[e("v-uni-view",{staticClass:"picTxt acea-row row-between-wrapper"},[e("v-uni-view",{staticClass:"iconfont icon-ic_receiving1"}),e("v-uni-view",{staticClass:"text"},[e("v-uni-view",[e("v-uni-text",{staticClass:"name line1"},[t._v("物流公司:")]),t._v(t._s(t.orderInfo.delivery_name?t.orderInfo.delivery_name:""))],1),e("v-uni-view",{staticClass:"express line1"},[e("v-uni-text",{staticClass:"name"},[t._v("快递单号:")]),t._v(t._s(t.orderInfo.delivery_id?t.orderInfo.delivery_id:""))],1)],1)],1),e("v-uni-view",{staticClass:"copy copy-data acea-row row-center row-middle",attrs:{"data-clipboard-text":t.orderInfo.delivery_id}},[t._v("复制单号")])],1),t._l(t.expressList,(function(i,o){return t.expressList.length>0?e("v-uni-view",{key:o,staticClass:"item"},[e("v-uni-view",{staticClass:"circular",class:0===o?"on":""}),e("v-uni-view",{staticClass:"text",class:0===o?"on-font on":""},[e("v-uni-view",[t._v(t._s(i.status))]),e("v-uni-view",{staticClass:"data",class:0===o?"on-font on":""},[t._v(t._s(i.time))])],1)],1):t._e()}))],2),1==t.recommend_switch?e("recommend",{attrs:{hostProduct:t.hostProduct,isLogin:t.isLogin}}):t._e()],1)],1)},s=[]},"4f88":function(t,i,e){"use strict";var o=e("d804"),s=e.n(o);s.a},"89b8":function(t,i,e){"use strict";e.r(i);var o=e("b815"),s=e.n(o);for(var c in o)["default"].indexOf(c)<0&&function(t){e.d(i,t,(function(){return o[t]}))}(c);i["default"]=s.a},b815:function(t,i,e){"use strict";e("6a54");var o=e("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("c223");var s=e("5676"),c=e("7e00"),n=o(e("5f97")),r=e("8f59"),a=e("96e0"),d=e("e44d"),l=o(e("d3e2")),u={components:{recommend:l.default},data:function(){return{orderId:"",refundId:"",merId:"",product:{},orderInfo:{},expressList:[],hostProduct:[],scroll:!1,page:1,limit:10}},computed:(0,a.configMap)({recommend_switch:0},(0,r.mapGetters)(["isLogin","viewColor"])),onLoad:function(t){if(!t.orderId&&!t.refundId)return this.$util.Tips({title:"缺少订单号"});this.orderId=t.orderId,this.refundId=t.refundId,this.merId=t.merId,this.isLogin?this.getExpress():(0,d.toLogin)()},onReady:function(){this.$nextTick((function(){var t=this,i=new n.default(".copy-data");i.on("success",(function(){t.$util.Tips({title:"复制成功"})}))}))},methods:{copyOrderId:function(){uni.setClipboardData({data:this.orderInfo.delivery_id})},getExpress:function(){var t=this;uni.showLoading({title:"加载中",mask:!0}),t.orderId?(0,s.express)(t.orderId).then((function(i){uni.hideLoading();var e=i.data.express||{};t.$set(t,"product",i.data.order.orderProduct[0]||{}),t.$set(t,"orderInfo",i.data.order),t.$set(t,"expressList",e||[]),t.get_host_product()})).catch((function(i){return uni.hideLoading(),t.$util.Tips({title:i})})):(0,s.refundOrderExpress)(t.merId,t.refundId).then((function(i){uni.hideLoading();var e=i.data.express||{};t.$set(t,"product",i.data.refund.refundProduct[0].product||{}),t.$set(t,"orderInfo",i.data.refund),t.$set(t,"expressList",e||[]),t.get_host_product()})).catch((function(i){return uni.hideLoading(),t.$util.Tips({title:i})}))},get_host_product:function(){var t=this;t.scroll||(t.scroll=!0,(0,c.getProductHot)(t.page,t.limit).then((function(i){t.page++,t.scroll=i.data.list.length<t.limit,t.hostProduct=t.hostProduct.concat(i.data.list)})))}},onReachBottom:function(){this.get_host_product()},onPageScroll:function(){uni.$emit("scroll")}};i.default=u},d1a1:function(t,i,e){var o=e("c86c");i=o(!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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.logistics .header[data-v-c40218c2]{padding:%?23?% %?30?%;height:%?166?%;box-sizing:border-box}.logistics .header .pictrue[data-v-c40218c2]{width:%?120?%;height:%?120?%}.logistics .header .pictrue uni-image[data-v-c40218c2]{width:100%;height:100%;border-radius:%?16?%}.logistics .header .text[data-v-c40218c2]{width:%?520?%;font-size:%?28?%;color:#999;margin-top:%?6?%}.logistics .header .text .name[data-v-c40218c2]{width:%?400?%;color:#282828}.logistics .header .text .name.integral-name[data-v-c40218c2]{width:%?240?%}.logistics .header .text .sku[data-v-c40218c2]{color:#999;font-size:%?20?%;margin-top:%?10?%}.logistics .header .text .text-right[data-v-c40218c2]{text-align:right}.logistics .header .text .money[data-v-c40218c2]{font-size:%?28?%;margin-bottom:%?4?%}.logistics .logisticsCon .company[data-v-c40218c2]{height:%?120?%;margin:0 0 %?45?% %?30?%;padding-right:%?30?%;border-bottom:1px solid #eee}.logistics .logisticsCon .company .picTxt[data-v-c40218c2]{width:%?480?%}.logistics .logisticsCon .company .picTxt .iconfont[data-v-c40218c2]{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-c40218c2]{width:%?410?%;font-size:%?26?%;color:#282828}.logistics .logisticsCon .company .picTxt .text .name[data-v-c40218c2]{color:#999}.logistics .logisticsCon .company .picTxt .text .express[data-v-c40218c2]{margin-top:%?5?%}.logistics .logisticsCon .company .copy[data-v-c40218c2]{font-size:%?22?%;width:%?128?%;height:%?40?%;border-radius:%?100?%;border:1px solid #ddd;color:#666}.logistics .logisticsCon .item[data-v-c40218c2]{padding:0 %?40?%;position:relative}.logistics .logisticsCon .item:last-child .text[data-v-c40218c2]{border:none}.logistics .logisticsCon .item .circular[data-v-c40218c2]{width:%?20?%;height:%?20?%;border-radius:50%;position:absolute;top:%?-1?%;left:%?31.5?%;background-color:#ddd}.logistics .logisticsCon .item .circular.on[data-v-c40218c2]{background-color:var(--view-theme)}.logistics .logisticsCon .item .text.on-font[data-v-c40218c2]{color:var(--view-theme)}.logistics .logisticsCon .item .text .data.on-font[data-v-c40218c2]{color:var(--view-theme)}.logistics .logisticsCon .item .text[data-v-c40218c2]{font-size:%?26?%;color:#666;width:%?615?%;border-left:1px solid #e6e6e6;padding:0 0 %?60?% %?38?%}.logistics .logisticsCon .item .text.on[data-v-c40218c2]{border-left-color:var(--view-bntColor22)}.logistics .logisticsCon .item .text .data[data-v-c40218c2]{font-size:%?24?%;color:#999;margin-top:%?10?%}.logistics .logisticsCon .item .text .data .time[data-v-c40218c2]{margin-left:%?15?%}',""]),t.exports=i},d804:function(t,i,e){var o=e("d1a1");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=e("967d").default;s("7ee09736",o,!0,{sourceMap:!1,shadowMode:!1})},e663:function(t,i,e){"use strict";e.r(i);var o=e("494c"),s=e("89b8");for(var c in s)["default"].indexOf(c)<0&&function(t){e.d(i,t,(function(){return s[t]}))}(c);e("4f88");var n=e("828b"),r=Object(n["a"])(s["default"],o["b"],o["c"],!1,null,"c40218c2",null,!1,o["a"],void 0);i["default"]=r.exports}}]);