bztang-admin/addons/yun_shop/static/app/js/chunk-6fe075b0.9a4e341c.js

1 line
13 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([["chunk-6fe075b0"],{"00a5":function(e,t,o){var a=o("24fb");t=a(!1),t.push([e.i,".ell[data-v-eaa84522]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.covert-flex[data-v-eaa84522]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.covert-flex[data-v-eaa84522],.goods-item[data-v-eaa84522]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.goods-item[data-v-eaa84522]{background-color:#fff;padding:12px;border-radius:8px 8px 8px 8px;margin:0 0 10px 0}.goods-item .orderHead[data-v-eaa84522]{font-size:14px;font-weight:400;padding:0 0 10px 0}.goods-item .orderHead h3[data-v-eaa84522]{color:#00001c;font-weight:400}.goods-item .orderHead p[data-v-eaa84522]{color:var(--themeBaseColor)}.goods-item .order-sum[data-v-eaa84522]{padding:17px 0 0 0;font-size:13px;font-weight:400;color:#00001c}.goods-item .order-sum .price[data-v-eaa84522]{font-weight:500}.goods-item .img[data-v-eaa84522]{min-width:90px;height:90px}.goods-item .min-img[data-v-eaa84522]{min-width:80px;height:80px}.goods-item .wrap[data-v-eaa84522]{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 0 0 10px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.goods-item .wrap h3[data-v-eaa84522]{word-break:break-all;word-wrap:break-word;text-align:left;font-weight:500;color:#00001c}.goods-item .wrap .sum[data-v-eaa84522]{min-width:20%;font-size:13px;font-weight:400;color:#00001c;text-align:right}.goods-item .order-flex[data-v-eaa84522]{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.goods-item .order-address[data-v-eaa84522]{text-align:left;font-size:13px;font-weight:400;color:#6e6e79;padding:15px 0 0 0}.goods-item .order-address .member-info[data-v-eaa84522]{padding:0 0 8px 0}.goods-item .address-btn[data-v-eaa84522]{padding:12px 0 0 0;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.goods-item .address-btn .btn[data-v-eaa84522]{font-size:13px;line-height:13px;font-weight:400;color:#fff;color:var(--themeBaseColor);padding:9px 14px;border-radius:25px 25px 25px 25px;border:1px solid var(--themeBaseColor);-webkit-box-sizing:border-box;box-sizing:border-box;margin-left:10px}.goods-item .classify[data-v-eaa84522]{padding:10px 0 0 0;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}.goods-item .classify .price[data-v-eaa84522]{color:#f15353;font-weight:500;font-size:16px}.goods-item .classify .price span[data-v-eaa84522]{font-size:12px}.goods-item .classify .select[data-v-eaa84522]{background:#f15353;border-radius:50%;padding:5px 6px}.goods-item .classify .select .icon-gouwuche2[data-v-eaa84522]{color:#fff;font-size:13px}",""]),e.exports=t},"32f7":function(e,t,o){var a=o("9873");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=o("499e").default;i("24ab129c",a,!0,{sourceMap:!1,shadowMode:!1})},"7eef":function(e,t,o){"use strict";o("e0ed")},"80a8":function(e,t,o){var a=o("24fb");t=a(!1),t.push([e.i,".order-page[data-v-cfec2386] .van-tabs__line{bottom:20px}",""]),e.exports=t},8377:function(e,t,o){var a=o("00a5");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=o("499e").default;i("a179ab0e",a,!0,{sourceMap:!1,shadowMode:!1})},8540:function(e,t,o){"use strict";o("32f7")},9873:function(e,t,o){var a=o("24fb");t=a(!1),t.push([e.i,".order-list[data-v-cfec2386]{margin:10px 12px 0 12px}.mb60[data-v-cfec2386]{height:60px;clear:both}",""]),e.exports=t},"9dc9":function(e,t,o){"use strict";o("8377")},ac0d:function(e,t,o){"use strict";o.d(t,"a",(function(){return s}));var a=document.documentElement,i=document.body,s={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return a&&a.scrollTop?e=a.scrollTop:i&&(e=i.scrollTop),e},getClientHeight:function(){var e=0;return e=i.clientHeight&&a.clientHeight?Math.min(i.clientHeight,a.clientHeight):Math.max(i.clientHeight,a.clientHeight),e},getScrollHeight:function(){return Math.max(i.scrollHeight,a.scrollHeight)},handleScroll:function(){this.otherScroll();var e=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=e>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},e0ed:function(e,t,o){var a=o("80a8");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=o("499e").default;i("b7e16f9a",a,!0,{sourceMap:!1,shadowMode:!1})},ee38:function(e,t,o){"use strict";var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"goods-item flex",on:{click:function(t){return t.stopPropagation(),e.goodsTo(e.item.id,e.item.goods_id)}}},[e._t("orderHead"),o("div",{staticClass:"flex"},[o("div",{staticClass:"img",class:["classify"===e.className?"min-img":""]},["classify"!==e.className?o("van-image",{attrs:{width:"90px",height:"90px",src:e.item&&e.item.goods&&e.item.goods.thumb,radius:"8px"}}):o("van-image",{attrs:{width:"80px",height:"80px",src:e.item.thumb,radius:"8px"}})],1),o("div",{staticClass:"wrap flex",class:["covert"===e.className||"present"===e.className?"covert-flex":"","order"===e.className||"classify"===e.className?"order-flex":""]},[o("div",{staticClass:"flex-j-sb title"},["classify"===e.className?o("h3",{staticClass:"ell"},[e._v(e._s(e.item.title))]):o("h3",{staticClass:"ell"},[e._v(e._s(e.item&&e.item.goods&&e.item.goods.title||e.item&&e.item.goods_name))]),e._t("amount")],2),e._t("orderSum"),e._t("convertBtn"),e._t("member"),e._t("classify")],2)]),e._t("orderAddress")],2)},i=[],s=(o("4056"),o("44bf")),r=(o("a9e3"),o("14d9"),{name:"",props:{item:{type:Object,default:function(){return{}}},className:String,goodIndex:Number},components:{VanImage:s["a"]},data:function(){return{}},computed:{},watch:{},methods:{goodsTo:function(e,t){"classify"===this.className&&e&&this.$router.push(this.fun.getUrl("goods",{id:e},{})),"covert"===this.className&&t&&this.$router.push(this.fun.getUrl("goods",{id:t},{}))}},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}}),n=r,d=(o("9dc9"),o("2877")),c=Object(d["a"])(n,a,i,!1,null,"eaa84522",null);t["a"]=c.exports},fd3a:function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"order-page"},[o("van-sticky",[o("c-title",{attrs:{hide:!1,text:"已兑换藏品"}}),o("van-tabs",{attrs:{active:e.tabIndex,"line-width":"15","title-active-color":"var(--themeBaseColor)","title-inactive-color":"#00001C",color:"var(--themeBaseColor)"},on:{click:e.orderTabOn}},e._l(e.orderTab,(function(e,t){return o("block",{key:t},[o("van-tab",{attrs:{title:e.name,name:e.status}})],1)})),1)],1),e.orderTab[e.tabIndex]&&e.orderTab[e.tabIndex].goodsList.length>0?o("div",{staticClass:"order-list"},e._l(e.orderTab[e.tabIndex].goodsList,(function(t,a){return o("block",{key:a},[o("goods-item",{attrs:{item:t.exchange_collection,goodIndex:a,className:"order"},scopedSlots:e._u([{key:"orderHead",fn:function(){return[o("div",{staticClass:"flex-a-c flex-j-sb orderHead"},[o("h3",[e._v("兑换ID"+e._s(t.exchange_collection&&t.exchange_collection.order_id))]),o("p",[e._v(e._s(t.status_name))])])]},proxy:!0},{key:"orderSum",fn:function(){return[o("div",{staticClass:"flex-a-c flex-j-sb order-sum"},[o("div",{staticClass:"amount"},[e._v("×"+e._s(t.exchange_collection&&t.exchange_collection.total))])])]},proxy:!0},{key:"orderAddress",fn:function(){return[o("div",{staticClass:"order-address"},[o("div",{staticClass:"member-info"},[e._v("会员昵称:"+e._s(t.belongs_to_member&&t.belongs_to_member.nickname))]),o("div",{staticClass:"address"},[e._v("收货地址:"),o("span",[e._v(e._s(t.address&&t.address.address))])]),o("div",{staticClass:"address-btn flex"},e._l(t.button_models,(function(a,i){return o("blcok",{key:i},[o("div",{staticClass:"btn",class:12==a.value?"btn-bg":"",on:{click:function(o){return o.stopPropagation(),e.orderstateOn({value:a.value,id:t.id,goodsId:t.exchange_collection&&t.exchange_collection.goods_id,refundId:t.refund_id,api:a.api,itemBtn:a,item:t})}}},[e._v(e._s(a.name))])])})),1)])]},proxy:!0}],null,!0)})],1)})),1):o("van-empty",{attrs:{description:"暂无数据"}}),o("div",{staticClass:"mb60"})],1)},i=[],s=o("2909"),r=(o("b0c0"),o("14d9"),o("d3b7"),o("25f0"),o("b64b"),o("99af"),o("159b"),o("ee38")),n=o("ac0d"),d={name:"",components:{goodsItem:r["a"]},mixins:[n["a"]],data:function(){return{tabIndex:0,status:"",page:1,isLoadMore:!0,orderTab:[{name:"全部",status:"",goodsList:[],page:1,total_page:0,isLoadMore:!0},{name:"待发货",status:1,goodsList:[],page:1,total_page:0,isLoadMore:!0},{name:"待签收",status:2,goodsList:[],page:1,total_page:0,isLoadMore:!0},{name:"已签收",status:3,goodsList:[],page:1,total_page:0,isLoadMore:!0}],orderApiArr:["plugin.collection-center.frontend.controllers.order.collection-order-list","plugin.collection-center.frontend.controllers.order.collection-order-list.waitSend","plugin.collection-center.frontend.controllers.order.collection-order-list.waitReceive","plugin.collection-center.frontend.controllers.order.collection-order-list.Completed"]}},computed:{},watch:{},methods:{orderTabOn:function(e){this.tabIndex=e||0,this.status=e,window.scrollTo(0,0),this.orderTab[this.tabIndex].page>=2&&(this.orderTab[this.tabIndex].goodsList=[]),0===this.orderTab[this.tabIndex].goodsList.length&&(this.isLoadMore=!1,this.orderTab[this.tabIndex].page=1,this.orderLists())},orderstateOn:function(e){this.getorderState(e)},getorderState:function(e){var t=this,o=e.value,a=e.id,i=e.refundId,s=e.api,r=e.itemBtn,n=e.item,d={5:function(){t.$dialog.confirm({message:r.name}).then((function(){t.confirmOrder_request(a,r)})).catch((function(){}))},18:function(){t.$router.push(t.fun.getUrl("aftersales",{refund_id:i}))},13:function(){t.$router.push(t.fun.getUrl("refund",{order_id:a,order_type:1},{value:o}))},41:"".concat(s)};if("12"===o.toString())this.$dialog.confirm({title:"提示",message:"确定删除该订单?"}).then((function(){t.deletePay(n.id,s)})).catch((function(){}));else if(8==o||"snatch_regiment_express"==o)this.checklogistics(n,r);else if("41"===o.toString())d[o]?window.location.href=d[o]:this.$toast("请设置客户链接");else{var c=d[o];if(c)return c.call(this)}},checklogistics:function(e,t){7==e.dispatch_type_id&&"1"==JSON.parse(window.localStorage.getItem("globalParameter")).delivery_driver_open&&this.$router.push(this.fun.getUrl("track",{id:e.id})),0==e.is_all_send_goods?this.$router.push(this.fun.getUrl("logistics",{id:e.id,fromGrab:1,api:t.api},{id:e.id})):this.$router.push(this.fun.getUrl("multiplePackages",{order_id:e.id},{api:t.api}))},confirmOrder_request:function(e,t){var o=this;$http.get(t.api,{order_id:e},"操作中...").then((function(e){1==e.result?(o.$dialog.alert({message:e.msg}),o.orderTab[o.tabIndex].page=1,o.orderLists()):o.$dialog.alert({message:e.msg})}),(function(e){that.noMoreClick=!1}))},deletePay:function(e,t){var o=this,a={order_id:e};$http.post(t,a,"正在获取").then((function(e){1==e.result?(o.$toast(e.msg),o.orderTab[o.tabIndex].page=1,o.orderLists()):o.$dialog.alert({message:e.msg})}),(function(e){}))},orderLists:function(){var e=this,t=this.orderApiArr[this.tabIndex],o={page:this.orderTab[this.tabIndex].page,status:this.status};$http.post(t,o,"加载中..").then((function(t){if(1==t.result){var o=t.data,a=o.data;e.isLoadMore=!0,e.orderTab[e.tabIndex].total_page=o.last_page,e.orderTab[e.tabIndex].total_page||(e.orderTab[e.tabIndex].page=0),e.orderTab[e.tabIndex].goodsList=a}else e.orderTab[e.tabIndex].page=e.orderTab[e.tabIndex].page-1,e.orderTab[e.tabIndex].isLoadMore=!1,e.$dialog.alert({message:t.msg})}))},getMoreData:function(){var e=this;if(this.isLoadMore=!1,!(this.orderTab[this.tabIndex].page>=this.orderTab[this.tabIndex].total_page)){this.orderTab[this.tabIndex].page=this.orderTab[this.tabIndex].page+1;var t=this.orderApiArr[this.tabIndex],o={page:this.orderTab[this.tabIndex].page,status:this.status};$http.post(t,o,"加载中").then((function(t){if(e.isLoadMore=!0,1===t.result){var o=t.data,a=o.data;e.orderTab[e.tabIndex].goodsList=[].concat(Object(s["a"])(e.orderTab[e.tabIndex].goodsList),Object(s["a"])(a))}else e.orderTab[e.tabIndex].page=e.orderTab[e.tabIndex].page-1,e.isLoadMore=!1}),(function(e){}))}}},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){this.orderTab[this.tabIndex].page=1,this.orderTab.forEach((function(e,t){e["goodsList"]=[]})),this.orderLists()}},c=d,l=c,f=(o("7eef"),o("8540"),o("2877")),u=Object(f["a"])(l,a,i,!1,null,"cfec2386",null);t["default"]=u.exports}}]);