(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-index"],{"1d3c":function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{newData:{type:Object,default:{}},activeRouter:{type:String,default:""}},data:function(){return{}},mounted:function(){},methods:{goRouter:function(t){var e=getCurrentPages(),n=e[e.length-1].$page.fullPath;t.link!=n&&uni.switchTab({url:t.link,fail:function(e){uni.redirectTo({url:t.link})}})}}};e.default=i},"21c0":function(t,e,n){"use strict";n.r(e);var i=n("ae5e"),a=n("747b");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("3d99");var s=n("f0c5"),o=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"4cb5829a",null,!1,i["a"],void 0);e["default"]=o.exports},"3d99":function(t,e,n){"use strict";var i=n("f6bc"),a=n.n(i);a.a},"40b7":function(t,e,n){"use strict";n.r(e);var i=n("63cf"),a=n("46c8");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("7f3d");var s=n("f0c5"),o=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"5d5ac150",null,!1,i["a"],void 0);e["default"]=o.exports},"46c8":function(t,e,n){"use strict";n.r(e);var i=n("1d3c"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},"569a":function(t,e,n){var i,a,r=n("7037").default;n("a9e3"),n("ac1f"),n("5319"),n("00b4"),n("466d"),n("d401"),n("d3b7"),n("25f0"),n("fb6a"),n("f4b3"),n("bf19"),function(s,o){"object"==r(e)&&"undefined"!=typeof t?t.exports=o():(i=o,a="function"===typeof i?i.call(e,n,e,t):i,void 0===a||(t.exports=a))}(0,(function(){"use strict";var t="millisecond",e="second",n="minute",i="hour",a="day",s="week",o="month",u="quarter",c="year",d=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,l=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},v={s:f,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+f(i,2,"0")+":"+f(a,2,"0")},m:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,o),a=e-i<0,r=t.clone().add(n+(a?-1:1),o);return Number(-(n+(e-i)/(a?i-r:r-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(r){return{M:o,y:c,w:s,d:a,D:"date",h:i,m:n,s:e,ms:t,Q:u}[r]||String(r||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},p="en",g={};g[p]=h;var m=function(t){return t instanceof x},w=function(t,e,n){var i;if(!t)return p;if("string"==typeof t)g[t]&&(i=t),e&&(g[t]=e,i=t);else{var a=t.name;g[a]=t,i=a}return!n&&i&&(p=i),i||!n&&p},b=function(t,e){if(m(t))return t.clone();var n="object"==r(e)?e:{};return n.date=t,n.args=arguments,new x(n)},_=v;_.l=w,_.i=m,_.w=function(t,e){return b(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var x=function(){function r(t){this.$L=this.$L||w(t.locale,null,!0),this.parse(t)}var f=r.prototype;return f.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(_.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(d);if(i)return n?new Date(Date.UTC(i[1],i[2]-1,i[3]||1,i[4]||0,i[5]||0,i[6]||0,i[7]||0)):new Date(i[1],i[2]-1,i[3]||1,i[4]||0,i[5]||0,i[6]||0,i[7]||0)}return new Date(e)}(t),this.init()},f.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},f.$utils=function(){return _},f.isValid=function(){return!("Invalid Date"===this.$d.toString())},f.isSame=function(t,e){var n=b(t);return this.startOf(e)<=n&&n<=this.endOf(e)},f.isAfter=function(t,e){return b(t)0?uni.navigateTo({url:"/pages/annex/vip_center/index"}):uni.navigateTo({url:"/pages/annex/vip_paid/index"}):this.openAuto()},goRouter:function(t){var e=getCurrentPages(),n=e[e.length-1].$page.fullPath;t.link!=n&&uni.switchTab({url:t.link,fail:function(e){uni.redirectTo({url:t.link})}})},getNav:function(){var t=this;(0,r.getNavigation)().then((function(e){t.newData=e.data,t.newData.status&&t.newData.status.status?uni.hideTabBar():uni.showTabBar()}))},toService:function(t){uni.navigateTo({url:"/pages/admin/business/index?is_sys="+t})},getVersion:function(){var t=this;(0,r.getVersion)().then((function(e){t.copyright=e.data}))},filterMenus:function(t){"/pages/users/user_money/index"==t.url?t.isShow=1==this.balance_func_status:"/pages/users/user_spread_user/index"==t.url?0==this.extension_status?t.isShow=!1:1==this.extension_status&&(1==this.is_promoter?t.isShow=1==this.is_promoter&&1==this.extension_status:0==this.is_promoter&&(t.isShow=0==this.is_promoter&&1==this.extension_status,t.url="/pages/users/distributor/index")):"/pages/store/settled/index"==t.url?t.isShow=1==this.mer_intention_open:"/pages/users/user_grade/index"==t.url?t.isShow=1==this.member_status:"/pages/users/user_integral/index"==t.url?t.isShow=1==this.integral_status:t.isShow=!0},showMenu:function(t){return!t||-1===["integral","service","admin_order","verify_order","intention","promoter","balance"].indexOf(t)},goUrl:function(t){-1!=t.indexOf("http")?location.href=t:-1==["/pages/goods_cate/goods_cate","/pages/order_addcart/order_addcart","/pages/user/index","/pages/plant_grass/index"].indexOf(t)?uni.navigateTo({url:t}):uni.switchTab({url:t})},goChat:function(){var t=this.userInfo.service?1:0;uni.navigateTo({url:"/pages/chat/customer_list/index?type=".concat(t)})},setVisit:function(){(0,a.setVisit)({url:"/pages/user/index"}).then((function(t){}))},openAuto:function(){(0,f.toLogin)()},Setting:function(){uni.openSetting({success:function(t){}})},bindPhone:function(){uni.navigateTo({url:"/pages/users/user_phone/index"})},getUserInfo:function(){var t=this;(0,a.getUserInfo)().then((function(e){t.userInfo=e.data,t.is_promoter=e.data.is_promoter,t.extension_status=e.data.extension_status,t.getMyMenus()}))},orderNum:function(){var t=this;(0,s.orderData)().then((function(e){var n=e.data;t.orderMenu.forEach((function(t,e){switch(t.title){case"待付款":t.num=n.noPay;break;case"待发货":t.num=n.noPostage;break;case"待收货":t.num=n.noDeliver;break;case"待评价":t.num=n.noComment;break;case"售后/退款":t.num=n.refund;break}}))}))},getMyMenus:function(){var t=this;this.MyMenus.length||(0,a.getMenuList)().then((function(e){t.personalMenu=[],e.data.menu.forEach((function(e,n){t.filterMenus(e),t.personalMenu.push(e)})),t.imgUrls=e.data.banner,uni.stopPullDownRefresh()}))},goEdit:function(){this.isLogin?uni.navigateTo({url:"/pages/users/user_info/index"}):this.openAuto()},goSetting:function(){this.isLogin?uni.navigateTo({url:"/pages/users/user_setting/index"}):this.openAuto()},goSignIn:function(){uni.navigateTo({url:"/pages/users/user_sgin/index"})},goMenuPage:function(t){this.isLogin?uni.navigateTo({url:t}):this.openAuto()}},onPullDownRefresh:function(){this.getNav(),this.isLogin?(this.getUserInfo(),this.orderNum()):(this.userInfo={},this.orderMenu.forEach((function(t){t.num=0})),this.getMyMenus())}});e.default=h},"747b":function(t,e,n){"use strict";n.r(e);var i=n("6927"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},"7f3d":function(t,e,n){"use strict";var i=n("bda2"),a=n.n(i);a.a},ae5e:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{style:t.viewColor},[n("skeleton",{ref:"skeleton",attrs:{show:t.showSkeleton,isNodes:t.isNodes,loading:"chiaroscuro",selector:"skeleton",bgcolor:"transparent"}}),n("v-uni-view",{staticClass:"top"}),n("v-uni-view",{staticClass:"new-users skeleton",style:{visibility:t.showSkeleton?"hidden":"visible"}},[n("v-uni-view",{staticClass:"head"},[n("v-uni-view",{staticClass:"user-card",class:1==t.svip_switch_status?"svip-card":""},[n("v-uni-view",{staticClass:"bg"}),n("v-uni-view",{staticClass:"user-info"},[n("v-uni-view",{staticClass:"avatar-box",class:{on:t.userInfo.is_svip>0&&1==t.svip_switch_status}},[n("v-uni-image",{staticClass:"avatar skeleton-radius",attrs:{src:t.userInfo.avatar?t.userInfo.avatar:"/static/images/f.png"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goEdit.apply(void 0,arguments)}}}),t.userInfo.is_svip>0&&1==t.svip_switch_status?n("v-uni-view",{staticClass:"headwear"},[n("v-uni-image",{attrs:{src:t.domain+"/static/images/headwear.png"}})],1):t._e()],1),n("v-uni-view",{staticClass:"info"},[t.userInfo.uid?t._e():n("v-uni-view",{staticClass:"name",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openAuto.apply(void 0,arguments)}}},[t.isWeixin?n("v-uni-text",[t._v("请点击授权")]):n("v-uni-text",[t._v("请点击登录")])],1),t.userInfo.uid?n("v-uni-view",{staticClass:"name"},[t._v(t._s(t.userInfo.nickname)),t.member_status?n("v-uni-image",{staticClass:"level_icon",attrs:{src:t.userInfo.member_icon,alt:""}}):t._e(),t.userInfo.is_svip>0&&1==t.svip_switch_status?n("v-uni-view",{staticClass:"vip"},[n("v-uni-image",{attrs:{src:t.domain+"/static/images/svip.png"}})],1):t._e()],1):t._e(),t.userInfo.phone?n("v-uni-view",{staticClass:"num",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goEdit()}}},[n("v-uni-view",{staticClass:"num-txt"},[t._v(t._s(t.userInfo.phone))]),n("v-uni-view",{staticClass:"icon"},[n("v-uni-image",{attrs:{src:"/static/images/edit.png",mode:""}})],1)],1):t._e(),!t.userInfo.phone&&t.isLogin?n("v-uni-view",{staticClass:"phone",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPhone.apply(void 0,arguments)}}},[t._v("绑定手机号")]):t._e()],1)],1),n("v-uni-view",{staticClass:"num-wrapper skeleton-rect"},[n("v-uni-view",{staticClass:"num-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goMenuPage("/pages/users/user_goods_collection/index")}}},[n("v-uni-text",{staticClass:"num"},[t._v(t._s(t.userInfo.total_collect_product||0))]),n("v-uni-view",{staticClass:"txt"},[t._v("我的收藏")])],1),1!=t.hide_mer_status?n("v-uni-view",{staticClass:"num-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goMenuPage("/pages/users/user_goods_collection/index?tab=2")}}},[n("v-uni-text",{staticClass:"num"},[t._v(t._s(t.userInfo.total_collect_store||0))]),n("v-uni-view",{staticClass:"txt"},[t._v("关注店铺")])],1):t._e(),n("v-uni-view",{staticClass:"num-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goMenuPage("/pages/users/browsingHistory/index")}}},[n("v-uni-text",{staticClass:"num"},[t._v(t._s(t.userInfo.total_visit_product||0))]),n("v-uni-view",{staticClass:"txt"},[t._v("浏览记录")])],1),n("v-uni-view",{staticClass:"num-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goMenuPage("/pages/users/user_coupon/index")}}},[n("v-uni-text",{staticClass:"num"},[t._v(t._s(t.userInfo.total_coupon||0))]),n("v-uni-view",{staticClass:"txt"},[t._v("优惠券")])],1)],1),1==t.svip_switch_status?n("v-uni-view",{staticClass:"cardVipA acea-row row-between-wrapper",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goSvip.apply(void 0,arguments)}}},[n("v-uni-image",{staticClass:"svip_user",attrs:{src:t.domain+"/static/images/svip_user.png"}}),n("v-uni-view",{staticClass:"left-box"},[t.userInfo.is_svip>0?n("v-uni-view",{staticClass:"small"},[t._v("累计为您节省"+t._s(t.userInfo.svip_save_money)+"元")]):t.userInfo.is_svip<=0?n("v-uni-view",{staticClass:"small"},[t._v("开通享六大特权,省钱又省心")]):t._e()],1),n("v-uni-view",{staticClass:"acea-row row-middle"},[n("v-uni-view",{staticClass:"btn-open"},[t._v(t._s(t.userInfo.is_svip>0&&3!=t.userInfo.is_svip?"立即续费":3==t.userInfo.is_svip?"终身会员":"立即开通"))])],1)],1):t._e(),n("v-uni-view",{staticClass:"right-btn"},[t.isLogin?n("v-uni-view",{staticClass:"iconfont icon-shezhi",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goSetting()}}}):t._e(),n("v-uni-view",{staticClass:"btn",attrs:{"hover-class":"none"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.authTo("/pages/chat/customer_list/index?type=0")}}},[n("v-uni-view",{staticClass:"iconfont icon-xiaoxi"}),t.userInfo.total_unread?n("v-uni-text",{staticClass:"iconnum"},[t._v(t._s(t.userInfo.total_unread))]):t._e()],1)],1)],1)],1),n("v-uni-view",{staticClass:"wrapper"},[n("v-uni-view",{staticClass:"order-wrapper"},[n("v-uni-view",{staticClass:"order-hd flex skeleton-rect"},[n("v-uni-view",{staticClass:"left"},[t._v("我的订单")]),n("v-uni-view",{staticClass:"right flex",attrs:{"hover-class":"none","open-type":"navigate"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.authTo("/pages/users/order_list/index?status=-1")}}},[t._v("全部订单"),n("v-uni-text",{staticClass:"iconfont icon-xiangyou"})],1)],1),n("v-uni-view",{staticClass:"order-bd"},[t._l(t.orderMenu,(function(e,i){return[n("v-uni-view",{key:i+"_0",staticClass:"order-item",attrs:{"hover-class":"none"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.authTo(e.url)}}},[n("v-uni-view",{staticClass:"pic"},[n("v-uni-text",{staticClass:"iconfont",class:e.icon}),e.num>0?n("v-uni-text",{staticClass:"order-status-num"},[t._v(t._s(e.num))]):t._e()],1),n("v-uni-view",{staticClass:"txt skeleton-rect"},[t._v(t._s(e.title))])],1)]}))],2)],1),t.imgUrls.length>0?n("v-uni-view",{staticClass:"slider-wrapper skeleton-rect"},[n("v-uni-swiper",{attrs:{"indicator-dots":"true",autoplay:t.autoplay,circular:t.circular,interval:t.interval,duration:t.duration,"indicator-color":"rgba(255,255,255,0.6)","indicator-active-color":"#fff"}},[t._l(t.imgUrls,(function(e,i){return[n("v-uni-swiper-item",[n("v-uni-view",{staticClass:"slide-navigator acea-row row-between-wrapper",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.goUrl(e.url)}}},[n("v-uni-image",{staticClass:"slide-image",attrs:{src:e.pic}})],1)],1)]}))],2)],1):t._e(),n("v-uni-view",{staticClass:"user-menus",staticStyle:{"margin-top":"20rpx"}},[n("v-uni-view",{staticClass:"title skeleton-rect"},[t._v("我的服务")]),n("v-uni-view",{staticClass:"menu-box"},[t._l(t.personalMenu,(function(e,i){return[e.isShow?n("v-uni-view",{key:i+"_0",staticClass:"item"},[n("v-uni-view",{staticClass:"item-count",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.authTo(e.url)}}},[t.showSkeleton?n("v-uni-image",{staticClass:"skeleton_image skeleton-radius"}):n("v-uni-image",{attrs:{src:e.pic}}),n("v-uni-text",[t._v(t._s(e.name))])],1)],1):t._e()]}))],2)],1),!t.userInfo.topService&&t.userInfo.service?n("v-uni-view",{staticClass:"menus-list-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toService(0)}}},[n("v-uni-view",{staticClass:"item-text"},[n("v-uni-view",{staticClass:"title"},[n("v-uni-text",{staticClass:"merchant"},[t._v("商家")]),t._v("管理")],1),n("v-uni-view",{staticClass:"info"},[t._v("进入商户中心管理店铺")])],1),n("v-uni-view",{staticClass:"image merchant-image",style:{"background-image":"url("+t.domain+"/static/images/merchant-image.png)"}})],1):t._e(),!t.userInfo.service&&t.userInfo.topService?n("v-uni-view",{staticClass:"menus-list-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toService(1)}}},[n("v-uni-view",{staticClass:"item-text"},[n("v-uni-view",{staticClass:"title"},[n("v-uni-text",{staticClass:"plantform"},[t._v("平台")]),t._v("管理")],1),n("v-uni-view",{staticClass:"info"},[t._v("进入平台客服中心")])],1),n("v-uni-view",{staticClass:"image plantform-image",style:{"background-image":"url("+t.domain+"/static/images/plantform-image.png)"}})],1):t._e(),t.userInfo.topService&&t.userInfo.service?n("v-uni-view",{staticClass:"menu-list-count"},[n("v-uni-view",{staticClass:"menu-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toService(0)}}},[n("v-uni-view",{staticClass:"image merchant-image",style:{"background-image":"url("+t.domain+"/static/images/merchant-image.png)"}}),n("v-uni-view",{staticClass:"menu-text"},[n("v-uni-view",{staticClass:"title"},[n("v-uni-text",{staticClass:"merchant"},[t._v("商家")]),t._v("管理")],1),n("v-uni-view",{staticClass:"info"},[t._v("进入商家管理中心")])],1)],1),n("v-uni-view",{staticClass:"menu-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toService(1)}}},[n("v-uni-view",{staticClass:"menu-text"},[n("v-uni-view",{staticClass:"title"},[n("v-uni-text",{staticClass:"plantform"},[t._v("平台")]),t._v("管理")],1),n("v-uni-view",{staticClass:"info"},[t._v("进入平台客服中心")])],1),n("v-uni-view",{staticClass:"image plantform-image",style:{"background-image":"url("+t.domain+"/static/images/plantform-image.png)"}})],1)],1):t._e()],1),-1!==t.copyright.status?n("v-uni-view",{staticClass:"copy-right"},[n("v-uni-image",{staticClass:"img-copyright",attrs:{src:t.copyright.image,mode:"widthFix"}}),n("v-uni-view",{staticClass:"text"},[t._v(t._s(t.copyright.Copyright))])],1):n("v-uni-view",{staticClass:"copy-right"},[n("v-uni-view",{staticClass:"iconfont icon-crmeb"}),n("v-uni-view",{staticClass:"text"},[t._v("©️众邦科技版权所有")])],1),n("v-uni-view",{staticStyle:{height:"50rpx"}})],1),n("customTab",{attrs:{newData:t.newData,activeRouter:t.activeRouter}})],1)},a=[]},bda2:function(t,e,n){var i=n("61fe");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("423a7981",i,!0,{sourceMap:!1,shadowMode:!1})},bf19:function(t,e,n){"use strict";var i=n("23e7"),a=n("c65b");i({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return a(URL.prototype.toString,this)}})},f4b3:function(t,e,n){"use strict";var i=n("23e7"),a=n("d039"),r=n("7b0b"),s=n("c04e"),o=a((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));i({target:"Date",proto:!0,arity:1,forced:o},{toJSON:function(t){var e=r(this),n=s(e,"number");return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},f6bc:function(t,e,n){var i=n("58b0");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("3563d98e",i,!0,{sourceMap:!1,shadowMode:!1})}}]);