You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
shipin/public/static/js/pages-users-user_payment-in...

1 lines
18 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_payment-index"],{"0231":function(t,i,e){"use strict";var n=e("c553"),a=e.n(n);a.a},"03ff":function(t,i,e){"use strict";e.r(i);var n=e("344e"),a=e("1565");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(o);e("15bc");var s=e("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"5c721f6d",null,!1,n["a"],void 0);i["default"]=c.exports},"116e":function(t,i,e){var n=e("24fb");i=n(!1),i.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.tip .pic-box-color .active[data-v-2089319a]{color:#fff!important}',""]),t.exports=i},1565:function(t,i,e){"use strict";e.r(i);var n=e("539e"),a=e.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(o);i["default"]=a.a},"15bc":function(t,i,e){"use strict";var n=e("c257"),a=e.n(n);a.a},"344e":function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){}));var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{style:t.colorStyle},[e("v-uni-view",{staticStyle:{"touch-action":"none"}},[e("v-uni-view",{staticClass:"home",staticStyle:{position:"fixed"},style:{top:t.top+"px"},attrs:{id:"right-nav"},on:{touchmove:function(i){i.stopPropagation(),i.preventDefault(),arguments[0]=i=t.$handleEvent(i),t.setTouchMove.apply(void 0,arguments)}}},[t.homeActive?e("v-uni-view",{staticClass:"homeCon bg-color",class:!0===t.homeActive?"on":""},[e("v-uni-navigator",{staticClass:"iconfont icon-shouye-xianxing",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/index/index"}}),e("v-uni-navigator",{staticClass:"iconfont icon-caigou-xianxing",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/order_addcart/order_addcart"}}),e("v-uni-navigator",{staticClass:"iconfont icon-yonghu1",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/user/index"}})],1):t._e(),e("v-uni-view",{staticClass:"pictrueBox",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.open.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"pictrue"},[e("v-uni-image",{staticClass:"image",attrs:{src:!0===t.homeActive?t.imgHost+"/statics/images/close.gif":t.imgHost+"/statics/images/open.gif"}})],1)],1)],1)],1)],1)},a=[]},"539e":function(t,i,e){"use strict";e("7a82");var n=e("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=e("26cb"),o=n(e("66ca")),s=e("989b"),c={name:"Home",props:{},mixins:[o.default],data:function(){return{top:"545",imgHost:s.HTTP_REQUEST_URL}},computed:(0,a.mapGetters)(["homeActive"]),methods:{setTouchMove:function(t){t.touches[0].clientY<545&&t.touches[0].clientY>66&&(this.top=t.touches[0].clientY)},open:function(){this.homeActive?this.$store.commit("CLOSE_HOME"):this.$store.commit("OPEN_HOME")}},created:function(){},beforeDestroy:function(){this.$store.commit("CLOSE_HOME")}};i.default=c},"5d82":function(t,i,e){var n=e("116e");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=e("4f06").default;a("54f541be",n,!0,{sourceMap:!1,shadowMode:!1})},a798:function(t,i,e){var n=e("24fb");i=n(!1),i.push([t.i,".pictrueBox[data-v-5c721f6d]{width:%?130?%;height:%?120?%}\n\n/*返回主页按钮*/.home[data-v-5c721f6d]{position:fixed;color:#fff;text-align:center;z-index:999;right:%?15?%;display:flex}.home .homeCon[data-v-5c721f6d]{border-radius:%?50?%;opacity:0;height:0;color:var(--view-theme);width:0}.home .homeCon.on[data-v-5c721f6d]{opacity:1;-webkit-animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);width:%?300?%;height:%?86?%;margin-bottom:%?20?%;display:flex;justify-content:center;align-items:center;background:var(--view-theme)!important;opacity:.8;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.home .homeCon .iconfont[data-v-5c721f6d]{font-size:%?48?%;color:#fff;display:inline-block;margin:0 auto}.home .pictrue[data-v-5c721f6d]{width:%?86?%;height:%?86?%;border-radius:50%;margin:0 auto;background-color:var(--view-theme)}.home .pictrue .image[data-v-5c721f6d]{width:100%;height:100%;border-radius:50%;-webkit-transform:rotate(90deg);transform:rotate(90deg);ms-transform:rotate(90deg);moz-transform:rotate(90deg);webkit-transform:rotate(90deg);o-transform:rotate(90deg)}",""]),t.exports=i},aa71:function(t,i,e){"use strict";var n=e("5d82"),a=e.n(n);a.a},adcb:function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){}));var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",[e("v-uni-form",{style:t.colorStyle},[e("v-uni-view",{staticClass:"payment-top acea-row row-column row-center-wrapper"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("我的余额")))]),e("v-uni-view",{staticClass:"pic"},[e("span",{staticClass:"pic-font"},[e("span",{staticClass:"num"},[t._v(t._s(t.$t("¥")))]),t._v(t._s(t.userinfo.now_money||0))])])],1),e("v-uni-view",{staticClass:"payment"},[e("v-uni-view",{staticClass:"nav acea-row row-around row-middle"},t._l(t.navRecharge,(function(i,n){return e("v-uni-view",{key:n,staticClass:"item",class:t.active==n?"on":"",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.navRecharges(n)}}},[t._v(t._s(t.$t(i)))])})),1),t.active?e("v-uni-view",{staticClass:"tip"},[e("v-uni-view",{staticClass:"input"},[e("v-uni-text",[t._v(t._s(t.$t("¥")))]),e("v-uni-input",{attrs:{placeholder:"0.00",type:"number","placeholder-class":"placeholder",name:"number"},model:{value:t.number,callback:function(i){t.number=i},expression:"number"}})],1),e("v-uni-view",{staticClass:"tips-title"},[e("v-uni-view",{staticStyle:{"font-weight":"bold","font-size":"26rpx"}},[t._v(t._s(t.$t("提示"))+":")]),e("v-uni-view",{staticStyle:{"margin-top":"10rpx"}},[t._v(t._s(t.$t("当前可转入佣金为"))),e("v-uni-text",{staticClass:"font-color"},[t._v(t._s(t.$t("¥"))+t._s(t.userinfo.commissionCount||0))]),t._v(t._s(t.$t("冻结佣金为"))),e("v-uni-text",{staticClass:"font-color"},[t._v(t._s(t.$t("¥"))+t._s(t.userinfo.broken_commission))])],1)],1),e("v-uni-view",{staticClass:"tips-box"},[e("v-uni-view",{staticClass:"tips mt-30"},[t._v(t._s(t.$t("注意事项"))+":")]),t._l(t.rechargeAttention,(function(i){return e("v-uni-view",{key:i,staticClass:"tips-samll"},[t._v(t._s(t.$t(i)))])}))],2)],1):e("v-uni-view",{staticClass:"tip picList"},[t._l(t.picList,(function(i,n){return i.price?e("v-uni-view",{key:n,staticClass:"pic-box pic-box-color acea-row row-center-wrapper row-column",class:t.activePic==n?"pic-box-color-active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.picCharge(n,i)}}},[e("v-uni-view",{staticClass:"pic-number-pic"},[t._v(t._s(i.price)),e("span",{staticClass:"pic-number"},[t._v(t._s(t.$t("元")))])]),e("v-uni-view",{staticClass:"pic-number"},[t._v(t._s(t.$t("赠送"))+":"+t._s(i.give_money)+" "+t._s(t.$t("元")))])],1):t._e()})),e("v-uni-view",{staticClass:"pic-box pic-box-color acea-row row-center-wrapper",class:t.activePic==t.picList.length?"pic-box-color-active":"",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.picCharge(t.picList.length)}}},[e("v-uni-input",{staticClass:"pic-box-money pic-number-pic",class:t.activePic==t.picList.length?"pic-box-color-active":"",attrs:{type:"number",placeholder:t.$t("其他"),"placeholder-class":t.activePic==t.picList.length?"active":""},model:{value:t.money,callback:function(i){t.money=i},expression:"money"}})],1),e("v-uni-view",{staticClass:"tips-box"},[e("v-uni-view",{staticClass:"tips mt-30"},[t._v(t._s(t.$t("注意事项"))+":")]),t._l(t.rechargeAttention,(function(i){return e("v-uni-view",{key:i,staticClass:"tips-samll"},[t._v(t._s(t.$t(i)))])}))],2)],2),e("v-uni-button",{staticClass:"but bg-color",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.submitSub.apply(void 0,arguments)}}},[t._v(t._s(t.active?t.$t("立即转入"):t.$t("立即充值")))])],1)],1),e("payment",{attrs:{payMode:t.payMode,pay_close:t.pay_close,"is-call":!0,totalPrice:t.numberPic},on:{onChangeFun:function(i){arguments[0]=i=t.$handleEvent(i),t.onChangeFun.apply(void 0,arguments)}}}),e("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],domProps:{innerHTML:t._s(t.formContent)}}),e("home")],1)},a=[]},c1dd4:function(t,i,e){var n=e("24fb");i=n(!1),i.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-page-body[data-v-2089319a]{width:100%;height:100%;background-color:#fff}body.?%PAGE?%[data-v-2089319a]{background-color:#fff}.bgcolor[data-v-2089319a]{background-color:var(--view-theme)}.payment[data-v-2089319a]{position:relative;top:%?-60?%;width:100%;background-color:#fff;border-radius:%?10?%;padding-top:%?25?%;border-top-right-radius:%?39?%;border-top-left-radius:%?39?%}.payment .nav[data-v-2089319a]{height:%?75?%;line-height:%?75?%;padding:0 %?100?%}.payment .nav .item[data-v-2089319a]{font-size:%?30?%;color:#333}.payment .nav .item.on[data-v-2089319a]{font-weight:700;border-bottom:%?4?% solid var(--view-theme)}.payment .input[data-v-2089319a]{display:flex;align-items:center;justify-content:center;border-bottom:1px dashed #ddd;margin:%?60?% auto 0 auto;padding-bottom:%?20?%;font-size:%?56?%;color:#333;flex-wrap:nowrap}.payment .input uni-text[data-v-2089319a]{padding-left:%?106?%}.payment .input uni-input[data-v-2089319a]{padding-right:%?106?%;width:%?300?%;height:%?94?%;text-align:center;font-size:%?70?%}.payment .placeholder[data-v-2089319a]{color:#d0d0d0;height:100%;line-height:%?94?%}.payment .tip[data-v-2089319a]{font-size:%?26?%;color:#888;padding:0 %?30?%;margin-top:%?25?%}.payment .but[data-v-2089319a]{color:#fff;font-size:%?30?%;width:%?700?%;height:%?86?%;border-radius:%?50?%;margin:%?46?% auto 0 auto;line-height:%?86?%}.payment-top[data-v-2089319a]{width:100%;height:%?350?%;background-color:var(--view-theme)}.payment-top .name[data-v-2089319a]{font-size:%?26?%;color:hsla(0,0%,100%,.8);margin-top:%?-38?%;margin-bottom:%?30?%}.payment-top .pic[data-v-2089319a]{font-size:%?32?%;color:#fff}.payment-top .pic .num[data-v-2089319a]{font-size:%?56?%}.payment-top .pic-font[data-v-2089319a]{font-size:%?78?%;color:#fff}.picList[data-v-2089319a]{display:flex;flex-wrap:wrap;margin:%?30?% 0}.picList .pic-box[data-v-2089319a]{width:32%;height:auto;border-radius:%?20?%;margin-top:%?21?%;padding:%?20?% 0;margin-right:%?12?%}.picList .pic-box[data-v-2089319a]:nth-child(3n){margin-right:0}.picList .pic-box-color[data-v-2089319a]{background-color:#f4f4f4;color:#656565}.picList .pic-number[data-v-2089319a]{font-size:%?22?%}.picList .pic-number-pic[data-v-2089319a]{font-size:%?38?%;margin-right:%?10?%;text-align:center}.picList .active[data-v-2089319a]{color:#fff!important}.picList .pic-box-color-active[data-v-2089319a]{background-color:var(--view-theme)!important;color:#fff!important}.tips-box .tips[data-v-2089319a]{font-size:%?28?%;color:#333;font-weight:800;margin-bottom:%?14?%;margin-top:%?20?%}.tips-box .tips-samll[data-v-2089319a]{font-size:%?24?%;color:#333;margin-bottom:%?14?%}.tips-box .tip-box[data-v-2089319a]{margin-top:%?30?%}.tips-title[data-v-2089319a]{margin-top:%?20?%;font-size:%?24?%;color:#333}',""]),t.exports=i},c257:function(t,i,e){var n=e("a798");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=e("4f06").default;a("f61d2c94",n,!0,{sourceMap:!1,shadowMode:!1})},c553:function(t,i,e){var n=e("c1dd4");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=e("4f06").default;a("36a1e880",n,!0,{sourceMap:!1,shadowMode:!1})},e801:function(t,i,e){"use strict";e.r(i);var n=e("eac8"),a=e.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(o);i["default"]=a.a},eac8:function(t,i,e){"use strict";e("7a82");var n=e("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("acd8");var a=e("8ba8"),o=e("666f"),s=e("26cb"),c=n(e("03ff")),r=n(e("66ca")),u=n(e("b647")),l=e("a9a5"),p={components:{payment:u.default,home:c.default},mixins:[r.default],data:function(){return{now_money:0,navRecharge:[this.$t("账户充值"),this.$t("佣金转入")],active:0,number:"",formContent:"",userinfo:{},placeholder:"0.00",from:"",isAuto:!1,isShowAuth:!1,picList:[],activePic:0,money:"",numberPic:"",rechar_id:0,rechargeAttention:[],pay_close:!1,payMode:[{name:this.$t("微信支付"),icon:"icon-weixinzhifu",value:"weixin",title:this.$t("微信支付"),payStatus:!0},{name:this.$t("支付宝支付"),icon:"icon-zhifubao",value:"alipay",title:this.$t("支付宝支付"),payStatus:!0}],totalPrice:0}},computed:(0,s.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,i){t&&(this.getUserInfo(),this.getRecharge())},deep:!0}},onLoad:function(t){this.from=this.$wechat.isWeixin()?"weixin":"weixinh5",this.isLogin?(this.getBasicConfig(),this.getUserInfo(),this.getRecharge()):(0,o.toLogin)()},methods:{getBasicConfig:function(){var t=this;(0,l.basicConfig)().then((function(i){var e=i.data,n=e.ali_pay_status,a=e.pay_weixin_open;t.payMode[0].payStatus=a,t.payMode[1].payStatus=n})).catch((function(t){uni.showToast({title:t,icon:"none"})}))},picCharge:function(t,i){this.activePic=t,void 0===i?(this.rechar_id=0,this.numberPic=""):(this.money="",this.rechar_id=i.id,this.numberPic=i.price)},getRecharge:function(){var t=this;(0,a.getRechargeApi)().then((function(i){t.picList=i.data.recharge_quota,t.picList[0]&&(t.rechar_id=t.picList[0].id,t.numberPic=t.picList[0].price),t.rechargeAttention=i.data.recharge_attention||[]})).catch((function(i){t.$util.Tips({title:i})}))},onLoadFun:function(){this.getUserInfo(),this.getRecharge()},authColse:function(t){this.isShowAuth=t},navRecharges:function(t){this.active=t},getUserInfo:function(){var t=this;(0,a.getUserInfo)().then((function(i){t.$set(t,"userinfo",i.data)}))},onChangeFun:function(t){var i=t,e=i.action||null,n=void 0!=i.value?i.value:null;this.pay_close=!1,e&&this[e]&&this[e](n)},payCheck:function(t){var i=this,e=this;uni.showLoading({title:e.$t("正在支付")}),(0,a.recharge)({price:0==e.rechar_id?e.money:e.numberPic,from:t,rechar_id:e.rechar_id,type:0}).then((function(t){var n=t.data.status,a=(t.data.result.orderId,t.data.result.jsConfig);switch(n){case"ORDER_EXIST":case"EXTEND_ORDER":return uni.hideLoading(),e.$util.Tips({title:t.msg});case"ALLINPAY_PAY":uni.hideLoading(),i.formpost(t.data.result.pay_url,a);break;case"PAY_ERROR":return uni.hideLoading(),e.$util.Tips({title:t.msg});case"SUCCESS":return uni.hideLoading(),e.$util.Tips({title:e.$t("支付成功"),icon:"success"},{tab:5,url:"/pages/users/user_money/index"});case"WECHAT_PAY":e.toPay=!0,i.$wechat.pay(t.data.result.jsConfig).then((function(t){return e.$set(e,"userinfo.now_money",e.$util.$h.Add(i.number,e.userinfo.now_money)),e.$util.Tips({title:e.$t("支付成功"),icon:"success"},{tab:5,url:"/pages/users/user_money/index"})})).catch((function(t){return i.$wechat.isWeixin()?"chooseWXPay:cancel"==t.errMsg?e.$util.Tips({title:e.$t("取消支付")}):void 0:e.$util.Tips({title:e.$t("支付失败")})}));break;case"PAY_DEFICIENCY":return uni.hideLoading(),e.$util.Tips({title:t.msg},{tab:5,url:goPages+"&status=1"});case"WECHAT_H5_PAY":uni.hideLoading(),setTimeout((function(){location.href=t.data.result.jsConfig.h5_url}),2e3);break;case"ALIPAY_PAY":uni.hideLoading(),e.formContent=t.data.result.jsConfig,e.$nextTick((function(){document.getElementById("alipaysubmit").submit()}));break}})).catch((function(t){return uni.hideLoading(),e.$util.Tips({title:t})}))},formpost:function(t,i){var e=document.createElement("form");for(var n in e.action=t,e.method="post",e.target="_self",e.style.display="none",i){var a=document.createElement("input");a.name=n,a.value=i[n],e.appendChild(a)}document.body.appendChild(e),this.$nextTick((function(t){e.submit()}))},pay:function(){this.pay_close=!0},submitSub:function(){var t=this,i=this.number;if(t.active){if(parseFloat(i)<0||NaN==parseFloat(i)||void 0==i||""==i)return t.$util.Tips({title:t.$t("请输入金额")});uni.showModal({title:t.$t("转入余额"),content:t.$t("转入余额后无法再次转出,确认是否转入余额"),success:function(e){if(e.confirm)(0,a.recharge)({price:parseFloat(i),type:1}).then((function(i){return t.$util.Tips({title:t.$t("转入成功"),icon:"success"},{tab:5,url:"/pages/users/user_money/index"})})).catch((function(i){return t.$util.Tips({title:i})}));else if(e.cancel)return t.$util.Tips({title:t.$t("已取消")})}})}else""==this.numberPic&&(this.numberPic=this.money),this.pay()}}};i.default=p},fe92:function(t,i,e){"use strict";e.r(i);var n=e("adcb"),a=e("e801");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(o);e("aa71"),e("0231");var s=e("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"2089319a",null,!1,n["a"],void 0);i["default"]=c.exports}}]);