bztang-admin/addons/yun_shop/static/app/js/chunk-e496962c.3ef6d69d.js

1 line
4.3 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e496962c"],{"3ae4":function(t,e,i){"use strict";i("c267")},"62eb":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.className},[i("div",{domProps:{innerHTML:t._s(t.css)}}),t.is_open?i("div",{staticClass:"circleBox_1"},[i("div",{staticClass:"circleimg"}),i("div",{staticClass:"circleLeft",on:{click:t.toStoreBalance}},[i("span",{staticClass:"txt"},[t._v(t._s(t.title))]),i("div",{staticClass:"priceCir"},[i("span",[t._v(t._s(t.$i18n.t("money")))]),i("span",{staticClass:"pric"},[t._v(t._s(t.member_balance))])])]),t.show_button?i("div",{staticClass:"circleRight",on:{click:function(e){return t.toStoreBalance("balance")}}},[t._v("充值")]):t._e()]):i("div",[t._v("请先开启门店余额")])])},o=[],s=(i("99af"),i("14d9"),function(){if(this.datas.preview_color){var t=this.plugin_active&&1==this.openTemplate?this.datas_style02:this.datas,e=t.balance_bg_color,i=t.button_bg_color,n=t.button_color,o=t.font_color,s=t.number_color;return"\n .component-".concat(this.id," .circleBox_1 {\n background: ").concat(e,";\n }\n .component-").concat(this.id," .circleRight {\n background-color: ").concat(i,";\n color:").concat(n,"\n }\n .component-").concat(this.id," .txt {\n color: ").concat(o,";\n }\n .component-").concat(this.id," .priceCir {\n color: ").concat(s,";\n }\n ")}}),a={data:function(){return{is_open:!1,member_balance:"",show_button:!1,storeId:0}},props:["store_id","id","datas"],computed:{css:function(){return"<style>"+s.call(this)+"</style>"},className:function(){var t=["component-wrapper","component-".concat(this.id)];return t}},activated:function(){this.getBalance(),this.store_id?this.storeId=this.store_id:this.$route.params.store_id&&(this.storeId=this.$route.params.store_id)},mounted:function(){this.getBalance(),this.store_id?this.storeId=this.store_id:this.$route.params.store_id&&(this.storeId=this.$route.params.store_id)},methods:{toStoreBalance:function(t){this.storeId&&("balance"==t?this.$router.push(this.fun.getUrl("storeBalance",{name:"store",store_id:this.storeId})):this.$router.push(this.fun.getUrl("independenceBalance",{store_id:this.storeId})))},getBalance:function(){var t=this;$http.post("plugin.store-cashier.frontend.store.balance.setting.index",{store_id:this.store_id},"").then((function(e){1===e.result?(t.is_open=e.data.is_open,t.member_balance=e.data.member_balance,t.show_button=e.data.show_button,t.title=e.data.title):Toast(e.msg)})).catch((function(t){}))}}},c=a,r=(i("3ae4"),i("2877")),l=Object(r["a"])(c,n,o,!1,null,"59e68442",null);e["default"]=l.exports},"8b74":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".circleBox_1[data-v-59e68442]{margin:0 .5rem;border-radius:.5rem;height:7.19rem;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;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;position:relative;margin-top:.3125rem}.circleBox_1 .circleimg[data-v-59e68442]{width:103%;height:2rem;position:absolute;left:-5px;bottom:0;background-image:url(https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/independent_store/storeBalance.png);background-repeat:no-repeat;background-size:cover}.circleBox_1 .circleLeft[data-v-59e68442]{margin-left:1.03rem;color:#ffd772;font-size:.84rem;text-align:left}.circleBox_1 .circleLeft .priceCir[data-v-59e68442]{margin-top:.5rem;margin-bottom:.8rem;font-size:.84rem}.circleBox_1 .circleLeft .priceCir .pric[data-v-59e68442]{font-size:1.75rem}.circleBox_1 .circleRight[data-v-59e68442]{width:4.38rem;height:1.56rem;border-radius:.78rem;font-size:.84rem;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;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin-right:1.03rem}",""]),t.exports=e},c267:function(t,e,i){var n=i("8b74");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("499e").default;o("7d81d3ce",n,!0,{sourceMap:!1,shadowMode:!1})}}]);