bztang-admin/addons/yun_shop/static/app/js/chunk-69412021.b503c345.js

1 line
14 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-69412021"],{"04fc":function(t,e,a){"use strict";a("1d8f")},"12c04":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:[3==this.fun.getPhoneEnv()?"pcStyle":"","cps-oreder"]},[a("c-title",{staticClass:"circle_title",attrs:{hide:!1,text:t.pageTitle}}),t.isCoupon?t._e():a("van-tabs",{attrs:{"title-inactive-color":"#777777","title-active-color":"#414141"},on:{click:t.switchTab},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("van-tab",{attrs:{title:"全部",name:0}}),a("van-tab",{attrs:{title:"待结算",name:1}}),a("van-tab",{attrs:{title:"已结算",name:2}}),a("van-tab",{attrs:{title:"失效",name:-1}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:t.orderList.length>0,expression:"orderList.length > 0"}],staticClass:"list-content"},[a("van-pull-refresh",{on:{refresh:t.onRefresh},model:{value:t.refreshing,callback:function(e){t.refreshing=e},expression:"refreshing"}},[a("d-list",{attrs:{loading:t.loading,finished:t.finished},on:{load:t.loadData}},t._l(t.orderList,(function(e,o){return a("cps-order-item",{key:o,attrs:{orderData:e,isCoupon:t.isCoupon}})})),1)],1)],1),this.$store.state.isloadding||0!=t.orderList.length?t._e():a("van-empty",{attrs:{description:"还没有记录哦"}})],1)},i=[],s=a("c7eb"),n=a("1da1"),r=(a("b0c0"),a("99af"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.isCoupon?a("div",{staticClass:"coupon-box"},[a("div",{staticClass:"head"},[a("span",{staticClass:"name"},[t._v("订单状态")]),a("span",{staticClass:"status"},[t._v(t._s(t.orderData.status_name)+" ")])]),a("div",{staticClass:"detail"},[a("div",{staticClass:"left-img"},[a("img",{attrs:{src:t.orderData.goods_cover,alt:""}})]),a("div",{staticClass:"right-box"},[a("div",{staticClass:"title ellipsis"},[t._v(t._s(t.orderData.goods_name))]),a("div",{staticClass:"info"},[a("div",[a("p",[t._v("下单日期 "),a("span",[t._v(t._s(t.orderData.created_at))])]),a("p",{staticClass:"orderNo ellipsis"},[t._v("订单号 "),a("span",[t._v(t._s(t.orderData.order_no))])])]),a("div",{staticClass:"button-box"},[a("d-copy",{attrs:{content:t.orderData.order_no,copy:t.copy},on:{copySuccess:t.copySuccess}},[a("span",{staticClass:"copy"},[t._v("复制")])])],1)]),a("div",{staticClass:"money-box",staticStyle:{"margin-top":"0.8rem"}},[a("span",[t._v("付款¥"+t._s(t.orderData.order_price))])])])]),t._l(t.orderData.coupon_info?t.orderData.coupon_info.coupons:[],(function(e,o){return a("div",{key:o,staticClass:"coupon-info"},[e.goods_link?a("div",{staticClass:"item"},[a("span",{staticClass:"left-text ellipsis"},[t._v("卡券链接:"+t._s(e.goods_link))]),a("d-copy",{attrs:{content:e.goods_link,copy:t.copy},on:{copySuccess:t.copySuccess}},[a("span",{staticClass:"btn-copy"},[t._v("复制")])])],1):t._e(),e.goods_number?a("div",{staticClass:"item"},[a("span",{staticClass:"left-text ellipsis"},[t._v("卡券卡号:"+t._s(e.goods_number))]),a("d-copy",{attrs:{content:e.goods_number,copy:t.copy},on:{copySuccess:t.copySuccess}},[a("span",{staticClass:"btn-copy"},[t._v("复制")])])],1):t._e(),e.goods_password?a("div",{staticClass:"item"},[a("span",{staticClass:"left-text ellipsis"},[t._v("卡券密码:"+t._s(e.goods_password))]),a("d-copy",{attrs:{content:e.goods_password,copy:t.copy},on:{copySuccess:t.copySuccess}},[a("span",{staticClass:"btn-copy"},[t._v("复制")])])],1):t._e(),e.effective_time?a("div",{staticClass:"item"},[a("span",{staticClass:"left-text ellipsis"},[t._v("过期时间:"+t._s(e.effective_time))])]):t._e()])}))],2):a("div",{staticClass:"order-box"},[a("div",{staticClass:"head"},[a("span",{staticClass:"name"},[t._v(t._s(t.orderData.type_name))]),a("span",{staticClass:"status"},[t._v(t._s(t.orderData.status_name))])]),a("div",{staticClass:"detail"},[a("div",{staticClass:"left-img"},[a("img",{attrs:{src:t.orderData.image,alt:""}})]),a("div",{staticClass:"right-box"},[a("div",{staticClass:"title ellipsis"},[t._v(t._s(t.orderData.title))]),a("div",{staticClass:"info"},[a("div",[a("p",[t._v("付款日 "),a("span",[t._v(t._s(t.orderData.create_time))])]),a("p",[t._v("确认收货日 "),a("span",[t._v(t._s(t.orderData.receive_time))])]),a("p",{staticClass:"orderNo ellipsis"},[t._v("订单号 "),a("span",[t._v(t._s(t.orderData.sub_order_id))])])]),a("div",{staticClass:"button-box"},[a("d-copy",{attrs:{content:t.orderData.sub_order_id,copy:t.copy},on:{copySuccess:t.copySuccess}},[a("span",{staticClass:"copy"},[t._v("复制")])])],1)]),a("div",{staticClass:"money-box"},[a("span",[t._v("付款¥"+t._s(t.orderData.pay_price))]),a("span",{staticClass:"money"},[t._v("赠送"+t._s(t.orderData.pre_commission))])])])])])])}),c=[],d=(a("e7e5"),a("d399")),l=a("8b0b"),p={props:{orderData:{type:Object,default:function(){return{}}},isCoupon:{type:Boolean,default:!1}},data:function(){return{copy:!1,coupon_info:{}}},computed:{},methods:{copySuccess:function(t){this.copy=!1,Object(d["a"])("复制成功")}},mounted:function(){},components:{DCopy:l["a"]}},b=p,f=(a("b67d"),a("2877")),u=Object(f["a"])(b,r,c,!1,null,"f36eb33e",null),x=u.exports,v=a("94b4"),m={data:function(){return{activeName:0,isCoupon:!1,api:"",page:1,finished:!1,loading:!1,refreshing:!1,orderList:[],pageTitle:"订单"}},computed:{},activated:function(){this.initData(),"cpsOrderList"===this.$route.name?(this.isCoupon=!1,this.pageTitle=this.$route.query.title||"聚合CPS订单",this.api="plugin.aggregation-cps.api.order.index",this.$route.query.status&&(this.activeName=this.$route.query.status)):(this.isCoupon=!0,this.pageTitle=this.$route.query.title||"卡券订单",this.api="plugin.aggregation-cps.api.equity.order-list"),this.fun.setWXTitle(this.pageTitle),this.getData()},methods:{switchTab:function(){this.initGetData(),this.getData()},loadData:function(){this.getData()},onRefresh:function(){var t=this;return Object(n["a"])(Object(s["a"])().mark((function e(){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.initGetData(),e.next=3,t.getData();case 3:t.refreshing=!1;case 4:case"end":return e.stop()}}),e)})))()},getData:function(){var t=this;return Object(n["a"])(Object(s["a"])().mark((function e(){var a;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.finished&&!t.loading){e.next=2;break}return e.abrupt("return");case 2:return t.loading=!0,e.next=5,$http.get(t.api,{status:t.activeName,page:t.page},"load");case 5:if(a=e.sent,t.loading=!1,1===a.result){e.next=10;break}return t.$dialog.alert({message:a.msg}),e.abrupt("return",!1);case 10:return(t.page>=a.data.last_page||a.data.data.length<a.data.per_page)&&(t.finished=!0),t.page>1?t.orderList=t.orderList.concat(a.data.data):t.orderList=a.data.data,t.page++,e.abrupt("return",!0);case 14:case"end":return e.stop()}}),e)})))()},initGetData:function(){this.page=1,this.finished=!1,this.loading=!1},initData:function(){this.activeName=0,this.isCoupon=!1,this.api="",this.page=1,this.finished=!1,this.loading=!1,this.orderList=[]}},components:{DList:v["a"],CpsOrderItem:x}},g=m,h=(a("04fc"),Object(f["a"])(g,o,i,!1,null,null,null));e["default"]=h.exports},1408:function(t,e,a){var o=a("805b");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=a("499e").default;i("40aaf86a",o,!0,{sourceMap:!1,shadowMode:!1})},"1d8f":function(t,e,a){var o=a("e493");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=a("499e").default;i("a5a66334",o,!0,{sourceMap:!1,shadowMode:!1})},2470:function(t,e,a){var o=a("24fb");e=o(!1),e.push([t.i,".c-copy[data-v-51c37c8a]{position:relative}.c-copy-input[data-v-51c37c8a]{position:fixed;z-index:-1;top:0;left:0;border:none;background:none;color:transparent}",""]),t.exports=e},6091:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAICAYAAAD5nd/tAAABN0lEQVQokZWQoUtDURjFf999G4hsQwX7ghi3ZhcHKwtLYlarBkXRanLFP0AUq5gMFkFct605MAyjoguT5+TtfZ+8t/ecGMY84YZ7z/ldzpF2bWXHkEMxuVmcntkEQoCnj2csk0dVEKfRFaYO5wwZZFnI5UjktT+7F0DdCUfyWKu8AXPDBA3gwAQyYW8sUL0AE8OZayi2n8DfHdBMv0KIHtaZXBuK7Y3ccu+mAm8LeP1BCufAKVAYgy3EHpOzODM8XjTob0unWuUry5IxuAPJ/wp1nXCpKk1x2kkqF52zZTXWgNmR1XqCVcIgeEiBkcomeo1Z8R+VQaQj5uoQtMIgINowVQvxS4KcAP4EKD/2il+Ks4kyf0w9YNcLs8fqDVYNrYKUBebjYvHW1hLcrQv7V+pNpdsPBXwD9g98KkxcT90AAAAASUVORK5CYII="},"7d84":function(t,e,a){var o=a("2470");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=a("499e").default;i("44e940f8",o,!0,{sourceMap:!1,shadowMode:!1})},"7f50":function(t,e,a){"use strict";a("7d84")},"805b":function(t,e,a){var o=a("24fb");e=o(!1),e.push([t.i,".ellipsis[data-v-f36eb33e]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.coupon-box[data-v-f36eb33e],.order-box[data-v-f36eb33e]{margin-top:.5rem;background-color:#fff;font-size:13px;font-weight:500;padding:.8rem .6rem;text-align:left;word-break:break-all}.coupon-box .head[data-v-f36eb33e],.order-box .head[data-v-f36eb33e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.coupon-box .head .name[data-v-f36eb33e],.order-box .head .name[data-v-f36eb33e]{font-weight:bolder;font-size:15px;color:#414141}.coupon-box .detail[data-v-f36eb33e],.order-box .detail[data-v-f36eb33e]{margin-top:.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.coupon-box .detail .left-img[data-v-f36eb33e],.order-box .detail .left-img[data-v-f36eb33e]{width:5.63rem;height:5.63rem;background-color:#b4b4b4;border-radius:.31rem;overflow:hidden}.coupon-box .detail .left-img img[data-v-f36eb33e],.order-box .detail .left-img img[data-v-f36eb33e]{width:100%;height:100%}.coupon-box .detail .right-box[data-v-f36eb33e],.order-box .detail .right-box[data-v-f36eb33e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;max-width:16rem;margin-left:.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.coupon-box .detail .right-box .title[data-v-f36eb33e],.order-box .detail .right-box .title[data-v-f36eb33e]{font-size:14px;font-weight:700;color:#414141}.coupon-box .detail .right-box .info[data-v-f36eb33e],.order-box .detail .right-box .info[data-v-f36eb33e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;font-size:12px}.coupon-box .detail .right-box .info p[data-v-f36eb33e],.order-box .detail .right-box .info p[data-v-f36eb33e]{width:100%;margin-top:.4rem;color:#7f7f7f}.coupon-box .detail .right-box .info .orderNo[data-v-f36eb33e],.order-box .detail .right-box .info .orderNo[data-v-f36eb33e]{max-width:12rem}.coupon-box .detail .right-box .button-box[data-v-f36eb33e],.order-box .detail .right-box .button-box[data-v-f36eb33e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;text-align:center;min-width:3rem}.coupon-box .detail .right-box .button-box .price[data-v-f36eb33e],.order-box .detail .right-box .button-box .price[data-v-f36eb33e]{font-size:13px;font-weight:600}.coupon-box .detail .right-box .button-box .copy[data-v-f36eb33e],.order-box .detail .right-box .button-box .copy[data-v-f36eb33e]{width:2.38rem;font-size:10px;padding:.1rem .3rem;background-color:#f7f5f6;border-radius:.63rem;border:1px solid #dadada}.coupon-box .detail .right-box .money-box[data-v-f36eb33e],.order-box .detail .right-box .money-box[data-v-f36eb33e]{margin-top:.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;color:#e64a40}.coupon-box .detail .right-box .money-box .money[data-v-f36eb33e],.order-box .detail .right-box .money-box .money[data-v-f36eb33e]{font-size:15px}.coupon-box .coupon-info[data-v-f36eb33e],.order-box .coupon-info[data-v-f36eb33e]{margin-top:.5rem;padding:.6rem .8rem;border-radius:.5rem;background-color:#f5f5f5}.coupon-box .coupon-info .item[data-v-f36eb33e],.order-box .coupon-info .item[data-v-f36eb33e]{margin-top:.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.coupon-box .coupon-info .item .left-text[data-v-f36eb33e],.order-box .coupon-info .item .left-text[data-v-f36eb33e]{max-width:18rem}.coupon-box .coupon-info .item .btn-copy[data-v-f36eb33e],.order-box .coupon-info .item .btn-copy[data-v-f36eb33e]{color:#e64a40}.coupon-box .coupon-info .item[data-v-f36eb33e]:first-child,.order-box .coupon-info .item[data-v-f36eb33e]:first-child{margin-top:0}",""]),t.exports=e},"8b0b":function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-copy",on:{click:t.copyContent}},[t._t("default"),a("input",{ref:"inputEl",staticClass:"c-copy-input",attrs:{type:"text"},domProps:{value:t.content}})],2)},i=[],s={props:{content:String,copy:{type:Boolean,default:!1}},methods:{copyContent:function(){this.$refs["inputEl"].select(),document.execCommand("copy"),this.$emit("copySuccess",this.content),this.$refs["inputEl"].blur()}},watch:{copy:function(t){t&&(this.$refs["inputEl"].select(),document.execCommand("copy"),this.$emit("copySuccess",this.content),this.$refs["inputEl"].blur())}}},n=s,r=(a("7f50"),a("2877")),c=Object(r["a"])(n,o,i,!1,null,"51c37c8a",null);e["a"]=c.exports},b67d:function(t,e,a){"use strict";a("1408")},e493:function(t,e,a){var o=a("24fb"),i=a("1de5"),s=a("6091");e=o(!1);var n=i(s);e.push([t.i,".cps-oreder .van-tabs .van-tabs__line{width:20px;height:5px;left:4px;bottom:22px;background:url("+n+");background-size:contain;background-repeat:no-repeat;background-color:transparent;border-radius:0}",""]),t.exports=e}}]);