bztang-admin/addons/yun_shop/static/app/js/chunk-44d195e9.4d99126b.js

3 lines
12 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-44d195e9"],{"1da1":function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));r("d3b7");function n(t,e,r,n,i,o,a){try{var c=t[o](a),s=c.value}catch(l){return void r(l)}c.done?e(s):Promise.resolve(s).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function c(t){n(a,i,o,c,s,"next",t)}function s(t){n(a,i,o,c,s,"throw",t)}c(void 0)}))}}},3864: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",{staticClass:"credit-index"},[r("c-title",{attrs:{hide:!1,text:"信用值"}}),r("div",{staticClass:"view-detail"},[r("span",{on:{click:t.toDetail}},[t._v("查看明细")])]),r("div",{staticClass:"containe"},[r("div",{staticClass:"top-cards"},[r("div",{staticClass:"card"},[r("div",{staticClass:"value"},[t._v(t._s(t.memberInfo.znb?t.memberInfo.znb:0))]),r("div",{staticClass:"name"},[t._v("中南呗")]),r("p",{staticClass:"znb-tip"},[t._v("兑换余额比例 1:0.84")])]),r("div",{staticClass:"card"},[r("div",{staticClass:"value"},[t._v(t._s(t.memberInfo.credit_inventory?t.memberInfo.credit_inventory:0))]),r("div",{staticClass:"name"},[t._v("信用值")])]),t.is_show?r("div",{staticClass:"card"},[r("div",{staticClass:"value"},[t._v(t._s(t.memberInfo.stock||0))]),r("div",{staticClass:"name"},[t._v("库存信用值")])]):t._e()]),r("div",{staticClass:"list"},[t.is_show?r("van-cell",{staticClass:"item",attrs:{title:"缴纳服务费","is-link":"",to:t.fun.getUrl("creditRecharge")},scopedSlots:t._u([{key:"icon",fn:function(){return[r("i",{staticClass:"iconfont icon-fontclass-jiaona icon"})]},proxy:!0}],null,!1,3787350891)}):t._e(),t.is_show?r("van-cell",{staticClass:"item",attrs:{title:"赠送","is-link":"",to:t.fun.getUrl("creditGive")},scopedSlots:t._u([{key:"icon",fn:function(){return[r("i",{staticClass:"iconfont icon-fontclass-zengsong icon"})]},proxy:!0}],null,!1,651380138)}):t._e(),r("van-cell",{staticClass:"item",attrs:{title:"激活记录","is-link":"",to:t.fun.getUrl("activateHistory")},scopedSlots:t._u([{key:"icon",fn:function(){return[r("i",{staticClass:"iconfont icon-fontclass-jilu1 icon"})]},proxy:!0}])}),r("van-cell",{staticClass:"item",attrs:{title:"赠送记录","is-link":"",to:t.fun.getUrl("giveHistory")},scopedSlots:t._u([{key:"icon",fn:function(){return[r("i",{staticClass:"iconfont icon-fontclass-jilu2 icon"})]},proxy:!0}])})],1)])],1)},i=[],o=r("c7eb"),a=(r("e7e5"),r("d399")),c=r("1da1"),s=r("6968"),l={data:function(){return{memberInfo:{},is_show:!1}},activated:function(){this.getData()},methods:{getData:function(){var t=this;return Object(c["a"])(Object(o["a"])().mark((function e(){var r;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,$http.post("plugin.credit-inventory.frontend.controllers.center.index",{},"加载中...");case 2:if(r=e.sent,0!==r.result){e.next=6;break}return Object(a["a"])(r.msg),e.abrupt("return");case 6:t.memberInfo=r.data.member,t.is_show=r.data.is_show;case 8:case"end":return e.stop()}}),e)})))()},toDetail:function(){this.$router.push(this.fun.getUrl("viewDetails"))}},components:{cTitle:s["a"]}},u=l,d=(r("7a6a"),r("2877")),f=Object(d["a"])(u,n,i,!1,null,"7bbededb",null);e["default"]=f.exports},"7a6a":function(t,e,r){"use strict";r("93b5")},"91bc":function(t,e,r){var n=r("24fb");e=n(!1),e.push([t.i,".credit-index[data-v-7bbededb]{-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:1rem;background-color:#fff}.view-detail[data-v-7bbededb]{width:100%;height:3rem;text-align:right;padding-right:1rem;font-size:14px;line-height:3rem;color:#666}.top-cards .card[data-v-7bbededb]{margin-bottom:.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:space-evenly;-webkit-justify-content:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly;min-height:3rem;margin-right:1rem;text-align:left;padding:5px 5px 5px 10px;border-radius:10px}.card[data-v-7bbededb]:first-child{background-color:#eaf0fe}.card[data-v-7bbededb]:nth-child(2){background-color:#fff8ee}.card[data-v-7bbededb]:nth-child(3){background-color:#fbf4f5}.card .value[data-v-7bbededb]{font-size:15px;font-weight:700;color:#f14e4e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card .name[data-v-7bbededb]{font-size:13px;font-weight:400;color:#228efa}.card .proportion[data-v-7bbededb]{font-size:10px;color:#767c88}.znb-tip[data-v-7bbededb]{margin-top:.2rem;text-align:left;font-size:12px;color:#70777d}.icon[data-v-7bbededb]{width:1rem;height:1rem;margin-right:.5rem}.list[data-v-7bbededb]{text-align:left;margin-top:30px}.list .item[data-v-7bbededb]{padding-left:0}",""]),t.exports=e},"93b5":function(t,e,r){var n=r("91bc");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=r("499e").default;i("4ba14a26",n,!0,{sourceMap:!1,shadowMode:!1})},c7eb:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));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 i(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
i=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=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(O){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof h?e:h,o=Object.create(i.prototype),a=new C(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return j()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var c=_(a,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=d(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,a),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(O){return{type:"throw",arg:O}}}t.wrap=u;var f={};function h(){}function p(){}function v(){}var b={};l(b,a,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==e&&r.call(y,a)&&(b=y);var g=v.prototype=h.prototype=Object.create(b);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function i(o,a,c,s){var l=d(t[o],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Object(n["a"])(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,c,s)}),(function(t){i("throw",t,c,s)})):e.resolve(f).then((function(t){u.value=t,c(u)}),(function(t){return i("throw",t,c,s)}))}s(l.arg)}var o;this._invoke=function(t,r){function n(){return new e((function(e,n){i(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=d(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(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 C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=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 i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=v,l(g,"constructor",v),l(v,"constructor",p),p.displayName=l(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"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(g),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,i,o){void 0===o&&(o=Promise);var a=new x(u(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(g),l(g,s,"Generator"),l(g,a,(function(){return this})),l(g,"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,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(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 a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=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 i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},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 i=n.arg;L(r)}return i}}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}}}]);