(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-invite_code-index"],{"11d5":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("99af");var o=i(n("1aed")),a=n("95ca"),r=(n("f89e"),{components:{emptyPage:o.default},data:function(){return{qrcodeUrl:"",list:[],page:1,limit:10,loadend:!1,loading:!1,loadTitle:"加载更多",isAuto:!1,isShowAuth:!1,uid:""}},onLoad:function(){this.getQrcode(),this.getList(),this.getUserInfo()},methods:{scrolltolower:function(t){this.getList()},getQrcode:function(){var t=this;(0,a.qrcode)().then((function(e){200==e.status?t.qrcodeUrl=e.data.url:uni.showModal({content:"暂未开通邀请码,需开通邀请码请联系管理员",showCancel:!1,success:function(t){uni.navigateBack()}})})).catch((function(t){uni.showModal({content:"暂未开通邀请码,需开通邀请码请联系管理员",showCancel:!1,success:function(t){uni.navigateBack()}})}))},getList:function(){var t=this;t.loading||t.loadend||(t.loading=!0,(0,a.merchantRecord)({page:t.page,limit:t.limit}).then((function(e){var n=e.data.list,i=n.length0?n("v-uni-view",{staticClass:"table"},[n("v-uni-view",{staticClass:"table-title"},[n("v-uni-view",{staticClass:"table-title-cell",staticStyle:{width:"100rpx"}},[t._v("序号")]),n("v-uni-view",{staticClass:"table-title-cell"},[t._v("用户名称")]),n("v-uni-view",{staticClass:"table-title-cell"},[t._v("用户ID")]),n("v-uni-view",{staticClass:"table-title-cell"},[t._v("状态")]),n("v-uni-view",{staticClass:"table-title-cell",staticStyle:{width:"32%"}},[t._v("采购金额")]),n("v-uni-view",{staticClass:"table-title-cell",staticStyle:{width:"32%"}},[t._v("销售金额")])],1),n("v-uni-scroll-view",{attrs:{"scroll-y":!0,id:"scrollView"},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltolower.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"scrollView-wrap"},[t._l(t.list,(function(e,i){return[n("v-uni-view",{key:i+"_0",staticClass:"table-con"},[n("v-uni-view",{staticClass:"table-con-cell",staticStyle:{width:"100rpx"}},[t._v(t._s(i+1))]),n("v-uni-view",{staticClass:"table-con-cell"},[t._v(t._s(e.real_name||"-"))]),n("v-uni-view",{staticClass:"table-con-cell"},[t._v(t._s(e.uid))]),n("v-uni-view",{staticClass:"table-con-cell"},[t._v(t._s(0==e.status?"未入驻":"已入驻"))]),n("v-uni-view",{staticClass:"table-con-cell red",staticStyle:{width:"32%"}},[t._v("¥"+t._s(e.buy_amount))]),n("v-uni-view",{staticClass:"table-con-cell green",staticStyle:{width:"32%"}},[t._v("¥"+t._s(e.sale_amount))])],1)]})),n("v-uni-view",{staticClass:"loadings",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getList.apply(void 0,arguments)}}},[t.loadend?t._e():n("v-uni-text",{staticClass:"iconfont icon-jiazai"}),t._v(t._s(t.loadTitle))],1)],2)],1)],1):t._e(),0==t.list.length?n("v-uni-view",[n("emptyPage",{attrs:{title:"暂无邀请好友记录哦~",mt:"60rpx"}})],1):t._e()],1)],1)},o=[]},f652:function(t,e,n){var i=n("ba56");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("3757ae18",i,!0,{sourceMap:!1,shadowMode:!1})},f700:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{title:{type:String,default:"暂无记录"},color:{type:String,default:"#999"},mt:{type:String,default:"200rpx"}}};e.default=i},f89e:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.ActionSheet=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#000000";return new Promise((function(n,i){uni.showActionSheet({itemList:t,itemColor:e,success:function(t){n(t.tapIndex)},fail:function(t){i(t.errMsg)}})}))},e.Authorize=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scope.userInfo";return new Promise((function(e,n){uni.authorize({scope:t,success:function(t){e(t)},fail:function(t){n(t)}})}))},e.GetUserInfo=function(){return new Promise((function(t,e){uni.getUserInfo({success:function(e){t(e)},fail:function(t){e(t)}})}))},e.Loading=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"正在加载...",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};uni.showLoading((0,a.default)({title:t,mask:!0},e))},e.Modal=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"提示",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"这是一个模态弹窗!",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{showCancel:!0,cancelText:"取消",confirmText:"确定"};return new Promise((function(i,o){uni.showModal((0,a.default)((0,a.default)({},n),{},{title:t,content:e,success:function(t){t.confirm&&i(),t.cancel&&o()}}))}))},e.ScrollTo=function(t){uni.pageScrollTo({scrollTop:t,duration:300})},e.Toast=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:800,o=(0,a.default)({title:t,duration:i,position:"center",mask:!0,icon:e||"none"},n);uni.showToast(o)},e.chooseImage=function(t){return new Promise((function(e,n){uni.chooseImage({count:t,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(t){e(t)},fail:function(t){n(t)}})}))},e.clearStorage=function(){try{uni.clearStorageSync()}catch(t){throw new Error("处理失败")}},e.convertObj=r,e.formatDate=s,e.getQuarterStartDate=function(){var t=new Date(l,function(){var t=0;u<3&&(t=0);28&&(t=9);return t}(),1);return s(t,"yyyy-MM-dd")},e.getStorage=function(t){var e=uni.getStorageSync(t);try{"number"!=typeof JSON.parse(e)&&(e=JSON.parse(e))}catch(n){}return e},e.hideLoading=function(){try{uni.hideLoading()}catch(t){throw new Error("处理失败")}},e.navigateBack=function(t){uni.navigateBack({delta:t})},e.navigateTo=function(t,e,n){var i=e,o="navigateTo";switch(i=n?i+"?"+r(n):i,t){case 1:o="navigateTo";break;case 2:o="redirectTo";break;case 3:o="reLaunch";break;case 4:o="switchTab";break;default:o="navigateTo";break}uni[o]({url:i,animationType:"slide-in-right",animationDuration:200})},e.pathToBase64=function(t){return new Promise((function(e,n){if("object"===("undefined"===typeof window?"undefined":(0,o.default)(window))&&"document"in window){if("function"===typeof FileReader){var i=new XMLHttpRequest;return i.open("GET",t,!0),i.responseType="blob",i.onload=function(){if(200===this.status){var t=new FileReader;t.onload=function(t){e(t.target.result)},t.onerror=n,t.readAsDataURL(this.response)}},i.onerror=n,void i.send()}var a=document.createElement("canvas"),r=a.getContext("2d"),s=new Image;return s.onload=function(){a.width=s.width,a.height=s.height,r.drawImage(s,0,0),e(a.toDataURL()),a.height=a.width=0},s.onerror=n,void(s.src=t)}"object"!==("undefined"===typeof plus?"undefined":(0,o.default)(plus))?"object"===("undefined"===typeof wx?"undefined":(0,o.default)(wx))&&wx.canIUse("getFileSystemManager")?wx.getFileSystemManager().readFile({filePath:t,encoding:"base64",success:function(t){e("data:image/png;base64,"+t.data)},fail:function(t){n(t)}}):n(new Error("not support")):plus.io.resolveLocalFileSystemURL(getLocalFilePath(t),(function(t){t.file((function(t){var i=new plus.io.FileReader;i.onload=function(t){e(t.target.result)},i.onerror=function(t){n(t)},i.readAsDataURL(t)}),(function(t){n(t)}))}),(function(t){n(t)}))}))},e.removeStorage=function(t){t&&uni.removeStorageSync(t)},e.serialize=function(t){if(null!=t&&""!=t)try{return JSON.parse(JSON.stringify(t))}catch(e){return t instanceof Array?[]:{}}return t},e.setStorage=function(t,e){if("string"==typeof e)return uni.setStorageSync(t,e),e;uni.setStorageSync(t,JSON.stringify(e))},e.showMonthFirstDay=function(){var t=(new Date).setDate(1);return s(new Date(t).getTime(),"yyyy-MM-dd")},e.showWeekFirstDay=function(){var t=new Date,e=t.getDay()||7;return t.setDate(t.getDate()-e+1),s(t,"yyyy-MM-dd")},e.throttle=function(t,e){var n,i;e=e||200;return function(){for(var o=this,a=arguments.length,r=new Array(a),s=0;s