1 line
27 KiB
JavaScript
1 line
27 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-user"],{"0322":function(A,t,e){"use strict";e.r(t);var i=e("cde7"),s=e.n(i);for(var n in i)"default"!==n&&function(A){e.d(t,A,(function(){return i[A]}))}(n);t["default"]=s.a},1790:function(A,t,e){var i=e("24fb"),s=e("1de5"),n=e("e45a");t=i(!1);var a=s(n);t.push([A.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/* 行为相关颜色 */.user[data-v-5939ee96]{background-image:url('+a+");background-size:100% auto;background-repeat:no-repeat}.user .header[data-v-5939ee96]{margin:0 %?20?%;padding-top:%?20?%}.user .header .hd-wrap[data-v-5939ee96]{padding-bottom:%?20?%;border-radius:%?20?%}.user .header .user-info[data-v-5939ee96]{padding:%?30?%}.user .header .user-info .avatar[data-v-5939ee96]{height:%?110?%;width:%?110?%;border-radius:50%;overflow:hidden}.user .header .user-info .name[data-v-5939ee96]{text-align:left;margin-bottom:%?5?%}.user .header .user-info .user-id[data-v-5939ee96]{border:1px solid #e5e5e5;border-radius:%?100?%;padding:%?2?% %?15?%}.user .header .user-info .user-opt[data-v-5939ee96]{position:relative}.user .header .user-info .user-opt .dot[data-v-5939ee96]{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 .level[data-v-5939ee96]{background:#333;padding:0 %?15?%;color:#ffdea5;line-height:%?40?%}.user .header .user-info .level .v[data-v-5939ee96]{font-style:italic}.user .header .user-assets[data-v-5939ee96]{flex:1}.user .header .user-assets .user-assests-item[data-v-5939ee96]{flex:1}.user .order-nav .icon-contain[data-v-5939ee96]{position:relative}.user .order-nav[data-v-5939ee96],\n.user .my-assets[data-v-5939ee96]{margin:%?20?% %?20?% 0;border-radius:%?8?%}.user .server-nav[data-v-5939ee96]{margin:%?20?%;border-radius:%?8?%}.user .title[data-v-5939ee96]{height:%?88?%;padding:0 %?30?%;border-bottom:1px dashed #e5e5e5}.user .nav[data-v-5939ee96]{padding:%?26?% 0 0}.user .nav .assets-item[data-v-5939ee96]{flex:1}.user .nav .item[data-v-5939ee96]{width:25%}.user .nav .badge[data-v-5939ee96]{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-5939ee96]{width:%?52?%;height:%?52?%}",""]),A.exports=t},"1cb6":function(A,t,e){"use strict";var i;e.d(t,"b",(function(){return s})),e.d(t,"c",(function(){return n})),e.d(t,"a",(function(){return i}));var s=function(){var A=this,t=A.$createElement,e=A._self._c||t;return e("v-uni-view",{staticClass:"u-waterfall"},[e("v-uni-view",{staticClass:"u-column",attrs:{id:"u-left-column"}},[A._t("left",null,{leftList:A.leftList})],2),e("v-uni-view",{staticClass:"u-column",attrs:{id:"u-right-column"}},[A._t("right",null,{rightList:A.rightList})],2)],1)},n=[]},"1de5":function(A,t,e){"use strict";A.exports=function(A,t){return t||(t={}),A=A&&A.__esModule?A.default:A,"string"!==typeof A?A:(/^['"].*['"]$/.test(A)&&(A=A.slice(1,-1)),t.hash&&(A+=t.hash),/["'() \t\n]/.test(A)||t.needQuotes?'"'.concat(A.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):A)}},2629:function(A,t,e){"use strict";e.d(t,"b",(function(){return s})),e.d(t,"c",(function(){return n})),e.d(t,"a",(function(){return i}));var i={uWaterfall:e("28fc").default,goodsList:e("fae9").default},s=function(){var A=this,t=A.$createElement,e=A._self._c||t;return A.hasData?e("mescroll-body",{ref:"mescrollRef",attrs:{up:A.upOption,down:A.downOption},on:{init:function(t){arguments[0]=t=A.$handleEvent(t),A.mescrollInit.apply(void 0,arguments)},down:function(t){arguments[0]=t=A.$handleEvent(t),A.downCallback.apply(void 0,arguments)},up:function(t){arguments[0]=t=A.$handleEvent(t),A.upCallback.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"goods-column"},[e("v-uni-scroll-view",{attrs:{"scroll-x":"true"}},[e("v-uni-view",{staticClass:"column-wrap"},A._l(A.columnList,(function(t,i){return e("v-uni-view",{key:i,staticClass:"item flex-col m-r-50 muted",on:{click:function(t){arguments[0]=t=A.$handleEvent(t),A.changeActive(i)}}},[e("v-uni-view",{staticClass:"xxl normal title",class:{bold:A.active==i}},[A._v(A._s(t.name))]),e("v-uni-view",{staticClass:"m-t-8 xs text-center",class:{normal:A.active==i}},[A._v(A._s(t.remark))]),A.active==i?e("v-uni-view",{staticClass:"line br60"}):A._e()],1)})),1)],1)],1),e("v-uni-view",{staticClass:"goods"},[e("u-waterfall",{ref:"uWaterfall",attrs:{"add-time":20},scopedSlots:A._u([{key:"left",fn:function(A){var t=A.leftList;return[e("v-uni-view",{staticStyle:{padding:"0 9rpx 0 30rpx"}},[e("goods-list",{attrs:{width:"336rpx",type:"waterfall",list:t}})],1)]}},{key:"right",fn:function(A){var t=A.rightList;return[e("v-uni-view",{staticStyle:{padding:"0 30rpx 0 9rpx"}},[e("goods-list",{attrs:{width:"336rpx",type:"waterfall",list:t}})],1)]}}],null,!1,2662770354),model:{value:A.goodsList,callback:function(t){A.goodsList=t},expression:"goodsList"}})],1)],1):A._e()},n=[]},"28fc":function(A,t,e){"use strict";e.r(t);var i=e("1cb6"),s=e("d229");for(var n in s)"default"!==n&&function(A){e.d(t,A,(function(){return s[A]}))}(n);e("3dc6");var a,r=e("f0c5"),o=Object(r["a"])(s["default"],i["b"],i["c"],!1,null,"7664bcb0",null,!1,i["a"],a);t["default"]=o.exports},"318b":function(A,t,e){var i=e("4c2e");"string"===typeof i&&(i=[[A.i,i,""]]),i.locals&&(A.exports=i.locals);var s=e("4f06").default;s("2486d389",i,!0,{sourceMap:!1,shadowMode:!1})},"36e2":function(A,t,e){var i=e("1790");"string"===typeof i&&(i=[[A.i,i,""]]),i.locals&&(A.exports=i.locals);var s=e("4f06").default;s("67f7f720",i,!0,{sourceMap:!1,shadowMode:!1})},"3dc6":function(A,t,e){"use strict";var i=e("7c7d"),s=e.n(i);s.a},"4c2e":function(A,t,e){var i=e("24fb");t=i(!1),t.push([A.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/* 行为相关颜色 */.goods-column .column-wrap[data-v-7aa69189]{display:inline-block;white-space:nowrap;padding:%?30?%}.goods-column .column-wrap .item[data-v-7aa69189]{display:inline-block;position:relative;overflow:hidden}.goods-column .column-wrap .item .title[data-v-7aa69189]{position:relative;z-index:1}.goods-column .column-wrap .item .line[data-v-7aa69189]{position:absolute;top:%?32?%;left:0;width:%?144?%;height:%?12?%;background:linear-gradient(90deg,#ff2c3c,rgba(255,44,60,0))}',""]),A.exports=t},5756:function(A,t,e){var i=e("24fb");t=i(!1),t.push([A.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/* 行为相关颜色 */.u-waterfall[data-v-7664bcb0]{display:flex;flex-direction:row;flex-direction:row;align-items:flex-start}.u-column[data-v-7664bcb0]{display:flex;flex-direction:row;flex:1;flex-direction:column;height:auto}.u-image[data-v-7664bcb0]{width:100%}',""]),A.exports=t},"5aa3":function(A,t,e){"use strict";e.r(t);var i=e("2629"),s=e("782d");for(var n in s)"default"!==n&&function(A){e.d(t,A,(function(){return s[A]}))}(n);e("6161");var a,r=e("f0c5"),o=Object(r["a"])(s["default"],i["b"],i["c"],!1,null,"7aa69189",null,!1,i["a"],a);t["default"]=o.exports},"5dcf":function(A,t,e){"use strict";var i=e("36e2"),s=e.n(i);s.a},6161:function(A,t,e){"use strict";var i=e("318b"),s=e.n(i);s.a},"629b":function(A,t,e){"use strict";e.d(t,"b",(function(){return s})),e.d(t,"c",(function(){return n})),e.d(t,"a",(function(){return i}));var i={uIcon:e("4569").default,goodsColumn:e("5aa3").default},s=function(){var A=this,t=A.$createElement,e=A._self._c||t;return e("v-uni-view",{staticClass:"user",style:[A.background]},[e("v-uni-view",{staticClass:"header"},[e("v-uni-view",{staticClass:"hd-wrap bg-white"},[e("v-uni-view",{staticClass:"user-info flex row-between"},[e("router-link",{attrs:{to:"/bundle/pages/user_profile/user_profile"}},[e("v-uni-view",{staticClass:"info flex"},[e("v-uni-image",{staticClass:"avatar m-r-20 flex-none",attrs:{src:A.isLogin?A.userInfo.avatar:"/static/images/portrait_empty.png"}}),A.isLogin?e("v-uni-view",[e("v-uni-view",{staticClass:"name flex"},[e("v-uni-view",{staticClass:"xxl bold line-2"},[A._v(A._s(A.userInfo.nickname))]),A.userInfo.vip?e("v-uni-view",{staticClass:"level br60 m-l-10 flex-none flex"},[e("v-uni-text",{staticClass:"m-r-10"},[e("v-uni-text",{staticClass:"v xxl m-r-4"},[A._v("v")]),e("v-uni-text",{staticClass:"xxs"},[A._v(A._s(A.userInfo.vip))])],1),e("v-uni-text",{staticClass:"xxs"},[A._v(A._s(A.userInfo.level_name))])],1):A._e()],1),A.userInfo.sn?e("v-uni-view",{staticClass:"flex m-t-10"},[e("v-uni-view",{staticClass:"user-id xs m-r-20"},[A._v("会员ID: "+A._s(A.userInfo.sn))]),e("v-uni-view",{staticClass:"xs primary row-center m-l-5",on:{click:function(t){t.stopPropagation(),arguments[0]=t=A.$handleEvent(t),A.onCopy.apply(void 0,arguments)}}},[A._v("复制")])],1):A._e()],1):e("v-uni-view",[e("v-uni-view",{staticStyle:{"font-size":"42rpx"}},[A._v("点击登录")]),e("v-uni-view",{staticClass:"sm m-t-10 lighter"},[A._v("登录体验更多功能")])],1)],1)],1),e("v-uni-view",{staticClass:"flex m-l-20"},[e("router-link",{attrs:{to:"/bundle/pages/user_profile/user_profile"}},[e("v-uni-view",{staticClass:"user-opt"},[e("v-uni-image",{staticStyle:{width:"58rpx",height:"58rpx"},attrs:{src:"/static/images/icon_my_setting.png"}})],1)],1)],1)],1),e("v-uni-view",{staticClass:"user-assets flex m-t-20 m-b-20"},[e("router-link",{staticClass:"user-assests-item",attrs:{to:"/bundle/pages/user_wallet/user_wallet"}},[e("v-uni-view",{staticClass:"flex-col col-center"},[e("v-uni-view",{staticClass:"xl primary"},[A._v(A._s(A.userInfo.user_money||0))]),e("v-uni-view",{staticClass:"sm m-t-10"},[A._v("余额")])],1)],1),e("router-link",{staticClass:"user-assests-item",attrs:{to:"/bundle/pages/user_collection/user_collection"}},[e("v-uni-view",{staticClass:"flex-col col-center"},[e("v-uni-view",{staticClass:"xl primary"},[A._v(A._s(A.userInfo.collect||0))]),e("v-uni-view",{staticClass:"sm m-t-10"},[A._v("收藏")])],1)],1),e("router-link",{staticClass:"user-assests-item",attrs:{to:"/bundle/pages/user_coupon/user_coupon"}},[e("v-uni-view",{staticClass:"flex-col col-center"},[e("v-uni-view",{staticClass:"xl primary"},[A._v(A._s(A.userInfo.coupon||0))]),e("v-uni-view",{staticClass:"sm m-t-10"},[A._v("优惠券")])],1)],1)],1)],1)],1),e("v-uni-view",{staticClass:"order-nav bg-white"},[e("router-link",{attrs:{to:"/bundle/pages/user_order/user_order"}},[e("v-uni-view",{staticClass:"title flex row-between"},[e("v-uni-view",{staticClass:"lg"},[A._v("我的订单")]),e("v-uni-view",{staticClass:"muted sm row"},[A._v("全部订单"),e("u-icon",{attrs:{name:"arrow-right",size:"28rpx"}})],1)],1)],1),e("v-uni-view",{staticClass:"nav flex"},[e("router-link",{staticClass:"item",attrs:{to:{path:"/bundle/pages/user_order/user_order",query:{type:"pay"}}}},[e("v-uni-view",{staticClass:"flex-col col-center m-b-20"},[e("v-uni-view",{staticClass:"icon-contain"},[A.userInfo.wait_pay?e("v-uni-view",{staticClass:"badge xs flex row-center bg-white"},[A._v(A._s(A.userInfo.wait_pay))]):A._e(),e("v-uni-image",{staticClass:"nav-icon",attrs:{src:"/static/images/icon_my_payment.png"}})],1),e("v-uni-view",{staticClass:"sm m-t-10"},[A._v("待付款")])],1)],1),e("router-link",{staticClass:"item",attrs:{to:"/bundle/pages/user_order/user_order?type=delivery"}},[e("v-uni-view",{staticClass:"flex-col col-center m-b-20"},[e("v-uni-view",{staticClass:"icon-contain"},[A.userInfo.wait_delivery?e("v-uni-view",{staticClass:"badge xs flex row-center bg-white"},[A._v(A._s(A.userInfo.wait_delivery))]):A._e(),e("v-uni-image",{staticClass:"nav-icon m-b-10",attrs:{src:"/static/images/icon_my_fahuo.png"}})],1),e("v-uni-view",{staticClass:"sm"},[A._v("待发货")])],1)],1),e("router-link",{staticClass:"item",attrs:{to:"/bundle/pages/user_order/user_order?type=delivery"}},[e("v-uni-view",{staticClass:"flex-col col-center m-b-20"},[e("v-uni-view",{staticClass:"icon-contain"},[A.userInfo.wait_take?e("v-uni-view",{staticClass:"badge xs flex row-center bg-white"},[A._v(A._s(A.userInfo.wait_take))]):A._e(),e("v-uni-image",{staticClass:"nav-icon",attrs:{src:"/static/images/icon_my_shouhuo.png"}})],1),e("v-uni-view",{staticClass:"sm m-t-10"},[A._v("待收货")])],1)],1),e("router-link",{staticClass:"item",attrs:{to:"/bundle/pages/user_comment/user_comment"}},[e("v-uni-view",{staticClass:"flex-col col-center m-b-20"},[e("v-uni-view",{staticClass:"icon-contain"},[A.userInfo.wait_comment?e("v-uni-view",{staticClass:"badge xs flex row-center bg-white"},[A._v(A._s(A.userInfo.wait_comment))]):A._e(),e("v-uni-image",{staticClass:"nav-icon",attrs:{src:"/static/images/icon_my_pingjia.png"}})],1),e("v-uni-view",{staticClass:"sm m-t-10"},[A._v("商品评价")])],1)],1),e("router-link",{staticClass:"item",attrs:{to:"/bundle/pages/after_sales/after_sales"}},[e("v-uni-view",{staticClass:"flex-col col-center m-b-20"},[e("v-uni-view",{staticClass:"icon-contain"},[A.userInfo.after_sale?e("v-uni-view",{staticClass:"badge xs flex row-center bg-white"},[A._v(A._s(A.userInfo.after_sale))]):A._e(),e("v-uni-image",{staticClass:"nav-icon",attrs:{src:"/static/images/icon_my_shouhou.png"}})],1),e("v-uni-view",{staticClass:"sm m-t-10"},[A._v("退款/售后")])],1)],1)],1)],1),A.menuList&&A.menuList.length>0?e("v-uni-view",{staticClass:"server-nav bg-white"},[e("v-uni-view",[e("v-uni-view",{staticClass:"title flex row-between"},[e("v-uni-view",{staticClass:"lg"},[A._v("我的功能")])],1)],1),e("v-uni-view",{staticClass:"nav flex flex-wrap"},A._l(A.menuList,(function(t,i){return e("v-uni-view",{key:i,staticClass:"item flex-col col-center m-b-20",staticStyle:{width:"25%"},on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.menuJump(t)}}},[e("v-uni-image",{staticClass:"nav-icon",attrs:{src:t.image}}),e("v-uni-view",{staticClass:"sm m-t-10"},[A._v(A._s(t.name))])],1)})),1)],1):A._e(),e("goods-column",{ref:"mescrollItem"})],1)},n=[]},"6d97":function(A,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={onPageScroll:function(A){this.handlePageScroll(A)},onReachBottom:function(){this.handleReachBottom()},onPullDownRefresh:function(){this.handlePullDownRefresh()},data:function(){var A=this;return{mescroll:{onPageScroll:function(t){A.handlePageScroll(t)},onReachBottom:function(){A.handleReachBottom()},onPullDownRefresh:function(){A.handlePullDownRefresh()}}}},methods:{handlePageScroll:function(A){var t=this.$refs["mescrollItem"];t&&t.mescroll&&t.mescroll.onPageScroll(A)},handleReachBottom:function(){var A=this.$refs["mescrollItem"];A&&A.mescroll&&A.mescroll.onReachBottom()},handlePullDownRefresh:function(){var A=this.$refs["mescrollItem"];A&&A.mescroll&&A.mescroll.onPullDownRefresh()}}},s=i;t.default=s},"782d":function(A,t,e){"use strict";e.r(t);var i=e("fb78"),s=e.n(i);for(var n in i)"default"!==n&&function(A){e.d(t,A,(function(){return i[A]}))}(n);t["default"]=s.a},"7c7d":function(A,t,e){var i=e("5756");"string"===typeof i&&(i=[[A.i,i,""]]),i.locals&&(A.exports=i.locals);var s=e("4f06").default;s("b86d25a2",i,!0,{sourceMap:!1,shadowMode:!1})},"9df2":function(A,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={data:function(){return{mescroll:null}},onPullDownRefresh:function(){this.mescroll&&this.mescroll.onPullDownRefresh()},onPageScroll:function(A){this.mescroll&&this.mescroll.onPageScroll(A)},onReachBottom:function(){this.mescroll&&this.mescroll.onReachBottom()},methods:{mescrollInit:function(A){console.log(A),this.mescroll=A,this.mescrollInitByRef()},mescrollInitByRef:function(){if(!this.mescroll||!this.mescroll.resetUpScroll){var A=this.$refs.mescrollRef;A&&(this.mescroll=A.mescroll)}},downCallback:function(){var A=this;this.mescroll.optUp.use?this.mescroll.resetUpScroll():setTimeout((function(){A.mescroll.endSuccess()}),500)},upCallback:function(){var A=this;setTimeout((function(){A.mescroll.endErr()}),500)}},mounted:function(){this.mescrollInitByRef()}},s=i;t.default=s},bda1:function(A,t,e){"use strict";var i=e("4ea4");e("99af"),e("c740"),e("fb6a"),e("a434"),e("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e("96cf");var s=i(e("1da1")),n={name:"u-waterfall",props:{value:{type:Array,required:!0,default:function(){return[]}},addTime:{type:[Number,String],default:200},idKey:{type:String,default:"id"}},data:function(){return{leftList:[],rightList:[],tempList:[],children:[]}},watch:{copyFlowList:function(A,t){var e=Array.isArray(t)&&t.length>0?t.length:0;this.tempList=this.tempList.concat(this.cloneData(A.slice(e))),this.splitData()}},mounted:function(){this.tempList=this.cloneData(this.copyFlowList),this.splitData()},computed:{copyFlowList:function(){return this.cloneData(this.value)}},methods:{splitData:function(){var A=this;return(0,s.default)(regeneratorRuntime.mark((function t(){var e,i,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(A.tempList.length){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,A.$uGetRect("#u-left-column");case 4:return e=t.sent,t.next=7,A.$uGetRect("#u-right-column");case 7:if(i=t.sent,s=A.tempList[0],s){t.next=11;break}return t.abrupt("return");case 11:e.height<i.height?A.leftList.push(s):e.height>i.height?A.rightList.push(s):A.leftList.length<=A.rightList.length?A.leftList.push(s):A.rightList.push(s),A.tempList.splice(0,1),A.tempList.length&&setTimeout((function(){A.splitData()}),A.addTime);case 14:case"end":return t.stop()}}),t)})))()},cloneData:function(A){return JSON.parse(JSON.stringify(A))},clear:function(){this.leftList=[],this.rightList=[],this.$emit("input",[]),this.tempList=[]},remove:function(A){var t=this,e=-1;e=this.leftList.findIndex((function(e){return e[t.idKey]==A})),-1!=e?this.leftList.splice(e,1):(e=this.rightList.findIndex((function(e){return e[t.idKey]==A})),-1!=e&&this.rightList.splice(e,1)),e=this.value.findIndex((function(e){return e[t.idKey]==A})),-1!=e&&this.$emit("input",this.value.splice(e,1))},modify:function(A,t,e){var i=this,s=-1;if(s=this.leftList.findIndex((function(t){return t[i.idKey]==A})),-1!=s?this.leftList[s][t]=e:(s=this.rightList.findIndex((function(t){return t[i.idKey]==A})),-1!=s&&(this.rightList[s][t]=e)),s=this.value.findIndex((function(t){return t[i.idKey]==A})),-1!=s){var n=this.cloneData(this.value);n[s][t]=e,this.$emit("input",n)}}}};t.default=n},c56b:function(A,t,e){"use strict";e.r(t);var i=e("629b"),s=e("0322");for(var n in s)"default"!==n&&function(A){e.d(t,A,(function(){return s[A]}))}(n);e("5dcf");var a,r=e("f0c5"),o=Object(r["a"])(s["default"],i["b"],i["c"],!1,null,"5939ee96",null,!1,i["a"],a);t["default"]=o.exports},cde7:function(A,t,e){"use strict";var i=e("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e("96cf");var s=i(e("1da1")),n=i(e("5530")),a=i(e("6d97")),r=e("26cb"),o=e("3b3e"),u=e("4638"),l=e("357b"),c=(i(e("e0c6")),getApp(),{mixins:[a.default],data:function(){return{showNav:!1,navBg:0,menuList:[]}},onLoad:function(A){this.getMenuFun()},onShow:function(){this.getUser(),this.getCartNum(),console.log(this.userInfo)},onPageScroll:function(A){var t=uni.upx2px(100),e=A.scrollTop,i=e/t>1?1:e/t;this.navBg=i},onPullDownRefresh:function(){this.getUser().then((function(){uni.stopPullDownRefresh()})),this.getMenuFun()},methods:(0,n.default)((0,n.default)({},(0,r.mapActions)(["getCartNum","getUser"])),{},{goLogin:function(){var A=this.isLogin;A?uni.navigateTo({url:"/bundle/pages/user_profile/user_profile"}):uni.navigateTo({url:"/pages/login/login"})},goPage:function(A){if(!this.isLogin)return(0,u.toLogin)();uni.navigateTo({url:A})},getMenuFun:function(){var A=this;return(0,s.default)(regeneratorRuntime.mark((function t(){var e,i,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,o.getMenu)({type:2});case 2:e=t.sent,i=e.data,s=e.code,1==s&&(A.menuList=i);case 6:case"end":return t.stop()}}),t)})))()},onCopy:function(A){(0,l.copy)(this.userInfo.sn)},menuJump:function(A){(0,l.menuJump)(A)}}),computed:(0,n.default)((0,n.default)({},(0,r.mapGetters)(["userInfo","inviteCode","appConfig"])),{},{background:function(){var A=this.appConfig.center_setting;return A.top_bg_image?{"background-image":"url(".concat(A.top_bg_image,")")}:{}}})});t.default=c},d229:function(A,t,e){"use strict";e.r(t);var i=e("bda1"),s=e.n(i);for(var n in i)"default"!==n&&function(A){e.d(t,A,(function(){return i[A]}))}(n);t["default"]=s.a},e45a:function(A,t){A.exports="data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAsHCAoIBwsKCQoMDAsNEBsSEA8PECEYGRQbJyMpKScjJiUsMT81LC47LyUmNko3O0FDRkdGKjRNUkxEUj9FRkP/2wBDAQwMDBAOECASEiBDLSYtQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0P/wAARCAGQAu4DASIAAhEBAxEB/8QAFwABAQEBAAAAAAAAAAAAAAAAAAECA//EAB4QAQEAAgIDAQEAAAAAAAAAAAABAhESMSFBUXFh/8QAGAEBAQEBAQAAAAAAAAAAAAAAAAECBQb/xAAWEQEBAQAAAAAAAAAAAAAAAAAAARH/2gAMAwEAAhEDEQA/AADlPaAAAAAAAADeOPumOOv1pWbQBUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEyx3+qA5XwOlm2LNVGpdQBFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJ5Anl0xx1+mOOlVm0AVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAs3ABzs1UdbNxzs1U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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACooAAAAAAAAAAAAAAAACAAAigAAAAAAAAAAAAAAAAAIAAAAAAqAKAqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACooAAAAAAAAAAAAAAAIAAigAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACooAAAAAAAAAAAAAAACKAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAqKAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAACoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAAAAAAACKAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/9k="},fb78:function(A,t,e){"use strict";var i=e("4ea4");e("99af"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e("96cf");var s=i(e("1da1")),n=i(e("9df2")),a=e("3b3e"),r={mixins:[n.default],props:{autoGetData:{type:Boolean,default:!0}},data:function(){return{goodsList:[],active:0,columnList:[],upOption:{auto:!1,empty:{icon:"/static/images/goods_null.png",tip:"暂无商品"}},downOption:{use:!1,isLock:!0},hasData:!0}},mounted:function(){this.autoGetData&&this.getData()},methods:{getData:function(){var A=this;return(0,s.default)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,A.getGoodsColumnFun();case 2:A.$refs.uWaterfall&&A.$refs.uWaterfall.clear(),A.mescroll.resetUpScroll();case 4:case"end":return t.stop()}}),t)})))()},changeActive:function(A){this.active=A,this.$refs.uWaterfall.clear(),this.mescroll.resetUpScroll()},upCallback:function(A){var t=this,e=this.columnList,i=this.active,s=A.num,n=A.size;if(e.length){var r=e[i].id;(0,a.getGoodsListColumn)({page_size:n,page_no:s,column_id:r}).then((function(e){var i=e.data,s=i.lists,n=s.length,a=!!i.more;1==A.num&&(t.goodsList=[]),t.goodsList=t.goodsList.concat(s),t.mescroll.endSuccess(n,a)}))}},getGoodsColumnFun:function(){var A=this;return(0,s.default)(regeneratorRuntime.mark((function t(){var e,i,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,a.getGoodsColumn)();case 2:e=t.sent,i=e.data,s=e.code,1==s&&(A.columnList=i,A.hasData=!!i.length);case 6:case"end":return t.stop()}}),t)})))()}}};t.default=r}}]); |