(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){t.qrcodeUrl=e.data.url})).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"},[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"},[t._v("采购金额")]),n("v-uni-view",{staticClass:"table-title-cell"},[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"},[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"},[t._v("¥"+t._s(e.buy_amount))]),n("v-uni-view",{staticClass:"table-con-cell green"},[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=[]},"95ca":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.assistHelpList=function(t,e){return o.default.get("store/product/assist/user/"+t,e)},e.assistUserData=function(){return o.default.get("store/product/assist/count",{},{noAuth:!0})},e.chooseConsumption=function(t){return o.default.post("storeActivity/choose",t)},e.consumption=function(t){return o.default.get("storeActivity/consumption",t,{noAuth:!0})},e.getActivitycategory=function(t){return o.default.get("product/spu/active/category/"+t,{},{noAuth:!0})},e.getAssistDetail=function(t){return o.default.get("store/product/assist/detail/"+t)},e.getAssistList=function(t){return o.default.get("store/product/assist/lst",t,{noAuth:!0})},e.getAssistUser=function(t){return o.default.get("store/product/assist/share/"+t)},e.getBargainUserCancel=function(t){return o.default.post("store/product/assist/set/delete/"+t)},e.getBargainUserList=function(t){return o.default.get("store/product/assist/set/lst",t)},e.getCombinationDetail=function(t){return o.default.get("store/product/group/detail/"+t,{},{noAuth:!0})},e.getCombinationList=function(t){return o.default.get("store/product/group/lst",t,{noAuth:!0})},e.getCombinationPink=function(t){return o.default.get("store/product/group/get/"+t)},e.getCombinationPoster=function(t){return o.default.post("combination/poster",t)},e.getCombinationUser=function(t){return o.default.get("store/product/group/count",t,{noAuth:!0})},e.getCouponLst=function(t){return o.default.get("coupon/getlst",t,{noAuth:!0})},e.getMerchantServiceLst=function(t){return o.default.get("store/merchant/local",t,{noAuth:!0})},e.getNewPeopleCouponLst=function(t){return o.default.get("coupon/new_people",t,{noAuth:!0})},e.getPresellList=function(t){return o.default.get("store/product/presell/lst",t,{noAuth:!0})},e.getSeckillDetail=function(t){return o.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})},e.getSeckillIndexTime=function(){return o.default.get("store/product/seckill/select",{},{noAuth:!0})},e.getSeckillList=function(t){return o.default.get("store/product/seckill/lst",t,{noAuth:!0})},e.getTopicDetail=function(t){return o.default.get("activity/info/".concat(t),{},{noAuth:!0})},e.getTopicList=function(t,e){return o.default.get("activity/lst/".concat(t),e,{noAuth:!0})},e.getTopicProLst=function(t){return o.default.get("product/spu/labels",t,{noAuth:!0})},e.hotRankingApi=function(t){return o.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})},e.initiateAssistApi=function(t){return o.default.post("store/product/assist/create/"+t)},e.mer_services_agree=function(){return o.default.get("agreement/mer_services_agree")},e.merchantRecord=function(t){return o.default.get("merchantRecord",t)},e.postAssistHelp=function(t){return o.default.post("store/product/assist/set/"+t)},e.postCombinationRemove=function(t){return o.default.post("store/product/group/cancel",t)},e.presellAgreement=function(){return o.default.get("store/product/presell/agree")},e.qrcode=function(t){return o.default.get("qrcode",t)},e.scombinationCode=function(t){return o.default.get("combination/code/"+t)},e.seckillCode=function(t,e){return o.default.get("seckill/code/"+t,e)},e.spuTop=function(t){return o.default.get("store/product/category/hotranking",{},{noAuth:!0})},e.spuTopList=function(t){return o.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})},e.storeActivityDistrict=function(t){return o.default.get("storeActivity/district",t)},e.storeActivityProduct=function(t){return o.default.get("storeActivity/product",t,{noAuth:!0})},e.storeActivityReceive=function(t){return o.default.post("storeActivity/receive",t)},e.storeActivityRecord=function(t){return o.default.get("storeActivity/record",t)},e.storeActivityStatus=function(t){return o.default.get("storeActivity/status",t)},e.storeActivityTotal=function(t){return o.default.get("storeActivity/total",t)};var o=i(n("6860"))},"98ca":function(t,e,n){"use strict";var i=n("1e9b"),o=n.n(i);o.a},b231:function(t,e,n){"use strict";var i=n("25e9"),o=n.n(i);o.a},baed:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"empty-box",style:{"margin-top":this.mt}},[e("v-uni-image",{attrs:{src:"/static/images/empty-box.png"}}),e("v-uni-view",{staticClass:"txt",style:{color:this.color}},[this._v(this._s(this.title))])],1)},o=[]},f534:function(t,e,n){"use strict";n.r(e);var i=n("7d45"),o=n("1bca");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("b231");var r=n("f0c5"),s=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"3ad02792",null,!1,i["a"],void 0);e["default"]=s.exports},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