bztang-admin/addons/yun_shop/static/app/js/chunk-504162a7.3b85d9c7.js

3 lines
17 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-504162a7"],{1560:function(t,e,r){var o=r("2cbb");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=r("499e").default;n("f3d31f8c",o,!0,{sourceMap:!1,shadowMode:!1})},"1da1":function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));r("d3b7");function o(t,e,r,o,n,a,i){try{var s=t[a](i),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(o,n)}function n(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function s(t){o(i,n,a,s,c,"next",t)}function c(t){o(i,n,a,s,c,"throw",t)}s(void 0)}))}}},"2cbb":function(t,e,r){var o=r("24fb");e=o(!1),e.push([t.i,"#newcomer-reward .box[data-v-eb35b4e0]{background:#fff;margin:.63rem;border-radius:.31rem;padding:.86rem .81rem .63rem .63rem}#newcomer-reward .box .top[data-v-eb35b4e0]{text-align:left}#newcomer-reward .box .top .top-time[data-v-eb35b4e0]{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;margin-bottom:.46rem}#newcomer-reward .box .top .top-time .status[data-v-eb35b4e0]{font-size:.75rem;font-weight:400;font-stretch:normal;color:#f15353}#newcomer-reward .box .top .top-title[data-v-eb35b4e0]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:.94rem}#newcomer-reward .box .top .top-title[data-v-eb35b4e0],#newcomer-reward .box .top .top-title .member[data-v-eb35b4e0]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#newcomer-reward .box .top .top-title .member img[data-v-eb35b4e0]{width:1.96rem;height:1.96rem;border-radius:50%;margin:0 .41rem 0 0}#newcomer-reward .box .top .top-title .member .member-detail[data-v-eb35b4e0]{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;line-height:1}#newcomer-reward .box .top .top-title .member .member-detail .member-name[data-v-eb35b4e0]{font-size:.75rem;font-weight:400;font-stretch:normal;color:#353535}#newcomer-reward .box .top .top-title .member .member-detail .member-id[data-v-eb35b4e0]{font-size:.63rem;font-weight:400;font-stretch:normal;color:#686868}#newcomer-reward .box .top .right-status[data-v-eb35b4e0]{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;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;line-height:1}#newcomer-reward .box .top .right-status .num[data-v-eb35b4e0]{font-size:.63rem;font-weight:400;font-stretch:normal;color:#686868}#newcomer-reward .box .top .desc-name-status[data-v-eb35b4e0]{line-height:1.5}#newcomer-reward .box .top .desc-detail[data-v-eb35b4e0]{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;margin-bottom:.63rem}#newcomer-reward .box .top .desc-detail .desc-name[data-v-eb35b4e0]{font-size:.81rem;font-weight:400;font-stretch:normal;color:#353535;width:50%}#newcomer-reward .box .top .desc-detail .desc-sn[data-v-eb35b4e0]{font-size:.69rem;font-weight:400;font-stretch:normal;color:#686868;word-break:break-all;width:50%;text-align:right}#newcomer-reward .box .top .reward-time[data-v-eb35b4e0]{font-size:.63rem;font-weight:400;font-stretch:normal;color:#9e9e9e}#newcomer-reward .box .middle-line[data-v-eb35b4e0]{width:100%;height:.06rem;background-color:#f2f2f2;margin:.72rem 0}#newcomer-reward .box .bottom[data-v-eb35b4e0]{text-align:left}#newcomer-reward .box .bottom .top-goods[data-v-eb35b4e0]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#newcomer-reward .box .bottom .top-goods img[data-v-eb35b4e0]{width:2.48rem;height:2.48rem;border-radius:.13rem;margin:0 .31rem 0 0}#newcomer-reward .box .bottom .top-goods .detail[data-v-eb35b4e0]{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}#newcomer-reward .box .bottom .top-goods .detail .goods-name[data-v-eb35b4e0]{font-size:.75rem;font-weight:400;font-stretch:normal;color:#353535}#newcomer-reward .box .bottom .top-goods .detail .goods-num[data-v-eb35b4e0]{font-size:.63rem;font-weight:400;font-stretch:normal;color:#686868}#newcomer-reward .box .bottom .bottom-money[data-v-eb35b4e0]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;background:rgba(241,83,83,.1);border-radius:.31rem;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;margin-top:.69rem;padding:.69rem 0 .59rem 0}#newcomer-reward .box .bottom .bottom-money .money-box[data-v-eb35b4e0]{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;text-align:center}#newcomer-reward .box .bottom .bottom-money .money-box .num[data-v-eb35b4e0]{font-size:.75rem;font-weight:700;font-stretch:normal;line-height:1;color:#f14e4e;margin-bottom:.78rem}#newcomer-reward .box .bottom .bottom-money .money-box .status-name[data-v-eb35b4e0]{font-size:.63rem;font-weight:700;font-stretch:normal;line-height:1;color:#3d3d3d}",""]),t.exports=e},"355e":function(t,e,r){"use strict";r("1560")},be3a:function(t,e,r){"use strict";r.r(e);var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"newcomer-reward"}},[r("c-title",{attrs:{hide:!1,text:"奖励记录"}}),r("van-tabs",{staticClass:"tabs-style",attrs:{"title-active-color":"#f14e4e",color:"#f14e4e"},on:{change:t.changeTabs},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},t._l(t.vanTab,(function(e,o){return r("van-tab",{key:o,attrs:{title:e.title,name:e.id}},[r("d-list",{attrs:{loading:t.loading,finished:t.finished},on:{load:t.onLoad}},[r("div",t._l(t.newcomerReward,(function(o,n){return t.active==e.id?r("div",{key:t.index,staticClass:"box"},[r("div",{staticClass:"top"},[r("div",{staticClass:"top-time"},[r("div",{staticClass:"reward-time"},[t._v(t._s(o.created_at))]),r("span",{staticClass:"status"},[t._v(t._s(o.status_name))])]),r("div",{staticClass:"top-title"},[null!==o.has_one_buyer?r("div",{staticClass:"member"},[r("img",{attrs:{src:o.has_one_buyer.avatar_image,alt:""}}),r("div",{staticClass:"member-detail"},[r("span",{staticClass:"member-name"},[t._v(t._s(o.has_one_buyer.nickname))]),r("span",{staticClass:"member-id"},[t._v("id: "+t._s(o.has_one_buyer.uid))])])]):t._e(),null!==o.has_one_buyer?r("div",{staticClass:"right-status"},[r("span",{staticClass:"num"},[t._v(t._s(o.type_name))]),r("span",{staticClass:"num"},[t._v(t._s(o.record_sort))])]):t._e()]),r("div",{staticClass:"desc-detail"},[r("span",{staticClass:"desc-name"},[t._v(t._s(o.has_one_activity.name))]),o.order_sn?r("span",{staticClass:"desc-sn"},[t._v(t._s(o.order_sn))]):t._e(),null!=o.has_one_buyer||o.order_sn?t._e():r("div",{staticClass:"right-status desc-name-status"},[r("span",{staticClass:"num"},[t._v(t._s(o.type_name))]),r("span",{staticClass:"num"},[t._v(t._s(o.record_sort))])])])]),r("div",{staticClass:"middle-line"}),r("div",{staticClass:"bottom"},[null!==o.has_one_goods?r("div",{staticClass:"top-goods"},[r("img",{attrs:{src:null!==o.has_one_goods?o.has_one_goods.thumb:"",alt:""}}),r("div",{staticClass:"detail"},[r("span",{staticClass:"goods-name"},[t._v(t._s(null!==o.has_one_goods?o.has_one_goods.title:""))])])]):t._e(),r("div",{staticClass:"bottom-money"},[r("div",{staticClass:"money-box"},[r("span",{staticClass:"num"},[t._v(t._s(o.rewards_amounts))]),r("span",{staticClass:"status-name"},[t._v(t._s(t.fun.getBalanceLang()))])]),r("div",{staticClass:"money-box"},[r("span",{staticClass:"num"},[t._v(t._s(o.rewards_income))]),r("span",{staticClass:"status-name"},[t._v("收入")])]),r("div",{staticClass:"money-box"},[r("span",{staticClass:"num"},[t._v(t._s(o.rewards_points))]),r("span",{staticClass:"status-name"},[t._v(t._s(t.fun.getIntegralLang()))])]),r("div",{staticClass:"money-box"},[r("span",{staticClass:"num"},[t._v(t._s(o.rewards_coupons)+"张")]),r("span",{staticClass:"status-name"},[t._v("优惠券")])])])])]):t._e()})),0)])],1)})),1)],1)},n=[],a=r("c7eb"),i=r("2909"),s=r("1da1"),c=r("94b4"),l=r("6968"),d={data:function(){return{active:"随意",loading:!1,finished:!1,info:!1,page:1,newcomerReward:[],vanTab:[{title:"全部",id:"随意"},{title:"预计奖励",id:4},{title:"待结算",id:1},{title:"已结算",id:2},{title:"无效奖励",id:3}]}},mounted:function(){this.getData()},methods:{getData:function(){var t=this;return Object(s["a"])(Object(a["a"])().mark((function e(){var r,o,n,s,c;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!0!==t.loading&&!0!==t.finished){e.next=2;break}return e.abrupt("return");case 2:return t.loading=!0,t.info=!0,e.next=6,$http.post("plugin.newcomer-fission.frontend.controllers.list.index",{page:t.page,record_status:t.active});case 6:if(o=e.sent,n=o.data,s=o.result,c=o.msg,0!==s){e.next=13;break}return t.$toast(c),e.abrupt("return");case 13:t.info=!1,(0===n.data.length||n.data.length<n.per_page||n.current_page===n.last_page)&&(t.finished=!0),(r=t.newcomerReward).push.apply(r,Object(i["a"])(n.data)),t.page++,t.loading=!1;case 18:case"end":return e.stop()}}),e)})))()},onLoad:function(){this.info=!0,this.getData()},changeTabs:function(t){this.loading=!1,this.finished=!1,this.page=1,this.newcomerReward=[],this.getData()}},components:{cTitle:l["a"],DList:c["a"]}},u=d,f=u,b=(r("355e"),r("2877")),m=Object(b["a"])(f,o,n,!1,null,"eb35b4e0",null);e["default"]=m.exports},c7eb:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("d9e2"),r("3410"),r("159b"),r("b0c0"),r("131a"),r("fb6a");var o=r("53ca");function n(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
n=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(O){l=function(t,e,r){return t[e]=r}}function d(t,e,r,o){var n=e&&e.prototype instanceof b?e:b,a=Object.create(n.prototype),i=new C(o||[]);return a._invoke=function(t,e,r){var o="suspendedStart";return function(n,a){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===n)throw a;return E()}for(r.method=n,r.arg=a;;){var i=r.delegate;if(i){var s=_(i,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o="executing";var c=u(t,e,r);if("normal"===c.type){if(o=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o="completed",r.method="throw",r.arg=c.arg)}}}(t,r,i),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(O){return{type:"throw",arg:O}}}t.wrap=d;var f={};function b(){}function m(){}function p(){}var h={};l(h,i,(function(){return this}));var w=Object.getPrototypeOf,v=w&&w(w(L([])));v&&v!==e&&r.call(v,i)&&(h=v);var y=p.prototype=b.prototype=Object.create(h);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function g(t,e){function n(a,i,s,c){var l=u(t[a],t,i);if("throw"!==l.type){var d=l.arg,f=d.value;return f&&"object"==Object(o["a"])(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,s,c)}),(function(t){n("throw",t,s,c)})):e.resolve(f).then((function(t){d.value=t,s(d)}),(function(t){return n("throw",t,s,c)}))}c(l.arg)}var a;this._invoke=function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}}function _(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var o=u(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var n=o.arg;return n?n.done?(e[t.resultName]=n.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):n:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function L(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,n=function e(){for(;++o<t.length;)if(r.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:E}}function E(){return{value:void 0,done:!0}}return m.prototype=p,l(y,"constructor",p),l(p,"constructor",m),m.displayName=l(p,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,l(t,c,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},x(g.prototype),l(g.prototype,s,(function(){return this})),t.AsyncIterator=g,t.async=function(e,r,o,n,a){void 0===a&&(a=Promise);var i=new g(d(e,r,o,n),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(y),l(y,c,"Generator"),l(y,i,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var o=e.pop();if(o in t)return r.value=o,r.done=!1,r}return r.done=!0,r}},t.values=L,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(r,o){return i.type="throw",i.arg=t,e.next=r,o&&(e.method="next",e.arg=void 0),!!o}for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n],i=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;j(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}}}]);