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.
1 lines
4.0 KiB
1 lines
4.0 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/tixian"],{"1e89":function(t,n,e){},"58b1":function(t,n,e){"use strict";var i;e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return i}));var o=function(){var t=this,n=t.$createElement;t._self._c},u=[]},8648:function(t,n,e){"use strict";var i=e("1e89"),o=e.n(i);o.a},9062:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(e("a34a"));function o(t){return t&&t.__esModule?t:{default:t}}function u(t,n,e,i,o,u,a){try{var r=t[u](a),s=r.value}catch(c){return void e(c)}r.done?n(s):Promise.resolve(s).then(i,o)}function a(t){return function(){var n=this,e=arguments;return new Promise((function(i,o){var a=t.apply(n,e);function r(t){u(a,i,o,r,s,"next",t)}function s(t){u(a,i,o,r,s,"throw",t)}r(void 0)}))}}var r={data:function(){return{showcan:!1,inputAmount:"",getmoney:20,userinfo:[],couponValidList:[],headerTop:0,typeClass:"valid",subState:"",theIndex:null,oldIndex:null,isStop:!1}},onPageScroll:function(t){},onPullDownRefresh:function(){setTimeout((function(){t.stopPullDownRefresh()}),1e3)},onLoad:function(n){parseInt(n.phone);var e=t.getStorageSync("userinfo");this.getuserinfo(e.uid)},methods:{getuserinfo:function(t){var n=this;return a(i.default.mark((function e(){var o;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.$api.userinfo({action:"userinfo",uid:t});case 2:o=e.sent,n.userinfo=o.data,n.getmoney=o.data.yue;case 5:case"end":return e.stop()}}),e)})))()},tixlist:function(t){var n=this;return a(i.default.mark((function e(){var o;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.$api.tixlist({action:"tixlist",uid:t});case 2:o=e.sent,n.couponValidList=o.data;case 4:case"end":return e.stop()}}),e)})))()},sqtixian:function(n,e){var o=this;return a(i.default.mark((function u(){var a;return i.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,o.$api.sqtixian({action:"sqtixian",uid:n,sqmoney:e});case 2:a=i.sent,1==a.code?t.showModal({title:"成功提示",content:a.msg,confirmText:"确定",showCancel:o.showcan,success:function(n){n.confirm&&t.navigateBack({delta:1})}}):t.showToast({title:a.msg,duration:1500,icon:"none"});case 4:case"end":return i.stop()}}),u)})))()},inputamountchange:function(n){n.target.value>this.getmoney&&(t.showToast({title:"提现金额不可超过余额",duration:1500,icon:"none"}),this.inputAmount=this.getmoney),console.log(n.target.value,"输入")},settmoney:function(){this.inputAmount=this.getmoney},submit:function(){var n=this,e=t.getStorageSync("userinfo");if(this.inputAmount<=0)return t.showToast({title:"提现金额无效",duration:1500,icon:"none"}),"";t.showModal({title:"温馨提示",content:"提现金额为:"+this.inputAmount,confirmText:"确定",success:function(t){t.confirm&&n.sqtixian(e.uid,n.inputAmount)}})},switchType:function(n){var e=this;if(this.typeClass!=n){var i=t.getStorageSync("userinfo");this.tixlist(i.uid),this.getuserinfo(i.uid),t.pageScrollTo({scrollTop:0,duration:0}),this.typeClass=n,this.subState=""==this.typeClass?"":"show"+n,setTimeout((function(){e.oldIndex=null,e.theIndex=null,e.subState="valid"==e.typeClass?"":e.subState}),200)}}}};n.default=r}).call(this,e("543d")["default"])},"9be2":function(t,n,e){"use strict";e.r(n);var i=e("58b1"),o=e("cb3f");for(var u in o)"default"!==u&&function(t){e.d(n,t,(function(){return o[t]}))}(u);e("8648");var a,r=e("f0c5"),s=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);n["default"]=s.exports},cb3f:function(t,n,e){"use strict";e.r(n);var i=e("9062"),o=e.n(i);for(var u in i)"default"!==u&&function(t){e.d(n,t,(function(){return i[t]}))}(u);n["default"]=o.a},d6de:function(t,n,e){"use strict";(function(t){e("8d0c");i(e("66fd"));var n=i(e("9be2"));function i(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])}},[["d6de","common/runtime","common/vendor"]]]);
|