Files
duolamaojiazhen/public/mobile/static/js/pages-user-user.38cb7dfc.js
2025-12-22 13:59:40 +08:00

1 line
14 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-user"],{"023c":function(e,t,n){"use strict";n.r(t);var i=n("27c7"),s=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=s.a},"1de5":function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},"27c7":function(e,t,n){"use strict";n("7a82");var i=n("ee27").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n("f07e")),a=i(n("c964")),r=i(n("f3f3")),o=n("26cb"),c=(n("5063"),n("bc53")),u=n("e2e6"),l=n("14f5"),v=i(n("aa43")),d=(getApp(),{data:function(){return{showNav:!1,navH:0,navBg:0,menuList:[],statusBarH:"",platform:""}},components:{},props:{},onLoad:function(e){(0,l.setTabbar)(),this.getMenuFun(),this.platform=uni.getSystemInfoSync().uniPlatform,console.log(this.platform)},onShow:function(){this.getUser(),this.getCartNum()},onPageScroll:function(e){var t=uni.upx2px(100),n=e.scrollTop,i=n/t>1?1:n/t;this.navBg=i},onUnload:function(){},onPullDownRefresh:function(){this.getUser().then((function(){uni.stopPullDownRefresh()})),this.getMenuFun()},onShareAppMessage:function(){var e=v.default.get("shareInfo");return{title:e.mnp_share_title,path:"pages/index/index?invite_code="+this.inviteCode}},methods:(0,r.default)((0,r.default)({},(0,o.mapActions)(["getCartNum","getUser"])),{},{goLogin:function(){var e=this.isLogin;e?uni.navigateTo({url:"/pages/bundle/user_profile/user_profile"}):(0,u.toLogin)()},goPage:function(e){if(!this.isLogin)return(0,u.toLogin)();uni.navigateTo({url:e})},tapMenu:function(e){if(!this.isLogin)return(0,u.toLogin)();console.log(e),(0,l.menuJump)(e)},getMenuFun:function(){var e=this;return(0,a.default)((0,s.default)().mark((function t(){var n,i,a;return(0,s.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,c.getMenu)({type:2});case 2:n=t.sent,i=n.data,a=n.code,1==a&&(e.menuList=i);case 6:case"end":return t.stop()}}),t)})))()},onCopy:function(e){(0,l.copy)(this.userInfo.sn)}}),computed:(0,r.default)((0,r.default)({},(0,o.mapGetters)(["cartNum","userInfo","inviteCode","appConfig"])),{},{background:function(){var e=this.appConfig.center_setting;return e.top_bg_image?{"background-image":"url(".concat(e.top_bg_image,")")}:{}}})});t.default=d},"4a21":function(e,t,n){"use strict";n.r(t);var i=n("6133"),s=n("023c");for(var a in s)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return s[e]}))}(a);n("c94d");var r=n("f0c5"),o=Object(r["a"])(s["default"],i["b"],i["c"],!1,null,"c379e956",null,!1,i["a"],void 0);t["default"]=o.exports},"4c7b":function(e,t,n){e.exports=n.p+"static/images/my_topbg.png"},5160:function(e,t,n){var i=n("bc7f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var s=n("4f06").default;s("6ee2e7e1",i,!0,{sourceMap:!1,shadowMode:!1})},5594:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAsYAAABQCAMAAAAtFkPwAAAAVFBMVEUAAAAlJzIkJjElJzIkJC4lJzEkJjAjJjAnKTM5OToqKzQyMzcsLTUkJjI0NTguLzY3Nzk1NjkwMTY2NTs/PDw7ODw9Ojw4NztDPzxBPj1GQT1EQD3sM3fkAAAACHRSTlMA7oLNGKdrUAJ9wV8AAAMU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kJggg=="},6133:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var i={uIcon:n("ca16").default},s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"user",style:[e.background]},[n("v-uni-view",{staticClass:"header"},[n("v-uni-view",{staticClass:"user-info row-between mt100"},[n("v-uni-view",{staticClass:"info row"},[n("v-uni-image",{staticClass:"avatar mr20 flexnone",attrs:{src:e.isLogin?e.userInfo.avatar:"/static/images/my_portrait_empty.png"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goLogin.apply(void 0,arguments)}}}),e.isLogin?n("v-uni-view",{staticClass:"white"},[n("v-uni-view",{staticClass:"name xxl line1"},[e._v(e._s(e.userInfo.nickname))]),e.userInfo.sn?n("v-uni-view",{staticClass:"user-id row-between"},[n("v-uni-view",{staticClass:"xs white ml20 mr20"},[e._v("会员ID: "+e._s(e.userInfo.sn||""))]),n("v-uni-view",{staticClass:"xs normal copy-btn row-center ml5",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.onCopy.apply(void 0,arguments)}}},[e._v("复制")])],1):e._e()],1):n("v-uni-view",{staticClass:"white",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goLogin.apply(void 0,arguments)}}},[n("v-uni-view",{staticStyle:{"font-size":"42rpx"}},[e._v("点击登录")]),n("v-uni-view",{staticClass:"sm"},[e._v("登录体验更多功能")])],1)],1),n("v-uni-view",{staticClass:"row",staticStyle:{"align-self":"flex-start"}},[n("v-uni-view",{staticClass:"user-opt",staticStyle:{"margin-right":"30rpx"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goPage("/pages/bundle/message_center/message_center")}}},[e.userInfo.notice_num?n("v-uni-view",{staticClass:"dot row-center"}):e._e(),n("v-uni-image",{staticStyle:{width:"58rpx",height:"58rpx"},attrs:{src:"/static/images/icon_my_news.png"}})],1),n("v-uni-view",{staticClass:"user-opt",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goPage("/pages/bundle/user_profile/user_profile")}}},[n("v-uni-image",{staticStyle:{width:"58rpx",height:"58rpx"},attrs:{src:"/static/images/icon_my_setting.png"}})],1)],1)],1),n("v-uni-view",{staticClass:"member column-end",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goPage("/pages/user_vip/user_vip12")}}},[n("v-uni-view",{staticClass:"member-entery row-between"},[n("v-uni-view",{staticClass:"row"},[n("v-uni-image",{staticClass:"icon-md",attrs:{src:"/static/images/icon_member.png"}}),n("v-uni-view",{staticClass:"ml10"},[e._v(e._s(e.isLogin?e.userInfo.level:"登录查看会员权益"))])],1),n("v-uni-view",{staticClass:"row"},[n("v-uni-view",{staticClass:"sm"},[e._v(e._s(e.userInfo.next_level_tips||"查看会员权益"))]),n("u-icon",{attrs:{name:"arrow-right"}})],1)],1)],1)],1),n("v-uni-view",{staticClass:"my-assets bg-white"},[n("v-uni-view",{staticClass:"title row lg"},[e._v("我的资产")]),n("v-uni-view",{staticClass:"nav row"},[n("v-uni-view",{staticClass:"column-center mb20 assets-item",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goPage("/pages/bundle/user_wallet/user_wallet")}}},[n("v-uni-view",{staticClass:"xl primary"},[e._v(e._s(e.userInfo.user_money))]),n("v-uni-view",{staticClass:"sm"},[e._v("余额")])],1),n("v-uni-view",{staticClass:"column-center mb20 assets-item",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goPage("/pages/bundle/user_sign/user_sign")}}},[n("v-uni-view",{staticClass:"xl primary"},[e._v(e._s(e.userInfo.user_integral))]),n("v-uni-view",{staticClass:"sm"},[e._v("积分")])],1),n("v-uni-view",{staticClass:"column-center mb20 assets-item",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goPage("/pages/user_coupon/user_coupon")}}},[n("v-uni-view",{staticClass:"xl primary"},[e._v(e._s(e.userInfo.coupon))]),n("v-uni-view",{staticClass:"sm"},[e._v("优惠券")])],1)],1)],1),n("v-uni-view",{staticClass:"order-nav bg-white"},[n("v-uni-view",{staticClass:"title row-between",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goPage("/pages/user_order/user_order")}}},[n("v-uni-view",{staticClass:"lg"},[e._v("我的订单")]),n("v-uni-view",{staticClass:"muted sm row"},[e._v("全部订单"),n("v-uni-image",{staticClass:"icon-sm ml10",attrs:{src:"/static/images/arrow_right.png"}})],1)],1),n("v-uni-view",{staticClass:"nav row"},[n("v-uni-view",{staticClass:"item column-center mb20",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goPage("/pages/user_order/user_order?type=pay")}}},[n("v-uni-view",{staticClass:"icon-contain"},[n("v-uni-image",{staticClass:"nav-icon",attrs:{src:"/static/images/icon_my_payment.png"}})],1),n("v-uni-view",{staticClass:"sm mt10"},[e._v("待付款")])],1),n("v-uni-view",{staticClass:"item column-center mb20",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goPage("/pages/user_order/user_order?type=delivery")}}},[n("v-uni-view",{staticClass:"icon-contain"},[n("v-uni-image",{staticClass:"nav-icon mb10",attrs:{src:"/static/images/icon_my_fahuo1.png"}})],1),n("v-uni-view",{staticClass:"sm"},[e._v("待预约")])],1),n("v-uni-view",{staticClass:"item column-center mb20",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goPage("/pages/user_order/user_order?type=delivery")}}},[n("v-uni-view",{staticClass:"icon-contain"},[n("v-uni-image",{staticClass:"nav-icon",attrs:{src:"/static/images/icon_my_shouhuo.png"}})],1),n("v-uni-view",{staticClass:"sm mt10"},[e._v("已完成")])],1),n("v-uni-view",{staticClass:"item column-center mb20",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goPage("/pages/user_order/user_order?type=delivery")}}},[n("v-uni-view",{staticClass:"icon-contain"},[n("v-uni-image",{staticClass:"nav-icon",attrs:{src:"/static/images/icon_my_pingjia2.png"}})],1),n("v-uni-view",{staticClass:"sm mt10"},[e._v("商品评价")])],1),n("v-uni-view",{staticClass:"item column-center mb20",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goPage("/pages/bundle/post_sale/post_sale")}}},[n("v-uni-view",{staticClass:"icon-contain"},[n("v-uni-image",{staticClass:"nav-icon",attrs:{src:"/static/images/icon_my_shouhou1.png"}})],1),n("v-uni-view",{staticClass:"sm mt10"},[e._v("退款/售后")])],1)],1)],1),e.menuList&&e.menuList.length>0?n("v-uni-view",{staticClass:"server-nav bg-white"},[n("v-uni-view",[n("v-uni-view",{staticClass:"title row-between"},[n("v-uni-view",{staticClass:"lg"},[e._v("我的功能")])],1)],1),n("v-uni-view",{staticClass:"nav row wrap",staticStyle:{"background-color":"#fff"}},e._l(e.menuList,(function(t,i){return"员工中心"!=t.name||"web"==e.platform?n("v-uni-button",{key:i,staticClass:"item column-center mb20",staticStyle:{width:"25%"},attrs:{"hover-class":"none","open-type":3==t.link_type?"contact":""},on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.tapMenu(t)}}},[n("v-uni-image",{staticClass:"nav-icon",attrs:{src:t.image}}),n("v-uni-view",{staticClass:"sm mt10"},[e._v(e._s(t.name))])],1):e._e()})),1)],1):e._e()],1)},a=[]},bc7f:function(e,t,n){var i=n("24fb"),s=n("1de5"),a=n("4c7b"),r=n("5594");t=i(!1);var o=s(a),c=s(r);t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */.user[data-v-c379e956]{background-image:url('+o+");background-size:100% %?420?%;background-repeat:no-repeat}.user .header[data-v-c379e956]{display:flex;flex-direction:column;height:%?420?%}.user .header .user-info[data-v-c379e956]{padding:%?10?% %?30?%;padding-top:%?90?%}.user .header .user-info .avatar[data-v-c379e956]{height:%?110?%;width:%?110?%;border-radius:50%;overflow:hidden}.user .header .user-info .name[data-v-c379e956]{text-align:left;margin-bottom:%?5?%;max-width:%?400?%}.user .header .user-info .user-id[data-v-c379e956]{border:1px solid #fff;border-radius:%?100?%}.user .header .user-info .user-id .copy-btn[data-v-c379e956]{background-color:#ffdfda;height:%?40?%;width:%?90?%;border-radius:%?100?%}.user .header .user-info .user-opt[data-v-c379e956]{position:relative}.user .header .user-info .user-opt .dot[data-v-c379e956]{position:absolute;background-color:#ee0a24;border:%?2?% solid #fff;color:#ff2c3c;border-radius:100%;top:%?6?%;right:%?0?%;font-size:%?22?%;min-width:%?16?%;height:%?16?%}.user .header .user-info .buyer-type[data-v-c379e956]{background-color:#ffa200;height:%?38?%;padding:0 %?10?%}.user .header .member[data-v-c379e956]{flex:1;padding:0 %?20?%}.user .header .member .member-entery[data-v-c379e956]{color:#ffe0a1;padding:0 %?16?%;width:100%;height:%?80?%;background:url("+c+");background-size:100%}.user .order-nav .icon-contain[data-v-c379e956]{position:relative}.user .order-nav[data-v-c379e956],\r\n.user .my-assets[data-v-c379e956]{margin:%?20?% %?20?% 0;border-radius:%?8?%}.user .server-nav[data-v-c379e956]{margin:%?20?%;border-radius:%?8?%}.user .title[data-v-c379e956]{height:%?88?%;padding:0 %?30?%;border-bottom:1px dashed #e5e5e5}.user .nav[data-v-c379e956]{padding:%?26?% 0 0}.user .nav .assets-item[data-v-c379e956]{flex:1}.user .nav .item[data-v-c379e956]{width:25%;background-color:#fff}.user .nav .badge[data-v-c379e956]{padding:0 %?6?%;min-width:%?28?%;height:%?28?%;border-radius:%?28?%;box-sizing:border-box;border:%?1?% solid #ff2c3c;color:#ff2c3c;position:absolute;left:%?33?%;top:%?-10?%;z-index:2}.user .nav .nav-icon[data-v-c379e956]{width:%?52?%;height:%?52?%}",""]),e.exports=t},c94d:function(e,t,n){"use strict";var i=n("5160"),s=n.n(i);s.a}}]);