pages-student-index_new.e9ff96e9.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-student-index_new"],{"0ad9":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return n}));var n={uIcon:i("cf82").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-search",style:{margin:t.margin},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickHandler.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"u-content",style:{backgroundColor:t.bgColor,borderRadius:"round"==t.shape?"100rpx":"10rpx",border:t.borderStyle,height:t.height+"rpx"}},[i("v-uni-view",{staticClass:"u-icon-wrap"},[i("u-icon",{staticClass:"u-clear-icon",attrs:{size:30,name:t.searchIcon,color:t.searchIconColor?t.searchIconColor:t.color}})],1),i("v-uni-input",{staticClass:"u-input",style:[{textAlign:t.inputAlign,color:t.color,backgroundColor:t.bgColor},t.inputStyle],attrs:{"confirm-type":"search",value:t.value,disabled:t.disabled,focus:t.focus,maxlength:t.maxlength,"placeholder-class":"u-placeholder-class",placeholder:t.placeholder,"placeholder-style":"color: "+t.placeholderColor,type:"text"},on:{blur:function(e){arguments[0]=e=t.$handleEvent(e),t.blur.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.search.apply(void 0,arguments)},input:function(e){arguments[0]=e=t.$handleEvent(e),t.inputChange.apply(void 0,arguments)},focus:function(e){arguments[0]=e=t.$handleEvent(e),t.getFocus.apply(void 0,arguments)}}}),t.keyword&&t.clearabled&&t.focused?i("v-uni-view",{staticClass:"u-close-wrap",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clear.apply(void 0,arguments)}}},[i("u-icon",{staticClass:"u-clear-icon",attrs:{name:"close-circle-fill",size:"34",color:"#c0c4cc"}})],1):t._e()],1),i("v-uni-view",{staticClass:"u-action",class:[t.showActionBtn||t.show?"u-action-active":""],style:[t.actionStyle],on:{click:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.custom.apply(void 0,arguments)}}},[t._v(t._s(t.actionText))])],1)},s=[]},"0e32":function(t,e,i){"use strict";i.r(e);var n=i("46a3"),a=i.n(n);for(var s in n)"default"!==s&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},1096:function(t,e,i){"use strict";var n=i("f81b"),a=i.n(n);a.a},"30b1":function(t,e,i){"use strict";var n=i("c354"),a=i.n(n);a.a},"46a3":function(t,e,i){"use strict";i("99af"),i("c975"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{term:"请选择",showTerm:!0,list:[],page:1,last:!1,termList:[{id:"",name:""}],termId:"",termName:"",searchName:"",index:0}},onShow:function(){this.is_weixin()&&this.navTitle(),this.page=1,this.list=[],this.last=!1;var t=new Date;t.getMonth();this.getList(),this.getTerm()},onReachBottom:function(){this.last||this.page++,console.log(this.page),this.getList()},methods:{is_weixin:function(){var t=navigator.userAgent.toLowerCase();return-1!=t.indexOf("micromessenger")},navTitle:function(){var t=document.getElementsByTagName("uni-page-head");t[0].style.display="none"},getTerm:function(){var t=this;this.$u.get("/mentor/term-select-options").then((function(e){t.termList=e.data,console.log(t.termList,"学期数据")}))},openTerm:function(){this.showTerm=!0,console.log(this.termList,"搜索触发111")},bindPickerChange:function(t){console.log(t,"********"),this.index=t.target.value,this.termId=this.termList[this.index].id,console.log(this.termId,"000000")},shaixuanBtn:function(){this.list=[],this.page=1,this.last=!1,this.getList()},searchBtn:function(t){this.searchName=t,console.log(t,"搜索触发000")},changeName:function(t){this.searchName=t,console.log(t,"搜索内容变化时")},getList:function(){var t=this,e={page:this.page,term_id:this.termId,student_name:this.searchName};this.$u.get("/mentor/subscribe-student",e).then((function(e){var i=e.data.list;t.page>1&&0==i.length?(uni.showToast({title:"暂无更多",icon:"none"}),t.last=!0):t.list=t.list.concat(i)}))},student_detail:function(t){uni.navigateTo({url:"./details?id="+t})}}};e.default=n},a3e5:function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"u-search",props:{shape:{type:String,default:"round"},bgColor:{type:String,default:"#f2f2f2"},placeholder:{type:String,default:"请输入关键字"},clearabled:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},showAction:{type:Boolean,default:!0},actionStyle:{type:Object,default:function(){return{}}},actionText:{type:String,default:"搜索"},inputAlign:{type:String,default:"left"},disabled:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},borderColor:{type:String,default:"none"},value:{type:String,default:""},height:{type:[Number,String],default:64},inputStyle:{type:Object,default:function(){return{}}},maxlength:{type:[Number,String],default:"-1"},searchIconColor:{type:String,default:""},color:{type:String,default:"#606266"},placeholderColor:{type:String,default:"#909399"},margin:{type:String,default:"0"},searchIcon:{type:String,default:"search"}},data:function(){return{keyword:"",showClear:!1,show:!1,focused:this.focus}},watch:{keyword:function(t){this.$emit("input",t),this.$emit("change",t)},value:{immediate:!0,handler:function(t){this.keyword=t}}},computed:{showActionBtn:function(){return!(this.animation||!this.showAction)},borderStyle:function(){return this.borderColor?"1px solid ".concat(this.borderColor):"none"}},methods:{inputChange:function(t){this.keyword=t.detail.value},clear:function(){var t=this;this.keyword="",this.$nextTick((function(){t.$emit("clear")}))},search:function(t){this.$emit("search",t.detail.value);try{uni.hideKeyboard()}catch(t){}},custom:function(){this.$emit("custom",this.keyword);try{uni.hideKeyboard()}catch(t){}},getFocus:function(){this.focused=!0,this.animation&&this.showAction&&(this.show=!0),this.$emit("focus",this.keyword)},blur:function(){var t=this;setTimeout((function(){t.focused=!1}),100),this.show=!1,this.$emit("blur",this.keyword)},clickHandler:function(){this.disabled&&this.$emit("click")}}};e.default=n},a6e3:function(t,e,i){"use strict";i.r(e);var n=i("a3e5"),a=i.n(n);for(var s in n)"default"!==s&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},b9c1:function(t,e,i){t.exports=i.p+"static/img/empty.f330efae.png"},c354:function(t,e,i){var n=i("d8fd");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("5c2a1b48",n,!0,{sourceMap:!1,shadowMode:!1})},ca62:function(t,e,i){"use strict";i.r(e);var n=i("0ad9"),a=i("a6e3");for(var s in a)"default"!==s&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("30b1");var o,l=i("f0c5"),c=Object(l["a"])(a["default"],n["b"],n["c"],!1,null,"13f672b9",null,!1,n["a"],o);e["default"]=c.exports},d379:function(t,e,i){"use strict";i.r(e);var n=i("f84d"),a=i("0e32");for(var s in a)"default"!==s&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("1096");var o,l=i("f0c5"),c=Object(l["a"])(a["default"],n["b"],n["c"],!1,null,"0f8e393d",null,!1,n["a"],o);e["default"]=c.exports},d8fd:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量\r\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\r\n * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用 \r\n */.u-search[data-v-13f672b9]{display:flex;flex-direction:row;align-items:center;flex:1}.u-content[data-v-13f672b9]{display:flex;flex-direction:row;align-items:center;padding:0 %?18?%;flex:1}.u-clear-icon[data-v-13f672b9]{display:flex;flex-direction:row;align-items:center}.u-input[data-v-13f672b9]{flex:1;font-size:%?28?%;line-height:1;margin:0 %?10?%;color:#909399}.u-close-wrap[data-v-13f672b9]{width:%?40?%;height:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;border-radius:50%}.u-placeholder-class[data-v-13f672b9]{color:#909399}.u-action[data-v-13f672b9]{font-size:%?28?%;color:#303133;width:0;overflow:hidden;transition:all .3s;white-space:nowrap;text-align:center}.u-action-active[data-v-13f672b9]{width:%?80?%;margin-left:%?10?%}',""]),t.exports=e},ef47:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量\r\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\r\n * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用 \r\n */uni-page-body[data-v-0f8e393d]{background-color:#f7f7f7;border-top:.5px solid rgba(0,0,0,.1)}.list .enptyStatus[data-v-0f8e393d]{display:flex;margin-top:100px;justify-content:center;align-items:center;flex-direction:column;padding:30px 10px}.list .enptyStatus uni-image[data-v-0f8e393d]{width:80px;height:120px}.list .enptyStatus .words[data-v-0f8e393d]{color:#ffae21;font-size:14px;padding-top:10px}.list .list_head[data-v-0f8e393d]{padding:0 10px 0 10px;display:flex;align-items:center;height:44px;background-color:#fff}.list .list_head .list_select[data-v-0f8e393d]{margin:0 10px 0 0;background:#f7f7f7;width:140px;display:flex;justify-content:space-around;align-items:center;height:28px}.list .list_head .list_select uni-image[data-v-0f8e393d]{margin-right:5px;width:13px;height:18px;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.list .list_head .list_search[data-v-0f8e393d]{color:red;height:28px}.list .list_head .list_btn[data-v-0f8e393d]{width:30px;margin-left:9px;color:#138e57;font-size:15px;cursor:pointer}.list .list_content[data-v-0f8e393d]{margin:0 15px;margin-top:15px;width:345px;height:174px;background-color:#fff;border-radius:5px;box-shadow:0 -.5px 0 #ddd}.list .list_content .top[data-v-0f8e393d]{display:flex;height:111px;width:100%}.list .list_content .top .headimg[data-v-0f8e393d]{margin:13px 10px 5px 14px;height:91px;width:83px}.list .list_content .top .headimg uni-image[data-v-0f8e393d]{height:85px;width:80px}.list .list_content .top .message[data-v-0f8e393d]{margin-top:13px;margin-left:5px}.list .list_content .top .message .name[data-v-0f8e393d]{color:#0c0c0c;font-style:normal;font-weight:500;font-size:15px;line-height:18px}.list .list_content .top .message .same[data-v-0f8e393d]{display:flex;margin-top:10px;align-items:center;height:14px}.list .list_content .top .message .same .circle[data-v-0f8e393d]{flex-shrink:0;margin-right:8px;width:5px;height:5px;border-radius:50%;background:#f1a321}.list .list_content .top .message .same .ding[data-v-0f8e393d]{flex-shrink:0;width:52px;font-size:13px;color:#666;opacity:.8}.list .list_content .top .message .same .words[data-v-0f8e393d]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;word-break:break-all;color:#222;font-style:normal;opacity:.8;font-size:13px;line-height:14px}.list .list_content .bottom[data-v-0f8e393d]{border-top:.5px solid #ddd;display:flex;height:63px;line-height:20px;margin:6px 15px;padding:10px 0}.list .list_content .bottom .left[data-v-0f8e393d]{width:40px;color:#666;font-size:13px;opacity:.8}.list .list_content .bottom .right[data-v-0f8e393d]{width:260px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;word-break:break-all}body.?%PAGE?%[data-v-0f8e393d]{background-color:#f7f7f7}',""]),t.exports=e},f81b:function(t,e,i){var n=i("ef47");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("08f3180a",n,!0,{sourceMap:!1,shadowMode:!1})},f84d:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return n}));var n={uSearch:i("ca62").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"list"},[n("v-uni-view",{staticClass:"list_head"},[n("v-uni-view",{staticClass:"list_select",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openTerm.apply(void 0,arguments)}}},[n("v-uni-picker",{attrs:{value:t.index,"range-key":"name",range:t.termList},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPickerChange.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"uni-input",staticStyle:{"font-size":"12px"}},[t._v(t._s(t.termList[t.index].name))])],1),n("v-uni-view",{staticClass:"neirong"}),n("v-uni-image",{attrs:{src:i("f9fb"),mode:""}})],1),n("u-search",{staticClass:"list_search",attrs:{shape:"square",placeholder:"请输入学生姓名","placeholder-color":"#b9b9b9",searchIconColor:"#b9b9b9",showAction:!1,bgColor:"#F7F7F7"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeName.apply(void 0,arguments)},search:function(e){arguments[0]=e=t.$handleEvent(e),t.searchBtn.apply(void 0,arguments)}}}),n("v-uni-view",{staticClass:"list_btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.shaixuanBtn.apply(void 0,arguments)}}},[t._v("筛选")])],1),t.list.length>0?n("v-uni-view",t._l(t.list,(function(e,i){return n("v-uni-view",{key:i,staticClass:"list_content",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.student_detail(e.id)}}},[n("v-uni-view",{staticClass:"top"},[n("v-uni-view",{staticClass:"headimg"},[n("v-uni-image",{attrs:{src:e.headimg,mode:"aspectFill"}})],1),n("v-uni-view",{staticClass:"message"},[n("v-uni-view",{staticClass:"name"},[t._v(t._s(e.truename))]),n("v-uni-view",{staticClass:"same"},[n("v-uni-view",{staticClass:"circle"}),n("v-uni-view",{staticClass:"ding"},[t._v("手机号:")]),n("v-uni-view",{staticClass:"words"},[t._v(t._s(e.mobile?e.mobile:"--"))])],1),n("v-uni-view",{staticClass:"same"},[n("v-uni-view",{staticClass:"circle"}),n("v-uni-view",{staticClass:"ding"},[t._v("班级:")]),n("v-uni-view",{staticClass:"words"},[t._v(t._s(e.class?e.class:"--"))])],1),n("v-uni-view",{staticClass:"same"},[n("v-uni-view",{staticClass:"circle"}),n("v-uni-view",{staticClass:"ding"},[t._v("学号:")]),n("v-uni-view",{staticClass:"words"},[t._v(t._s(e.account))])],1)],1)],1),n("v-uni-view",{staticClass:"bottom"},[n("v-uni-view",{staticClass:"left"},[t._v("需求:")]),n("v-uni-view",{staticClass:"right"},[t._v(t._s(e.demand))])],1)],1)})),1):n("v-uni-view",{staticClass:"enptyStatus"},[n("v-uni-image",{attrs:{src:i("b9c1"),mode:""}}),n("v-uni-view",{staticClass:"words"},[t._v("暂无学生")])],1)],1)},s=[]}}]);