1 line
27 KiB
JavaScript
1 line
27 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-simpleshop-usercenter-usercenter"],{"057d":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(){return a}));var a={uAvatar:n("aa3a").default,uLoadmore:n("7070").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"userblock"},[n("u-avatar",{staticClass:"avatar",attrs:{src:t.userinfo.url,size:"60"}}),n("v-uni-view",{staticClass:"userinfo"},[n("v-uni-view",{staticClass:"phone"},[n("v-uni-text",[t._v(t._s(t.userinfo.phone))])],1),n("v-uni-view",{staticClass:"integral"},[n("v-uni-text",[t._v("剩余积分:"+t._s(t.userinfo.integral))])],1)],1)],1),n("v-uni-view",{staticClass:"buy-list"},[n("v-uni-view",{staticClass:"label"},[n("v-uni-text",[t._v("购买记录")])],1),n("v-uni-view",{staticClass:"listcontainer"},[t._l(t.buy_list,(function(t,e){return n("v-uni-view",{key:t.id},[n("couponitem",{attrs:{data:t}})],1)})),n("u-loadmore",{attrs:{status:t.status}})],2)],1)],1)},A=[]},1060:function(t,e,n){"use strict";n("7a82");var a=n("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("7661")),A={name:"u-link",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],computed:{linkStyle:function(){var t={color:this.color,fontSize:uni.$u.addUnit(this.fontSize),lineHeight:uni.$u.addUnit(uni.$u.getPx(this.fontSize)+2),textDecoration:this.underLine?"underline":"none"};return t}},methods:{openLink:function(){window.open(this.href),this.$emit("click")}}};e.default=A},"1d1d":function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-view[data-v-2b5fb029], uni-scroll-view[data-v-2b5fb029], uni-swiper-item[data-v-2b5fb029]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-link[data-v-2b5fb029]{line-height:1;display:flex;flex-direction:row;flex-wrap:wrap;flex:1}',""]),t.exports=e},"23b3":function(t,e,n){"use strict";n.r(e);var a=n("e2e3"),i=n.n(a);for(var A in a)["default"].indexOf(A)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(A);e["default"]=i.a},"2bb7":function(t,e,n){var a=n("c696");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("b8cbebd4",a,!0,{sourceMap:!1,shadowMode:!1})},"2f7d":function(t,e,n){"use strict";n("7a82");var a=n("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("99af"),n("ac1f"),n("00b4"),n("5319");var i=a(n("e3da")),A=a(n("d1fd")),r={data:function(){return{userinfo:{url:n("bfc6"),phone:"",integral:0},buy_list:[],status:"loadmore",list:15,page:1,pagesize:8,total:0}},components:{couponitem:i.default},methods:{getAccountInfo:function(){var t=this;A.default.getAccountInfo().then((function(e){if(200==e.data.code){var n=e.data.data;t.userinfo.phone=t.maskPhoneNumber(n.phone),t.userinfo.integral=n.integral_Count,0==n.flag&&uni.navigateTo({url:"/pages/simpleshop/notinwl/notinwl"})}else uni.showToast({title:e.data.message,icon:"none"})}))},getorderlist:function(){var t=this;A.default.getorderlist({page:this.page,pageSize:this.pagesize}).then((function(e){if(200==e.data.code){var n=e.data.data.data;t.total=e.data.data.total,t.buy_list=t.buy_list.concat(n)}else uni.showToast({title:e.data.message,icon:"none"})}))},maskPhoneNumber:function(t){return/^1\d{10}$/.test(t)?t.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2"):"Invalid phone number"}},onShow:function(){this.buy_list=[],this.page=1,this.total=0,this.getAccountInfo(),this.getorderlist()},onReachBottom:function(){this.page*this.pagesize>=this.total||(this.status="loading",this.page=++this.page,this.getorderlist(),this.page*this.pagesize>=this.total?this.status="nomore":this.status="loadmore")}};e.default=r},"35af":function(t,e,n){"use strict";n("7a82");var a=n("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("5c67")),A=a(n("7e46")),r={name:"u--text",mixins:[uni.$u.mpMixin,A.default,uni.$u.mixin],components:{uvText:i.default}};e.default=r},"387e":function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,".content[data-v-5ff550a4]{display:flex;flex-direction:column;align-items:center;justify-content:start;height:calc(100vh - %?180?%);background:#fafafa;padding:%?21?%;gap:%?22?%}.userblock[data-v-5ff550a4]{min-height:%?200?%;display:flex;align-items:center;justify-content:flex-start;width:100%;\n\t/* padding-top: 48rpx; */gap:%?22?%;\n\t/* background-image: url('@/static/images/usercenterblock.png'); */background-repeat:no-repeat;background-size:100% auto;background-position:bottom;border-radius:%?28?%;background-color:#fff}.userinfo[data-v-5ff550a4]{display:flex;flex-direction:column;justify-content:flex-start}.avatar[data-v-5ff550a4]{margin-left:%?28?%}.phone[data-v-5ff550a4]{font-family:D-DIN;font-weight:700;font-size:%?48?%;color:#1a1a1a;line-height:%?39?%;text-align:left;font-style:normal;text-transform:none}.integral[data-v-5ff550a4]{font-weight:400;font-size:%?28?%;color:#00a8ea;line-height:%?28?%;text-align:left;font-style:normal;text-transform:none;margin-top:%?20?%;font-weight:700}.label[data-v-5ff550a4]{font-weight:500;font-size:%?32?%;color:#1a1a1a;line-height:%?48?%;text-align:left;font-style:normal;text-transform:none;width:100%;margin-top:%?56?%;margin-left:%?126?%;margin-bottom:%?20?%;font-weight:600}.buy-list[data-v-5ff550a4]{width:100%;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding-bottom:%?64?%;background:#fff;box-shadow:%?0?% 3 %?9?% %?0?% rgba(0,0,0,.06);border-radius:%?28?%}.listcontainer[data-v-5ff550a4]{display:flex;flex-direction:column;justify-content:flex-start;gap:%?24?%;padding-bottom:%?128?%}",""]),t.exports=e},"40ea":function(t,e,n){"use strict";var a=n("8df8"),i=n.n(a);i.a},"453b":function(t,e,n){"use strict";n.r(e);var a=n("35af"),i=n.n(a);for(var A in a)["default"].indexOf(A)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(A);e["default"]=i.a},"5b87":function(t,e,n){"use strict";n.r(e);var a=n("2f7d"),i=n.n(a);for(var A in a)["default"].indexOf(A)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(A);e["default"]=i.a},"5c67":function(t,e,n){"use strict";n.r(e);var a=n("d2bbb"),i=n("c0fc");for(var A in i)["default"].indexOf(A)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(A);n("857d");var r=n("f0c5"),u=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"ed1d90b6",null,!1,a["a"],void 0);e["default"]=u.exports},"6b24":function(t,e,n){var a=n("6fc8");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("6711ada0",a,!0,{sourceMap:!1,shadowMode:!1})},"6fc8":function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-view[data-v-5e033a24], uni-scroll-view[data-v-5e033a24], uni-swiper-item[data-v-5e033a24]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-avatar[data-v-5e033a24]{display:flex;flex-direction:row;align-items:center;justify-content:center}.u-avatar--circle[data-v-5e033a24]{border-radius:100px}.u-avatar--square[data-v-5e033a24]{border-radius:4px}.u-avatar__image--circle[data-v-5e033a24]{border-radius:100px;overflow:hidden}.u-avatar__image--square[data-v-5e033a24]{border-radius:4px}',""]),t.exports=e},7462:function(t,e,n){"use strict";var a=n("6b24"),i=n.n(a);i.a},7595:function(t,e,n){var a=n("387e");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("df47a584",a,!0,{sourceMap:!1,shadowMode:!1})},7661:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3");var a={props:{color:{type:String,default:uni.$u.props.link.color},fontSize:{type:[String,Number],default:uni.$u.props.link.fontSize},underLine:{type:Boolean,default:uni.$u.props.link.underLine},href:{type:String,default:uni.$u.props.link.href},mpTips:{type:String,default:uni.$u.props.link.mpTips},lineColor:{type:String,default:uni.$u.props.link.lineColor},text:{type:String,default:uni.$u.props.link.text}}};e.default=a},"78b3":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-text",{staticClass:"u-link",style:[t.linkStyle,t.$u.addStyle(t.customStyle)],on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.openLink.apply(void 0,arguments)}}},[t._v(t._s(t.text))])},i=[]},"7e46":function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3");var a={props:{type:{type:String,default:uni.$u.props.text.type},show:{type:Boolean,default:uni.$u.props.text.show},text:{type:[String,Number],default:uni.$u.props.text.text},prefixIcon:{type:String,default:uni.$u.props.text.prefixIcon},suffixIcon:{type:String,default:uni.$u.props.text.suffixIcon},mode:{type:String,default:uni.$u.props.text.mode},href:{type:String,default:uni.$u.props.text.href},format:{type:[String,Function],default:uni.$u.props.text.format},call:{type:Boolean,default:uni.$u.props.text.call},openType:{type:String,default:uni.$u.props.text.openType},bold:{type:Boolean,default:uni.$u.props.text.bold},block:{type:Boolean,default:uni.$u.props.text.block},lines:{type:[String,Number],default:uni.$u.props.text.lines},color:{type:String,default:uni.$u.props.text.color},size:{type:[String,Number],default:uni.$u.props.text.size},iconStyle:{type:[Object,String],default:uni.$u.props.text.iconStyle},decoration:{type:String,default:uni.$u.props.text.decoration},margin:{type:[Object,String,Number],default:uni.$u.props.text.margin},lineHeight:{type:[String,Number],default:uni.$u.props.text.lineHeight},align:{type:String,default:uni.$u.props.text.align},wordWrap:{type:String,default:uni.$u.props.text.wordWrap}}};e.default=a},"857d":function(t,e,n){"use strict";var a=n("2bb7"),i=n.n(a);i.a},"8df8":function(t,e,n){var a=n("1d1d");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("2a59cbfc",a,!0,{sourceMap:!1,shadowMode:!1})},9748:function(t,e,n){"use strict";n.r(e);var a=n("057d"),i=n("5b87");for(var A in i)["default"].indexOf(A)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(A);n("f312");var r=n("f0c5"),u=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"5ff550a4",null,!1,a["a"],void 0);e["default"]=u.exports},"9d1b":function(t,e,n){"use strict";n("7a82");var a=n("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("fcba")),A=(a(n("dca5")),a(n("6052")),a(n("7e46"))),r={name:"u--text",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default,A.default],computed:{valueStyle:function(){var t={textDecoration:this.decoration,fontWeight:this.bold?"bold":"normal",wordWrap:this.wordWrap,fontSize:uni.$u.addUnit(this.size)};return!this.type&&(t.color=this.color),this.isNvue&&this.lines&&(t.lines=this.lines),this.lineHeight&&(t.lineHeight=uni.$u.addUnit(this.lineHeight)),!this.isNvue&&this.block&&(t.display="block"),uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))},isNvue:function(){return!1},isMp:function(){return!1}},data:function(){return{}},methods:{clickHandler:function(){this.call&&"phone"===this.mode&&uni.makePhoneCall({phoneNumber:this.text}),this.$emit("click")}}};e.default=r},aa3a:function(t,e,n){"use strict";n.r(e);var a=n("cecf"),i=n("23b3");for(var A in i)["default"].indexOf(A)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(A);n("7462");var r=n("f0c5"),u=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"5e033a24",null,!1,a["a"],void 0);e["default"]=u.exports},c0e0:function(t,e,n){"use strict";n.r(e);var a=n("78b3"),i=n("f8c7");for(var A in i)["default"].indexOf(A)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(A);n("40ea");var r=n("f0c5"),u=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"2b5fb029",null,!1,a["a"],void 0);e["default"]=u.exports},c0fc:function(t,e,n){"use strict";n.r(e);var a=n("9d1b"),i=n.n(a);for(var A in a)["default"].indexOf(A)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(A);e["default"]=i.a},c696:function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-view[data-v-ed1d90b6], uni-scroll-view[data-v-ed1d90b6], uni-swiper-item[data-v-ed1d90b6]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-text[data-v-ed1d90b6]{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;flex:1;width:100%}.u-text__price[data-v-ed1d90b6]{font-size:14px;color:#606266}.u-text__value[data-v-ed1d90b6]{font-size:14px;display:flex;flex-direction:row;color:#606266;flex-wrap:wrap;text-overflow:ellipsis;align-items:center}.u-text__value--primary[data-v-ed1d90b6]{color:#3c9cff}.u-text__value--warning[data-v-ed1d90b6]{color:#f9ae3d}.u-text__value--success[data-v-ed1d90b6]{color:#5ac725}.u-text__value--info[data-v-ed1d90b6]{color:#909399}.u-text__value--error[data-v-ed1d90b6]{color:#f56c6c}.u-text__value--main[data-v-ed1d90b6]{color:#303133}.u-text__value--content[data-v-ed1d90b6]{color:#606266}.u-text__value--tips[data-v-ed1d90b6]{color:#909193}.u-text__value--light[data-v-ed1d90b6]{color:#c0c4cc}',""]),t.exports=e},cecf: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(){return a}));var a={uIcon:n("bcb6").default,"u-Text":n("d393").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-avatar",class:["u-avatar--"+t.shape],style:[{backgroundColor:t.text||t.icon?t.randomBgColor?t.colors[""!==t.colorIndex?t.colorIndex:t.$u.random(0,19)]:t.bgColor:"transparent",width:t.$u.addUnit(t.size),height:t.$u.addUnit(t.size)},t.$u.addStyle(t.customStyle)],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickHandler.apply(void 0,arguments)}}},[t._t("default",[t.mpAvatar&&t.allowMp?void 0:t.icon?n("u-icon",{attrs:{name:t.icon,size:t.fontSize,color:t.color}}):t.text?n("u--text",{attrs:{text:t.text,size:t.fontSize,color:t.color,align:"center",customStyle:"justify-content: center"}}):n("v-uni-image",{staticClass:"u-avatar__image",class:["u-avatar__image--"+t.shape],style:[{width:t.$u.addUnit(t.size),height:t.$u.addUnit(t.size)}],attrs:{src:t.avatarUrl||t.defaultUrl,mode:t.mode},on:{error:function(e){arguments[0]=e=t.$handleEvent(e),t.errorHandler.apply(void 0,arguments)}}})])],2)},A=[]},d2bbb: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(){return a}));var a={uIcon:n("bcb6").default,uLink:n("c0e0").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.show?n("v-uni-view",{staticClass:"u-text",class:[],style:{margin:t.margin,justifyContent:"left"===t.align?"flex-start":"center"===t.align?"center":"flex-end"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickHandler.apply(void 0,arguments)}}},["price"===t.mode?n("v-uni-text",{class:["u-text__price",t.type&&"u-text__value--"+t.type],style:[t.valueStyle]},[t._v("¥")]):t._e(),t.prefixIcon?n("v-uni-view",{staticClass:"u-text__prefix-icon"},[n("u-icon",{attrs:{name:t.prefixIcon,customStyle:t.$u.addStyle(t.iconStyle)}})],1):t._e(),"link"===t.mode?n("u-link",{attrs:{text:t.value,href:t.href,underLine:!0}}):t.openType&&t.isMp?[n("v-uni-button",{staticClass:"u-reset-button u-text__value",style:[t.valueStyle],attrs:{"data-index":t.index,openType:t.openType,lang:t.lang,"session-from":t.sessionFrom,"send-message-title":t.sendMessageTitle,"send-message-path":t.sendMessagePath,"send-message-img":t.sendMessageImg,"show-message-card":t.showMessageCard,"app-parameter":t.appParameter},on:{getuserinfo:function(e){arguments[0]=e=t.$handleEvent(e),t.onGetUserInfo.apply(void 0,arguments)},contact:function(e){arguments[0]=e=t.$handleEvent(e),t.onContact.apply(void 0,arguments)},getphonenumber:function(e){arguments[0]=e=t.$handleEvent(e),t.onGetPhoneNumber.apply(void 0,arguments)},error:function(e){arguments[0]=e=t.$handleEvent(e),t.onError.apply(void 0,arguments)},launchapp:function(e){arguments[0]=e=t.$handleEvent(e),t.onLaunchApp.apply(void 0,arguments)},opensetting:function(e){arguments[0]=e=t.$handleEvent(e),t.onOpenSetting.apply(void 0,arguments)}}},[t._v(t._s(t.value))])]:n("v-uni-text",{staticClass:"u-text__value",class:[t.type&&"u-text__value--"+t.type,t.lines&&"u-line-"+t.lines],style:[t.valueStyle]},[t._v(t._s(t.value))]),t.suffixIcon?n("v-uni-view",{staticClass:"u-text__suffix-icon"},[n("u-icon",{attrs:{name:t.suffixIcon,customStyle:t.$u.addStyle(t.iconStyle)}})],1):t._e()],2):t._e()},A=[]},d393:function(t,e,n){"use strict";n.r(e);var a=n("ecba"),i=n("453b");for(var A in i)["default"].indexOf(A)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(A);var r=n("f0c5"),u=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=u.exports},e2e3:function(t,e,n){"use strict";n("7a82");var a=n("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("c975");var i=a(n("e95e")),A={name:"u-avatar",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{colors:["#ffb34b","#f2bba9","#f7a196","#f18080","#88a867","#bfbf39","#89c152","#94d554","#f19ec2","#afaae4","#e1b0df","#c38cc1","#72dcdc","#9acdcb","#77b1cc","#448aca","#86cefa","#98d1ee","#73d1f1","#80a7dc"],avatarUrl:this.src,allowMp:!1}},watch:{src:{immediate:!0,handler:function(t){this.avatarUrl=t,t||this.errorHandler()}}},computed:{imageStyle:function(){return{}}},created:function(){this.init()},methods:{init:function(){},isImg:function(){return-1!==this.src.indexOf("/")},errorHandler:function(){this.avatarUrl=this.defaultUrl||"data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QMraHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwL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D8sVNc4v30A6Xg5i42Z+iLfqARwcyT0sz9MWvWBps7LlTf5Grce9/oBTxdtxseklHxT+uWr9AGoAB138ezfj4bsFJdD6V2MCPm7RdtJzs1uW1xXzL3gTgAAAAAAAAADRhYc8q74I6RWs5ckB6GxYtWLat21SK731sDsAAAAAAAAAAAAAAAASt021NO/YjrxuQXT1oCOAAAAAAABzGLlJRSq26JAelwsWONYjbXxcZvmwO8AAAAAAAAAAAAAAAAAAef3TEWPkVivx3NY9T6UBiAAAAAABo2+VmGXblddIJ8eivRUD0oAAAAAAAAAAAAAAAAAAAYt4tKeFKVNYNSXfRgefAAAAAAAAr7VuSSWPedKaW5v1MCsAAAAAAAAAAAAAAAAAAIe6bj96Ts2n+JPzSXzP3ATgAAAAAAAAFbbt1UUrOQ9FpC4/UwK6aaqtU+DAAAAAAAAAAAAAAA4lKMIuUmoxWrb4ARNx3R3q2rLpa4Sl0y/YCcAAAAAAAAAAANmFud7G8r89r6X0dgFvGzLGRGtuWvTF6NAdwAAAAAAAAAAAy5W442PVN+K59EePp5ARMvOv5MvO6QXCC4AZwAAAAAAAAAAAAAcxlKLUotprg1owN+PvORborq+7Hnwl3gUbO74VzRydt8pKn68ANcJwmqwkpLmnUDkAAAAfNy9atqtyagut0AxXt5xIV8Fbj6lRd7Am5G65V6qUvtwfyx94GMAAAAAAAAAAAAAAAAAAAOU2nVOj5gdsc3LiqRvTpyqwOxbnnrhdfpSfrQB7pnv/AGvuS9gHXPMy5/Fem1yq0v0A6W29XqwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf//Z"},clickHandler:function(){this.$emit("click",this.name)}}};e.default=A},e95e:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3"),n("ac1f"),n("00b4");var a={props:{src:{type:String,default:uni.$u.props.avatar.src},shape:{type:String,default:uni.$u.props.avatar.shape},size:{type:[String,Number],default:uni.$u.props.avatar.size},mode:{type:String,default:uni.$u.props.avatar.mode},text:{type:String,default:uni.$u.props.avatar.text},bgColor:{type:String,default:uni.$u.props.avatar.bgColor},color:{type:String,default:uni.$u.props.avatar.color},fontSize:{type:[String,Number],default:uni.$u.props.avatar.fontSize},icon:{type:String,default:uni.$u.props.avatar.icon},mpAvatar:{type:Boolean,default:uni.$u.props.avatar.mpAvatar},randomBgColor:{type:Boolean,default:uni.$u.props.avatar.randomBgColor},defaultUrl:{type:String,default:uni.$u.props.avatar.defaultUrl},colorIndex:{type:[String,Number],validator:function(t){return uni.$u.test.range(t,[0,19])||""===t},default:uni.$u.props.avatar.colorIndex},name:{type:String,default:uni.$u.props.avatar.name}}};e.default=a},ecba:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uvText",{attrs:{type:t.type,show:t.show,text:t.text,prefixIcon:t.prefixIcon,suffixIcon:t.suffixIcon,mode:t.mode,href:t.href,format:t.format,call:t.call,openType:t.openType,bold:t.bold,block:t.block,lines:t.lines,color:t.color,decoration:t.decoration,size:t.size,iconStyle:t.iconStyle,margin:t.margin,lineHeight:t.lineHeight,align:t.align,wordWrap:t.wordWrap,customStyle:t.customStyle},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$emit("click")}}})},i=[]},f312:function(t,e,n){"use strict";var a=n("7595"),i=n.n(a);i.a},f8c7:function(t,e,n){"use strict";n.r(e);var a=n("1060"),i=n.n(a);for(var A in a)["default"].indexOf(A)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(A);e["default"]=i.a},fcba:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("ac1f"),n("00b4"),n("99af");var a={computed:{value:function(){var t=this.text,e=this.mode,n=this.format,a=this.href;return"price"===e?(/^\d+(\.\d+)?$/.test(t)||uni.$u.error("金额模式下,text参数需要为金额格式"),uni.$u.test.func(n)?n(t):uni.$u.priceFormat(t,2)):"date"===e?(!uni.$u.test.date(t)&&uni.$u.error("日期模式下,text参数需要为日期或时间戳格式"),uni.$u.test.func(n)?n(t):n?uni.$u.timeFormat(t,n):uni.$u.timeFormat(t,"yyyy-mm-dd")):"phone"===e?uni.$u.test.func(n)?n(t):"encrypt"===n?"".concat(t.substr(0,3),"****").concat(t.substr(7)):t:"name"===e?("string"!==typeof t&&uni.$u.error("姓名模式下,text参数需要为字符串格式"),uni.$u.test.func(n)?n(t):"encrypt"===n?this.formatName(t):t):"link"===e?(!uni.$u.test.url(a)&&uni.$u.error("超链接模式下,href参数需要为URL格式"),t):t}},methods:{formatName:function(t){var e="";if(2===t.length)e=t.substr(0,1)+"*";else if(t.length>2){for(var n="",a=0,i=t.length-2;a<i;a++)n+="*";e=t.substr(0,1)+n+t.substr(-1,1)}else e=t;return e}}};e.default=a}}]); |