cyywl_shop_app/dist/static/js/pages-users-user_payment-in...

1 line
14 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_payment-index"],{"1cb9":function(t,i,e){"use strict";e.r(i);var a=e("adf3"),n=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(o);i["default"]=n.a},2799:function(t,i,e){var a=e("24fb");i=a(!1),i.push([t.i,".pictrueBox[data-v-47a70398]{width:%?130?%;height:%?120?%}\n\n/*返回主页按钮*/.home[data-v-47a70398]{position:fixed;color:#fff;text-align:center;z-index:9999;right:%?15?%;display:flex}.home .homeCon[data-v-47a70398]{border-radius:%?50?%;opacity:0;height:0;color:$theme-color;width:0}.home .homeCon.on[data-v-47a70398]{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:#f44939!important}.home .homeCon .iconfont[data-v-47a70398]{font-size:%?48?%;color:#fff;display:inline-block;margin:0 auto}.home .pictrue[data-v-47a70398]{width:%?86?%;height:%?86?%;border-radius:50%;margin:0 auto}.home .pictrue .image[data-v-47a70398]{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},"555d":function(t,i,e){"use strict";e.r(i);var a=e("9348"),n=e("1cb9");for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(o);e("8706");var c=e("f0c5"),r=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"2a61fbca",null,!1,a["a"],void 0);i["default"]=r.exports},"7b73":function(t,i,e){"use strict";e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return n})),e.d(i,"a",(function(){}));var a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return 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-red",class:!0===t.homeActive?"on":""},[e("v-uni-navigator",{staticClass:"iconfont icon-shouye-xianxing",attrs:{"hover-class":"none",url:"/pages/index/index","open-type":"switchTab"}}),e("v-uni-navigator",{staticClass:"iconfont icon-caigou-xianxing",attrs:{"hover-class":"none",url:"/pages/order_addcart/order_addcart","open-type":"switchTab"}}),e("v-uni-navigator",{staticClass:"iconfont icon-yonghu1",attrs:{"hover-class":"none",url:"/pages/user/index","open-type":"switchTab"}})],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?"/static/images/close.gif":"/static/images/open.gif"}})],1)],1)],1)],1)},n=[]},8706:function(t,i,e){"use strict";var a=e("e6d2"),n=e.n(a);n.a},9348:function(t,i,e){"use strict";e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return n})),e.d(i,"a",(function(){}));var a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",[e("v-uni-form",{attrs:{"report-submit":"true"},on:{submit:function(i){arguments[0]=i=t.$handleEvent(i),t.submitSub.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"payment-top acea-row row-column row-center-wrapper"},[e("span",{staticClass:"name"},[t._v("我的余额")]),e("v-uni-view",{staticClass:"pic"},[t._v("¥"),e("span",{staticClass:"pic-font"},[t._v(t._s(t.userInfo.nowMoney||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,a){return e("v-uni-view",{key:a,staticClass:"item",class:t.active==a?"on":"",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.navRecharges(a)}}},[t._v(t._s(i))])})),1),t.active?e("v-uni-view",{staticClass:"tip"},[e("v-uni-view",{staticClass:"input"},[e("v-uni-text",[t._v("¥")]),e("v-uni-input",{attrs:{placeholder:"0.00",type:"number","placeholder-class":"placeholder",value:t.number,name:"number"}})],1),e("v-uni-view",{staticClass:"tips-title"},[e("v-uni-view",{staticStyle:{"font-weight":"bold","font-size":"26rpx"}},[t._v("提示:")]),e("v-uni-view",{staticStyle:{"margin-top":"10rpx"}},[t._v("当前佣金为"),e("v-uni-text",{staticClass:"font-color"},[t._v("¥"+t._s(t.userInfo.brokeragePrice||0))])],1)],1),e("v-uni-view",{staticClass:"tips-box"},[e("v-uni-view",{staticClass:"tips mt-30"},[t._v("注意事项:")]),t._l(t.rechargeAttention,(function(i){return e("v-uni-view",{key:i,staticClass:"tips-samll"},[t._v(t._s(i))])}))],2)],1):e("v-uni-view",{staticClass:"tip picList"},[t._l(t.picList,(function(i,a){return e("v-uni-view",{key:a,staticClass:"pic-box pic-box-color acea-row row-center-wrapper row-column",class:t.activePic===a?"pic-box-color-active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.picCharge(a,i)}}},[e("v-uni-view",{staticClass:"pic-number-pic"},[t._v(t._s(i.price)),e("span",{staticClass:"pic-number"},[t._v("元")])]),e("v-uni-view",{staticClass:"pic-number"},[t._v("赠送:"+t._s(i.giveMoney)+" 元")])],1)})),e("v-uni-view",{staticClass:"pic-box pic-box-color acea-row row-center-wrapper",class:parseFloat(t.activePic)===parseFloat(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 uni-input",class:parseFloat(t.activePic)===parseFloat(t.picList.length)?"pic-box-color-active":"",attrs:{type:"number",placeholder:"其他",maxlength:5e4},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._l(t.rechargeAttention,(function(i){return e("v-uni-view",{key:i,staticClass:"tips-samll"},[t._v(t._s(i))])}))],2)],2),e("v-uni-button",{staticClass:"but",attrs:{formType:"submit"}},[t._v(t._s(t.active?"立即转入":"立即充值"))])],1)],1),e("home")],1)},n=[]},9801:function(t,i,e){"use strict";e("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=e("26cb"),n={name:"Home",props:{},data:function(){return{top:"500"}},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(){}};i.default=n},a3aa:function(t,i,e){"use strict";var a=e("f6b6"),n=e.n(a);n.a},a912:function(t,i,e){var a=e("24fb");i=a(!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-2a61fbca]{width:100%;height:100%;background-color:#fff}body.?%PAGE?%[data-v-2a61fbca]{background-color:#fff}.payment[data-v-2a61fbca]{position:relative;top:%?-60?%;width:100%;background-color:#fff;border-radius:%?10?%;padding-top:%?25?%;border-top-right-radius:%?14?%;border-top-left-radius:%?14?%}.payment .nav[data-v-2a61fbca]{height:%?75?%;line-height:%?75?%;padding:0 %?100?%}.payment .nav .item[data-v-2a61fbca]{font-size:%?30?%;color:#333}.payment .nav .item.on[data-v-2a61fbca]{font-weight:700;border-bottom:%?4?% solid #e83323}.payment .input[data-v-2a61fbca]{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-2a61fbca]{padding-left:%?106?%}.payment .input uni-input[data-v-2a61fbca]{padding-right:%?106?%;width:%?300?%;height:%?94?%;text-align:center;font-size:%?70?%}.payment .placeholder[data-v-2a61fbca]{color:#d0d0d0;height:100%;line-height:%?94?%}.payment .tip[data-v-2a61fbca]{font-size:%?26?%;color:#888;padding:0 %?30?%;margin-top:%?25?%}.payment .but[data-v-2a61fbca]{color:#fff;font-size:%?30?%;width:%?700?%;height:%?86?%;border-radius:%?43?%;margin:%?50?% auto 0 auto;background:linear-gradient(90deg,#ff7931,#f11b09);line-height:%?86?%}.payment-top[data-v-2a61fbca]{width:100%;height:%?350?%;background-color:#e83323}.payment-top .name[data-v-2a61fbca]{font-size:%?26?%;color:hsla(0,0%,100%,.8);margin-top:%?-38?%;margin-bottom:%?30?%}.payment-top .pic[data-v-2a61fbca]{font-size:%?32?%;color:#fff}.payment-top .pic-font[data-v-2a61fbca]{font-size:%?78?%;color:#fff}.picList[data-v-2a61fbca]{display:flex;flex-wrap:wrap;margin:%?30?% 0}.picList .pic-box[data-v-2a61fbca]{width:32%;height:auto;border-radius:%?20?%;margin-top:%?21?%;padding:%?20?% 0;margin-right:%?12?%}.picList .pic-box[data-v-2a61fbca]:nth-child(3n){margin-right:0}.picList .pic-box-color[data-v-2a61fbca]{background-color:#f4f4f4;color:#656565}.picList .pic-number[data-v-2a61fbca]{font-size:%?22?%}.picList .pic-number-pic[data-v-2a61fbca]{font-size:%?38?%;margin-right:%?10?%;text-align:center}.pic-box-color-active[data-v-2a61fbca]{background-color:#ec3323!important;color:#fff!important}.tips-box .tips[data-v-2a61fbca]{font-size:%?28?%;color:#333;font-weight:800;margin-bottom:%?14?%;margin-top:%?20?%}.tips-box .tips-samll[data-v-2a61fbca]{font-size:%?24?%;color:#333;margin-bottom:%?14?%}.tips-box .tip-box[data-v-2a61fbca]{margin-top:%?30?%}.tips-title[data-v-2a61fbca]{margin-top:%?20?%;font-size:%?24?%;color:#333}',""]),t.exports=i},adf3:function(t,i,e){"use strict";e("7a82");var a=e("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("acd8"),e("a9e3"),e("ac1f"),e("5319"),e("d3b7");var n=e("2110"),o=e("b68d"),c=e("1939"),r=e("26cb"),s=a(e("b7f1")),u={components:{home:s.default},data:function(){return{now_money:0,navRecharge:["账户充值","佣金转入"],active:0,number:"",placeholder:"0.00",from:"",isAuto:!1,isShowAuth:!1,picList:[],activePic:0,money:"",numberPic:"",rechar_id:0,rechargeAttention:[]}},computed:(0,r.mapGetters)(["isLogin","systemPlatform","userInfo"]),watch:{isLogin:{handler:function(t,i){t&&this.getRecharge()},deep:!0}},onLoad:function(t){this.from=this.$wechat.isWeixin()?"public":"weixinh5",this.isLogin?this.getRecharge():(0,c.toLogin)()},methods:{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,n.getRechargeApi)().then((function(i){t.picList=i.data.rechargeQuota,t.picList[0]&&(t.rechar_id=t.picList[0].id,t.numberPic=t.picList[0].price),t.rechargeAttention=i.data.rechargeAttention||[]})).catch((function(i){t.$dialog.toast({mes:i})}))},onLoadFun:function(){this.getRecharge()},authColse:function(t){this.isShowAuth=t},navRecharges:function(t){this.active=t},submitSub:function(t){var i=this,e=t.detail.value.number;if(i.active){if(parseFloat(e)<0||NaN==parseFloat(e)||void 0==e||""==e)return i.$util.Tips({title:"请输入金额"});uni.showModal({title:"转入余额",content:"转入余额后无法再次转出,确认是否转入余额",success:function(t){if(t.confirm)(0,n.transferIn)({price:parseFloat(e)}).then((function(t){return i.$store.commit("changInfo",{amount1:"brokeragePrice",amount2:i.$util.$h.Sub(i.userInfo.brokeragePrice,parseFloat(e))}),i.$util.Tips({title:"转入成功",icon:"success"},{tab:5,url:"/pages/users/user_money/index"})})).catch((function(t){return i.$util.Tips({title:t})}));else if(t.cancel)return i.$util.Tips({title:"已取消"})}})}else{uni.showLoading({title:"正在支付"});var a=parseFloat(this.money);if(0==this.rechar_id){if(Number.isNaN(a))return i.$util.Tips({title:"充值金额必须为数字"});if(a<=0)return i.$util.Tips({title:"充值金额不能为0"});if(a>5e4)return i.$util.Tips({title:"充值金额最大值为50000"})}else a=this.numberPic;(0,n.rechargeWechat)({price:a,from:i.from,rechar_id:i.rechar_id,payType:0}).then((function(t){var a=t.data.jsConfig,n=t.data.orderNo,c={timestamp:a.timeStamp,nonceStr:a.nonceStr,package:a.packages,signType:a.signType,paySign:a.paySign};if("weixinh5"==i.from){var r=encodeURIComponent(location.href.split("/pages")[0]),s=a.mwebUrl+"&redirect_url="+r+"/pages/users/user_money/index";return location.replace(s),i.$util.Tips({tab:5,url:"/pages/users/user_money/index"})}i.$wechat.pay(c).finally((function(){i.$store.commit("changInfo",{amount1:"nowMoney",amount2:i.$util.$h.Add(e,i.userinfo.nowMoney)}),(0,o.wechatQueryPayResult)(n).then((function(t){return i.$util.Tips({title:"支付成功",icon:"success"},{tab:5,url:"/pages/users/user_money/index"})})).cache((function(t){return i.$util.Tips({title:t})}))})).catch((function(t){return i.$util.Tips({title:"支付失败"})}))})).catch((function(t){return uni.hideLoading(),i.$util.Tips({title:t})}))}}}};i.default=u},b7f1:function(t,i,e){"use strict";e.r(i);var a=e("7b73"),n=e("f72c");for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(o);e("a3aa");var c=e("f0c5"),r=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"47a70398",null,!1,a["a"],void 0);i["default"]=r.exports},e6d2:function(t,i,e){var a=e("a912");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=e("4f06").default;n("d504a4c8",a,!0,{sourceMap:!1,shadowMode:!1})},f6b6:function(t,i,e){var a=e("2799");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=e("4f06").default;n("2ff3027d",a,!0,{sourceMap:!1,shadowMode:!1})},f72c:function(t,i,e){"use strict";e.r(i);var a=e("9801"),n=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(o);i["default"]=n.a}}]);