bztang-admin/addons/yun_shop/static/app/js/chunk-f0333834.b4d4be04.js

1 line
12 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f0333834"],{"2c87":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAHJklEQVR4Xu2bZaimRRTHf2sndqAitoIfFLELC+zubsVCxe7ALvxgd3e3mJjY+kXswsRC7Jbf8swyd+7z3neeeO9917sHlt29d+bMnP/MnH7GMMppzCiXnwkATLgBvUdgMmBFYGVgDmC24s+sxf//Br4CvgC+Kf79KfAM8DTwZy+32KsnMDGwFrArsCYwVU0hfgEeBK4EHgIEq1VqG4ApgL2Ag4A5W90pfAacDVwA/N4W77YAmKQQ/Ehg9rY214HPl8ApwIXAX03XagOAjYEzgfmH2Mz7wAvFn5eAV4A/kvGTA4sDywFLAstm8DwEuLMJCE0A8J17JffvsAEFvB44HXi75iYXLZ7TdsCkHXicCxxcVz/UBWA64HZg9ZJN/QxcDJxVaPaasg+YpvVQr6hfpixh+BiwKfBD1cXqAKByexxYKFlMjX1eceLfVd1I5viZAa/9viWWxVu2BqAJzaaqAMwNPF/Y73gRF9fcfZy9crOB8xTmcZGEzeeFDvkkl30VAGYCXgTmS5jfB2wFePWHk6YBbgTWSxb9AFga+DZnM7kAqID0zGQck6bI6/hPzmI9GDNR8ezUDTFpaVbI8SJzAbgK2DFZ5HJgtx4IVYelSnePZOLVwE7dmOUAsE1hzmJeDwDrj+DJp3J5E+4B1k1+sS1ww1AgdANA58Q3pRkKpMLTUfmpG7rD/Ht1wsvAwtG6KkV1VkfXuRsAurYnRwxlpLf21jALl7ucVuF1wIMLdHQiwwBeQwGgs2MAMnU040TguNzdjNC4E4Bjo7W1TvoupU7SUADo3+tiBtLBWKDNSKxHAHn67wFzRfz1SnWgBlEnADR7enO+q0CCoe+fSwZH5gQeAd7JnZSM8z2vBjxc6KJcNrrNCh3oR0A/ZlBypRMARnh3RAxUeCpC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+vgbOOoLWKXetjEhkG7KFbbdC+P5VZ3PM3qoqjomWa2vg9JpWanRkj1RiR3iStjfGEvn9M1iLSvVe6AWGwVZ2dE+b91CChj2/1KabWGiRk2s8tMhelAU7Ry6QJ7tpo3U0HxIh2apIy3LSMNtxNUpbtby7pCulJk1QAol/a5Ex0CHzcDeIee9omF0Cw7v5oyeLegPOL+DtOQ7Vp+ka8UTIIY+HU8rm1+5QE4pICCD+CaINCq+yeScdK4G3nquW2YWmVDYtaxjoH2K+DhKa8LISYkXmzJgo5zdK25x4w3M3SsTzm9ewcyW2Xt9v01ZJUu06XeQfb5A2AlsngadBzd01wx06rYgWGWmdUfzARA+Mpmjg5sEefzPjkVLR998lMejva/GjKErofTel+9/1HU2XPpOyzOT+Z8/M5tXvZZ3M2Q9mlYqm+qzfXDzqgyR5GdG5bSnBEhWiy+AQAmqD3f5j7Hy2FkFA2hNhdAAAAAElFTkSuQmCC"},b4a0:function(e,t,a){var i=a("c3e6");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("499e").default;n("7145babd",i,!0,{sourceMap:!1,shadowMode:!1})},bb03:function(e,t,a){"use strict";a("b4a0")},c3e6:function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,"#personRedissue[data-v-5b406ba0]{padding-bottom:2rem}#personRedissue .tabbtn[data-v-5b406ba0]{width:100%;height:2.5rem;margin-top:2.91rem;margin-bottom:1rem}#personRedissue .tabbtn div[data-v-5b406ba0]{width:20.31rem;height:2.5rem;background-color:#ef3532;border-radius:1.25rem;font-size:.94rem;color:#fff;margin:0 auto}#personRedissue .redPrice[data-v-5b406ba0],#personRedissue .tabbtn div[data-v-5b406ba0]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#personRedissue .redPrice[data-v-5b406ba0]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-top:2.1rem}#personRedissue .redPrice .priceTxt[data-v-5b406ba0]{font-size:1.19rem;font-weight:600}#personRedissue .redPrice .price[data-v-5b406ba0]{margin-top:1.16rem;font-size:1.13rem;color:#f69a00}#personRedissue .selectBox[data-v-5b406ba0]{margin-left:1.09rem;margin-top:2.07rem}#personRedissue .uploadImg[data-v-5b406ba0]{margin-top:1.63rem;text-align:left;margin-left:1.09rem;font-size:.94rem}#personRedissue .uploadImg .uptxt[data-v-5b406ba0]{margin-bottom:.69rem}#personRedissue .uploadImg .imgUploader[data-v-5b406ba0]{background:none}#personRedissue .textArea[data-v-5b406ba0]{width:21.88rem;height:4.38rem;background-color:#fff;border-radius:.47rem;margin:0 auto;margin-top:1.31rem}#personRedissue .timeText[data-v-5b406ba0]{font-size:.69rem;color:#f14e4e;text-align:left;padding-left:.94rem;padding-top:.5rem}#personRedissue .minbox[data-v-5b406ba0]{width:21.88rem;height:3.13rem;background-color:#fff;border-radius:.47rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:1.13rem .94rem;margin:0 auto}#personRedissue .minbox[data-v-5b406ba0],#personRedissue .minbox .minboxLeft[data-v-5b406ba0]{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}#personRedissue .minbox .minboxLeft .dtext[data-v-5b406ba0]{width:1.31rem;height:1.31rem;background-color:#f69a00;border-radius:.13rem;font-size:.88rem;color:#fff;margin-right:.38rem}#personRedissue .minbox .minboxRight[data-v-5b406ba0]{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}#personRedissue .minbox .minboxRight .rightTxt[data-v-5b406ba0]{white-space:nowrap}#personRedissue .txtTop[data-v-5b406ba0]{margin-left:1.06rem;margin-top:.88rem;margin-bottom:.72rem;font-size:.75rem;text-align:left;color:#f69a00;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}#personRedissue .txtTop i[data-v-5b406ba0]{color:#f69a00;margin-left:.34rem}",""]),e.exports=t},f092:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"personRedissue"}},[a("c-title",{attrs:{hide:!1,text:"发红包"}}),a("div",{staticClass:"txtTop",on:{click:function(t){e.selectShow=!0}}},[e._v(" "+e._s(e.redpackTypeTxt)+" "),a("van-icon",{attrs:{name:"arrow-down"}})],1),a("div",{staticClass:"minbox"},[a("div",{staticClass:"minboxLeft"},[e._v("红包个数")]),a("div",{staticClass:"minboxRight"},[a("van-field",{attrs:{type:"digit",placeholder:"填写个数","input-align":"right"},on:{input:e.numInp},model:{value:e.redpack_date.number,callback:function(t){e.$set(e.redpack_date,"number",t)},expression:"redpack_date.number"}}),e._v(" 个 ")],1)]),a("div",{staticClass:"minbox",staticStyle:{"margin-top":"0.94rem"}},[a("div",{staticClass:"minboxLeft"},[1==e.redpack_date.redpack_type?a("div",{staticClass:"dtext"},[e._v("拼")]):e._e(),e._v(" "+e._s(1==e.redpack_date.redpack_type?"总金额":"单个金额")+" ")]),1==e.redpack_date.redpack_type?a("div",{staticClass:"minboxRight"},[a("van-field",{attrs:{type:"number",placeholder:"请输入金额","input-align":"right"},on:{blur:e.unitInp},model:{value:e.redpack_date.amount_total,callback:function(t){e.$set(e.redpack_date,"amount_total",t)},expression:"redpack_date.amount_total"}}),a("div",{staticClass:"rightTxt"},[e._v(e._s(e.balance_name))])],1):a("div",{staticClass:"minboxRight"},[a("van-field",{attrs:{type:"number",placeholder:"请输入金额","input-align":"right"},on:{input:e.totalInp},model:{value:e.redpack_date.unit_amount,callback:function(t){e.$set(e.redpack_date,"unit_amount",t)},expression:"redpack_date.unit_amount"}}),a("div",{staticClass:"rightTxt"},[e._v(e._s(e.balance_name))])],1)]),a("div",{staticClass:"minbox",staticStyle:{"margin-top":"0.94rem"}},[a("div",{staticClass:"minboxLeft"},[e._v("红包时间")]),a("div",{staticClass:"minboxRight"},[a("van-field",{attrs:{placeholder:"请输入时间",readonly:!0,"input-align":"right"},model:{value:e.valid_hours,callback:function(t){e.valid_hours=t},expression:"valid_hours"}})],1)]),a("div",{staticClass:"timeText"},[e._v("超时时间未领取的部分,剩余返回")]),a("div",{staticClass:"textArea"},[a("van-field",{staticStyle:{"background-color":"#fff",height:"4.38rem"},attrs:{rows:"3",autosize:"",type:"textarea",placeholder:"红包来袭~","show-word-limit":""},model:{value:e.redpack_date.title,callback:function(t){e.$set(e.redpack_date,"title",t)},expression:"redpack_date.title"}})],1),a("div",{staticClass:"uploadImg"},[a("div",{staticClass:"uptxt"},[e._v("红包图标(选填)")]),a("yz_uploader",{attrs:{customPadding:"none",customText:e.customText,boxSelect:"#f2f2f2",max_count:1},model:{value:e.redpack_date.thumb,callback:function(t){e.$set(e.redpack_date,"thumb",t)},expression:"redpack_date.thumb"}})],1),e.child_receive?a("div",{staticClass:"selectBox"},[a("van-checkbox",{on:{change:e.checkSelect},model:{value:e.redpack_date.child_receive,callback:function(t){e.$set(e.redpack_date,"child_receive",t)},expression:"redpack_date.child_receive"}},[e._v("只限团队成员可领")])],1):e._e(),a("div",{staticClass:"redPrice"},[a("div",{staticClass:"priceTxt"},[e._v("总金额")]),e.redpack_date.amount_total?a("div",{staticClass:"price"},[e._v("¥"+e._s(e.redpack_date.amount_total))]):a("div",{staticClass:"price"},[e._v("¥0.00")])]),a("div",{staticClass:"tabbtn"},[a("div",{on:{click:e.tapRedbtn}},[e._v("发红包")])]),a("van-action-sheet",{attrs:{actions:e.actions,"cancel-text":"取消","close-on-click-action":""},on:{select:e.onSelect},model:{value:e.selectShow,callback:function(t){e.selectShow=t},expression:"selectShow"}})],1)},n=[],s=(a("e7e5"),a("d399")),r=(a("b64b"),a("b0c0"),a("b680"),a("a9e3"),a("e9c4"),a("14d9"),a("6968")),d=a("46ef"),o={data:function(){return{show:!1,show1:!0,checked:"1",fileList1:[],customText:"尺寸为正方形,未上传则默认图标",selectShow:!1,actions:[{name:"固定金额红包",id:0},{name:"拼手气红包",id:1}],redpackTypeTxt:"",redpack_date:{redpack_type:1,number:"",amount_total:"",title:"红包来袭~",thumb:[],child_receive:0,unit_amount:""},valid_hours:"",balance:"",balance_name:"",need_password:!1}},deactivated:function(){},activated:function(){this.init(),this.reserve(),this.balance_name=localStorage.getItem("balanceLang")?JSON.parse(localStorage.getItem("balanceLang")).balance:"余额"},methods:{init:function(){this.redpackTypeTxt="拼手气红包",this.redpack_date.redpack_type=1,this.redpack_date.number="",this.redpack_date.amount_total="",this.redpack_date.title="红包来袭~",this.redpack_date.thumb="",this.redpack_date.child_receive=0,this.redpack_date.unit_amount=""},checkSelect:function(e){this.redpack_date.child_receive=e?1:0},tapRedbtn:function(){this.redpackPost()},onSelect:function(e){this.init(),this.redpackTypeTxt=e.name,this.redpack_date.redpack_type=e.id},totalInp:function(){if(0==this.redpack_date.redpack_type){if(!this.redpack_date.number)return;var e=(Number(this.redpack_date.unit_amount)*Number(this.redpack_date.number)).toFixed(2);this.redpack_date.amount_total=e}},unitInp:function(){this.fun.isTextEmpty(this.redpack_date.amount_total)||(this.redpack_date.amount_total=Number(this.redpack_date.amount_total).toFixed(2))},numInp:function(e){if(0==this.redpack_date.redpack_type){if(!this.redpack_date.unit_amount)return;this.redpack_date.amount_total=(Number(this.redpack_date.unit_amount)*Number(this.redpack_date.number)).toFixed(2)}},reserve:function(){var e=this;$http.get("plugin.redpack-user.frontend.redpack.index",{},"").then((function(t){1===t.result?(e.valid_hours=t.data.valid_hours,e.child_receive=t.data.setting_child_receive,e.balance=t.data.balance,e.need_password=t.data.need_password):Object(s["a"])(t.msg)})).catch((function(e){}))},redpackPost:function(){if(this.fun.isTextEmpty(this.redpack_date.number))Object(s["a"])("请输入红包个数");else{if(this.fun.isTextEmpty(this.redpack_date.amount_total)){if(1==this.redpack_date.redpack_type)return void Object(s["a"])("请输入红包总额");if(0==this.redpack_date.redpack_type)return void Object(s["a"])("请输入单个红包金额")}this.fun.isTextEmpty(this.redpack_date.thumb)||0==this.redpack_date.thumb.length?this.redpack_date.thumb="":this.redpack_date.thumb=String(this.redpack_date.thumb);var e=JSON.stringify(this.redpack_date),t={balance:this.balance,need_password:this.need_password};t=JSON.stringify(t),this.$router.push(this.fun.getUrl("personRedPay",{json:e,lis:t}))}}},components:{cTitle:r["a"],yz_uploader:d["a"]}},c=o,l=c,p=(a("bb03"),a("2877")),m=Object(p["a"])(l,i,n,!1,null,"5b406ba0",null);t["default"]=m.exports}}]);