bztang-admin/addons/yun_shop/static/app/js/chunk-3bb740ad.2eedabf3.js

3 lines
13 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3bb740ad"],{"1da1":function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));r("d3b7");function n(t,e,r,n,a,o,i){try{var c=t[o](i),s=c.value}catch(l){return void r(l)}c.done?e(s):Promise.resolve(s).then(n,a)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(a,o){var i=t.apply(e,r);function c(t){n(i,a,o,c,s,"next",t)}function s(t){n(i,a,o,c,s,"throw",t)}c(void 0)}))}}},2248:function(t,e,r){var n=r("24fb");e=n(!1),e.push([t.i,".top_title[data-v-8d7009e6]{height:5.63rem;background-color:#ee2e2b;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:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.top_title img[data-v-8d7009e6]{width:2.88rem;height:2.88rem;border-radius:50%;margin:0 .5rem 0 0}.top_detail_img[data-v-8d7009e6]{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.top_detail_img[data-v-8d7009e6],.top_detail_title[data-v-8d7009e6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.top_detail_title[data-v-8d7009e6]{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;color:#fff}.top_detail_title span[data-v-8d7009e6]{font-size:16px}.mulative_amount[data-v-8d7009e6]{height:1.76rem;background-color:#ee2e2b;opacity:.82;padding-left:.91rem;margin-bottom:.65rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:14px;color:#fff}[data-v-8d7009e6] .van-tabs__wrap{border-bottom:.09rem solid #ebebeb}[data-v-8d7009e6] .van-tabs__line{width:2.8rem}.reward_record_box_last[data-v-8d7009e6]{margin:.91rem .91rem 0 .91rem;border-bottom:.09rem solid #fff}.reward_record_box[data-v-8d7009e6]{margin:.91rem .91rem 0 .91rem;border-bottom:.09rem solid #ebebeb}.reward_record[data-v-8d7009e6]{background:#fff}.reward_record[data-v-8d7009e6] .van-tab--active{color:#ee2e2b}.record_detail[data-v-8d7009e6]{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:left}.record_detail .level_text[data-v-8d7009e6]{color:#333}.record_detail .time[data-v-8d7009e6]{color:#8c8c8c}.record_detail .record_detail_card[data-v-8d7009e6]{font-size:16px}.record_detail span[data-v-8d7009e6]{display:block;margin-bottom:.66rem}.rigth_record_detail div[data-v-8d7009e6]{color:#f15353;font-size:18px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}",""]),t.exports=e},"32db":function(t,e,r){var n=r("2248");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=r("499e").default;a("6d4f1fba",n,!0,{sourceMap:!1,shadowMode:!1})},5608:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("c-title",{attrs:{text:"星级门店"}}),r("div",{staticClass:"top_title"},[r("van-row",[r("van-col",{staticClass:"top_detail_img",attrs:{span:"5"}},[r("img",{attrs:{src:t.memberInfo.avatar_image,alt:""}})]),r("van-col",{staticClass:"top_detail_title",attrs:{span:"19"}},[r("span",[t._v(t._s(t.memberInfo.username))])])],1)],1),r("div",{staticClass:"mulative_amount"},[t._v("累计金额:¥"+t._s(t.accumulate_reward))]),r("div",{staticClass:"reward_record"},[r("van-tabs",[r("van-tab",{attrs:{title:"奖励记录"}},[r("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:t.loadTop},model:{value:t.pullLoading,callback:function(e){t.pullLoading=e},expression:"pullLoading"}},[r("d-list",{attrs:{loading:t.loading,finished:t.finished},on:{load:t.onLoad}},t._l(t.starStoreData,(function(e,n){return r("van-row",{key:e.id,class:n==t.starStoreData.length-1?"reward_record_box_last":"reward_record_box"},[r("van-col",{attrs:{span:"17"}},[r("div",{staticClass:"record_detail"},[r("span",{staticClass:"time"},[t._v("时间:"+t._s(e.created_at))]),r("span",{staticClass:"level_text"},[t._v(t._s(e.level_text))]),r("span",{staticClass:"record_detail_card"},[t._v("结算金额:¥"+t._s(e.amount))]),r("span",{staticClass:"record_detail_card"},[t._v("会员权益:"+t._s(e.member_equity))])])]),r("van-col",{staticClass:"rigth_record_detail",attrs:{span:"7"}},[r("div",[t._v("¥"+t._s(e.reward_amount))])])],1)})),1)],1)],1)],1)],1)],1)},a=[],o=r("c7eb"),i=r("2909"),c=r("1da1"),s=r("94b4"),l={data:function(){return{loading:!1,finished:!1,page:1,pullLoading:!1,starStoreData:[],memberInfo:{},accumulate_reward:""}},activated:function(){this.onLoad()},methods:{getRewardList:function(){var t=this;return Object(c["a"])(Object(o["a"])().mark((function e(){var r,n,a,c,s;return Object(o["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,e.next=5,$http.post("plugin.star-store.frontend.reward-log.get-reward-list",{page:t.page});case 5:if(n=e.sent,a=n.data,c=n.result,s=n.msg,0!==c){e.next=12;break}return Toast(s),e.abrupt("return");case 12:t.accumulate_reward=a.accumulate_reward,t.memberInfo=a.memberInfo,(0===a.list.data.length||a.list.data.length<a.list.per_page||a.list.current_page===a.list.last_page)&&(t.finished=!0),t.page++,(r=t.starStoreData).push.apply(r,Object(i["a"])(a.list.data)),t.loading=!1;case 18:case"end":return e.stop()}}),e)})))()},loadTop:function(){var t=this;return Object(c["a"])(Object(o["a"])().mark((function e(){var r,n,a,c,s;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,$http.post("plugin.star-store.frontend.reward-log.get-reward-list",{page:1});case 2:if(n=e.sent,a=n.data,c=n.result,s=n.msg,0!==c){e.next=9;break}return Toast(s),e.abrupt("return");case 9:t.starStoreData=[],t.accumulate_reward=a.accumulate_reward,t.memberInfo=a.memberInfo,(r=t.starStoreData).push.apply(r,Object(i["a"])(a.list.data)),t.pullLoading=!1;case 14:case"end":return e.stop()}}),e)})))()},onLoad:function(){this.getRewardList()}},components:{DList:s["a"]}},d=l,u=d,f=(r("90d3"),r("2877")),p=Object(f["a"])(u,n,a,!1,null,"8d7009e6",null);e["default"]=p.exports},"90d3":function(t,e,r){"use strict";r("32db")},c7eb:function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));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 n=r("53ca");function a(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
a=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.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(S){l=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,o=Object.create(a.prototype),i=new j(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(a,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw o;return O()}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var c=_(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=u(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(t,r,i),o}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(S){return{type:"throw",arg:S}}}t.wrap=d;var f={};function p(){}function h(){}function v(){}var m={};l(m,i,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(E([])));g&&g!==e&&r.call(g,i)&&(m=g);var y=v.prototype=p.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function a(o,i,c,s){var l=u(t[o],t,i);if("throw"!==l.type){var d=l.arg,f=d.value;return f&&"object"==Object(n["a"])(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){a("next",t,c,s)}),(function(t){a("throw",t,c,s)})):e.resolve(f).then((function(t){d.value=t,c(d)}),(function(t){return a("throw",t,c,s)}))}s(l.arg)}var o;this._invoke=function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return o=o?o.then(n,n):n()}}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 n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var a=n.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(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 n=-1,a=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=v,l(y,"constructor",v),l(v,"constructor",h),h.displayName=l(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new x(d(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(y),l(y,s,"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 n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,j.prototype={constructor:j,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(L),!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 n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.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),L(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 n=r.completion;if("throw"===n.type){var a=n.arg;L(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}}}]);