pages-brow-user-brow-user.64505209.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-brow-user-brow-user"],{"409a":function(t,e,a){"use strict";var i=a("4ea4");a("99af"),a("c975"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("96cf");var n=i(a("1da1")),r=i(a("5025")),o=a("bd05"),s={data:function(){return{userData:"",userList:"",params:{cycle:"all",page_index:1,page_size:5},chartData:{},totalPage:0}},components:{areaChart:r.default},onShow:function(){this.getData(),this.getList()},onReachBottom:function(){this.getMoreList()},methods:{dateTab:function(t){this.params.cycle=t,this.params.page_index=1,this.getData(),this.getList()},skipUser:function(t){uni.navigateTo({url:"../complete-info/complete-info?user_id="+t})},skipOrder:function(t){uni.navigateTo({url:"../order-manage/order-manage?user_id=".concat(t.user_id,"&&nickname=").concat(t.user.nickname)})},getData:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){var a,i,n,r,s,d,c,f;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,o.getseeUser)({cycle:t.params.cycle});case 2:a=e.sent;try{if(i=a.code,n=a.data,200===i){for(c in t.userData=n,r=n.line,s=[],d=[],r)d.push(r[c]),"all"!=n.type&&(f=c.indexOf("-"),c=c.substring(f+1,c.length)),s.push(c);t.chartData={categories:s,series:[{name:"数量",data:d}]}}else uni.showModal({content:n||"获取数据失败",showCancel:!1})}catch(l){uni.showModal({content:l||"获取数据失败",showCancel:!1})}case 4:case"end":return e.stop()}}),e)})))()},getList:function(t){var e=this;return(0,n.default)(regeneratorRuntime.mark((function a(){var i,n,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return uni.showLoading({title:"加载中..."}),a.next=3,(0,o.getSeeUserList)(e.params);case 3:i=a.sent;try{n=i.code,r=i.data,200===n?(e.userList=t?e.userList.concat(r.list):r.list,e.totalPage=Math.ceil(r.total/e.params.page_size)):uni.showModal({content:r||"获取数据失败",showCancel:!1}),uni.hideLoading()}catch(s){uni.showModal({content:s||"获取数据失败",showCancel:!1}),uni.hideLoading()}case 5:case"end":return a.stop()}}),a)})))()},getMoreList:function(){if(this.params.page_index>=this.totalPage)return uni.showToast({title:"没有更多啦~",icon:"none"}),!1;this.params.page_index++,this.getList(!0)}}};e.default=s},"572b":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.app-item[data-v-9d67f21a]{display:flex;align-items:center;justify-content:center;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-9d67f21a]{margin-top:%?10?%}.app-item uni-input[data-v-9d67f21a], .app-item uni-picker[data-v-9d67f21a], .app-item uni-textarea[data-v-9d67f21a]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-9d67f21a]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-9d67f21a]{width:25%;height:50%;float:left;display:flex;align-items:center;flex-direction:column}.kingkong uni-navigator uni-image[data-v-9d67f21a]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-9d67f21a]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-9d67f21a]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?630?%;height:%?88?%;font-size:%?34?%;margin:%?88?% auto 0;border-radius:%?44?%;color:#f76454;border:2px solid #f76454}.big-btn.bg[data-v-9d67f21a]{color:#fff;background:#f76454}.small-btn[data-v-9d67f21a]{display:flex;align-items:center;justify-content:center;flex-direction:row;padding:0 %?14?%;font-size:%?26?%;margin-left:%?10?%;color:#f76454;height:%?48?%!important;min-width:%?106?%!important;border:%?2?% solid #f76454}.small-btn.dank[data-v-9d67f21a]{color:#999;border-color:#999}.login-btn[data-v-9d67f21a]{flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-9d67f21a]{display:flex;align-items:center;justify-content:center;flex-direction:row;top:50%;left:50%;width:%?400?%;height:%?88?%;color:#fff;position:fixed;font-size:%?32?%;border-radius:%?10?%;background:#f76454;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ellipsis[data-v-9d67f21a]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-9d67f21a]{margin-right:%?20?%}.border-right[data-v-9d67f21a]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-9d67f21a]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?16?%!important;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-9d67f21a]{margin-right:%?6?%}.position-center[data-v-9d67f21a]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-9d67f21a]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-9d67f21a]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-9d67f21a]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.data-card .data-card-text .text[data-v-9d67f21a]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-9d67f21a]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-9d67f21a]{color:#f76454}.swiper-nav[data-v-9d67f21a]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:100%;height:%?84?%;color:#666;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;border-bottom:%?1?% solid #f2f2f2}.swiper-nav .item[data-v-9d67f21a]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%}.swiper-nav .item.active[data-v-9d67f21a]{color:#f76454}.swiper-nav .moveBar[data-v-9d67f21a]{display:flex;align-items:center;justify-content:center;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-9d67f21a]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-9d67f21a]{flex:1;width:100%}.swiper-area uni-swiper[data-v-9d67f21a]{width:100%;height:100%}.article-header[data-v-9d67f21a]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?120?%;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-9d67f21a]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-9d67f21a]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%;margin-left:%?20?%;justify-content:flex-start}.article-header .name .identity[data-v-9d67f21a]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?56?%;height:%?28?%;color:#fff;font-size:%?20?%;margin-left:%?20?%;border-radius:%?8?%;background:#f76454}.article-header .time[data-v-9d67f21a]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-9d67f21a]{color:#f76454}.article-footer[data-v-9d67f21a]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-9d67f21a]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-9d67f21a]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-9d67f21a]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-9d67f21a]{color:#f76454}\r\n/*主题色及按钮渐变背景*/\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/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.cap_chart[data-v-9d67f21a]{height:300px;margin-top:%?30?%;width:100%;overflow:hidden;z-index:99}.user[data-v-9d67f21a]{padding-bottom:%?100?%;width:100%;min-height:100%;background:#fff}.user .search_box[data-v-9d67f21a]{width:%?690?%;margin:0 auto;height:%?100?%;padding:%?5?% 0}.user .search_box .search_inp[data-v-9d67f21a]{margin:0 auto;border:%?2?% solid #ccc;height:%?80?%;padding:0 %?20?%;box-sizing:border-box;border-radius:%?44?%}.user .search_box .search_inp uni-input[data-v-9d67f21a]{width:80%;height:%?80?%;line-height:%?80?%}.user .search_box .search_inp .iconfont[data-v-9d67f21a]{color:#999;font-size:%?40?%}.user .tabs[data-v-9d67f21a]{padding:%?30?% %?30?% 0;box-sizing:border-box}.user .tabs .active_tab[data-v-9d67f21a]{background:linear-gradient(95deg,#ff232c,#ff571b);color:#fff;border:none}.user .tabs uni-view[data-v-9d67f21a]{width:%?120?%;text-align:center;height:%?60?%;line-height:%?60?%;border-radius:%?32?%;border:%?2?% solid #999;color:#999}.user .user_data[data-v-9d67f21a]{padding:%?15?% 0}.user .user_data .data_title[data-v-9d67f21a]{width:%?690?%;margin:0 auto;display:flex;justify-content:flex-start;align-items:flex-end}.user .user_data .data_title uni-view[data-v-9d67f21a]{font-size:%?28?%;font-weight:700}.user .user_data .data_title uni-text[data-v-9d67f21a]{color:#fb231f;font-size:%?60?%;font-weight:700}.user .user_con[data-v-9d67f21a]{width:%?690?%;margin:0 auto}.user .user_con .user_title[data-v-9d67f21a]{font-size:%?36?%;font-weight:700;height:%?100?%;line-height:%?100?%}.user .user_con .user_list .list_con[data-v-9d67f21a]{width:100%;padding:%?20?% 0;box-sizing:border-box}.user .user_con .user_list .list_con .avatar[data-v-9d67f21a]{width:%?68?%;height:%?68?%;border-radius:50%;margin-right:%?20?%}.user .user_con .user_list .list_con .user_name uni-view[data-v-9d67f21a]{font-size:%?32?%;margin-bottom:%?10?%}.user .user_con .user_list .list_con .user_name uni-text[data-v-9d67f21a]{font-size:%?28?%;color:#999}',""]),t.exports=e},"6bf5":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"user"},[i("v-uni-view",{staticClass:"tabs flexA"},[i("v-uni-view",{class:"yesterday"==t.params.cycle?"active_tab":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.dateTab("yesterday")}}},[t._v("昨日")]),i("v-uni-view",{class:"today"==t.params.cycle?"active_tab":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.dateTab("today")}}},[t._v("今日")]),i("v-uni-view",{class:"week"==t.params.cycle?"active_tab":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.dateTab("week")}}},[t._v("本周")]),i("v-uni-view",{class:"month"==t.params.cycle?"active_tab":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.dateTab("month")}}},[t._v("本月")]),i("v-uni-view",{class:"all"==t.params.cycle?"active_tab":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.dateTab("all")}}},[t._v("全部")])],1),i("v-uni-view",{staticClass:"user_data"},[i("v-uni-view",{staticClass:"data_title"},[i("v-uni-view",[t._v("浏览人数:")]),i("v-uni-text",[t._v(t._s(t.userData.count||0))])],1),i("v-uni-view",{staticClass:"cap_chart"},[i("area-chart",{attrs:{chartData:t.chartData}})],1)],1),i("v-uni-view",{staticClass:"block"}),i("v-uni-view",{staticClass:"user_con"},[i("v-uni-view",{staticClass:"user_title"},[t._v("客户信息")]),i("v-uni-view",{staticClass:"user_list"},t._l(t.userList,(function(e){return i("v-uni-view",{key:e.id,staticClass:"list_con flexS"},[e.user?i("v-uni-image",{staticClass:"avatar",attrs:{src:e.user.avatar}}):t._e(),i("v-uni-view",{staticClass:"user_name"},[e.user?i("v-uni-view",[t._v(t._s(t._f("getName")(e.user.nickname,18)))]):t._e(),i("v-uni-text",[t._v(t._s(e.created_at))])],1)],1)})),1),0==t.userList.length?i("v-uni-view",{staticClass:"noData"},[i("v-uni-image",{attrs:{src:a("460c"),mode:""}}),i("v-uni-view",[t._v("--暂无数据--")])],1):t._e()],1)],1)},r=[]},"93caf":function(t,e,a){"use strict";a.r(e);var i=a("409a"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},ac88:function(t,e,a){"use strict";var i=a("f0c9"),n=a.n(i);n.a},bd61:function(t,e,a){"use strict";a.r(e);var i=a("6bf5"),n=a("93caf");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("ac88");var o,s=a("f0c5"),d=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"9d67f21a",null,!1,i["a"],o);e["default"]=d.exports},f0c9:function(t,e,a){var i=a("572b");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("285d744a",i,!0,{sourceMap:!1,shadowMode:!1})}}]);