bztang-admin/addons/yun_shop/static/app/js/chunk-f6689200.96cd5e66.js

1 line
8.0 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f6689200"],{2694:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"intergral-transform"},[a("c-title",{attrs:{text:t.name}}),a("div",{staticClass:"header"},[a("p",{staticClass:"available"},[t._v("可用"+t._s(t.fun.getCustomTextLang("member_center.credit1","积分"))+""+t._s(t.available_point))])]),a("div",{staticClass:"main"},[a("p",{staticClass:"left",staticStyle:{"font-size":"0.9375rem"}},[t._v("转兑数量")]),a("van-field",{staticStyle:{"font-size":"1.5rem"},attrs:{border:!1},on:{focus:t.focusInput},scopedSlots:t._u([{key:"left-icon",fn:function(){return[a("div",{staticClass:"iconfont icon-jifen",staticStyle:{color:"#e25e5e","margin-right":"0.625rem"}})]},proxy:!0},{key:"extra",fn:function(){return[a("span",{staticClass:"all",on:{click:t.handleAll}},[t._v("全部")])]},proxy:!0}]),model:{value:t.value,callback:function(e){t.value=e},expression:"value"}}),a("div",{staticClass:"line"}),a("div",{staticClass:"prompt"},[a("p",{staticStyle:{margin:"0.3rem 0"}},[t._v("转兑比例"),a("span",{staticStyle:{margin:"0 0.2rem"}},[t._v(t._s(t.out_rate))]),t._v(":"),a("span",{staticStyle:{margin:"0 0.2rem"}},[t._v(t._s(t.in_rate))])]),a("p",{staticStyle:{"margin-bottom":"1.5rem"}},[t._v(t._s(t.another_name_shop)+t._s(t.another_name_point)+"预计到账数量"+t._s(t.count))])]),a("div",{staticClass:"wrapper"},[a("span",{staticClass:"mobile"},[t._v("手机号")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.mobile,expression:"mobile"}],staticClass:"input",attrs:{type:"number",placeholder:"请输入要转入的手机号"},domProps:{value:t.mobile},on:{input:function(e){e.target.composing||(t.mobile=e.target.value)}}})]),a("button",{staticClass:"btn",on:{click:t.submit}},[t._v("确认转兑")])],1),a("van-popup",{attrs:{round:""},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[a("div",{staticClass:"wx-dialog"},[a("div",{staticStyle:{"border-bottom":"1px solid #f5f5f5","padding-bottom":"1rem"}},[t._v(" "+t._s(t.message)+" ")]),t.isWeixin?a("div",[a("wx-open-launch-weapp",{staticClass:"launch-btn",attrs:{id:"launch-btn",username:t.info.gh_id,path:t.info.path},on:{error:t.handleErrorFn,launch:t.handleLaunchFn,ready:t.readyFn}},[a("script",{attrs:{type:"text/wxtag-template"}},[t._v(" <style type='text/css'>.wx-btn { border: none; width: 8rem;height: 3rem;line-height: 3rem;display: block;margin: 2% auto 0; border-radius: 0.25rem;color: #e25e51;text-align: center;background-color:#fff}</style> <div> <button class=\"wx-btn\">确认</button> </div> ")])])],1):a("div",[a("button",{staticClass:"wx-btn",on:{click:t.confirm_handle}},[t._v("确认")])])])])],1)},r=[],i=(a("e17f"),a("2241")),o=a("c7eb"),s=a("1da1"),l=(a("d3b7"),a("25f0"),a("a9e3"),a("b680"),a("ac1f"),a("466d"),a("b0c0"),a("99af"),{data:function(){return{info:{gh_id:"",path:""},isWeixin:!1,point:"",available_point:0,value:0,mobile:"",another_name_shop:"",another_name_point:"",name:"",out_rate:0,in_rate:0,message:"",show:!1}},computed:{count:function(){if(0!==this.out_rate&&0!==this.in_rate){var t=this.value*this.in_rate;return t=t.toString(),t.length>5&&(t=Number(t),t=t.toFixed(2)),t}return 0}},activated:function(){this.value=0;var t=navigator.userAgent.toLowerCase(),e="wxwork"==t.match(/wxwork/i);this.isWeixin=!e&&"micromessenger"==t.match(/micromessenger/i),this.show=!1,this.get_exchange()},methods:{focusInput:function(){0==this.value&&(this.value="")},confirm_handle:function(){this.value=0,this.show=!1},handleAll:function(){this.value=this.available_point},get_exchange:function(){var t=this;return Object(s["a"])(Object(o["a"])().mark((function e(){var a,n,r,i,s;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,$http.get("plugin.point-exchange.frontend.exchange.index");case 2:if(a=e.sent,n=a.result,r=a.data,i=a.msg,0!=n){e.next=8;break}return e.abrupt("return",t.$toast(i));case 8:r.member_mobile&&(s=localStorage.getItem("point_phone"),t.mobile=s||r.member_mobile),t.available_point=r.member_point,t.name=r.name,t.out_rate=r.out_rate,t.in_rate=r.in_rate,t.another_name_shop=r.another_name.shop,t.another_name_point=r.another_name.point;case 15:case"end":return e.stop()}}),e)})))()},confirm:function(){var t=this;return Object(s["a"])(Object(o["a"])().mark((function e(){var a,n,r,i,s;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={point:t.value,mobile:t.mobile},e.next=3,$http.get("plugin.point-exchange.frontend.exchange.exchange",a);case 3:if(n=e.sent,r=n.result,i=n.msg,s=n.data,0!=r){e.next=9;break}return e.abrupt("return",t.$toast(i));case 9:localStorage.setItem("point_phone",t.mobile),s.web_url?(t.$toast(i),window.location.href=s.web_url):""==s.web_url&&s.mini_url&&s.mini_base_id?(t.message=i,t.show=!0,t.info.path=s.mini_url,t.info.gh_id=s.mini_base_id):t.$toast(i);case 11:case"end":return e.stop()}}),e)})))()},readyFn:function(t){},handleErrorFn:function(t){},handleLaunchFn:function(t){},submit:function(){var t=this;i["a"].confirm({message:"\n ".concat(this.value,"个").concat(this.fun.getCustomTextLang("member_center.credit1","积分"),"将转兑到").concat(this.another_name_shop,"的").concat(this.another_name_point,"\n 到账数量:").concat(this.count).concat(this.another_name_point,"\n 手机号:").concat(this.mobile)}).then((function(){t.confirm()})).catch((function(){}))}}}),c=l,m=(a("3ab2"),a("2877")),d=Object(m["a"])(c,n,r,!1,null,"2b08615e",null);e["default"]=d.exports},"3ab2":function(t,e,a){"use strict";a("a04e")},"924f3":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,"[data-v-2b08615e] .van-field__left-icon{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}[data-v-2b08615e] .van-cell{padding:0;margin-top:1rem;margin-bottom:.5rem}.intergral-transform .wx-btn[data-v-2b08615e]{border:none;width:8rem;height:3rem;line-height:3rem;display:block;margin:2% auto 0;border-radius:.25rem;color:#e25e51;text-align:center}.intergral-transform .wx-dialog[data-v-2b08615e]{padding:1.8125rem .75rem .5rem .75rem;border-radius:2.3125rem;width:18rem}.intergral-transform .btn[data-v-2b08615e]{display:block;margin-top:2rem;width:16.88rem;height:2.75rem;line-height:2.75rem;background-color:#ff5d5d;margin:2rem auto 0;border:none;border-radius:.3rem;color:#fff}.intergral-transform .prompt[data-v-2b08615e]{text-align:left;color:#c2c2c2;font-size:.7813rem}.intergral-transform .wrapper[data-v-2b08615e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-top:1rem;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;font-size:.8rem}.intergral-transform .wrapper .mobile[data-v-2b08615e]{margin-right:1rem}.intergral-transform .wrapper .input[data-v-2b08615e]{border:none;width:80%;border-bottom:1px solid #f2f2f2;padding-bottom:.5rem}.intergral-transform .line[data-v-2b08615e]{width:100%;height:1px;background-color:#f2f2f2}.intergral-transform .available[data-v-2b08615e]{padding-top:1.9rem;padding-left:1.8rem;text-align:left;color:#101010}.intergral-transform .all[data-v-2b08615e]{color:#e25e5e;font-size:.8rem}.intergral-transform .left[data-v-2b08615e]{text-align:left}.intergral-transform .main[data-v-2b08615e]{position:relative;top:-75px;width:calc(100% - .8125rem);margin:1rem auto;border-radius:10px;background:#fff;padding:1rem}.intergral-transform .header[data-v-2b08615e]{background:-webkit-gradient(linear,left top,left bottom,from(#ffd548),to(hsla(0,0%,94.9%,0)));background:-webkit-linear-gradient(top,#ffd548,hsla(0,0%,94.9%,0));background:linear-gradient(180deg,#ffd548,hsla(0,0%,94.9%,0));height:8rem}",""]),t.exports=e},a04e:function(t,e,a){var n=a("924f3");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("4e5be58c",n,!0,{sourceMap:!1,shadowMode:!1})}}]);