徐总多门店
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
11 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/index"],{"322a":function(t,e,n){"use strict";var i=n("4619"),o=n.n(i);o.a},4619:function(t,e,n){},"72b8":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,e=t.$createElement,n=(t._self._c,t.userInfo&&t.isObjectData(t.diyData)),i=n?t.isObjectData(t.orderAdminData)&&t.orderAdminData.order.user_order:null,o=n?t.diyData.merMenu.list.length:null,a=n?t.diyData.storeMenu.list.length:null;t.$mp.data=Object.assign({},{$root:{m0:n,m1:i,g0:o,g1:a}})},o=[]},"7fe1":function(t,e,n){"use strict";n.r(e);var i=n("f87f"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"8b88":function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("7561");i(n("3240"));var o=i(n("986b"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"986b":function(t,e,n){"use strict";n.r(e);var i=n("72b8"),o=n("7fe1");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("322a");var s=n("828b"),r=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"31f406d9",null,!1,i["a"],void 0);e["default"]=r.exports},f87f:function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("7eb4")),a=i(n("ee10")),s=i(n("7ca3")),r=n("ce7e"),u=n("c267"),c=n("a230"),d=n("77d7"),l=(n("6975"),n("7ba4")),f=n("8f59"),g=n("bad7"),h=(i(n("bc59")),i(n("8b80")),i(n("cef6")));function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}getApp();var m={components:{userMember:function(){Promise.all([n.e("common/vendor"),n.e("pages/user/components/member/index")]).then(function(){return resolve(n("120d"))}.bind(null,n)).catch(n.oe)},userOrder:function(){Promise.all([n.e("common/vendor"),n.e("pages/user/components/order/index")]).then(function(){return resolve(n("6d29"))}.bind(null,n)).catch(n.oe)},userOrderStatic:function(){n.e("pages/user/components/order_static/index").then(function(){return resolve(n("007d"))}.bind(null,n)).catch(n.oe)},userMenu:function(){n.e("pages/user/components/menus/index").then(function(){return resolve(n("7bd8"))}.bind(null,n)).catch(n.oe)},userMerMenu:function(){n.e("pages/user/components/merMenus/index").then(function(){return resolve(n("a721"))}.bind(null,n)).catch(n.oe)},userStoreMenu:function(){n.e("pages/user/components/storeMenus/index").then(function(){return resolve(n("13c0"))}.bind(null,n)).catch(n.oe)},userPoster:function(){n.e("pages/user/components/poster/index").then(function(){return resolve(n("7195"))}.bind(null,n)).catch(n.oe)},pageFooter:function(){Promise.all([n.e("common/vendor"),n.e("components/pageFooter/index")]).then(function(){return resolve(n("9dbb"))}.bind(null,n)).catch(n.oe)},ewcomerPop:function(){Promise.all([n.e("common/vendor"),n.e("components/ewcomerPop/index")]).then(function(){return resolve(n("2062"))}.bind(null,n)).catch(n.oe)},editUserModal:function(){Promise.all([n.e("common/vendor"),n.e("components/eidtUserModal/index")]).then(function(){return resolve(n("83bc"))}.bind(null,n)).catch(n.oe)}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){(0,s.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,f.mapGetters)({cartNum:"cartNum",isLogin:"isLogin"})),filters:{},mixins:[h.default],provide:function(){return{tapQrCode:this.tapQrCode,bindPhone:this.bindPhone,intoPage:this.intoPage,goMenuPage:this.goMenuPage,getMenuData:this.getMenuData,goEdit:this.goEdit}},data:function(){return{diyData:{},orderAdminData:{},getHeight:this.$util.getWXStatusHeight(),vipStatus:0,stu:!1,orderMenu:[{icon:"",title:"待付款",url:"/pages/goods/order_list/index?status=0"},{icon:"",title:"待发货",url:"/pages/goods/order_list/index?status=1"},{icon:"",title:"待收货",url:"/pages/goods/order_list/index?status=2"},{icon:"",title:"待评价",url:"/pages/goods/order_list/index?status=3"},{icon:"",title:"售后/退款",url:"/pages/users/user_return_list/index"}],imgUrls:[],orderStatusNum:{},userInfo:"",showStatus:1,pageHeight:"100%",routineContact:0,footerSee:!1,member_style:1,my_banner_status:1,menu_status:1,service_status:1,newcomer_status:1,isextension:!1,extension:{code:"",size:380,level:3,bgColor:"#FFFFFF",color:["#333","#333"]},imgHost:g.HTTP_REQUEST_URL,copyRightText:"",copyRightImg:"",giftPic:"",vip_type:1,newcomer_style:1,newList:[],newBg:"",comerGift:{},isComerGift:!1,memberStatus:0,balanceStatus:0,editModal:!1,isScrolling:!1,orderStyle:{1:["icon-ic_daifukuan12","icon-ic_daifahuo11","icon-ic_daishouhuo1","icon-ic_daipingjia1","icon-ic_daituikuan1"],2:["icon-ic_daifukuan2","icon-ic_daifahuo2","icon-ic_daishouhuo2","icon-ic_daipingji2","icon-ic_daituikuan2"],3:["icon-ic_daifukuan","icon-ic_daifahuo","icon-ic_daishouhuo","icon-ic_daipingjia","icon-ic_daituikuan"]},codeImg:""}},created:function(){this.$store.getters.isLogin},onLoad:function(t){var e=this;return(0,a.default)(o.default.mark((function t(){return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.isLogin,e.colorData();case 2:case"end":return t.stop()}}),t)})))()},onReady:function(){},onShow:function(){if(!this.isLogin)return this.userInfo="",void(0,l.toLogin)();this.cartNum>0?t.setTabBarBadge({index:3,text:this.cartNum>99?"99+":this.cartNum+""}):t.hideTabBarRedDot({index:3}),this.copyRightText=t.getStorageSync("copyNameInfo"),this.copyRightImg=t.getStorageSync("copyImageInfo"),t.removeStorageSync("form_type_cart"),this.copyRightText||this.getCopyRight();this.isLogin&&(this.getUserInfo(),this.getMyMenus(),this.setVisit(),this.getMenuData())},onPageScroll:function(t){t.scrollTop>50?this.isScrolling=!0:t.scrollTop<50&&(this.isScrolling=!1)},methods:{hello:function(t){this.codeImg=t.img.tempFilePath},downloadCode:function(){var e=this;t.downloadFile({url:e.extension.code,success:function(n){200===n.statusCode&&t.saveImageToPhotosAlbum({filePath:n.tempFilePath,success:function(t){e.$util.Tips({title:"保存成功",icon:"success"})},fail:function(t){e.$util.Tips({title:"保存失败"})}})}})},closeCode:function(){this.isextension=!1},isObjectData:function(t){return 0!==Object.keys(t).length},editSuccess:function(){this.editModal=!1,this.getUserInfo()},closeEdit:function(){this.editModal=!1},getCopyRight:function(){var e=this;(0,c.copyRight)().then((function(n){var i=n.data;i.copyrightContext||i.copyrightImage||(i.copyrightImage="/static/images/support.png"),t.setStorageSync("copyNameInfo",i.copyrightContext),t.setStorageSync("copyImageInfo",i.copyrightImage),e.copyRightText=i.copyrightContext,e.copyRightImg=i.copyrightImage})).catch((function(t){return e.$util.Tips({title:t.msg})}))},intoPage:function(t){this.isLogin?["/pages/users/user_vip/index","/pages/annex/vip_grade_active/index"].includes(t)&&!this.userInfo.member_func_status?this.$util.Tips({title:"会员卡功能暂未开启"}):this.$util.JumpPath(t):(0,l.toLogin)()},goEdit:function(){if(0!=this.isLogin&&this.userInfo.uid){if(this.userInfo.is_default_avatar)return void(this.editModal=!0);t.navigateTo({url:"/pages/users/user_set/index"})}else(0,l.toLogin)()},goDetail:function(e){t.navigateTo({url:"/pages/goods_details/index?id=".concat(e.id,"&fromPage='newVip'")})},comerPop:function(){this.isComerGift=!1},getNewcomerGift:function(){var e=this;if(t.getStorageSync("newcomerGift"))return this.isComerGift=!1;(0,u.newcomerGift)().then((function(n){e.comerGift=n.data,"[object Object]"==Object.prototype.toString.call(e.comerGift)&&(n.data.coupon_count||n.data.product_count||n.data.register_give_money||n.data.first_order_discount||n.data.register_give_integral)&&(t.setStorageSync("newcomerGift",!0),e.isComerGift=!0)})).catch((function(t){return e.$util.Tips({title:t})}))},tapQrCode:function(){t.navigateTo({url:"/pages/users/user_member_code/index"})},getRoutineUserInfo:function(t){var e=this;(0,d.updateUserInfo)({userInfo:t.detail.userInfo}).then((function(t){return e.getUserInfo(),e.$util.Tips("更新用户信息成功")})).catch((function(t){return e.$util.Tips(t)}))},setVisit:function(){(0,d.setVisit)({url:"/pages/user/index"}).then((function(t){}))},openAuto:function(){(0,l.toLogin)()},onLoadFun:function(t){this.getUserInfo(t),this.getMyMenus(),this.setVisit()},bindPhone:function(){t.navigateTo({url:"/pages/users/user_phone/index"})},getMenuData:function(){var t=this;(0,d.getMenuData)().then((function(e){t.orderAdminData=e.data}))},getUserInfo:function(){var t=this,e=this;(0,d.getUserInfo)().then((function(n){e.userInfo=n.data,e.stu=n.data.svip_open,e.balanceStatus=n.data.balance_func_status,e.memberStatus=parseInt(n.data.member_func_status),e.vipStatus=n.data.vip_status,e.$store.commit("SETUID",n.data.uid),e.$store.commit("UPDATE_USERINFO",n.data),e.orderMenu.forEach((function(e,i){switch(e.title){case"待付款":t.$set(e,"num",n.data.orderStatusNum.unpaid_count);break;case"待发货":t.$set(e,"num",n.data.orderStatusNum.unshipped_count);break;case"待收货":t.$set(e,"num",n.data.orderStatusNum.received_count);break;case"待评价":t.$set(e,"num",n.data.orderStatusNum.evaluated_count);break;case"售后/退款":t.$set(e,"num",n.data.orderStatusNum.refunding_count);break}}))}))},getMyMenus:function(){var t=this;(0,d.getMenuList)().then((function(e){t.diyData=e.data.diy_data,t.switchTab(t.diyData.order.style),t.my_banner_status=e.data.diy_data.my_banner_status,t.menu_status=e.data.diy_data.menu_status,t.service_status=e.data.diy_data.service_status,t.vip_type=e.data.diy_data.vip_type,t.newcomer_style=e.data.diy_data.newcomer_style,t.newcomer_status=e.data.diy_data.newcomer_status,t.imgUrls=e.data.routine_my_banner,t.routineContact=Number(e.data.routine_contact_type)}))},switchTab:function(t){var e=this;this.orderMenu.forEach((function(n,i){n.icon=e.orderStyle[t][i]}))},goMenuPage:function(e,n){var i=this;if(this.isLogin){var o=e.split("@APPID=");o.length>1?t.navigateToMiniProgram({appId:o[o.length-1],path:o[0],envVersion:"release",success:function(t){},fail:function(t){}}):"/pages/extension/customer_list/chat"==e||"https://chat.crmeb.net/chat/mobile"==e?this.$util.getCustomer(this.userInfo):-1===e.indexOf("http")?("#"!=e&&"/pages/users/user_set/index"==e&&t.openSetting({success:function(t){}}),"/pages/store_spread/index"==e&&(0,r.storeCardApi)().then((function(t){i.isextension=!0,i.$nextTick((function(){this.extension.code=t.data.url}))})).catch((function(e){t.hideLoading(),i.$util.Tips({title:e})})),-1==["/pages/goods_cate/goods_cate","/pages/order_addcart/order_addcart","/pages/user/index","/pages/store_cate/store_cate","/pages/index/index"].indexOf(e)?t.navigateTo({url:e}):t.reLaunch({url:e})):t.navigateTo({url:"/pages/annex/web_view/index?url=".concat(e)})}}}};e.default=m}).call(this,n("df3c")["default"])}},[["8b88","common/runtime","common/vendor"]]]);