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

10 lines
7.2 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/components/userInfor"],{"22cd":function(e,t,n){"use strict";n.r(t);var o=n("3d96"),i=n("62ee");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("bbd5");var r=n("828b"),l=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=l.exports},"3d96":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var o=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__get_style([e.componentStyle])),o=e.__get_style([e.userInfoStyle]),i=e.isLogin&&e.diyInfo.level>0?e.__get_style([e.lableStyle]):null,a=e.isLogin&&e.diyInfo.level>0?e.__get_style([e.progressStyle]):null,r=e.isLogin&&e.diyInfo.level>0?e.__get_style([e.bgRedsStyle]):null,l=e.isLogin&&e.diyInfo.level>0&&e.diyInfo.exp?e.diyInfo.exp.split("."):null,c=e.isLogin&&1==e.dataConfig.styleConfig.tabVal?e.checkType.indexOf(1):null,s=e.isLogin&&1==e.dataConfig.styleConfig.tabVal?e.checkType.indexOf(2):null,f=e.isLogin&&1==e.dataConfig.styleConfig.tabVal?e.checkType.indexOf(0):null,g=e.isLogin&&1==e.dataConfig.styleConfig.tabVal?e.checkType.indexOf(4):null,d=e.isLogin&&1==e.dataConfig.styleConfig.tabVal?e.checkType.indexOf(5):null,u=e.isLogin&&1==e.dataConfig.styleConfig.tabVal?e.checkType.indexOf(3)>-1||!e.isLogin:null,p=e.isLogin?0==e.dataConfig.styleConfig.tabVal&&-1!=e.checkType.indexOf(3):null,h=0==e.dataConfig.styleConfig.tabVal&&e.isLogin?e.checkType.indexOf(1):null,C=0==e.dataConfig.styleConfig.tabVal&&e.isLogin?e.checkType.indexOf(2):null,y=0==e.dataConfig.styleConfig.tabVal&&e.isLogin?e.checkType.indexOf(0):null,b=0==e.dataConfig.styleConfig.tabVal&&e.isLogin?e.checkType.indexOf(4):null,v=0==e.dataConfig.styleConfig.tabVal&&e.isLogin?e.checkType.indexOf(5):null;e.$mp.data=Object.assign({},{$root:{s0:n,s1:o,s2:i,s3:a,s4:r,g0:l,g1:c,g2:s,g3:f,g4:g,g5:d,g6:u,g7:p,g8:h,g9:C,g10:y,g11:b,g12:v}})},i=[]},"62ee":function(e,t,n){"use strict";n.r(t);var o=n("d9e6"),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=i.a},"9a25":function(e,t,n){},bbd5:function(e,t,n){"use strict";var o=n("9a25"),i=n.n(o);i.a},d9e6:function(e,t,n){"use strict";(function(e){var o=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n("7ca3")),a=o(n("cef6")),r=n("a230"),l=n("77d7"),c=n("8f59");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g={computed:f(f({},(0,c.mapGetters)(["isLogin"])),{},{lableStyle:function(){var e={background:this.colorToRgba(this.currentLevelColor,.2),color:this.currentLevelColor};return e},componentStyle:function(){return{padding:"".concat(2*this.dataConfig.topConfig.val,"rpx ").concat(2*this.dataConfig.prConfig.val,"rpx ").concat(2*this.dataConfig.bottomConfig.val,"rpx"),"margin-top":"".concat(2*this.dataConfig.mbConfig.val,"rpx"),background:this.dataConfig.bottomBgColor.color[0].item}},progressStyle:function(){var e={};return this.dataConfig.toneConfig.tabVal&&(e["background"]=this.dataConfig.progressBgColor.color[0].item),e},bgRedsStyle:function(){var e=this.diyInfo,t={width:"".concat(e.exp>e.next_exp?100:100*this.$util.$h.Div(parseInt(e.exp),e.next_exp)>=5?100*this.$util.$h.Div(parseInt(e.exp),e.next_exp):5,"%")};return this.dataConfig.toneConfig.tabVal&&(t["background"]="linear-gradient(90deg, ".concat(this.dataConfig.progressColor.color[0].item," 0%, ").concat(this.dataConfig.progressColor.color[1].item," 100%)")),t},userInfoStyle:function(){var e="".concat(2*this.dataConfig.fillet.val,"rpx");return this.dataConfig.fillet.type&&(e="".concat(2*this.dataConfig.fillet.valList[0].val,"rpx ").concat(2*this.dataConfig.fillet.valList[1].val,"rpx ").concat(2*this.dataConfig.fillet.valList[2].val,"rpx ").concat(2*this.dataConfig.fillet.valList[3].val,"rpx")),{"border-radius":e,background:"linear-gradient(90deg, ".concat(this.dataConfig.moduleColor.color[0].item," 0%, ").concat(this.dataConfig.moduleColor.color[1].item," 100%)")}}}),name:"userInfor",props:{dataConfig:{type:Object,default:function(){}},isSortType:{type:String|Number,default:0}},mixins:[a.default],data:function(){return{config:{bar:{code:"",color:["#000"],bgColor:"#FFFFFF",width:480,height:110},qrc:{code:"",size:380,level:3,bgColor:"#FFFFFF",border:{color:["#eee","#eee"],lineWidth:3},color:["#333","#333"]}},codeList:[{name:"会员码"},{name:"付款码"}],codeIndex:0,isCode:!1,bgColor:"",textColor:"",progressColor:this.dataConfig.progressColor.color,mbCongfig:0,prConfig:0,itemStyle:0,checkType:this.dataConfig.checkboxInfo.type,diyInfo:{},currentLevelColor:""}},created:function(){this.isLogin&&(this.getDiyUserInfo(),this.getlevelInfo())},watch:{isLogin:{handler:function(e,t){e&&this.getDiyUserInfo()},deep:!0}},methods:{hello:function(e){},getCode:function(){var e=this;(0,l.getRandCode)().then((function(t){var n=t.data.code;e.config.bar.code=n,e.config.qrc.code=n})).catch((function(t){return e.$util.Tips(t)}))},tapQrCode:function(){e.navigateTo({url:"/pages/users/user_member_code/index"})},closeCode:function(){this.isCode=!1,this.isextension=!1},tapCode:function(e){if(this.codeIndex=e,1==e)this.getCode();else{var t=this.diyInfo.bar_code;this.config.bar.code=t,this.config.qrc.code=t}},goIntegral:function(){e.navigateTo({url:"/pages/users/user_integral/index"})},goMoney:function(){e.navigateTo({url:"/pages/users/user_money/index"})},goCollection:function(){e.navigateTo({url:"/pages/users/user_goods_collection/index"})},goVisit:function(){e.navigateTo({url:"/pages/users/visit_list/index"})},goCoupon:function(){e.navigateTo({url:"/pages/users/user_coupon/index"})},goLogin:function(){this.isLogin||this.$emit("changeLogin")},getDiyUserInfo:function(){var e=this;(0,r.diyUserInfo)().then((function(t){e.diyInfo=t.data})).catch((function(t){e.$util.Tips({title:t})}))},getlevelInfo:function(){var e=this;(0,l.getlevelInfo)().then((function(t){var n=t.data,o=n.level_info,i=n.level_list,a=i.find((function(e){return e.grade==o.grade}));a&&(e.currentLevelColor=a.color)}))},colorToRgba:function(e,t){var n=e.toLowerCase();if(n&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(n)){if(4===n.length){for(var o="#",i=1;i<4;i+=1)o+=n.slice(i,i+1).concat(n.slice(i,i+1));n=o}for(var a=[],r=1;r<7;r+=2)a.push(parseInt("0x".concat(n.slice(r,r+2)),16));return"rgba(".concat(a.join(","),", ").concat(t,")")}return n}}};t.default=g}).call(this,n("df3c")["default"])}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'pages/index/components/userInfor-create-component',
{
'pages/index/components/userInfor-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("22cd"))
})
},
[['pages/index/components/userInfor-create-component']]
]);