bztang-admin/addons/yun_shop/static/app/js/chunk-3ce9cc12.4b37ffc8.js

1 line
4.2 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3ce9cc12"],{"242b":function(e,t,o){var i=o("24fb");t=i(!1),t.push([e.i,"#teamCode .el-button--text[data-v-2c66fc4d],#teamCode .van-button[data-v-2c66fc4d]{color:#fff;background-color:#f15353;border-color:#f15353;width:80%;height:2.5rem;line-height:2.5rem;margin:1.25rem 0;padding:0;font-size:16px}#teamCode .m_header[data-v-2c66fc4d]{width:100%;height:2.8125rem;margin-top:2.8125rem;line-height:2.8125rem;background:#fff;border-bottom:.0625rem solid #ccc}#teamCode .m_header span[data-v-2c66fc4d]{display:inline-block;width:1rem;height:1.5rem;float:left;font-size:22px;font-weight:400}#teamCode .m_header span.history[data-v-2c66fc4d]{width:20%;float:right;font-size:12px;font-weight:400;color:#888}#teamCode .m_header span.title[data-v-2c66fc4d]{width:60%;font-size:15px;font-weight:700;-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:30%}#teamCode .upgradeList[data-v-2c66fc4d]{background:#fff}#teamCode .upgradeList li[data-v-2c66fc4d]{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:16px;height:2.75rem;line-height:2.75rem;border-bottom:.0625rem solid #ebebeb;padding:0 .875rem}#teamCode .upgradeList li span[data-v-2c66fc4d]:first-child{color:#8c8c8c}#teamCode .upgradeList li[data-v-2c66fc4d]:last-child{border:none}#teamCode .rationList li[data-v-2c66fc4d]{background:#fff;padding:10px;overflow:hidden;border-bottom:.0625rem solid #ebebeb}#teamCode .rationList li .left[data-v-2c66fc4d]{float:left;color:#333;line-height:1.75rem}#teamCode .rationList li .left .num[data-v-2c66fc4d]{color:#999;font-size:12px;margin-left:.3125rem}#teamCode .rationList li .right[data-v-2c66fc4d]{float:right;line-height:1.75rem}",""]),e.exports=t},"399c":function(e,t,o){"use strict";o.r(t);var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"teamCode"}},[o("c-title",{attrs:{hide:!1,text:"我的激活码",tolink:"newcodeHistory",totext:"使用记录"}}),o("van-button",{attrs:{type:"default"},on:{click:function(t){return e.openDialog("123")}}},[e._v("使用激活码")]),e._l(e.codes,(function(t,i){return o("ul",{key:i,staticClass:"upgradeList"},[o("li",[o("span",[e._v("可升至"+e._s(t.has_one_level.level_name))]),o("span",[e._v(e._s(t.code))])])])})),o("van-popup",{style:{height:"40%"},attrs:{closeable:"",position:"bottom"},model:{value:e.showPop,callback:function(t){e.showPop=t},expression:"showPop"}},[o("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center",height:"4rem"}},[e._v("请输入激活码")]),o("div",{staticStyle:{"margin-top":"1rem"}},[o("input",{directives:[{name:"model",rawName:"v-model",value:e.popCode,expression:"popCode"}],staticStyle:{outline:"none",border:"solid 1px #ccc",height:"2rem","text-indent":"1rem"},attrs:{type:"text"},domProps:{value:e.popCode},on:{input:function(t){t.target.composing||(e.popCode=t.target.value)}}})]),o("van-button",{on:{click:e.activation}},[e._v("确定")])],1)],2)},a=[],n=(o("e7e5"),o("d399")),d=o("6968"),c={data:function(){return{popCode:"",showPop:!1,codes:[],value:"",show:!1}},activated:function(){this.getData()},methods:{getData:function(){var e=this;$http.get("plugin.team-fjyx.api.index.getCode",{},"获取中").then((function(t){1==t.result?e.codes=t.data.code:Object(n["a"])(t.msg)}),(function(e){Object(n["a"])(e.msg)}))},goBack:function(){this.$router.go(-1)},openDialog:function(){this.showPop=!0},activation:function(){this.verifyCode(this.popCode)},verifyCode:function(e){if(this.fun.isTextEmpty(e))Object(n["a"])("请输入激活码");else{var t=this,o={code:e};$http.get("plugin.team-fjyx.api.index.useCode",o,"激活中").then((function(e){1==e.result?(Object(n["a"])(e.msg),t.getData()):Object(n["a"])(e.msg)}),(function(e){Object(n["a"])(e.msg)}))}}},components:{cTitle:d["a"]}},s=c,r=s,l=(o("df6f1"),o("2877")),f=Object(l["a"])(r,i,a,!1,null,"2c66fc4d",null);t["default"]=f.exports},"5a2d":function(e,t,o){var i=o("242b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=o("499e").default;a("403808ad",i,!0,{sourceMap:!1,shadowMode:!1})},df6f1:function(e,t,o){"use strict";o("5a2d")}}]);