12 |
- webpackJsonp([15],{"1ej4":function(t,a){},"46xg":function(t,a,i){t.exports=i.p+"static/img/panel.f7ff1da.png"},SD2G:function(t,a,i){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var e={data:function(){return{id:this.$route.query.id,uInfo:{},type:1,ctitle:"",cMedal:{dun:0,hai:0,shu:0,mai:0,xiao:0},workList:[]}},methods:{goBack:function(){if(this.$router.isBack=!0,window.history.length<=1)return this.$router.push({path:"/"}),!1;this.$router.go(-1)},getInfo:function(){var t=this,a={uid:this.id};this.ajax.get(this.$store.state.api+"getUserInfo",a).then(function(a){t.uInfo=a.data[0][0];var i=a.data[1][0],e=a.data[2][0],s=a.data[3];a.data[1].length?t.ctitle=i.title:t.ctitle="",a.data[2].length?t.cMedal=JSON.parse(e.medal):t.cMedal={dun:0,hai:0,shu:0,mai:0,xiao:0},s.filter(function(t){var a=JSON.parse(t.content);t.photo=a.photo.split(",")[0];for(var i=JSON.parse(t.chapters).homework,e=0;e<i.length;e++)if(t.homeworkid==i[e].hid){t.workName=i[e].name;break}}),t.workList=s}).catch(function(t){console.error(t)})},check:function(t){this.type=t}},created:function(){this.getInfo()}},s={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"pb_content2",staticStyle:{background:"rgb(90, 201, 119)"}},[e("div",{staticClass:"pb_head"},[e("van-icon",{staticClass:"pb_back",attrs:{name:"arrow-left",color:"#fff",size:"1.2rem"},on:{click:t.goBack}}),t._v(" "),e("span",[t._v(t._s(t.uInfo.name))])],1),t._v(" "),e("div",[e("div",{staticClass:"li_head"},[e("div",{staticClass:"li_head_portal"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.uInfo.smailheadportrait?t.uInfo.smailheadportrait:i("eMeI"),expression:"\n uInfo.smailheadportrait\n ? uInfo.smailheadportrait\n : require('../../assets/icon/portal.png')\n "}],attrs:{alt:""}})]),t._v(" "),e("div",{staticClass:"li_head_body"},[e("div",{staticClass:"li_myClass"},[e("div",[e("span",[t._v(t._s(t.uInfo.name))]),t._v(" "),e("span",[t._v(t._s(t.uInfo.school))])]),t._v(" "),e("div",[1==t.ctitle||""==t.ctitle?e("div",{staticClass:"title"},[t._v("\n 星级义工\n ")]):t._e(),t._v(" "),3==t.ctitle?e("div",{staticClass:"title"},[t._v("劳动教育小讲师")]):t._e(),t._v(" "),2==t.ctitle?e("div",{staticClass:"title"},[t._v("少年科学院小院士")]):t._e()])])])]),t._v(" "),e("div",{staticStyle:{position:"relative"}},[e("div",{staticClass:"cd_nav"},[e("span",{class:{active:1==t.type},on:{click:function(a){return t.check(1)}}},[t._v("他的作品")]),t._v(" "),e("span",{class:{active:2==t.type},on:{click:function(a){return t.check(2)}}},[t._v("获得勋章")]),t._v(" "),e("img",{staticClass:"cd_nav_a",class:{cd_nav_l:2==t.type},attrs:{src:i("46xg")}})]),t._v(" "),1==t.type?e("div",{staticClass:"cm_workBox"},t._l(t.workList,function(a,s){return e("div",{key:s,staticClass:"cm_work"},[e("div",{staticClass:"cm_work_box"},[e("div",{staticClass:"cm_work_box_img"},[e("van-image",{attrs:{width:"100%",height:"100%",src:a.photo,fit:"cover"},scopedSlots:t._u([{key:"loading",fn:function(){return[e("van-loading",{attrs:{type:"spinner",size:"20"}})]},proxy:!0},{key:"error",fn:function(){return[e("img",{staticStyle:{"object-fit":"none",width:"100%",height:"100%"},attrs:{src:i("85Bp")}})]},proxy:!0}],null,!0)})],1),t._v(" "),e("div",{staticClass:"cm_work_box_t"},[t._v(t._s(a.workName))])])])}),0):t._e()])])])},staticRenderFns:[]};var n=i("VU/8")(e,s,!1,function(t){i("1ej4")},"data-v-1ac3b67c",null);a.default=n.exports}});
- //# sourceMappingURL=15.2accd6b952531cd8e7e1.js.map
|