Преглед на файлове

Merge remote-tracking branch 'origin/dev' into test

Conflicts:
	app/css/app.css
	app/html/needIssue.html
	app/js/proinfobrow.js
zzy.zhiyuan.foxmail преди 8 години
родител
ревизия
3a63ee567b
променени са 55 файла, в които са добавени 1985 реда и са изтрити 204 реда
  1. 140 29
      app/css/app.css
  2. 11 2
      app/html/attentions.html
  3. 75 0
      app/html/cmpinfor-Unindex.html
  4. 112 0
      app/html/cmpinfor-basic.html
  5. 75 0
      app/html/cmpinfor-index.html
  6. 49 0
      app/html/cmpinfor-staff.html
  7. 46 0
      app/html/cmpinfor-trend.html
  8. 1 1
      app/html/companybrowse.html
  9. 80 0
      app/html/discover.html
  10. 1 1
      app/html/index_centen.html
  11. 6 1
      app/html/needIssue.html
  12. 4 3
      app/html/professorArticle.html
  13. 1 1
      app/html/proinforbrow.html
  14. 1 1
      app/html/researcherProw.html
  15. 1 1
      app/html/resinforbrow.html
  16. 1 1
      app/html/studentbrowse.html
  17. BIN
      app/images/In-friends_bg_biaoti_nor.png
  18. BIN
      app/images/In-friends_button_yaoqing_nor.png
  19. BIN
      app/images/In-friends_img_banner_nor.png
  20. BIN
      app/images/default-icon.jpg
  21. BIN
      app/images/default-photo.jpg
  22. BIN
      app/images/porfile_icon_qiye_hig.png
  23. BIN
      app/images/porfile_icon_qiye_nor.png
  24. BIN
      app/images/porfile_icon_shimin_nor.png
  25. BIN
      app/images/porfile_icon_yuangong_hig.png
  26. BIN
      app/images/porfile_icon_yuangong_nor.png
  27. BIN
      app/images/porfile_icon_zhuanjia_nor.png
  28. BIN
      app/images/tab_icon_faxian_hig@3x.png
  29. BIN
      app/images/tab_icon_faxian_nor@3x.png
  30. BIN
      app/images/tab_icon_shouye_hig@3x.png
  31. BIN
      app/images/tab_icon_shouye_nor@3x.png
  32. BIN
      app/images/tab_icon_wo_hig@3x.png
  33. BIN
      app/images/tab_icon_wo_nor@3x.png
  34. BIN
      app/images/tab_icon_xiaoxi_hig@3x.png
  35. BIN
      app/images/tab_icon_xiaoxi_nor@3x.png
  36. 9 5
      app/index.html
  37. 26 1
      app/js/articalMessage.js
  38. 186 0
      app/js/cmpinfor-basic.js
  39. 226 0
      app/js/cmpinfor-staff.js
  40. 236 0
      app/js/cmpinfor-trend.js
  41. 20 1
      app/js/companybrowse.js
  42. 1 1
      app/js/consult.js
  43. 1 0
      app/js/consultapply.js
  44. 1 1
      app/js/consultlist.js
  45. 324 0
      app/js/discover.js
  46. 33 17
      app/js/index.js
  47. 1 0
      app/js/myaccount.js
  48. 61 2
      app/js/needIssue.js
  49. 41 24
      app/js/needList.js
  50. 6 6
      app/js/needSearch.js
  51. 140 98
      app/js/professorArticle.js
  52. 27 3
      app/js/proinfobrow.js
  53. 2 2
      app/js/public/base.js
  54. 20 1
      app/js/researcherProw.js
  55. 20 1
      app/js/studentbrowse.js

+ 140 - 29
app/css/app.css

@ -1,6 +1,36 @@
1
/*图标icon定义*/
2
.iconfontnew{
3
  display: inline-block;
4
  width: 18px;
5
  height: 18px;
6
  *margin-right: .3em;
7
  line-height: 18px;
8
  vertical-align: text-top;
9
  background-position: center center;
10
  background-repeat: no-repeat;
11
  margin: 4px auto;
12
  background-size: cover;
13
}
14
.icon-homenew{background-image: url("../images/tab_icon_shouye_nor@3x.png");}
15
.mui-tab-item.mui-active .icon-homenew{background-image: url("../images/tab_icon_shouye_hig@3x.png");}
16
.icon-messagenew{background-image: url("../images/tab_icon_xiaoxi_nor@3x.png");}
17
.mui-tab-item.mui-active .icon-messagenew{background-image: url("../images/tab_icon_xiaoxi_hig@3x.png");}
18
.icon-faxiannew{background-image: url("../images/tab_icon_faxian_nor@3x.png");}
19
.mui-tab-item.mui-active .icon-faxiannew{background-image: url("../images/tab_icon_faxian_hig@3x.png");}
20
.icon-wonew{background-image: url("../images/tab_icon_wo_nor@3x.png");}
21
.mui-tab-item.mui-active .icon-wonew{background-image: url("../images/tab_icon_wo_hig@3x.png");}
22

1 23
img{color:transparent;font-size:0;vertical-align:middle;-ms-interpolation-mode:bicubic;border:0;padding:0; margin:0;}
2 24

25
/*更改placeholder的颜色*/
26
:-moz-placeholder {color: #c0c0c6;}
27
::-moz-placeholder {color: #c0c0c6;}
28
input:-ms-input-placeholder,textarea:-ms-input-placeholder {color: #c0c0c6;}
29
input::-webkit-input-placeholder,textarea::-webkit-input-placeholder {color: #c0c0c6;}
30

3 31
/*清除mui部分原有样式*/
32
html{-webkit-text-size-adjust: none;}
33
body,.mui-content{background:#f4f6f8;}
4 34
.mui-input-group:before{background: none;}
5 35
.mui-input-group:after{background: none;}
6 36
.mui-table-view:before{ background: none;}
@ -45,8 +75,12 @@ body{ color: #666666; font-size:14px;line-height:20px;}
45 75
.displayNone {display: none;}
46 76
.displayBlock {display: block;}
47 77
/*圆角*/
78
.orangeColor{color:#ff9900;}
79
.blueColor{color:#2082fb;}
48 80
/*头像、资源圆角*/
49 81
.headRadius{border-radius: 4px;}
82
.userRadius{ border-radius: 50%;border:1px solid #E5E5E5;overflow: hidden;}
83
.cmpRadius{border-radius:4;border:1px solid #E5E5E5;}
50 84
/*底板背景圆角*/
51 85
.bgRadius{border-radius: 6px;}
52 86
/*大块右侧缩进*/
@ -77,34 +111,30 @@ div.textareaboxEmp:focus{content:none;}
77 111
/*小标签提示*/
78 112
.litlabel .listtit2{ color: #AAAAAA;}
79 113

114
.positionR{position: relative;}
80 115
/*单行省略号*/
81 116
.onlyone{overflow: hidden;text-overflow:ellipsis;white-space: nowrap;}
82 117

83 118
/*顶部标题栏*/
84 119
.toptitbox{ background:#FF9900; }
85 120
.topback.mui-icon{color: #FFFFFF; font-size:30px; line-height: 24px;}
86
.topmore {position:relative;color: #FFFFFF;
87
	/*filter: progid: DXImageTransform.Microsoft.BasicImage(rotation=1);
88
	-moz-transform: rotate(90deg);
89
	-o-transform: rotate(90deg);
90
	-webkit-transform: rotate(90deg);
91
	transform: rotate(90deg);*/
92
}
121
.topmore {position:relative;color: #FFFFFF;}
93 122
.topmore.mui-icon{ font-size:24px; line-height:24px;}
94 123
.topmore .sharebox{padding:0; margin: 0; position: absolute;display: none;}
95 124
.topmore .sharebox li{list-style: none;}
125
.topWord{color:#666;line-height: 45px;}
96 126

97
.topsave{color: #FFFFFF; line-height: 42px; cursor: pointer;}
127
.topsave{color: #FFFFFF; line-height: 44px; cursor: pointer;}
98 128
.toptit{color: #FFFFFF; font-size: 20px;}
99 129
.personhead{color: #FFFFFF;}
100 130
/*底部导航栏*/
101 131
.footbox{ background: #FFFFFF;border-top:1px solid #DDDDDD;-webkit-box-shadow: 0px 6px 6px 2px #CCCCCC;box-shadow: 0px 6px 6px 2px #CCCCCC;}
102 132
.footbox .mui-tab-item.mui-active{ color: #FF9900;}
103 133

104
.listtit0{font-size: 13px; color: #222222;}
105
.listtit{ font-size: 14px; color: #333333;}/*中标题*/
106
.listtit2{font-size: 13px; color: #666666;}/*较小标题*/
107
.listtit3{font-size: 12px; color: #888888;}/*小标题*/
134
.listtit0{font-size: 14px; color: #222222;}
135
.listtit{ font-size: 15px; color: #333333;position: relative;}/*中标题*/
136
.listtit2{font-size: 14px; color: #666666;}/*较小标题*/
137
.listtit3{font-size: 13px; color: #888888;}/*小标题*/
108 138
.littip{font-size:12px;color:#BBBBBB;line-height: 26px;}
109 139
.identity-wen{padding-left:14px;} 
110 140
/*/////专家身份认证状态///////*/
@ -118,10 +148,10 @@ div.textareaboxEmp:focus{content:none;}
118 148

119 149
/*/////////认证身份标识///////////*/
120 150
/*企业和专家认证标识 icon-vip*/
121
.unauthicon{color:#C0C0C0; }/*未认证*/
122
.authicon{color:#FF9900;}
123
.icon-vip.iconfont{margin-left:2px;font-size:14px;}
124
.authicon-cu{color:#FF9900;}/*认证科研型专家*/
151
/*.unauthicon{color:#C0C0C0; }*//*未认证*/
152
/*.authicon{color:#FF9900;}*/
153
.icon-vip.iconfont{position:absolute;top:1px;font-size:0;line-height: 0;display: inline-block;width:14px;height:14px;margin-left:4px;background-position: center;background-repeat: no-repeat;background-size: cover;}
154
.authicon-cu{background-image:url(../images/porfile_icon_zhuanjia_nor.png);}/*认证科研型专家*/
125 155
.authicon-com{/*color:#00aaee;*/ color:#2082fb;}/*认证企业型专家*/
126 156
/*普通用户认证标识 icon-renzheng*/
127 157
em.mui-icon.iconfont.icon-renzheng{position:absolute;float:left;font-size: 0;width:48px;height:16px;background-image:url(../images/authicon.png);background-repeat:no-repeat; }
@ -129,6 +159,33 @@ em.mui-icon.iconfont.icon-renzheng{position:absolute;float:left;font-size: 0;wid
129 159
.authicon-staff{background-position: 0 -16px;background-size:100% auto;color:#007AFF;}/*认证企业*/
130 160
.authicon-stu{background-position: 0 -32px;background-size:100% auto;color:#0ee032;}/*认证在读学生*/
131 161

162
/*认证标识相关*/
163
.authicon{position:absolute; bottom:1px;display: inline-block;width:14px;height:14px;margin-left:4px;background-position: center;background-repeat: no-repeat;}
164
.authicon-pro{background-image:url(../images/porfile_icon_zhuanjia_nor.png);background-size: cover;}/*科袖认证专家*/
165
.authicon-com-ok{background-image:url(../images/porfile_icon_qiye_hig.png);background-size: cover;}/*认证企业*/
166
.authicon-com-no{background-image:url(../images/porfile_icon_qiye_nor.png);background-size: cover;}/*未认证企业*/
167
.authicon-staff-ok{width:40px;background-image:url(../images/porfile_icon_yuangong_hig.png);background-size: cover;}/*企业认证员工*/
168
.authicon-staff-no{width:40px;background-image:url(../images/porfile_icon_yuangong_nor.png);background-size: cover;}/*企业未认证员工*/
169
.authicon-real{width: 21px;background-image:url(../images/porfile_icon_shimin_nor.png);background-size: cover;}/*实名认证用户*/
170

171
/*图片在容器中无变形居中显示*/
172
.boxBlock{width:160px; height:160px;display: table-cell;vertical-align:middle; text-align:center;overflow: hidden;}
173
.boxBlockimg{max-width: 100%;max-height: 100%;vertical-align:middle;height:auto !important; overflow-y:auto;}
174

175
.cmpBasic span:before{content:"";display: inline-block; width: 0; height: 0;border:2px #999 solid;margin: 2px 6px; border-radius:100%;}
176
.cmpBasic span:first-child:before{border:none;margin:0; }
177

178
/*左右图片文档居中*/
179
.flexCenter{position: relative; min-height:80px;
180
		    display: -webkit-box;
181
			display: -webkit-flex; 
182
			display:         flex; 
183
	        -webkit-align-items: center;
184
	                align-items: center;}
185
.flexImg{position:absolute; width:60px; height: 60px; top:50%; left:2px; margin-top:-30px; display: block;}
186
.flexTit{padding-left:70px;}
187
.centerTit{position: absolute;top:26%;margin-top:0;left:86px;}
188

132 189
/*****表单公共样式********/
133 190
/*input输入相关*/
134 191
button:disabled,input.frmtype[type='button']:disabled{ opacity: 1;}
@ -196,7 +253,7 @@ button:disabled,input.frmtype[type='button']:disabled{ opacity: 1;}
196 253
.headbox .headimg{width: 20%;}
197 254
.maincon .pinfor{ color: #888888; font-size: 13px;}
198 255
.maincon ul {margin:0; padding:0;padding-left:3%;}
199
.maincon ul li{ list-style: none;padding-left: 2%;font-size: 14px;line-height: 20px; overflow: hidden;}
256
.maincon ul li{ list-style: none;padding-left: 2%;font-size: 14px;line-height: 22px; overflow: hidden;}
200 257
.boxnav-title{font-size: 14px; color:#888; font-weight: normal;position:relative;padding-left:6%;}
201 258
ul.boxnav{ overflow: hidden;width:100%; padding: 0 3%;}
202 259
ul.boxnav li{list-style: none;width:50%;float:left; padding:5px 10px;    -webkit-box-sizing: border-box;}
@ -238,8 +295,8 @@ ul.boxnav li.set span:before{font-family:"iconfont";content: "\e645";border:1px
238 295
.mui-search input[type=search].searchtxt{background: #FFFFFF;}
239 296
.mui-search .mui-placeholder{ font-size: 14px; top:2px }
240 297

241
.maintitbox .maintit{ line-height: 40px; font-size: 16px; text-align: center; color: #FF9900; border-bottom: 1px solid #F0F0F0;}
242
.maintitbox .maintit2{ text-align: left;color:#888888;padding:2px 10px;}
298
.maintitbox .maintit{ line-height: 40px; border-bottom: 1px solid #F0F0F0; font-size: 16px; text-align: center; color: #FF9900;}
299
.maintitbox .maintit2{text-align: left;color:#888888;padding:2px 10px;}
243 300
.maintitbox .maintit2 span{color: #FF9900;}
244 301
.conblock{ background: #FFFFFF; margin:10px 0;}
245 302
.mui-grid-view.gridbg{ background: #FFFFFF; border: none;}
@ -266,7 +323,7 @@ ul.boxnav li.set span:before{font-family:"iconfont";content: "\e645";border:1px
266 323
.mui-table-view .mui-media-object.ResImgBox{max-width:64px;height:64px; }
267 324
.mui-table-view .mui-media-object.ResImgBox:before {margin-left: 0;}
268 325
/***********************专家信息浏览*******************/
269
.personinfo .listtit{ font-size: 18px; line-height: 30px; color: #333333;}
326
.personinfo .listtit{ font-size: 20px; line-height: 30px; color: #333333;}
270 327
.personinfo .listtit3{font-size: 14px; line-height: 24px; color: #AAAAAA; margin: 0;}
271 328
/*咨询记录及等级*/
272 329
.peolevelbox{ display: block; padding:4% 16px; border-top:1px #F0F0F0 solid;}
@ -280,7 +337,8 @@ ul.boxnav li.set span:before{font-family:"iconfont";content: "\e645";border:1px
280 337
.levelbox .icon-favorfill{ color:#F4C600;}
281 338
/*专家相关信息*/
282 339
.infocontit{font-size:14px; position: relative;}
283
.infocon{padding:6px 10px; /*text-align: justify;*/ font-size: 13px;line-height:27px ; color:#888888;}
340
.infocon{padding:6px 10px; font-size: 14px;color:#888888;}
341
.infocon .breifinfo{/*line-height: 22px;*/}
284 342
.infocon ul{ padding:0; margin: 0; overflow: hidden;}
285 343
.infosubject li{ list-style: none; padding:4px 10px; margin:4px; border:1px solid #BBBBBB; border-radius: 6px; float: left;}
286 344

@ -295,8 +353,10 @@ ul.boxnav li.set span:before{font-family:"iconfont";content: "\e645";border:1px
295 353
.likepeople img{ width:100%; height:100%;}
296 354
.likemore{ display: block; width: 26px; height: 26px; border:1px solid #CCCCCC;}
297 355

298
.infoapply li{ padding-left:6px;padding-right:2px; list-style: disc inside; width: 50%; float: left;}
299
#industry1 li{ padding-left:6px;padding-right:2px; list-style: disc inside; width: 50%; float: left}
356
.maincon .infoapply li{position: relative; padding-left:9px;padding-right:2px; width: 50%; float: left;}
357
.maincon .infoapply li:before{content:''; background: #AAAAAA;display: block;width: 4px;height: 4px;border-radius: 50%; position: absolute;top:8px;left:0;}
358
.maincon .infoapply.infoapplyW li{width: 100%;}
359

300 360
.gotonext{ width:140px; margin: auto; font-size: 14px; color: #FF9900; overflow: hidden;}
301 361
.gotonext2{ width: 110px;}
302 362

@ -318,7 +378,11 @@ ul.boxnav li.set span:before{font-family:"iconfont";content: "\e645";border:1px
318 378
.listitembox .listitem>a .mutlinebox{ white-space:normal; overflow: auto;word-break:break-word; }
319 379
.listitembox .listitem.mui-table-view-cell:after{right: 0;bottom: 0;left:46px;background:#F0F0F0;}
320 380
.listitembox .listitem.mui-table-view-cell>a:not(.mui-btn).mui-active{background:none;}
381
<<<<<<< HEAD
321 382
.centerTit{position: absolute;top:50%;margin-top:-18px;left:86px;}
383
=======
384

385
>>>>>>> refs/remotes/origin/dev
322 386
/*合作资源*/
323 387
.resinfo{padding:10px 0;}
324 388
.resinfo li{margin:4px 4px;padding:10px 0;}
@ -350,13 +414,12 @@ ul.boxnav li.set span:before{font-family:"iconfont";content: "\e645";border:1px
350 414
/*已认证*/
351 415
.verified{ color: #FF9900;}
352 416

353

354 417
/*我的关注*/
355 418
.fixbox{ background: #FFFFFF; position:fixed;top:45px;left:0;width:100%; z-index:1;}
356 419
.fixbox .fixbtn{ padding:0; margin: 0; overflow: hidden;}
357
.fixbox .fixbtn li{ list-style: none; float: left;height:40px;line-height:30px; padding:6px 10px; border-bottom:1px solid #F0F0F0;text-align: center;font-size: 14px;}
358
.fixbox .fixbtn li:first-child{ border-right:1px solid #F0F0F0;}
359
.fixbox .fixbtn li.liactive{ color: #FF9900;border-bottom-color: #FF9900;}
420
.fixbox .fixbtn li{ list-style: none; float: left;height:40px;line-height:40px; padding:0 10px;border-top:1px solid #F0F0F0; border-bottom:1px solid #F0F0F0;text-align: center;font-size: 14px;}
421
/*.fixbox .fixbtn li:first-child{ border-right:1px solid #F0F0F0;}*/
422
.fixbox .fixbtn li.liactive{ color: #FF9900; border-bottom:2px solid #FF9900;}
360 423
.childlist{ display: none;}
361 424
.alllist{ margin-top: 45px;}
362 425
/*合作历史及评价*/
@ -370,10 +433,11 @@ ul.boxnav li.set span:before{font-family:"iconfont";content: "\e645";border:1px
370 433
.inviteBox{position:relative;height:200px;background: url(../images/yqbg.jpg) center center no-repeat #f5f5f7;}
371 434
.inviteBtn{position: absolute;bottom:20px; left:50%;margin-left: -60px;padding:4px 30px;background: #ff9900;color:#FFFFFF;}
372 435
.noborder:after{height: 0;}
436

373 437
/***********************我的账户*******************/
374 438

375 439
/***********************专家信息修改*******************/
376
.generalinfo li{ line-height:26px ;}
440
.generalinfo li{ line-height:26px;}
377 441
.generalinfo .ginfolist{}
378 442
.generalinfo span{letter-spacing:normal;}
379 443
.generalinfo .letspace{font-style:normal;letter-spacing: 2em;}
@ -586,7 +650,7 @@ footer.chatFooter .mui-icon-paperplane {font-size: 16px;word-break: keep-all;lin
586 650

587 651
/***********************缺省页面*******************/
588 652
.nodatabox{width:100%;height: 100%; margin:50px auto;text-align: center;}
589
.nodatabox .picbox{margin:20% auto 30px;}
653
.nodatabox .picbox{margin:20% auto 20px;}
590 654
.nodatabox .picbox .defpic{display:block;margin:auto;width:160px; height: 160px;background: url(../images/nodata.png) -6px 0 no-repeat;}
591 655
.nodatabox .picbox .defpic.consult-pic{background-position: -232px -1320px;}/*咨询页面未登录*/
592 656

@ -594,6 +658,7 @@ footer.chatFooter .mui-icon-paperplane {font-size: 16px;word-break: keep-all;lin
594 658
.nodatabox .txtbox .currword{font-size: 14px;color: #999999;line-height: 14px;}
595 659
.nodatabox .txtbox .currtip{ font-size:13px;color: #AAAAAA;}
596 660
.nodatabox .txtbox .keyword{ padding:0 6px;}
661
.nodatabox .txtbox .noContip{color:#BBBBBB;font-size:14px;line-height:26px;}
597 662
/***********************缺省页面*******************/
598 663

599 664
/***********************科袖用户协议*******************/
@ -678,3 +743,49 @@ footer.chatFooter .mui-icon-paperplane {font-size: 16px;word-break: keep-all;lin
678 743
/*新加实名认证*/
679 744
.submutbut{float:right; padding:0 10px; line-height:45px ; font-size:14px; color: #fff;}
680 745
#yyhy li:last-child , #xsly li:last-child{display: none;}
746

747

748

749
/**************************************2017.03新增发现功能*********************************/
750
/*发现*/
751
.bodyBg{background: #f4f6f8;}
752
.bodyBg .mui-table-view{background: none;}
753
.table-item{/*padding:10px;*/}
754
.table-item.mui-table-view{background: none;}
755
.table-item .mui-table-view-cell{padding:15px 20px 20px 20px;background:#FFFFFF;margin-top:12px}
756
.table-item.mui-table-view .mui-table-view-cell.mui-active{background:#FFFFFF;}
757
.table-item .mui-table-view-cell:first-child{margin-top:0;}
758
.table-item.mui-table-view .mui-table-view-cell:after{background: none;}
759
.table-item-cell{background:#f2f3f4;min-height: 76px;margin:14px 0 12px 0;}
760
.table-item-cell .table-item-img{position:absolute;width: 110px;height: 74px;top:50%;left:0;margin-top:-37px;}
761
.table-item-cell .table-item-img.artical-default{background:url(../images/default-artical.jpg) center center;background-size:cover;}
762
.table-item-cell .table-item-img.resource-default{background:url(../images/default-resource.jpg) center center;background-size:cover;}
763
.table-item-cell .table-item-body{width:100%;padding-left:120px;padding-right: 10px;}
764
.table-item-media{line-height: 32px;height: 32px;}
765
.table-item-media .table-item-logo{position:absolute;display: inline-block;border:1px solid #E5E5E5;width: 32px; height:32px;margin-right:8px; z-index:2;}
766
.table-item-media .table-item-name{width:90%;position: relative;padding-left:40px;font-size:15px;}
767
.table-item-media .table-item-name span{float:left;display:block;max-width:96%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}
768
.table-item-media .authicon{bottom:9px;}
769

770
.cmplogo{ background: url(../images/default-icon.jpg);background-size: cover;border-radius:4px;}
771
.userhead{ background: url(../images/default-photo.jpg);background-size: cover;border-radius:4px;}
772
.cmpLable{border:1px solid;border-radius:3px;padding:2px 6px;font-style: normal;font-size: 10px; line-height: 14px; vertical-align: middle;margin-right: 15px;}
773
.cmpLable.articalLabel{border-color:#ff6b57;color:#ff6b57;}
774
.cmpLable.resourceLabel{border-color:#28b8fa;color:#28b8fa;}
775
.timeLabel{position: relative;color:#999999;font-size:12px;}
776
/*企业浏览*/
777
.cmpLogoBox .authicon{width: 20px;height: 20px;bottom:4px;}
778
.cmpLogoBox .listtit{padding:0 20px;}
779
.companyLogo{width:160px;margin: auto;}
780
.cmpClassNum{padding:0;list-style: none;border-width:1px 0 1px 0;border-style:solid; border-color:#E6E6E6;}
781
.cmpClassNum li{padding:10px;border-right: 1px solid #E6E6E6;}
782
.cmpClassNum li:last-child{border-right:1px solid #E6E6E6;}
783
.cmpClassNum li.nowClass{border-bottom: 1px solid #ff9900;color:#ff9900}
784

785
.cmpTrends{width: 96%;margin: 2% auto;}
786
.cmpStaff ul{padding-left: 4px;}
787
.cmpStaff .mui-table-view .mui-table-view-cell{padding-bottom:14px;}
788
.cmpStaff .mui-table-view .mui-table-view-cell:after{left:0}
789
.cmpStaff .cmpTit{font-size:16px;padding:0 0 8px 6px;border-bottom: 1px solid #E6E6E6;}
790
.cmpStaff .flexImg{left:10px}
791
.cmpStaff .authicon{bottom:4px;}

+ 11 - 2
app/html/attentions.html

@ -34,6 +34,11 @@
34 34
			checkedindex = this.getAttribute("index");
35 35
			var libtn_arr = document.getElementById("fixbtn").getElementsByTagName("li");
36 36
			if(checkedindex == 0) {
37
				var list1 = plus.webview.getWebviewById('attentions-list2.html');
38
				console.log(list1)
39
				if(list1==null){
40
					return;
41
				}
37 42
				libtn_arr[0].classList.add("liactive");
38 43
				libtn_arr[1].classList.remove("liactive");
39 44
				mui.openWindow({
@ -48,9 +53,13 @@
48 53
						bottom: '0px',
49 54
					}
50 55
				});
51
				var list1 = plus.webview.getWebviewById('attentions-list2.html');
56
				
52 57
				list1.close();
53 58
			} else {
59
				var list2 = plus.webview.getWebviewById('attentions-list.html');
60
				if(list2==null){
61
					return;
62
				}
54 63
				libtn_arr[1].classList.add("liactive");
55 64
				libtn_arr[0].classList.remove("liactive");
56 65
			
@ -66,7 +75,7 @@
66 75
						bottom: '0px',
67 76
					}
68 77
				});
69
				var list2 = plus.webview.getWebviewById('attentions-list.html');
78
				
70 79
				list2.close();
71 80
			}
72 81
		})

+ 75 - 0
app/html/cmpinfor-Unindex.html

@ -0,0 +1,75 @@
1
<!DOCTYPE html>
2
<html>
3

4
	<head>
5
		<meta charset="UTF-8">
6
		<title>企业信息浏览-企业介绍</title>
7
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
8
		<link href="../css/mui.min.css" rel="stylesheet" />
9
		<link href="../css/iconfont.css" rel="stylesheet" />
10
		<link href="../css/app.css" rel="stylesheet" />
11
	</head>
12

13
	<body>
14
		<header class="mui-bar mui-bar-nav toptitbox">
15
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left topback"></a>
16
			<h1 class="mui-title toptit" id="qiyeName"></h1>
17
			<!--<a class="mui-icon iconfont icon-share mui-pull-right button topmore" id="shareBtn"></a>-->
18
		</header>
19
		<script src="../js/public/mui.min.js"></script>
20
		<script src="../js/public/base.js"></script>
21
		<script>
22
			
23
			 //mui初始化
24
			mui.init();
25
			var subpages = ['cmpinfor-basic.html','cmpinfor-trend.html'];
26
			var subpage_style = {
27
				top: '50px',
28
				bottom: '0px'
29
			};
30
			
31
			var aniShow = {};
32
			
33
			 //创建子页面,首个选项卡页面显示,其它均隐藏;
34
			mui.plusReady(function() {
35
				var self = plus.webview.currentWebview();
36
				for (var i = 0; i < 2; i++) {
37
					var temp = {};
38
					var sub = plus.webview.create(subpages[i], subpages[i], subpage_style);
39
					if (i > 0) {
40
						sub.hide();
41
					}else{
42
						temp[subpages[i]] = "true";
43
						mui.extend(aniShow,temp);
44
					}
45
					self.append(sub);
46
				}
47
				var id = "C77464E135424983A9918A75E7391DE3";
48
				companyMessage() 
49
				/*企业名称*/
50
				function companyMessage() {
51
				mui.ajax(baseUrl + "/ajax/org/" + id, {
52
					dataType: 'json', //数据格式类型
53
					type: 'GET', //http请求类型
54
					timeout: 10000, //超时设置
55
					success: function(data) {
56
						if(data.success) {
57
							var $data = data.data;
58
							if($data.forShort){
59
								document.getElementById("qiyeName").innerHTML = $data.forShort;
60
							}else{
61
								document.getElementById("qiyeName").innerHTML = $data.name;
62
							}													
63
						}
64
					},
65
					error: function() {
66
						plus.nativeUI.toast("服务器链接超时", toastStyle);
67
						return;
68
					}
69
				});
70
			}
71
			});
72
		</script>
73
	</body>
74

75
</html>

+ 112 - 0
app/html/cmpinfor-basic.html

@ -0,0 +1,112 @@
1
<!DOCTYPE html>
2
<html>
3
4
	<head>
5
		<meta charset="UTF-8">
6
		<title>企业信息浏览-企业介绍</title>
7
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
8
		<link href="../css/mui.min.css" rel="stylesheet" />
9
		<link href="../css/iconfont.css" rel="stylesheet" />
10
		<link href="../css/app.css" rel="stylesheet" />
11
	</head>
12
13
	<body>
14
		<!-- 主页面内容容器 -->
15
		<div class="mui-content">
16
			<!-- 主界面具体展示内容 -->
17
			<div class="mui-input-group mainbox">
18
				<div class="maincon personinfo" style="padding-bottom: 0;">
19
					<div class="headbox cmpLogoBox">
20
						<div class="mui-content-padded">
21
							<div class="companyLogo">
22
								<div class="boxBlock headRadius"><img class="boxBlockimg headRadius" src="" id="oimg"/></div>
23
						
24
							</div>
25
						</div>
26
						<div class="listtit cmpBasic positionR"><span id="companyName"></span><em class="authicon" id="authFlag"></em></div>
27
	            		<div class="listtit2 cmpBasic"><span id="orgType"> </span><span id="ocity"></span></div>
28
					</div>
29
				</div>
30
				<ul class="mui-row mui-clearfix alignCenter cmpClassNum">
31
					<li class="mui-col-xs-4 nowClass aa">介绍</li>
32
					<li class="mui-col-xs-4 aa">动态</li>
33
					<li class="mui-col-xs-4 aa">员工</li>
34
				</ul>
35
			</div>
36
			
37
			<div class="mui-input-group mainbox">
38
				<div class="maincon">
39
			       <div class="infocontit">基本信息</div> 
40
			       <div class="infocon">
41
				       <ul class="generalinfo">
42
				       		<li class="ginfolist">
43
				       			<span class="infotype">创立时间 :</span>
44
				       			<span class="personalMaterial" id="createTime"></span>
45
				       		</li>
46
				       		<li class="ginfolist">
47
				       			<span class="infotype">企业类型 :</span>
48
				       			<span class="personalMaterial" id="comType"></span>
49
				       		</li>
50
				       		<li class="ginfolist">
51
				       			<span class="infotype">企业规模 :</span>
52
				       			<span class="personalMaterial" id="orgSize"></span>
53
				       		</li>
54
				       		<li class="ginfolist">
55
				       			<span class="infotype">所在城市 :</span>
56
				       			<span class="personalMaterial" id="city"></span>
57
				       		</li>
58
				       		<li class="ginfolist">
59
				       			<span class="infotype">企业官网 :</span>
60
				       			<span class="personalMaterial" id="shotAddress"></span>
61
				       		</li>
62
				       </ul>	
63
			       </div>
64
		       </div>
65
		    </div>
66
			<div class="mui-input-group mainbox" id="breifinfolist">
67
				<div class="maincon">
68
					<div class="infocontit">企业简介</div>
69
					<div class="infocon">
70
						<span class="breifinfo" id="breifinfo">
71
				       		 
72
				        </span>
73
					</div>
74
				</div>
75
			</div>
76
			<div class="mui-input-group mainbox" id="industry">
77
				<div class="maincon">
78
					<div class="infocontit">应用行业</div>
79
					<div class="infocon">
80
						<ul class="infoapply" id="industryShow">
81
							
82
						</ul>
83
					</div>
84
				</div>
85
			</div>
86
			<div class="mui-input-group mainbox" id="subject">
87
				<div class="maincon">
88
					<div class="infocontit">专注领域</div>
89
					<div class="infocon">
90
						<ul class="infosubject" id="subjectShow">
91
							
92
						</ul>
93
					</div>
94
				</div>
95
			</div>
96
			<div class="mui-input-group mainbox" style="margin-bottom: 20px;"id="qiyelist">
97
				<div class="maincon">
98
					<div class="infocontit">企业资质</div>
99
					<div class="infocon">
100
						<ul class="infoapply infoapplyW" id="qiye">
101
							
102
						</ul>
103
					</div>
104
				</div>
105
			</div>
106
		</div>
107
		<script src="../js/public/mui.min.js"></script>
108
		<script src="../js/public/base.js"></script>
109
		<script src="../js/cmpinfor-basic.js"></script>
110
	</body>
111
112
</html>

+ 75 - 0
app/html/cmpinfor-index.html

@ -0,0 +1,75 @@
1
<!DOCTYPE html>
2
<html>
3

4
	<head>
5
		<meta charset="UTF-8">
6
		<title>企业信息浏览-企业介绍</title>
7
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
8
		<link href="../css/mui.min.css" rel="stylesheet" />
9
		<link href="../css/iconfont.css" rel="stylesheet" />
10
		<link href="../css/app.css" rel="stylesheet" />
11
	</head>
12

13
	<body>
14
		<header class="mui-bar mui-bar-nav toptitbox">
15
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left topback"></a>
16
			<h1 class="mui-title toptit" id="qiyeName"></h1>
17
			<!--<a class="mui-icon iconfont icon-share mui-pull-right button topmore" id="shareBtn"></a>-->
18
		</header>
19
		<script src="../js/public/mui.min.js"></script>
20
		<script src="../js/public/base.js"></script>
21
		<script>
22
			
23
			 //mui初始化
24
			mui.init();
25
			var subpages = ['cmpinfor-basic.html','cmpinfor-trend.html','cmpinfor-staff.html'];
26
			var subpage_style = {
27
				top: '50px',
28
				bottom: '0px'
29
			};
30
			
31
			var aniShow = {};
32
			
33
			 //创建子页面,首个选项卡页面显示,其它均隐藏;
34
			mui.plusReady(function() {
35
				var self = plus.webview.currentWebview();
36
				for (var i = 0; i < 3; i++) {
37
					var temp = {};
38
					var sub = plus.webview.create(subpages[i], subpages[i], subpage_style);
39
					if (i > 0) {
40
						sub.hide();
41
					}else{
42
						temp[subpages[i]] = "true";
43
						mui.extend(aniShow,temp);
44
					}
45
					self.append(sub);
46
				}
47
				var id = self.orgId;
48
				companyMessage() 
49
				/*企业名称*/
50
				function companyMessage() {
51
				mui.ajax(baseUrl + "/ajax/org/" + id, {
52
					dataType: 'json', //数据格式类型
53
					type: 'GET', //http请求类型
54
					timeout: 10000, //超时设置
55
					success: function(data) {
56
						if(data.success) {
57
							var $data = data.data;
58
							if($data.forShort){
59
								document.getElementById("qiyeName").innerHTML = $data.forShort;
60
							}else{
61
								document.getElementById("qiyeName").innerHTML = $data.name;
62
							}													
63
						}
64
					},
65
					error: function() {
66
						plus.nativeUI.toast("服务器链接超时", toastStyle);
67
						return;
68
					}
69
				});
70
			}
71
			});
72
		</script>
73
	</body>
74

75
</html>

+ 49 - 0
app/html/cmpinfor-staff.html

@ -0,0 +1,49 @@
1
<!DOCTYPE html>
2
<html>
3
	<head>
4
		<meta charset="UTF-8">
5
		<title>企业信息浏览-企业员工</title>
6
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
7
		<link href="../css/mui.min.css" rel="stylesheet" />
8
		<link href="../css/iconfont.css" rel="stylesheet" />
9
		<link href="../css/app.css" rel="stylesheet" />
10
	</head>
11
12
	<body>
13
		<!-- 主页面内容容器 -->
14
		<div class="mui-content  mui-scroll-wrapper" id="pullrefresh">
15
		  <div class='mui-scroll'>
16
			<div class="mui-input-group mainbox">
17
				<div class="maincon personinfo" style="padding-bottom: 0;">
18
					<div class="headbox cmpLogoBox">
19
						<div class="mui-content-padded">
20
							<div class="companyLogo">
21
								<div class="boxBlock headRadius"><img class="boxBlockimg headRadius" src="" id="oimg"/></div>
22
							</div>
23
						</div>
24
						<div class="listtit cmpBasic positionR"><span id="companyName"></span><em class="authicon" id="authFlag"></em></div>
25
	            		<div class="listtit2 cmpBasic"><span id="orgType"> </span><span id="ocity"></span></div>
26
					</div>
27
				</div>
28
				<ul class="mui-row mui-clearfix alignCenter cmpClassNum">
29
					<li class="mui-col-xs-4">介绍</li>
30
					<li class="mui-col-xs-4">动态</li>
31
					<li class="mui-col-xs-4 nowClass">员工</li>
32
				</ul>
33
			</div>
34
			<div class="mui-input-group mainbox">
35
				<div class="maincon cmpStaff">
36
					<div class="mui-card-content conblock">
37
						<ul class="mui-table-view mui-table-view-chevron list" id="stflist">
38
						</ul>
39
					</div>
40
				</div>
41
			 </div>
42
			</div>
43
		</div>
44
		<script src="../js/public/mui.min.js"></script>
45
		<script src="../js/public/base.js"></script>
46
		<script src="../js/cmpinfor-staff.js"></script>
47
	</body>
48
49
</html>

+ 46 - 0
app/html/cmpinfor-trend.html

@ -0,0 +1,46 @@
1
<!DOCTYPE html>
2
<html>
3
4
	<head>
5
		<meta charset="UTF-8">
6
		<title>企业信息浏览-企业动态</title>
7
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
8
		<link href="../css/mui.min.css" rel="stylesheet" />
9
		<link href="../css/iconfont.css" rel="stylesheet" />
10
		<link href="../css/app.css" rel="stylesheet" />
11
	</head>
12
13
	<body>
14
		<!-- 主界面具体展示内容 -->
15
		<div class="mui-content mui-scroll-wrapper" id="pullrefresh">
16
		 <div class='mui-scroll'>
17
			<div class="mui-input-group mainbox">
18
				<div class="maincon personinfo" style="padding-bottom: 0;">
19
					<div class="headbox cmpLogoBox">
20
						<div class="mui-content-padded">
21
							<div class="companyLogo">
22
								<div class="boxBlock headRadius"><img class="boxBlockimg headRadius" src="" id="oimg"/></div>
23
							</div>
24
						</div>
25
						<div class="listtit cmpBasic positionR"><span id="companyName"></span><em class="authicon" id="authFlag"></em></div>
26
	            		<div class="listtit2 cmpBasic"><span id="orgType"> </span><span id="ocity"></span></div>
27
					</div>
28
				</div>
29
				<ul class="mui-row mui-clearfix alignCenter cmpClassNum">
30
					<li class="mui-col-xs-4 aa">介绍</li>
31
					<li class="mui-col-xs-4 nowClass aa">动态</li>
32
					<li class="mui-col-xs-4 aa">员工</li>
33
				</ul>
34
			</div>
35
			<div class="cmpTrends">
36
				<ul class="mui-table-view table-item mui-table-view-chevron" id="trend">  
37
			    </ul>
38
			</div>
39
		 </div>	
40
		</div>
41
		<script src="../js/public/mui.min.js"></script>
42
		<script src="../js/public/base.js"></script>
43
		<script src="../js/cmpinfor-trend.js"></script>
44
	</body>
45
46
</html>

+ 1 - 1
app/html/companybrowse.html

@ -59,7 +59,7 @@
59 59
							</div>
60 60
				        	<div class="listtit"><span class="personalMaterial"></span><em class="mui-icon iconfont" style="margin-top:5px;" id="nameli"></em></div>	
61 61
		                    <p class="listtit3"><span class="personalMaterial"></span><span class="personalMaterial"></span></p>
62
		                    <p class="listtit3"><span class="personalMaterial"></span><span class="personalMaterial"></span> <span class="personalMaterial"></span></p>
62
		                    <p class="listtit3"><span class="personalMaterial"></span><span class="personalMaterial" id="department"></span> <span class="personalMaterial"></span></p>
63 63
				        </a>
64 64
			        </div>
65 65
		        </div>

+ 80 - 0
app/html/discover.html

@ -0,0 +1,80 @@
1
<!DOCTYPE html>
2
<html>
3
4
	<head>
5
		<meta charset="UTF-8">
6
		<title>发现</title>
7
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
8
		<link href="../css/mui.min.css" rel="stylesheet" />
9
		<link href="../css/iconfont.css" rel="stylesheet" />
10
		<link href="../css/app.css" rel="stylesheet" />
11
	</head>
12
13
	<body>
14
		<header class="mui-bar mui-bar-nav toptitbox">
15
			<h1 class="mui-title toptit">发现</h1>
16
		</header>
17
18
		<!-- 主界面具体展示内容 -->
19
		<div class="mui-content mui-scroll-wrapper bodyBg" id="pullrefresh2" >	
20
			<div class="mui-scroll">
21
				<ul class="mui-table-view table-item" id="discoverBox"></ul>
22
				<ul class="mui-table-view table-item" style="display: none;">
23
					<li class="mui-table-view-cell">
24
				        <div class="table-item-media mui-clearfix">
25
				        	<div class="table-item-logo userhead"></div><!--企业cmplogo--><!--企业标志authicon-com-ok-->
26
				        	<div class="table-item-name mui-clearfix positionR"><span>用户姓名</span><em class="authicon authicon-pro"></em></div>
27
				        </div>
28
				        <div class="flexCenter table-item-cell">
29
				        	<div class="table-item-img artical-default"></div><!--资源 resource-default-->
30
							<div class="table-item-body">
31
								<p class="listtit mui-ellipsis-2">能和心爱的人一起睡觉,是件幸福的事情;可是,打呼噜怎么办?能和心爱的人一起睡觉</p>
32
							</div>
33
				        </div>
34
				        <div>
35
				        	<em class="cmpLable articalLabel">文章</em><!--资源 resourceLabel-->
36
				        	<span class="timeLabel">3月22日</span>
37
				        </div>
38
			        </li>
39
			        <li class="mui-table-view-cell">
40
				        <div class="table-item-media mui-clearfix">
41
				        	<div class="table-item-logo cmplogo"></div>
42
				        	<div class="table-item-name mui-clearfix positionR"><span>企业名称企业名称企业名称企业名称企业名称</span><em class="authicon authicon-com-ok"></em></div>
43
				        </div>
44
				        <div class="flexCenter table-item-cell">
45
				        	<div class="table-item-img resource-default"></div>
46
							<div class="table-item-body">
47
								<p class="listtit mui-ellipsis-2">能和心爱的人一起睡觉,是件幸福的事情;可是,打呼噜怎么办?能和心爱的人一起睡觉</p>
48
							</div>
49
				        </div>
50
				        <div>
51
				        	<em class="cmpLable resourceLabel">资源</em>
52
				        	<span class="timeLabel">3月22日</span>
53
				        </div>
54
			        </li>
55
			        <li class="mui-table-view-cell">
56
				        <div class="table-item-media mui-clearfix">
57
				        	<div class="table-item-logo userhead"></div>
58
				        	<div class="table-item-name mui-clearfix positionR"><span>用户姓名</span><em class="authicon authicon-pro"></em></div>
59
				        </div>
60
				        <div class="flexCenter table-item-cell">
61
				        	<div class="table-item-img resource-default"></div>
62
							<div class="table-item-body">
63
								<p class="listtit mui-ellipsis-2">能和心爱的人一起睡觉,是件幸福的事情;可是,打呼噜怎么办?能和心爱的人一起睡觉</p>
64
							</div>
65
				        </div>
66
				        <div>
67
				        	<em class="cmpLable resourceLabel">资源</em>
68
				        	<span class="timeLabel">3月22日</span>
69
				        </div>
70
			        </li>
71
			    </ul>
72
			</div>
73
		</div>
74
		<script src="../js/public/mui.min.js"></script>
75
		<script src="../js/public/base.js"></script>
76
		<script src="../js/public/zepto.min.js"></script>
77
		<script src="../js/discover.js" ></script>
78
	</body>
79
80
</html>

+ 1 - 1
app/html/index_centen.html

@ -21,7 +21,7 @@
21 21
				<!-- 主界面具体展示内容 -->
22 22
				<div class="bannerA">
23 23
					<img src="../images/banner/banner0307.png" width="100%"/>
24
				</div>
24
				</div>
25 25
					
26 26
				<!--图片轮播-->
27 27
				<!--<div id="slider" class="mui-slider">

+ 6 - 1
app/html/needIssue.html

@ -34,8 +34,13 @@
34 34
						<li><label>请选择您的需求类型<em class="requiredcon"></em></label></li>
35 35
						<li class="divideSpace" id="navsubTo" style="padding-left:0">
36 36
							<ul class="boxnav boxnavTo chooseBox">
37
<<<<<<< HEAD
37 38
								<li><span class='checkNow'>个人需求</span></li><!--选中状态checkNow-->
38 39
								<li><span class='checkNo'>企业需求</span></li><!--不可用状态checkNo-->
40
=======
41
								<li><span id="oGe">个人需求</span></li><!--选中状态checkNow-->
42
								<li><span id="oQi">企业需求</span></li><!--不可用状态checkNo-->
43
>>>>>>> refs/remotes/origin/dev
39 44
							</ul>
40 45
							<div class="littipCh">
41 46
								<div class="littip">注:当企业入驻科袖后,企业的关联用户将可以发布企业需求</div>
@ -87,4 +92,4 @@
87 92
		<script type="text/javascript" src="../js/needIssue.js"></script>
88 93
	</body>
89 94
90
</html>
95
</html>

+ 4 - 3
app/html/professorArticle.html

@ -48,10 +48,11 @@
48 48
						<a class="proinfor">
49 49
							<div><img id="proHead" class="mui-media-object mui-pull-left headimg headRadius" src="../images/default-photo.jpg"></div>
50 50
							<div class="mui-media-body">
51
								<span class="listtit"><span id="proName"></span><em class="mui-icon iconfont icon-vip authicon-cu"> </em></span>
52
								<div class="listtit2"><span id="proTitle"></span><span id="proOffice"></span><span id="proOrg"></span><span id="proAddress"></span></div>
51
								<span class="listtit"><span id="proName"></span><em class="mui-icon iconfont icon-vip authicon-cu" id="flSta"> </em></span>
53 52
								<div class="mui-ellipsis listtit3" id="proRlist"></div>
54
								<div class="mui-ellipsis listtit3" id="proZlist"></div>
53
								<!--<div class="listtit2"><span id="proTitle"></span><span id="proOffice"></span><span id="proOrg"></span><span id="proAddress"></span></div>
54
								
55
								<div class="mui-ellipsis listtit3" id="proZlist"></div>-->
55 56
							</div>
56 57
						</a>
57 58
					</li>

+ 1 - 1
app/html/proinforbrow.html

@ -62,7 +62,7 @@
62 62
							</div>
63 63
							<div class="listtit"><span class="personalMaterial"></span><em class="mui-icon iconfont" style="margin-top:5px;" id="nameli"></em></div>
64 64
							<p class="listtit3"><span class="personalMaterial"></span><span class="personalMaterial"></span></p>
65
							<p class="listtit3"><span class="personalMaterial"></span><span class="personalMaterial"></span> <span class="personalMaterial"></span></p>
65
							<p class="listtit3"><span class="personalMaterial"></span><span class="personalMaterial" id="department"></span> <span class="personalMaterial"></span></p>
66 66
						</a>
67 67
					</div>
68 68
				</div>

+ 1 - 1
app/html/researcherProw.html

@ -62,7 +62,7 @@
62 62
							</div>
63 63
							<div class="listtit"><span class="personalMaterial"></span><em class="mui-icon iconfont" style="margin-top:5px;" id="nameli"></em></div>
64 64
							<p class="listtit3"><span class="personalMaterial"></span><span class="personalMaterial"></span></p>
65
							<p class="listtit3"><span class="personalMaterial"></span><span class="personalMaterial"></span> <span class="personalMaterial"></span></p>
65
							<p class="listtit3"><span class="personalMaterial"></span><span class="personalMaterial" id="department"></span> <span class="personalMaterial"></span></p>
66 66
						</a>
67 67
					</div>
68 68
				</div>

+ 1 - 1
app/html/resinforbrow.html

@ -41,7 +41,7 @@
41 41
				</div>
42 42
				<div class="personblock mui-pull-left" id="fess">
43 43
					<img class="headimg headRadius" src="" id="proimg">
44
					<p class="listtit mui-clearfix" style="position:relative;left:20%;"><span class="mui-pull-left" id="proname"></span><em class="mui-icon iconfont" style="margin:5px 0 0 0" id="promodify"></em></p>
44
					<p class="listtit mui-clearfix"><span id="proname"></span><em class="mui-icon iconfont" style="margin-top:5px" id="promodify"></em></p>
45 45
					<p class="listtit2"><span id="protitle"></span><span id="prooffice"></span></p>
46 46
					<p class="listtit3"><span id="proorgName"></span></p>
47 47
					<p class="listtit3"><span id="proadress"></span></p>

+ 1 - 1
app/html/studentbrowse.html

@ -58,7 +58,7 @@
58 58
								</p>
59 59
							</div>			
60 60
				        	<div class="listtit"><span class="personalMaterial"></span><em class="mui-icon iconfont" style="margin-top:5px;" id="nameli"></em></div>			        
61
		                    <p class="listtit3"><span class="personalMaterial"></span><span class="personalMaterial"></span> <span class="personalMaterial"></span></p>
61
		                    <p class="listtit3"><span class="personalMaterial"></span><span class="personalMaterial" id="department"></span> <span class="personalMaterial"></span></p>
62 62
				        </a>
63 63
			        </div>
64 64
		        </div>

BIN
app/images/In-friends_bg_biaoti_nor.png


BIN
app/images/In-friends_button_yaoqing_nor.png


BIN
app/images/In-friends_img_banner_nor.png


BIN
app/images/default-icon.jpg


BIN
app/images/default-photo.jpg


BIN
app/images/porfile_icon_qiye_hig.png


BIN
app/images/porfile_icon_qiye_nor.png


BIN
app/images/porfile_icon_shimin_nor.png


BIN
app/images/porfile_icon_yuangong_hig.png


BIN
app/images/porfile_icon_yuangong_nor.png


BIN
app/images/porfile_icon_zhuanjia_nor.png


BIN
app/images/tab_icon_faxian_hig@3x.png


BIN
app/images/tab_icon_faxian_nor@3x.png


BIN
app/images/tab_icon_shouye_hig@3x.png


BIN
app/images/tab_icon_shouye_nor@3x.png


BIN
app/images/tab_icon_wo_hig@3x.png


BIN
app/images/tab_icon_wo_nor@3x.png


BIN
app/images/tab_icon_xiaoxi_hig@3x.png


BIN
app/images/tab_icon_xiaoxi_nor@3x.png


+ 9 - 5
app/index.html

@ -12,15 +12,19 @@
12 12
    <!--主页面底部菜单-->
13 13
    <nav class="mui-bar mui-bar-tab footbox">
14 14
	    <a class="mui-tab-item mui-active" href="html/index_home.html" dataid="1">
15
	        <span class="mui-icon iconfont icon-home"></span>
15
	        <span class="mui-icon iconfontnew icon-homenew"></span>
16 16
	        <span class="mui-tab-label">首页</span>
17 17
	    </a>
18
	    <a class="mui-tab-item" href="html/discover.html" dataid="4">
19
	        <span class="mui-icon iconfontnew icon-faxiannew"></span>
20
	         <span class="mui-tab-label">发现</span>
21
	    </a>
18 22
	    <a class="mui-tab-item" href="html/consult_home.html" dataid="2">
19
	        <span class="mui-icon iconfont icon-community"></span>
23
	        <span class="mui-icon iconfontnew icon-messagenew"></span>
20 24
	         <span class="mui-tab-label">咨询</span>
21 25
	    </a>
22 26
	    <a class="mui-tab-item" id="isLogin" href="html/myaccount.html" dataid="3">
23
	        <span class="mui-icon iconfont icon-people"></span>
27
	        <span class="mui-icon iconfontnew icon-wonew"></span>
24 28
	         <span class="mui-tab-label">我</span>
25 29
	    </a>
26 30
	</nav>
@ -28,7 +32,7 @@
28 32
	<script src="js/public/base.js"></script>
29 33
	
30 34
<script type="text/javascript" charset="utf-8">
31
	var subpages = ['html/index_home.html', 'html/consult_home.html', 'html/myaccount.html'];
35
	var subpages = ['html/index_home.html', 'html/discover.html', 'html/consult_home.html', 'html/myaccount.html'];
32 36
	var subpage_style = {
33 37
		top: '0px',
34 38
		bottom: '51px'
@ -37,7 +41,7 @@
37 41
	//创建子页面,首个选项卡页面显示,其它均隐藏;
38 42
	mui.plusReady(function() {
39 43
		var self = plus.webview.currentWebview();
40
		for(var i = 0; i < 3; i++) {
44
		for(var i = 0; i < 4; i++) {
41 45
			var temp = {};
42 46
			var sub = plus.webview.create(subpages[i], subpages[i], subpage_style);
43 47
			if(i > 0) {

+ 26 - 1
app/js/articalMessage.js

@ -45,9 +45,12 @@ mui.plusReady(function() {
45 45
						}
46 46
						string += '</span><span class="thistime timenow">' + time + '</span></div>'
47 47
						string += '<p class="listtit3">' + $info[i].content + '</p>'
48
						if(userid==$info[i].professor.id){
49
							string += '<p class="listtit3" style="text-align:right;"><span data-id="'+ $info[i].id+'">删除</span></p>'
50
						}
48 51
						string += '</div> </div>'
49 52
						li.innerHTML = string;
50
						document.getElementsByClassName(" protable")[0].appendChild(li);
53
						document.getElementsByClassName("protable")[0].appendChild(li);
51 54
					}
52 55
				}
53 56
			},
@ -103,4 +106,26 @@ mui.plusReady(function() {
103 106
			}
104 107
		});
105 108
	}
109
	/*删除留言*/
110
	mui(".protable").on('tap', '.listtit3 span', function() {
111
		var oId=this.getAttribute("data-id");
112
		var oRemo=this;
113
		mui.ajax(baseUrl + "/ajax/leaveWord/delete", {
114
			dataType: 'json', //数据格式类型
115
			type: 'POST', //http请求类型
116
			data: {
117
				"id": oId,
118
			},
119
			timeout: 10000, //超时设置
120
			success: function(data) {
121
				if(data.success) {
122
					document.getElementsByClassName(" protable")[0].removeChild(oRemo.parentNode.parentNode.parentNode.parentNode);
123
				}
124
			},
125
			error: function() {
126
				plus.nativeUI.toast("服务器链接超时", toastStyle);
127
				return;
128
			}
129
		});
130
	});
106 131
});

+ 186 - 0
app/js/cmpinfor-basic.js

@ -0,0 +1,186 @@
1
mui.ready(function() {
2
	mui.plusReady(function() {
3
		var dd=plus.webview.getWebviewById("cmpinfor-Unindex.html");
4
		var dd1=plus.webview.getWebviewById("cmpinfor-index.html");
5
		if(dd==null){
6
			var id = dd1.orgId;
7
			var oflag=dd1.flag;
8
		}
9
		if(dd1==null){
10
			var id = dd.orgId;
11
			var oflag=dd.flag;
12
		}
13
		if(oflag==0){
14
		document.getElementsByClassName("aa")[0].style.width="50%";
15
		document.getElementsByClassName("aa")[1].style.width="50%";
16
		document.getElementsByClassName("aa")[2].style.display="none";
17
		}
18
		
19
		/*按钮点击切换*/
20
		mui(".cmpClassNum").on("tap", "li", function() {
21
			var oStringText = this.innerText;
22
			var arr = new Array();
23
			arr[0] = plus.webview.getWebviewById("cmpinfor-basic.html");
24
			arr[1] = plus.webview.getWebviewById("cmpinfor-trend.html");
25
			arr[2] = plus.webview.getWebviewById("cmpinfor-staff.html");
26
			if(oStringText == "介绍") {
27
				return;
28
			} else if(oStringText == "动态") {
29
				arr[1].show();
30
			} else if(oStringText == "员工") {
31
				arr[2].show();
32
			}
33
		})
34

35
		function companyMessage() {
36
			mui.ajax(baseUrl + "/ajax/org/" + id, {
37
				dataType: 'json', //数据格式类型
38
				type: 'GET', //http请求类型
39
				timeout: 10000, //超时设置
40
				success: function(data) {
41
					if(data.success) {
42
						//console.log(JSON.stringify(data));
43
						plus.nativeUI.closeWaiting();
44
						if(oflag==0){
45
							plus.webview.getWebviewById("cmpinfor-Unindex.html").show("slide-in-right", 150);
46
						}else{
47
							plus.webview.getWebviewById("cmpinfor-index.html").show("slide-in-right", 150);
48
						}
49
						
50
							
51
						var $data = data.data;
52
						var orgType, orgSize;
53
						document.getElementById("companyName").innerText = $data.name;
54
						if($data.hasOrgLogo) {
55
							document.getElementById("oimg").src = baseUrl + "/images/org/" + $data.id + ".jpg";
56
						} else {
57
							document.getElementById("oimg").src = "../images/default-icon.jpg";
58
						}
59
						/*企业标识*/
60
						if($data.authStatus == 3) {
61
							document.getElementById("authFlag").classList.add("authicon-com-ok");
62
						}
63
						/*企业类型*/
64
						if($data.orgType) {
65
							switch($data.orgType) {
66
								case '2':
67
									orgType = "国有企业";
68
									break;
69
								case '3':
70
									orgType = "上市企业";
71
									break;
72
								case '4':
73
									orgType = "合资企业";
74
									break;
75
								case '5':
76
									orgType = "私人企业";
77
									break;
78
								case '6':
79
									orgType = "外资企业";
80
									break;
81
								default:
82
									orgType = "初创企业";
83
									break;
84
							}
85
							document.getElementById("orgType").innerText = orgType;
86
							document.getElementById("comType").innerText = orgType;
87
						} else {
88
							document.getElementById("comType").parentNode.removeChild(document.getElementById("comType"));
89
						}
90
						/*所在城市*/
91
						if($data.city) {
92
							document.getElementById("ocity").innerText = $data.city;
93
							document.getElementById("city").innerText = $data.city;
94
						} else {
95
							document.getElementById("ocity").parentNode.removeChild(document.getElementById("ocity"));
96
							document.getElementById("city").parentNode.style.display = "none";
97
						}
98
						/*时间*/
99
						if($data.foundTime) {
100
							var oTime = timeGeshi($data.foundTime);
101
							document.getElementById("createTime").innerText = oTime;
102
						} else {
103
							document.getElementById("createTime").parentNode.style.display = "none";
104
						}
105
						/*企业规模*/
106
						if($data.orgSize) {
107
							switch($data.orgSize) {
108
								case '1':
109
									orgSize = "50人以内";
110
									break;
111
								case '2':
112
									orgSize = "50-100人";
113
									break;
114
								case '3':
115
									orgSize = "100-200人";
116
									break;
117
								case '4':
118
									orgSize = "200-500人";
119
									break;
120
								case '5':
121
									orgSize = "500-1000人";
122
									break;
123
								default:
124
									orgSize = "1000人以上";
125
									break;
126
							}
127
							document.getElementById("orgSize").innerText = orgSize;
128
						} else {
129
							document.getElementById("orgSize").parentNode.style.display = "none";
130
						}
131
						/*企业官网*/
132
						if($data.orgUrl) {
133
							document.getElementById("shotAddress").innerText = $data.orgUrl;
134
						} else {
135
							document.getElementById("shotAddress").parentNode.style.display = "none";
136
						}
137
						/*企业简介*/
138
						if($data.descp) {
139
							document.getElementById("breifinfo").innerText = $data.descp;
140
						} else {
141
							document.getElementById("breifinfolist").style.display = 'none';
142
						}
143
						/*应用行业*/
144
						if($data.industry) {
145
							indu($data.industry, 'industryShow')
146
						} else {
147
							document.getElementById("industry").style.display = "none";
148
						}
149
						/*专注领域*/
150
						if($data.subject) {
151
							indu($data.subject, 'subjectShow')
152
						} else {
153
							document.getElementById("subject").style.display = "none";
154
						}
155
						/*企业资质*/
156
						if($data.qualification) {
157
							indu($data.qualification, 'qiye')
158
						} else {
159
							document.getElementById("qiyelist").style.display = "none";
160
						}
161
					}
162
				},
163
				error: function() {
164
					plus.nativeUI.toast("服务器链接超时", toastStyle);
165
					return;
166
				}
167
			});
168
		}
169
		/*时间格式转换*/
170
		function timeGeshi(otm) {
171
			var otme = otm.substring(0, 4) + "年" + otm.substring(4, 6) + "月" + otm.substring(6, 8) + "日";
172
			return otme;
173
		}
174
		/*应用行业及领域及企业纸质*/
175
		function indu(oString, oSelector) {
176
			var arr = oString.split(",");
177
			var oArr = new Array();
178
			var i;
179
			for(i in arr) {
180
				oArr.push('<li>' + arr[i] + '</li>');
181
			}
182
			document.getElementById(oSelector).innerHTML = oArr.join("");
183
		}
184
		companyMessage();
185
	});
186
})

+ 226 - 0
app/js/cmpinfor-staff.js

@ -0,0 +1,226 @@
1
var num=1;
2
mui.init({
3
	pullRefresh: {
4
		container: '#pullrefresh',
5
		up: {
6
			contentrefresh: '正在加载...',
7
			callback: pullupRefresh
8
		}
9
	}
10
});
11

12
function pullupRefresh() {
13
	num++;
14
	setTimeout(function() {
15
		UnauthorizedUser(20,num);
16
	}, 1000);
17
	
18
}
19
mui.ready(function() {
20
		mui.plusReady(function() {
21
			var dd1=plus.webview.getWebviewById("cmpinfor-index.html");
22
			var id = dd1.orgId;			
23
			/*企业基本信息*/
24
			function companyMessage() {
25
				mui.ajax(baseUrl + "/ajax/org/" + id, {
26
					dataType: 'json', //数据格式类型
27
					type: 'GET', //http请求类型
28
					timeout: 10000, //超时设置
29
					success: function(data) {
30
						if(data.success) {
31
							//console.log(JSON.stringify(data));
32
							var $data = data.data;
33
							var orgType;
34
							document.getElementById("companyName").innerText = $data.name;
35
							if($data.hasOrgLogo) {
36
								document.getElementById("oimg").src = baseUrl + "/images/org/" + $data.id + ".jpg";
37
							} else {
38
								document.getElementById("oimg").src = "../images/default-icon.jpg";
39
							}
40
							/*企业标识*/
41
							if($data.authStatus == 3) {
42
								document.getElementById("authFlag").classList.add("authicon-com-ok");
43
							}
44
							/*企业类型*/
45
							if($data.orgType) {
46
								switch($data.orgType) {
47
									case '2':
48
										orgType = "国有企业";
49
										break;
50
									case '3':
51
										orgType = "上市企业";
52
										break;
53
									case '4':
54
										orgType = "合资企业";
55
										break;
56
									case '5':
57
										orgType = "私人企业";
58
										break;
59
									case '6':
60
										orgType = "外资企业";
61
										break;
62
									default:
63
										orgType = "初创企业";
64
										break;
65
								}
66
								document.getElementById("orgType").innerText = orgType;
67
							}
68
							/*所在城市*/
69
							if($data.city) {
70
								document.getElementById("ocity").innerText = $data.city;
71
							} else {
72
								document.getElementById("ocity").parentNode.removeChild(document.getElementById("ocity"));
73
							}
74

75
						}
76
					},
77
					error: function() {
78
						plus.nativeUI.toast("服务器链接超时", toastStyle);
79
						return;
80
					}
81
				});
82
			}
83
			/*按钮点击切换*/
84
			mui(".cmpClassNum").on("tap", "li", function() {
85
				var oStringText = this.innerText;
86
				var arr = new Array();
87
				arr[0] = plus.webview.getWebviewById("cmpinfor-basic.html");
88
				arr[1] = plus.webview.getWebviewById("cmpinfor-trend.html");
89
				arr[2] = plus.webview.getWebviewById("cmpinfor-staff.html");
90
				if(oStringText == "介绍") {
91
					arr[0].show();
92
				} else if(oStringText == "动态") {
93
					arr[1].show();
94
				} else if(oStringText == "员工") {
95
					return;
96
				}
97
			})
98
			companyMessage();
99
			UnauthorizedUser(20,1);
100
		})
101
	})
102
	/*获取企业认证的用户*/
103
function UnauthorizedUser(pageSize,pageNum) {
104
	mui.plusReady(function() {
105
		var dd1=plus.webview.getWebviewById("cmpinfor-index.html");			
106
		var id = dd1.orgId;				
107
		mui.ajax(baseUrl + "/ajax/professor/pqOrgAuth", {
108
			type: "GET",
109
			timeout: 10000,
110
			dataType: "json",
111
			data: {
112
				"orgId": id,
113
				"orgAuth": 1,
114
				"pageSize": pageSize,
115
				"pageNo": pageNum
116
			},
117
			success: function(data, textState) {
118
				if(data.success) {
119
					if(num*pageSize<=data.data.total){						
120
						mui('#pullrefresh').pullRefresh().endPullupToRefresh(false);
121
					}else{
122
						if(num==1){
123
							mui('#pullrefresh').pullRefresh().disablePullupToRefresh();
124
						}else{
125
							mui('#pullrefresh').pullRefresh().endPullupToRefresh(true);
126
							return;
127
						}
128
					}
129
					var $data = data.data.data;
130
					dUserHtml($data);
131
				}
132
			},
133
			error: function(XMLHttpRequest, textStats, errorThrown) {
134
				plus.nativeUI.toast("服务器链接超时", toastStyle);
135
				mui('#pullrefresh').pullRefresh().endPullupToRefresh(true);
136
				return;
137
			}
138
		})
139
	})
140
}
141
function dUserHtml(obj) {
142
	for(var i = 0; i < obj.length; i++) {
143
		var img;
144
		var oSty = autho(obj[i].authType, obj[i].orgAuth, obj[i].authStatus);
145
		(obj[i].hasHeadImage == 1) ? img = baseUrl + "/images/head/" + obj[i].id + "_l.jpg": img = "../images/default-photo.jpg";
146
		var li = document.createElement("li");
147
		li.className = "mui-table-view-cell mui-media flexCenter"
148
		if(obj[i].authType==1){
149
			li.setAttribute("professorId",obj[i].id);
150
		}
151
		var oString = '<p class="flexImg"><img class="mui-media-object headimg headRadius" src="' + img + '"></p>'
152
		oString += '<div class="mui-media-body flexTit">'
153
		oString += '<p class="listtit positionR"><span>' + obj[i].name + '</span><em class="authicon ' + oSty.sty + '"></em></p>'
154
		oString += '<p class="listtit2">' + personalInformation(obj[i]) + '</p>'
155
		if(obj[i].authType) {
156
			oString += '<p class="listtit3 mui-ellipsis">' + research(obj[i].researchAreas) + '</p>'
157
		}
158
		oString += '</div>'
159
		li.innerHTML = oString;
160
		document.getElementById("stflist").appendChild(li);
161
	}
162

163
}
164
/*标志*/
165
function autho() {
166
	if(arguments[0] == 1) {
167
		return {
168
			"sty": "authicon-pro",
169
			"title": "科袖认证专家"
170
		}
171
	} else {
172
		if(arguments[1] == 1) {
173
			return {
174
				"sty": "authicon-staff-ok",
175
				"title": "企业认证员工"
176
			}
177
		} else {
178
			if(arguments[2] == 3) {
179
				return {
180
					"sty": "authicon-real",
181
					"title": "实名认证用户"
182
				}
183
			}
184
		}
185
	}
186
}
187
/*职位职称所在机构,部门,地址等等*/
188
function personalInformation($person) {
189
	var arr1 = [$person.title, $person.office, $person.department, $person.orgName, $person.address];
190
	var arr = new Array();
191
	var arr2 = new Array();
192
	var n = 0;
193
	for(var i = 0; i < arr1.length; i++) {
194
		if(arr1[i]) {
195
			arr.push(arr1[i]);
196
			if(arr1[i] == arr1[arr1.length - 1]) {
197
				n = 1;
198
			}
199
		}
200
	}
201
	if(n == 1) {
202
		for(var i = 0; i < arr.length - 1; i++) {
203
			arr2.push(arr[i]);
204
		}
205
		return arr2.join() + " | " + arr[arr.length - 1];
206
	} else {
207
		return arr.join();
208
	}
209

210
}
211

212
function research(ob) {
213
	var oArry = new Array();
214
	for(var i = 0; i < ob.length; i++) {
215
		oArry.push(ob[i].caption);
216
	}
217
	return oArry.join("、");
218
}
219
/*专家跳转页面*/
220
mui("#stflist").on("tap","li[professorId]",function(){
221
	var proId=this.getAttribute("professorId");
222
		plus.nativeUI.showWaiting(); //显示原生等待框
223
		plus.webview.create("../html/proinforbrow.html", 'proinforbrow.html', {}, {
224
			proid: proId
225
		});
226
})

+ 236 - 0
app/js/cmpinfor-trend.js

@ -0,0 +1,236 @@
1
var createTime = "";
2
var n = 1;
3
var comName, comImg, comAuth;
4
mui.init({
5
	pullRefresh: {
6
		container: '#pullrefresh',
7
		up: {
8
			contentrefresh: '正在加载...',
9
			callback: pullupRefresh
10
		}
11
	}
12
});
13

14
function pullupRefresh() {
15
	n++;
16
	setTimeout(function() {
17
		companyArticle(createTime)
18
	}, 1000);
19
}
20
mui.ready(function() {
21
		mui.plusReady(function() {
22
		var dd=plus.webview.getWebviewById("cmpinfor-Unindex.html");
23
		var dd1=plus.webview.getWebviewById("cmpinfor-index.html");
24
		if(dd==null){
25
			var id = dd1.orgId;
26
			var oflag=dd1.flag;
27
		}
28
		if(dd1==null){
29
			var id = dd.orgId;
30
			var oflag=dd.flag;
31
		}
32
		if(oflag==0){
33
		document.getElementsByClassName("aa")[0].style.width="50%";
34
		document.getElementsByClassName("aa")[1].style.width="50%";
35
		document.getElementsByClassName("aa")[2].style.display="none";
36
		}
37
			/*按钮点击切换*/
38
			mui(".cmpClassNum").on("tap", "li", function() {
39
				var oStringText = this.innerText;
40
				var arr = new Array();
41
				arr[0] = plus.webview.getWebviewById("cmpinfor-basic.html");
42
				arr[1] = plus.webview.getWebviewById("cmpinfor-trend.html");
43
				arr[2] = plus.webview.getWebviewById("cmpinfor-staff.html");
44
				if(oStringText == "介绍") {
45
					arr[0].show();
46
				} else if(oStringText == "动态") {
47
					return;
48
				} else if(oStringText == "员工") {
49
					arr[2].show();
50
				}
51
			})
52

53
			function companyMessage() {
54
				mui.ajax(baseUrl + "/ajax/org/" + id, {
55
					dataType: 'json', //数据格式类型
56
					type: 'GET', //http请求类型
57
					timeout: 10000, //超时设置
58
					success: function(data) {
59
						if(data.success) {
60
							var $data = data.data;
61
							var orgType;
62
							document.getElementById("companyName").innerText = $data.name;
63
							if($data.forShort){
64
								comName = $data.forShort;
65
							}else{
66
								comName = $data.name;
67
							}
68
							
69
							if($data.hasOrgLogo) {
70
								document.getElementById("oimg").src = baseUrl + "/images/org/" + $data.id + ".jpg";
71
								comImg = baseUrl + "/images/org/" + $data.id + ".jpg";
72
							} else {
73
								document.getElementById("oimg").src = "../images/default-icon.jpg";
74
								comImg = "../images/default-icon.jpg";
75
							}
76
							/*企业标识*/
77
							if($data.authStatus == 3) {
78
								document.getElementById("authFlag").classList.add("authicon-com-ok");
79
								comAuth = 'authicon-com-ok';
80
							} else {
81
								//document.getElementById("authFlag").classList.add("authicon-com-no");
82
								comAuth = "";
83
							}
84
							/*企业类型*/
85
							if($data.orgType) {
86
								switch($data.orgType) {
87
									case '2':
88
										orgType = "国有企业";
89
										break;
90
									case '3':
91
										orgType = "上市企业";
92
										break;
93
									case '4':
94
										orgType = "合资企业";
95
										break;
96
									case '5':
97
										orgType = "私人企业";
98
										break;
99
									case '6':
100
										orgType = "外资企业";
101
										break;
102
									default:
103
										orgType = "初创企业";
104
										break;
105
								}
106
								document.getElementById("orgType").innerText = orgType;
107
							}
108
							/*所在城市*/
109
							if($data.city) {
110
								document.getElementById("ocity").innerText = $data.city;
111
							} else {
112
								document.getElementById("ocity").parentNode.removeChild(document.getElementById("ocity"));
113
							}
114

115
						}
116
					},
117
					error: function() {
118
						plus.nativeUI.toast("服务器链接超时", toastStyle);
119
						return;
120
					}
121
				});
122
			}
123
			companyMessage();
124
			companyArticle();
125
		});
126
	})
127
	/*获取企业文章*/
128
function companyArticle(oj) {
129
	mui.plusReady(function() {
130
		var dd=plus.webview.getWebviewById("cmpinfor-Unindex.html");
131
		var dd1=plus.webview.getWebviewById("cmpinfor-index.html");
132
		if(dd==null){
133
			var id = dd1.orgId;
134
			var oflag=dd1.flag;
135
		}
136
		if(dd1==null){
137
			var id = dd.orgId;
138
			var oflag=dd.flag;
139
		}
140
		var obj = new Object();
141
		obj.orgId = id;
142
		obj.rows = 20;
143
		if(oj) {
144
			obj.modifyTime = createTime;
145
		}
146
		mui.ajax(baseUrl + "/ajax/article/qlOrg", {
147
			type: "GET",
148
			timeout: 10000,
149
			dataType: "json",
150
			data: obj,
151
			success: function(data, textState) {
152
				if(data.success) {
153
					var $data = data.data;
154
					//console.log(JSON.stringify(data));
155
					if(n == 1) {
156
						if($data.length < 20 && $data.length > 0) {
157
							mui('#pullrefresh').pullRefresh().disablePullupToRefresh();
158
						} else if($data.length == 0) {
159
							mui('#pullrefresh').pullRefresh().disablePullupToRefresh();
160
							return;
161
						}
162
					} else {
163
						if(data.data.length == 20) {
164
							mui('#pullrefresh').pullRefresh().endPullupToRefresh(false); /*能上拉*/
165
						} else if($data.length < 20 && $data.length > 0) {
166
							mui('#pullrefresh').pullRefresh().endPullupToRefresh(true); /*不能上拉*/
167
						} else if($data.length == 0) {
168
							mui('#pullrefresh').pullRefresh().endPullupToRefresh(true); /*不能上拉*/
169
							return;
170
						}
171
					}
172
					createTime = data.data[data.data.length - 1].createTime;
173
					dUserHtml($data, comName, comImg, comAuth);
174
				}
175
			},
176
			error: function(XMLHttpRequest, textStats, errorThrown) {
177
				plus.nativeUI.toast("服务器链接超时", toastStyle);
178
				mui('#pullrefresh').pullRefresh().endPullupToRefresh(true);
179
				return;
180
			}
181
		})
182
	})
183
}
184
/*企业文章html*/
185
function dUserHtml(obj) {
186
	for(var i = 0; i < obj.length; i++) {
187
		var li = document.createElement("li");
188
		li.className = "mui-table-view-cell"
189
		var oString = '<div class="table-item-media mui-clearfix">'
190
		oString += '<div class="table-item-logo cmplogo" style="background-image:url(' + arguments[2] + ')"></div>'
191
		oString += '<div class="table-item-name mui-clearfix positionR"><span>' + arguments[1] + '</span><em class="authicon ' + arguments[3] + '"></em></div>'
192
		oString += '</div>'
193
		oString += '<div class="flexCenter table-item-cell articl" articleId="'+obj[i].articleId+'">'
194
		if(obj[i].articleImg) {
195
			oString += '<div class="table-item-img artical-default" style="background-image:url(' + baseUrl + '/data/article/' + obj[i].articleImg + ')"></div>'
196
		} else {
197
			oString += '<div class="table-item-img artical-default"></div>'
198
		}
199
		oString += '<div class="table-item-body">'
200
		oString += '<p class="listtit mui-ellipsis-2">' + obj[i].articleTitle + '</p>'
201
		oString += '</div>'
202
		oString += '</div>'
203
		oString += '<div>'
204
		oString += '<em class="cmpLable articalLabel">文章</em>'
205
		oString += '<span class="timeLabel">' + timeGeshi(obj[i].createTime) + '</span>'
206
		oString += "</div>"
207
		li.innerHTML = oString;
208
		document.getElementById("trend").appendChild(li);
209
	}
210

211
}
212
/*时间格式转换*/
213
function timeGeshi(otm) {
214
	var otme = otm.substring(0, 4) + "年" + otm.substring(4, 6) + "月" + otm.substring(6, 8) + "日";
215
	return otme;
216
}
217
/*进入文章详细页面*/
218
	mui("#trend").on('tap', '.articl', function() {
219
		var dd=plus.webview.getWebviewById("cmpinfor-Unindex.html");
220
		var dd1=plus.webview.getWebviewById("cmpinfor-index.html");
221
		if(dd==null){
222
			var id = dd1.orgId;
223
			var oflag=dd1.flag;
224
		}
225
		if(dd1==null){
226
			var id = dd.orgId;
227
			var oflag=dd.flag;
228
		}
229
		var artId = this.getAttribute("articleId");
230
		plus.nativeUI.showWaiting();
231
		plus.webview.create("../html/professorArticle.html", 'professorArticle.html', {}, {
232
			articleId: artId,
233
			ownerid:id,
234
			oFlag:1
235
		});
236
	});

+ 20 - 1
app/js/companybrowse.js

@ -3,7 +3,7 @@ var yesExpert = document.getElementById("yesExpert");
3 3
var noExpert = document.getElementById("noExpert");
4 4
var personalMaterial = document.getElementsByClassName('personalMaterial');
5 5
var personSummary = document.getElementsByClassName("breifinfo")[0];
6

6
var orgAuth,orgId;
7 7
mui.plusReady(function() {
8 8
	var userid = plus.storage.getItem('userid');
9 9
	var self = plus.webview.currentWebview();
@ -70,6 +70,8 @@ mui.plusReady(function() {
70 70
				console.log(JSON.stringify(data))
71 71
				plus.nativeUI.closeWaiting();
72 72
				plus.webview.currentWebview().show("slide-in-right", 150);
73
				orgAuth=data.data.orgAuth;
74
				orgId=data.data.orgId;
73 75
				var $data = data.data;
74 76
				personalMaterial[0].innerText = $data.name;
75 77
				document.getElementById("professorName").innerText = $data.name;
@ -285,6 +287,23 @@ mui.plusReady(function() {
285 287
		});
286 288

287 289
	}
290
	/*进入机构浏览页面*/
291
	document.getElementById("department").addEventListener("tap",function(){
292
		if(orgAuth==1){
293
			mui.openWindow({
294
				url: '../html/cmpinfor-index.html',
295
				id: 'cmpinfor-index.html',
296
				show: {
297
					autoShow: false,
298
					aniShow: "slide-in-right",
299
				},
300
				extras: {
301
					orgId: orgId,
302
				}
303
			});
304
		}
305
		
306
	})
288 307
	//	/*专家的历史和评价*/
289 308
	//	document.getElementById("accessHistory").addEventListener('tap', function() {
290 309
	//		mui.openWindow({

+ 1 - 1
app/js/consult.js

@ -599,7 +599,7 @@ function eachData(userid, datalist) {
599 599
				'<span class="mui-badge mui-badge-danger readstate ' + unreadStyle + '" consultId="' + item["consultId"] + '">' + unreadCount + '</span>' +
600 600
				'<img class="mui-media-object mui-pull-left headimg headRadius" src="' + photoUrl + '">' +
601 601
				'<div class="mui-media-body">' +
602
				'<span class="listtit">' + item["professor"]["name"] + '<em id="nameli" class="mui-icon iconfont ' + proModify + '">' + modifyaddEle + '</em><span class="thistime">' + lastReplyTime + '</span></span>';
602
				'<p class="listtit">' + item["professor"]["name"] + '<em id="nameli" style="top:3px" class="mui-icon iconfont ' + proModify + '">' + modifyaddEle + '</em><span class="thistime">' + lastReplyTime + '</span></p>';
603 603
			str += '<p class="listtit2">';
604 604
			if(item["professor"]["title"]) {
605 605
				str += '<span>' + item["professor"]["title"] + '</span>, ';

+ 1 - 0
app/js/consultapply.js

@ -118,6 +118,7 @@
118 118
					if(myData.authType) {
119 119
						nameli.classList.add('icon-vip');
120 120
						nameli.classList.add('authicon-cu');
121
						nameli.style.top = "4px";
121 122
					} else {
122 123
						if(myData.authStatus==3) {
123 124
							if(myData.authentication == 1) {

+ 1 - 1
app/js/consultlist.js

@ -227,7 +227,7 @@ mui.ready(function() {
227 227
				htmlStr += '<span class="mui-badge mui-badge-danger" style="'+unreadStyle+'">'+unreadCount+'</span>';
228 228
		        htmlStr += '<img class="mui-media-object mui-pull-left headimg headRadius" src="'+photoUrl+'">';
229 229
	            htmlStr += '<div class="mui-media-body">';
230
	            htmlStr += '<span class="listtit">'+data[i]["professor"]["name"]+'<em class="mui-icon iconfont icon-vip '+proModify+'"></em><span class="thistime">'+lastReplyTime+'</span></span>';	
230
	            htmlStr += '<p class="listtit">'+data[i]["professor"]["name"]+'<em class="mui-icon iconfont icon-vip '+proModify+'"></em><span class="thistime">'+lastReplyTime+'</span></p>';
231 231
	            htmlStr += '<p class="listtit2"><span>'+zhicehng+'</span><span>'+zhiwei+'</span><span>'+data[i]["professor"]["orgName"]+'</span><span>'+address+'</span></p>';
232 232
	            htmlStr += '<p class="listtit3">'+lastReplyCon+'</p>';
233 233
	            htmlStr += '</div></a></li>';

+ 324 - 0
app/js/discover.js

@ -0,0 +1,324 @@
1
//发现模块
2
var pageIndex = 1; // 页数
3
var allPages = 1; // 总页数
4
var discoverBox = document.body.querySelector('#discoverBox');
5

6
/*点击列表*/
7
mui('#discoverBox').on('tap', '.newsurl', function() {
8
	var id = $(this).attr("data-id");
9
	var datatype = $(this).attr("data-type");
10
	var ownerid = $(this).attr("owner-id");
11
	if(datatype == 1) {
12
		mui.openWindow({
13
			url: '../html/professorArticle.html',
14
			id: 'html/professorArticle.html',
15
			show: {
16
				autoShow: false,
17
				aniShow: "slide-in-right",
18
			},
19
			extras: {
20
				articleId: id,
21
				ownerid: ownerid,
22
			}
23
		});
24
	}else if(datatype == 2){
25
		mui.openWindow({
26
			url: '../html/professorArticle.html',
27
			id: 'html/professorArticle.html',
28
			show: {
29
				autoShow: false,
30
				aniShow: "slide-in-right",
31
			},
32
			extras: {
33
				articleId: id,
34
				ownerid: ownerid,
35
				oFlag:1
36
			}
37
		});
38
	} else if(datatype == 3) {
39
		mui.openWindow({
40
			url: '../html/resinforbrow.html',
41
			id: 'html/resinforbrow.html',
42
			show: {
43
				autoShow: false,
44
				aniShow: "slide-in-right",
45
			},
46
			extras: {
47
				resourceId: id,
48
			}
49
		});
50
	}
51
});
52

53
/*点击头像*/
54
mui('#discoverBox').on('tap', '.gouserurl', function() {
55
	var id = $(this).parents(".mui-table-view-cell").find(".userurl").attr("data-id");
56
	var datatype = $(this).parents(".mui-table-view-cell").find(".newsurl").attr("data-type");
57
	var iftauth = $(this).parents(".mui-table-view-cell").find(".userurl").attr("data-iftauth");
58
	//alert(datatype)
59
	if(datatype == 1 || datatype == 3) {
60
		mui.openWindow({
61
			url: '../html/proinforbrow.html',
62
			id: 'html/proinforbrow.html',
63
			show: {
64
				autoShow: false,
65
				aniShow: "slide-in-right",
66
			},
67
			extras: {
68
				proid: id,
69
			}
70
		});
71
	} else if(datatype == 2) {
72
		if(iftauth == 3) {
73
			mui.openWindow({
74
				url: '../html/cmpinfor-index.html',
75
				id: 'cmpinfor-index.html',
76
				show: {
77
					autoShow: false,
78
					aniShow: "slide-in-right",
79
				},
80
				extras: {
81
					orgId: id,
82
				}
83
			});
84
		} else {
85
			mui.openWindow({
86
				url: '../html/cmpinfor-Unindex.html',
87
				id: 'cmpinfor-Unindex.html',
88
				show: {
89
					autoShow: false,
90
					aniShow: "slide-in-right",
91
				},
92
				extras: {
93
					orgId: id,
94
					flag: 0
95
				}
96
			});
97
		}
98
	}
99
});
100

101
/*页面数据初始化*/
102
getOnePase();
103

104
mui.init({
105
	pullRefresh: {
106
		container: '#pullrefresh2',
107
		up: {
108
			contentrefresh: '正在加载...',
109
			//auto:true,
110
			//height:100, 
111
			callback: pullupRefresh
112
		}
113
	}
114
});
115

116
function pullupRefresh() {
117
	pageIndex = ++pageIndex;
118
	setTimeout(function() {
119
		getaData()
120
	}, 1000);
121
}
122
/*时间转换*/
123
function Time(dealtime) {
124
	var s = dealtime;
125
	var m = s.substr(4, 2);
126
	var d = s.substr(6, 2);
127
	var formatTime = m.replace(/\b(0+)/gi, "") + "月" + d + "日";
128
	return formatTime;
129
}
130

131
/*获取上拉加载更多数据*/
132
function getaData() {
133
	mui.plusReady(function() {
134
		mui.ajax(baseUrl + '/ajax/article/pqFind', {
135
			data: {
136
				"pageNo": pageIndex,
137
				"pageSize": 20,
138
			},
139
			dataType: 'json', //数据格式类型
140
			type: 'GET', //http请求类型
141
			timeout: 10000,
142
			async: true,
143
			success: function(data) {
144
				if(data.success) {
145
					//console.log("成功");
146
					var dice1 = data.data.total; //总条数
147
					var dice2 = data.data.pageSize; //每页条数
148
					var result = '';
149
					if(pageIndex == 1) { //下拉刷新需要先清空数据
150
						table.innerHTML = ''; // 在这里清空可以防止刷新时白屏
151
					}
152
					allPages = dice1 / dice2;
153
					var datalist = data.data.data;
154
					datalistEach(datalist);
155
					if(pageIndex < allPages) {
156
						mui('#pullrefresh2').pullRefresh().endPullupToRefresh(false); /*能上拉*/
157
					} else {
158
						mui('#pullrefresh2').pullRefresh().endPullupToRefresh(true); /*不能上拉*/
159
					}
160
				}
161
			},
162
			error: function() {
163
				plus.nativeUI.toast("服务器链接超时", toastStyle);
164
				mui('#pullrefresh2').pullRefresh().endPullupToRefresh(true);
165
			}
166
		});
167
	});
168
}
169

170
/*获取第一页数据*/
171
function getOnePase() {
172
	mui.plusReady(function() {
173
		mui.ajax(baseUrl + '/ajax/article/pqFind', {
174
			data: {
175
				"pageNo": 1,
176
				"pageSize": 20,
177
			},
178
			dataType: 'json', //数据格式类型
179
			type: 'GET', //http请求类型
180
			timeout: 10000,
181
			async: true,
182
			success: function(data) {
183
				console.log(data)
184
				discoverBox.innerHTML = "";
185
				if(data.success && data.data) {
186
					plus.nativeUI.closeWaiting();
187
					var datalist = data.data.data;
188
					datalistEach(datalist);
189
				}
190
			},
191
			error: function() {
192
				plus.nativeUI.toast("服务器链接超时", toastStyle);
193
			}
194
		});
195
	});
196
}
197

198
/*数据遍历*/
199
function datalistEach(datalist) {
200
	mui.each(datalist, function(index, item) {
201
		var itemlist = '';
202
		var itemlist = '<li class="mui-table-view-cell">';
203
		itemlist += '<div class="table-item-media mui-clearfix userurl" >';
204
		itemlist += '<div class="table-item-logo gouserurl" id="userimg"></div>';
205
		itemlist += '<div class="table-item-name mui-clearfix positionR"><span id="nameSpan" class="gouserurl"></span><em class="authicon"></em></div>';
206
		itemlist += '</div><div class="flexCenter table-item-cell newsurl">';
207
		itemlist += '<div class="table-item-img artical-default" id="newsimg"></div>';
208
		itemlist += '<div class="table-item-body"><p class="listtit mui-ellipsis-2" id="centent"></p></div>';
209
		itemlist += '</div><div><em class="cmpLable" id="newstype"></em>';
210
		itemlist += '<span class="timeLabel" id="time"></span></div></li>';
211
		$itemlist = $(itemlist);
212
		$("#discoverBox").append($itemlist);
213
		var type = item.type;
214
		$itemlist.find("#centent").text(item.name);
215
		$itemlist.find("#time").text(Time(item.createTime));
216
		$itemlist.find(".newsurl").attr("data-id", item.id);
217
		$itemlist.find(".newsurl").attr("data-type", item.type);
218
		$itemlist.find(".newsurl").attr("owner-id", item.owner);
219
		if(item.image) {
220
			$itemlist.find("#newsimg").attr("style", "background-image: url(" + baseUrl + "/data/article/" + item.image + ");");
221
		}
222
		if(type == 1) { //专家文章
223
			$itemlist.find("#newstype").text("文章");
224
			$itemlist.find("#newstype").addClass("articalLabel");
225
			$itemlist.find("#newsimg").addClass("artical-default");
226
			$itemlist.find("#userimg").addClass("userhead");
227
			userFun(item.owner, $itemlist);
228
		} else if(type == 2) { //企业文章
229
			$itemlist.find("#newstype").text("文章");
230
			$itemlist.find("#newstype").addClass("articalLabel");
231
			$itemlist.find("#newsimg").addClass("artical-default");
232
			$itemlist.find("#userimg").addClass("cmplogo");
233
			cmpFun(item.owner, $itemlist)
234
		} else if(type == 3) { //专家资源
235
			$itemlist.find("#newstype").text("资源");
236
			$itemlist.find("#newstype").addClass("resourceLabel");
237
			$itemlist.find("#newsimg").addClass("resource-default");
238
			$itemlist.find("#userimg").addClass("userhead");
239
			userFun(item.owner, $itemlist);
240
		}
241

242
	});
243

244
}
245

246
/*用户信息*/
247
function userFun(id, $itemlist) {
248
	mui.ajax(baseUrl + '/ajax/professor/baseInfo/' + id, {
249
		"type": "get",
250
		"async": true,
251
		"success": function(data) {
252
			console.log(data);
253
			if(data.success && data.data) {
254
				$itemlist.find("#nameSpan").text(data.data.name);
255
				if(data.data.hasHeadImage == 1) {
256
					$itemlist.find("#userimg").attr("style", "background-image: url(" + baseUrl + "/images/head/" + data.data.id + "_m.jpg);");
257
				}
258
				$itemlist.find(".userurl").attr("data-id", data.data.id);
259
				var userType = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
260
				$itemlist.find(".authicon").attr("title", userType.title);
261
				$itemlist.find(".authicon").addClass(userType.sty);
262

263
			}
264
		},
265
		"error": function() {
266
			plus.nativeUI.toast("服务器链接超时", toastStyle);
267
		}
268
	});
269
}
270

271
/*企业用户信息*/
272
function cmpFun(id, $itemlist) {
273
	mui.ajax(baseUrl + '/ajax/org/' + id, {
274
		"type": "get",
275
		"async": true,
276
		"success": function(data) {
277
			console.log(data);
278
			if(data.success && data.data) {
279
				if(data.data.forShort) {
280
					$itemlist.find("#nameSpan").text(data.data.forShort);
281
				} else {
282
					$itemlist.find("#nameSpan").text(data.data.name);
283
				}
284
				if(data.data.hasOrgLogo) {
285
					$itemlist.find("#userimg").attr("style", "background-image: url(" + baseUrl + "/images/org/" + data.data.id + ".jpg);");
286
				}
287
				$itemlist.find(".userurl").attr("data-id", data.data.id);
288
				$itemlist.find(".userurl").attr("data-iftauth", data.data.authStatus);
289
				if(data.data.authStatus==3){
290
					$itemlist.find(".authicon").addClass("authicon-com-ok").attr("title", "认证企业");;	
291
				}/*else{
292
					$itemlist.find(".authicon").addClass("authicon-com-no").attr("title", "未认证企业");;
293
				}*/
294
			}
295
		},
296
		"error": function() {
297
			plus.nativeUI.toast("服务器链接超时", toastStyle);
298
		}
299
	});
300
}
301

302
/*标志*/
303
function autho() {
304
	if(arguments[0] == 1) {
305
		return {
306
			"sty": "authicon-pro",
307
			"title": "科袖认证专家"
308
		}
309
	} else {
310
		if(arguments[1] == 1) {
311
			return {
312
				"sty": "authicon-staff-ok",
313
				"title": "企业认证员工"
314
			}
315
		} else {
316
			if(arguments[2] == 3) {
317
				return {
318
					"sty": "authicon-real",
319
					"title": "实名认证用户"
320
				}
321
			}
322
		}
323
	}
324
}

+ 33 - 17
app/js/index.js

@ -27,31 +27,47 @@ document.getElementById("demandP").addEventListener("tap", function() {
27 27
			if(data.success) {
28 28
				var $data = data.data;
29 29
				if($data.authStatus == 3) {
30
					var oDa = {};
31
					oDa.flag = ($data.orgAuth == 0) ? 1 : 0;
30 32
					mui.openWindow({
31 33
						url: '../html/needIssue.html',
32 34
						id: '../html/needIssue.html',
33 35
						show: {
34 36
							autoShow: false,
35 37
							aniShow: "slide-in-right",
36
						}
37
					});
38
				} else if($data.authStatus == 2) {
39
					plus.nativeUI.toast("我们正在对您的信息进行认证,请稍等片刻", {
40
						'verticalAlign': 'center'
38
						},
39
						extras: oDa
41 40
					});
42
				} else if($data.authStatus == 1) {
43
					plus.nativeUI.toast("我们将尽快对您的信息进行认证", {
44
						'verticalAlign': 'center'
45
					});
46
				} else if($data.authStatus <= 0) {
47
					mui.openWindow({
48
						url: '../html/realname-authentication.html',
49
						id: 'realname-authentication.html',
50
						show: {
51
							autoShow: false,
52
							aniShow: "slide-in-right",
41
				} else {
42
					if($data.orgAuth == 1) {
43
						mui.openWindow({
44
							url: '../html/needIssue.html',
45
							id: '../html/needIssue.html',
46
							show: {
47
								autoShow: false,
48
								aniShow: "slide-in-right",
49
							}
50
						});
51
					} else {
52
						if($data.authStatus == 2) {
53
							plus.nativeUI.toast("我们正在对您的信息进行认证,请稍等片刻", {
54
								'verticalAlign': 'center'
55
							});
56
						} else if($data.authStatus == 1) {
57
							plus.nativeUI.toast("我们将尽快对您的信息进行认证", {
58
								'verticalAlign': 'center'
59
							});
60
						} else if($data.authStatus <= 0) {
61
							mui.openWindow({
62
								url: '../html/realname-authentication.html',
63
								id: 'realname-authentication.html',
64
								show: {
65
									autoShow: false,
66
									aniShow: "slide-in-right",
67
								}
68
							});
53 69
						}
54
					});
70
					}
55 71
				}
56 72
			}
57 73
		},

+ 1 - 0
app/js/myaccount.js

@ -314,6 +314,7 @@ mui.ready(function() {
314 314
							nameli.classList.add('icon-vip');
315 315
							nameli.classList.add('authicon-cu');
316 316
							nameli.style.margin = "-4px 0 0 -2px";
317
							nameli.style.top = "8px";
317 318
						} else {
318 319
							if($info.authStatus==3) {
319 320
								if($info.authentication == 1) {

+ 61 - 2
app/js/needIssue.js

@ -2,10 +2,24 @@ mui.ready(function() {
2 2
	mui.plusReady(function() {
3 3
		var userid = plus.storage.getItem('userid');
4 4
		var ws = plus.webview.currentWebview();
5
		console.log()
5 6
		var oconsultcon = document.getElementsByClassName("borderarea")[0];
6 7
		var demandContent = document.getElementById("demandContent");
7 8
		var oNavsub = document.getElementById("navsub");
8 9
		var consun;
10
		var demandType;
11
		var orgId;
12
		if(ws.flag==0){
13
			demanTy(); 
14
		}else if(ws.flag==1){
15
			document.getElementById("oGe").className="checkNow";
16
			document.getElementById("oQi").className="checkNo";
17
			demandType=1;
18
		}else{
19
			document.getElementById("oQi").className="checkNow";
20
			document.getElementById("oGe").className="checkNo";
21
			demandType=2;
22
		}
9 23
		//处理iOS下弹出软键盘后头部会随页面的滚动条消失问题
10 24
		iosheader();
11 25
		tab("navsub"); //身份切换
@ -28,6 +42,27 @@ mui.ready(function() {
28 42
				}
29 43
			}
30 44
		}
45
		/*切换需求类型*/
46
function demanTy() {
47
	var deTy = document.getElementById("navsubTo");
48
	var deTyChild = deTy.getElementsByTagName("span");
49
	if(deTyChild[0].className != "checkNo" && deTyChild[1].className != "checkNo") {
50
		for(var n = 0; n < deTyChild.length; n++) {
51
			(function(m) {
52
				deTyChild[m].onclick = function() {
53
					this.className = "checkNow";
54
					if(m == 0) {
55
						demandType=1;
56
						deTyChild[1].className = "";
57
					} else if(m == 1) {
58
						demandType=2;
59
						deTyChild[0].className = "";
60
					}
61
				}
62
			})(n);
63
		}
64
	}
65
}
31 66
		/*需求内容*/
32 67
		function checkLen(obj) {
33 68

@ -121,13 +156,36 @@ mui.ready(function() {
121 156
		}
122 157
		industry("INDUSTRY");
123 158
		industry("SUBJECT");
159
		getOrgId();
160
		function getOrgId(){
161
			mui.ajax(baseUrl + "/ajax/professor/baseInfo/"+userid, {
162
				dataType: 'json', //数据格式类型
163
				type: 'GET', //http请求类型
164
				timeout: 10000, //超时设置
165
				success: function(data) {
166
					if(data.success) {
167
					var $rta = data.data;
168
					orgId = $rta.orgId
169
					}
170
				},
171
				error: function() {
172
					plus.nativeUI.toast("服务器链接超时", toastStyle);
173
					return;
174
				}
175
			});
176
		}
124 177
		/*发布新需求*/
125 178
		document.getElementsByClassName("topsave")[0].addEventListener("tap", function() {
126 179
				var dd = oNavsub.getElementsByClassName("set");
180
				var cc=document.getElementById("navsubTo").getElementsByClassName("checkNow")
127 181
				if(dd.length == 0) {
128 182
					plus.nativeUI.toast("请选择您发布需求的目的", toastStyle);
129 183
					return;
130 184
				}
185
				if(cc.length == 0) {
186
					plus.nativeUI.toast("请选择您的需求类型", toastStyle);
187
					return;
188
				}
131 189
				if(!trim(demandContent.value)) {
132 190
					plus.nativeUI.toast("请填写需求主题", toastStyle);
133 191
					return;
@ -158,10 +216,11 @@ mui.ready(function() {
158 216
				data: {
159 217
					"demander": userid,
160 218
					"demandAim": consun,
161
					"demandType": 1,
219
					"demandType": demandType,
162 220
					"demandTitle": demandContent.value,
163 221
					"demandContent": oconsultcon.innerText,
164
					"args": arr
222
					"args": arr,
223
					"orgId": (demandType == 2) ? orgId : "",
165 224
				},
166 225
				success: function(data) {
167 226
					console.log(JSON.stringify(data))

+ 41 - 24
app/js/needList.js

@ -77,25 +77,39 @@ mui.ready(function() {
77 77
		/*发布新需求*/
78 78
		document.getElementById("btnLinkBox").addEventListener("tap", function() {
79 79
			mui.ajax(baseUrl + "/ajax/professor/auth", {
80
				dataType: 'json', //数据格式类型
81
				type: 'GET', //http请求类型
82
				timeout: 10000, //超时设置
83
				data: {
84
					"id": userid
85
				},
86
				success: function(data) {
87
					if(data.success) {
88
						var $data = data.data;
89
						if($data.authStatus == 3) {
90
							mui.openWindow({
91
								url: '../html/needIssue.html',
92
								id: '../html/needIssue.html',
93
								show: {
94
									autoShow: false,
95
									aniShow: "slide-in-right",
96
								}
97
							});
98
						} else if($data.authStatus == 2) {
80
		dataType: 'json', //数据格式类型
81
		type: 'GET', //http请求类型
82
		timeout: 10000, //超时设置
83
		data: {
84
			"id": userid
85
		},
86
		success: function(data) {
87
			if(data.success) {
88
				var $data = data.data;
89
				if($data.authStatus == 3) {
90
					var oDa = {};
91
					oDa.flag = ($data.orgAuth == 0) ? 1 : 0;
92
					mui.openWindow({
93
						url: '../html/needIssue.html',
94
						id: '../html/needIssue.html',
95
						show: {
96
							autoShow: false,
97
							aniShow: "slide-in-right",
98
						},
99
						extras: oDa
100
					});
101
				} else {
102
					if($data.orgAuth == 1) {
103
						mui.openWindow({
104
							url: '../html/needIssue.html',
105
							id: '../html/needIssue.html',
106
							show: {
107
								autoShow: false,
108
								aniShow: "slide-in-right",
109
							}
110
						});
111
					} else {
112
						if($data.authStatus == 2) {
99 113
							plus.nativeUI.toast("我们正在对您的信息进行认证,请稍等片刻", {
100 114
								'verticalAlign': 'center'
101 115
							});
@ -108,17 +122,20 @@ mui.ready(function() {
108 122
								url: '../html/realname-authentication.html',
109 123
								id: 'realname-authentication.html',
110 124
								show: {
125
									autoShow: false,
111 126
									aniShow: "slide-in-right",
112 127
								}
113 128
							});
114 129
						}
115 130
					}
116
				},
117
				error: function() {
118
					plus.nativeUI.toast("服务器链接超时", toastStyle);
119
					return;
120 131
				}
121
			});
132
			}
133
		},
134
		error: function() {
135
			plus.nativeUI.toast("服务器链接超时", toastStyle);
136
			return;
137
		}
138
	});
122 139
		})
123 140

124 141
	});

+ 6 - 6
app/js/needSearch.js

@ -227,15 +227,15 @@ function datalistEach(datalist) {
227 227
		}
228 228
		var typeTname = '';
229 229
		if(item.authType) {
230
			typeTname = '<em class="mui-icon iconfont icon-vip authicon-cu"> </em>';
230
			typeTname = '<em class="mui-icon iconfont icon-vip authicon-cu" style="top:3px"> </em>';
231 231
		} else {
232 232
			if(item.authStatus==3) {
233 233
				if(item.authentication == 1) {
234
					typeTname = '<em class="mui-icon iconfont icon-renzheng authicon-mana"></em>';
234
					typeTname = '<em class="mui-icon iconfont icon-renzheng authicon-mana" style="top:1px"></em>';
235 235
				} else if(item.authentication == 2) {
236
					typeTname = '<em class="mui-icon iconfont icon-renzheng authicon-staff"></em>';
236
					typeTname = '<em class="mui-icon iconfont icon-renzheng authicon-staff" style="top:1px"></em>';
237 237
				} else {
238
					typeTname = '<em class="mui-icon iconfont icon-renzheng authicon-stu"></em>';
238
					typeTname = '<em class="mui-icon iconfont icon-renzheng authicon-stu" style="top:1px"></em>';
239 239
				}
240 240
			}
241 241
		}
@ -253,8 +253,8 @@ function datalistEach(datalist) {
253 253
		oString += '<a class="proinfor itemBtn">' <!-- displayNone-->
254 254
		oString += '<img class="mui-media-object mui-pull-left headimg headRadius" src="' + img + '">'
255 255
		oString += '<div class="mui-media-body">'
256
		oString += '<span class="listtit">' + item.name + ' ' + typeTname + ''
257
		oString += '<span class="thistime">' + oCreateTime + '</span></span>'
256
		oString += '<p class="listtit">' + item.name + ' ' + typeTname + ''
257
		oString += '<span class="thistime">' + oCreateTime + '</span></p>'
258 258
		oString += '<p class="listtit2">'
259 259
		oString += '<span>' + title + '</span><span>' + office + '</span><span>' + orgName + '</span><span>' + address + '</span></p>'
260 260
		oString += '<p class="listtit3 mui-ellipsis">' + ite.demandContent + '</p></div></a>'

+ 140 - 98
app/js/professorArticle.js

@ -2,9 +2,67 @@ mui.plusReady(function() {
2 2
	var userid = plus.storage.getItem('userid');
3 3
	var self = plus.webview.currentWebview();
4 4
	var proId = self.articleId;
5
	var proticleName="";
6
	var oImgShare=""
7
	console.log(userid)
5
	var ownerid = self.ownerid;
6
	var oFlag = self.oFlag;
7
	var proticleName = "";
8
	var oImgShare = ""
9
	if(oFlag == 1) {
10
		comBro();
11
		mui.ajax(baseUrl + "/ajax/org/authStatus", {
12
			dataType: 'json', //数据格式类型
13
			type: 'GET', //http请求类型
14
			timeout: 10000, //超时设置
15
			data: {
16
				"id": ownerid
17
			},
18
			success: function(data) {
19
				if(data.success) {
20
					if(data.data == 3) {
21
						document.getElementById("proInfor").addEventListener("tap", function() {
22
						mui.openWindow({
23
							url: '../html/cmpinfor-index.html',
24
							id: 'cmpinfor-index.html',
25
							show: {
26
								autoShow: false,
27
								aniShow: "slide-in-right",
28
							},
29
							extras: {
30
								orgId: ownerid,
31
							}
32
						})
33
						})
34
					} else {
35
						document.getElementById("proInfor").addEventListener("tap", function() {
36
						mui.openWindow({
37
							url: '../html/cmpinfor-Unindex.html',
38
							id: 'cmpinfor-Unindex.html',
39
							show: {
40
								autoShow: false,
41
								aniShow: "slide-in-right",
42
							},
43
							extras: {
44
								orgId: ownerid,
45
								flag: 0
46
							}
47
						})
48
						})
49
					}
50
				}
51
			},
52
			error: function(XMLHttpRequest) {
53
				console.log(XMLHttpRequest)
54
			}
55
		});
56
	} else {
57
		personMess();
58
		document.getElementById("proInfor").addEventListener("tap", function() {
59
			plus.nativeUI.showWaiting(); //显示原生等待框
60
			webviewShow = plus.webview.create("../html/proinforbrow.html", 'proinforbrow.html', {}, {
61
				proid: ownerid
62
			}); //后台创建webview并打开show.html
63
		})
64
	}
65

8 66
	function proInfoMain() {
9 67
		mui.ajax(baseUrl + "/ajax/article/query", {
10 68
			dataType: 'json', //数据格式类型
@ -14,100 +72,25 @@ mui.plusReady(function() {
14 72
			},
15 73
			timeout: 10000, //超时设置
16 74
			success: function(data) {
17
				console.log(JSON.stringify(data))
18 75
				var $info = data.data || {};
19 76
				if(data.success && data.data) {
20 77
					plus.nativeUI.closeWaiting();
21 78
					plus.webview.currentWebview().show("slide-in-right", 150);
22
					var nameli = document.getElementById("nameli");
23
					var proZlist = document.getElementById("proZlist"); //专家资源
24
					var proRlist = document.getElementById("proRlist"); //专家资源
25
					var proName = document.getElementById("proName");
26
					var proTitle = document.getElementById("proTitle");
27
					var proOffice = document.getElementById("proOffice");
28
					var proOrg = document.getElementById("proOrg");
29
					var proAddress = document.getElementById("proAddress");
30 79
					var articleImg = document.getElementById("articleImg");
31 80
					var artical_topic = document.getElementById("artical_topic");
32 81
					var main_content = document.getElementById("main_content");
33
					proName.innerText = $info.professor.name;
34
					if($info.professor.title && $info.professor.office && $info.professor.orgName && $info.professor.address) {
35
						proTitle.innerText = $info.professor.title + ",";
36
						proOffice.innerText = $info.professor.office + ",";
37
						proOrg.innerText = $info.professor.orgName + " | ";
38
						proAddress.innerText = $info.professor.address;
39
					} else if(!$info.professor.title && $info.professor.office && $info.professor.orgName && $info.professor.address) {
40
						proOffice.innerText = $info.professor.office + ",";
41
						proOrg.innerText = $info.professor.orgName + " | ";
42
						proAddress.innerText = $info.professor.address;
43
					} else if($info.professor.title && !$info.professor.office && $info.professor.orgName && $info.professor.address) {
44
						proTitle.innerText = $info.professor.title + ",";
45
						proOrg.innerText = $info.professor.orgName + " | ";
46
						proAddress.innerText = $info.professor.address;
47
					} else if($info.professor.title && $info.professor.office && !$info.professor.orgName && $info.professor.address) {
48
						proTitle.innerText = $info.professor.title + ",";
49
						proOffice.innerText = $info.professor.office + " | ";
50
						proAddress.innerText = $info.professor.address;
51
					} else if($info.professor.title && $info.professor.office && $info.professor.orgName && !$info.professor.address) {
52
						proTitle.innerText = $info.professor.title + ",";
53
						proOffice.innerText = $info.professor.office + ",";
54
						proOrg.innerText = $info.professor.orgName;
55
					} else if(!$info.professor.title && !$info.professor.office && $info.professor.orgName && $info.professor.address) {
56
						proOrg.innerText = $info.professor.orgName + " | ";
57
						proAddress.innerText = $info.professor.address;
58
					} else if(!$info.professor.title && $info.professor.office && !$info.professor.orgName && $info.professor.address) {
59
						proOffice.innerText = $info.professor.office + " | ";
60
						proAddress.innerText = $info.professor.address;
61
					} else if(!$info.professor.title && $info.professor.office && $info.professor.orgName && !$info.professor.address) {
62
						proOffice.innerText = $info.professor.office + ",";
63
						proOrg.innerText = $info.professor.orgName;
64
					} else if($info.professor.title && !$info.professor.office && !$info.professor.orgName && $info.professor.address) {
65
						proTitle.innerText = $info.professor.title + " | ";
66
						proAddress.innerText = $info.professor.address;
67
					} else if($info.professor.title && !$info.professor.office && $info.professor.orgName && !$info.professor.address) {
68
						proOffice.innerText = $info.professor.title + ",";
69
						proAddress.innerText = $info.professor.orgName;
70
					} else if($info.professor.title && $info.professor.office && !$info.professor.orgName && !$info.professor.address) {
71
						proTitle.innerText = $info.professor.title + ",";
72
						proOffice.innerText = $info.professor.office;
73
					} else if(!$info.professor.title && !$info.professor.office && !$info.professor.orgName && $info.professor.address) {
74
						proAddress.innerText = $info.professor.address;
75
					} else if(!$info.professor.title && !$info.professor.office && $info.professor.orgName && !$info.professor.address) {
76
						proOrg.innerText = $info.professor.orgName;
77
					} else if(!$info.professor.title && $info.professor.office && !$info.professor.orgName && !$info.professor.address) {
78
						proOffice.innerText = $info.professor.office;
79
					} else if($info.professor.title && !$info.professor.office && !$info.professor.orgName && !$info.professor.address) {
80
						proTitle.innerText = $info.professor.title;
82
					if(data.data.createTime) {
83
						var oTime = timeGeshi(data.data.createTime);
84
						document.getElementById("proRlist").innerText = oTime;
81 85
					}
82
					var rlist = ''
83
					for(var n = 0; n < $info.professor.researchAreas.length; n++) {
84
						rlist += '<span>' + $info.professor.researchAreas[n].caption + '</span>';
85
						if(n != $info.professor.researchAreas.length - 1) {
86
							rlist += ',';
87
						}
88
					}
89
					($info.professor.researchAreas) ? proRlist.innerHTML = rlist: proRlist.innerText = '';
90
					var zlist = "";
91
					for(var n = 0; n < $info.professor.resources.length; n++) {
92
						zlist += '<span>' + $info.professor.resources[n].resourceName + '</span>';
93
						if(n != $info.professor.resources.length - 1) {
94
							zlist += ',';
95
						}
96
					}
97
					//console.log(oImg)
98
					//alert(oImg)
99
					($info.professor.resources) ? proZlist.innerHTML = zlist: proZlist.innerText = '';
100 86
					if($info.articleImg) {
101 87
						articleImg.style.backgroundImage = 'url(' + baseUrl + '/data/article/' + $info.articleImg + ')';
102 88
					}
103
					if($info.professor.hasHeadImage) {
104
						document.getElementById('proHead').src = baseUrl + "/images/head/" + $info.professorId + "_l.jpg";
105
					}
106 89
					artical_topic.innerText = $info.articleTitle;
107
					proticleName= $info.articleTitle;
90
					proticleName = $info.articleTitle;
108 91
					if($info.articleContent) {
109 92
						main_content.innerHTML = $info.articleContent;
110
						oImgShare=main_content.innerText;
93
						oImgShare = main_content.innerText;
111 94
						var oImg = main_content.getElementsByTagName("img");
112 95
						for(var i = 0; i < oImg.length; i++) {
113 96
							(function(n) {
@ -124,20 +107,79 @@ mui.plusReady(function() {
124 107
			}
125 108
		});
126 109
	}
110
	/*个人信息*/
111
	function personMess() {
112
		mui.ajax(baseUrl + "/ajax/professor/editBaseInfo/" + ownerid, {
113
			dataType: 'json', //数据格式类型
114
			type: 'GET', //http请求类型
115
			timeout: 10000, //超时设置
116
			success: function(data) {
117
				if(data.success && data.data) {
118
					var $profesor = data.data;
119
					if($profesor.hasHeadImage) {
120
						document.getElementById('proHead').src = baseUrl + "/images/head/" + $profesor.id + "_l.jpg";
121
					} else {
122
						document.getElementById('proHead').src = "images/default-photo.jpg";
123
					}
124
					var proName = document.getElementById("proName");
125
					proName.innerText = $profesor.name;
126
				}
127
			},
128
			error: function(XMLHttpRequest) {
129
				console.log(XMLHttpRequest)
130
			}
131
		});
132
	}
133
	/*企业信息*/
134
	function comBro() {
135
		mui.ajax(baseUrl + "/ajax/org/" + ownerid, {
136
			type: "GET",
137
			timeout: 10000,
138
			dataType: "json",
139
			beforeSend: function() {},
140
			success: function(data, textState) {
141
				if(data.success) {
142
					var $data = data.data;
143
					var proName = document.getElementById("proName");
144
					proName.innerText = $data.name;
145
					if($data.authStatus == 3) {
146
						document.getElementById("flSta").className = "mui-icon iconfont authicon authicon-com-ok"; //authiconNew
147
					} else {
148
						document.getElementById("flSta").className = "mui-icon iconfont authicon";
149
					}
150
					if($data.hasOrgLogo) {
151
						document.getElementById('proHead').src = baseUrl + "/images/org/" + $data.id + ".jpg";
152
					} else {
153
						document.getElementById('proHead').src = "images/default-icon.jpg";
154
					}
155

156
				} else {}
157
			},
158
			error: function(XMLHttpRequest, textStats, errorThrown) {
159
				console.log(JSON.stringify(data));
160
			}
161
		})
162
	}
127 163
	proInfoMain();
164
	/*时间格式*/
165
	/*时间格式转换*/
166
	function timeGeshi(otm) {
167
		var otme = otm.substring(0, 4) + "年" + otm.substring(4, 6) + "月" + otm.substring(6, 8) + "日";
168
		return otme;
169
	}
128 170
	/*进入留言*/
129 171
	document.getElementById("leaveWord").addEventListener("tap", function() {
130
		var userid = plus.storage.getItem('userid');
131
		if(!userid) {
132
			goLoginFun();
133
			return;
134
		}
135
		var nwaiting = plus.nativeUI.showWaiting();
136
		var web = plus.webview.create("../html/articalMessage.html", "articalMessage.html", {}, {
137
			articleId: proId
138
		}); //后台创建webview并打开show.html   	    	
139
	})
140
	/*微信及微信朋友圈分享专家*/
172
			var userid = plus.storage.getItem('userid');
173
			if(!userid) {
174
				goLoginFun();
175
				return;
176
			}
177
			var nwaiting = plus.nativeUI.showWaiting();
178
			var web = plus.webview.create("../html/articalMessage.html", "articalMessage.html", {}, {
179
				articleId: proId
180
			}); //后台创建webview并打开show.html   	    	
181
		})
182
		/*微信及微信朋友圈分享专家*/
141 183
	var auths, shares;
142 184
	document.getElementById("shareBtn").addEventListener("tap", function() {
143 185
		shareShow()
@ -193,8 +235,8 @@ mui.plusReady(function() {
193 235
				if(share) {
194 236
					shareMessage(share, "WXSceneSession", {
195 237
						content: oImgShare,
196
						title: "【科袖文章】"+proticleName,
197
						href: baseUrl + "/ekexiu/shareArticalinfor.html?articleId="+proId ,
238
						title: "【科袖文章】" + proticleName,
239
						href: baseUrl + "/ekexiu/shareArticalinfor.html?articleId=" + proId,
198 240
						thumbs: [baseUrl + "/images/logo180.png"]
199 241
					});
200 242
				}
@ -203,8 +245,8 @@ mui.plusReady(function() {
203 245
				if(share) {
204 246
					shareMessage(share, "WXSceneTimeline", {
205 247
						content: oImgShare,
206
						title: "【科袖文章】"+proticleName,
207
						href: baseUrl + "/ekexiu/shareArticalinfor.html?articleId="+proId ,
248
						title: "【科袖文章】" + proticleName,
249
						href: baseUrl + "/ekexiu/shareArticalinfor.html?articleId=" + proId,
208 250
						thumbs: [baseUrl + "/images/logo180.png"]
209 251
					});
210 252
				}

+ 27 - 3
app/js/proinfobrow.js

@ -6,6 +6,7 @@ var personSummary = document.getElementsByClassName("breifinfo")[0];
6 6
var professorName;
7 7
var title="";
8 8
var clickFlag = true;
9
var orgAuth,orgId;
9 10
mui.plusReady(function() {
10 11
	var userid = plus.storage.getItem('userid');
11 12
	var self = plus.webview.currentWebview();
@ -179,6 +180,8 @@ mui.plusReady(function() {
179 180
			type: 'GET', //http请求类型
180 181
			timeout: 10000, //超时设置
181 182
			success: function(data) {
183
				orgAuth=data.data.orgAuth;
184
				orgId=data.data.orgId;
182 185
				plus.nativeUI.closeWaiting();
183 186
				plus.webview.currentWebview().show("slide-in-right", 150);
184 187
				var $data = data.data;
@ -381,7 +384,6 @@ mui.plusReady(function() {
381 384
		},
382 385
		timeout: 10000, //超时设置
383 386
		success: function(data) {
384
			console.log(JSON.stringify(data))
385 387
			if(data.success) {
386 388
				var $data = data.data;
387 389
				if($data.length==0){
@ -398,7 +400,11 @@ mui.plusReady(function() {
398 400
						string += '<img class="resImg headRadius" src="../images/default-artical.jpg">'
399 401
					}
400 402
					string += '</div><div class="mui-media-body centerTit">'
403
<<<<<<< HEAD
401 404
					string += '<span class="listtit mui-ellipsis-2">' + $data[i].articleTitle + '</span>'
405
=======
406
					string += '<span class="listtit mui-ellipsis-2" >' + $data[i].articleTitle + '</span>'
407
>>>>>>> refs/remotes/origin/dev
402 408
					string += '</div></a></li>'
403 409
					html.push(string);
404 410
				}
@ -415,7 +421,8 @@ mui.plusReady(function() {
415 421
		var artId = this.getAttribute("articleId");
416 422
		plus.nativeUI.showWaiting();
417 423
		plus.webview.create("../html/professorArticle.html", 'professorArticle.html', {}, {
418
			articleId: artId
424
			articleId: artId,
425
			ownerid:proId
419 426
		});
420 427
	});
421 428
	/*进入资源详细页面*/
@ -559,6 +566,23 @@ mui.plusReady(function() {
559 566
				}
560 567
			});
561 568
		})
569
	/*进入机构浏览页面*/
570
	document.getElementById("department").addEventListener("tap",function(){
571
		if(orgAuth==1){
572
			mui.openWindow({
573
				url: '../html/cmpinfor-index.html',
574
				id: 'cmpinfor-index.html',
575
				show: {
576
					autoShow: false,
577
					aniShow: "slide-in-right",
578
				},
579
				extras: {
580
					orgId: orgId,
581
				}
582
			});
583
		}
584
		
585
	})
562 586
		/*微信及微信朋友圈分享专家*/
563 587
	var auths, shares;
564 588
	document.getElementById("shareBtn").addEventListener("tap", function() {
@ -684,4 +708,4 @@ mui.plusReady(function() {
684 708
	}
685 709
	/*图像预览*/
686 710
	mui.previewImage();
687
});
711
});

+ 2 - 2
app/js/public/base.js

@ -1,7 +1,7 @@
1 1
//公共文件
2 2
mui.init();
3
var baseUrl = "http://www.ekexiu.com",
4
//var baseUrl = "http://192.168.3.233",
3
//var baseUrl = "http://www.ekexiu.com",
4
var baseUrl = "http://192.168.3.233:81",
5 5
//var baseUrl = "http:192.168.3.8:80",    
6 6
	toastStyle = {
7 7
		'verticalAlign': 'top',

+ 20 - 1
app/js/researcherProw.js

@ -3,7 +3,7 @@ var yesExpert = document.getElementById("yesExpert");
3 3
var noExpert = document.getElementById("noExpert");
4 4
var personalMaterial = document.getElementsByClassName('personalMaterial');
5 5
var personSummary = document.getElementsByClassName("breifinfo")[0];
6

6
var orgAuth,orgId;
7 7
mui.plusReady(function() {
8 8
	var userid = plus.storage.getItem('userid');
9 9
	var self = plus.webview.currentWebview();
@ -69,6 +69,8 @@ mui.plusReady(function() {
69 69
			success: function(data) {
70 70
				plus.nativeUI.closeWaiting();
71 71
				plus.webview.currentWebview().show("slide-in-right", 150);
72
				orgAuth=data.data.orgAuth;
73
				orgId=data.data.orgId;
72 74
				var $data = data.data;
73 75
				personalMaterial[0].innerText = $data.name;
74 76
				document.getElementById("professorName").innerText = $data.name;
@ -284,6 +286,23 @@ mui.plusReady(function() {
284 286
		});
285 287

286 288
	}
289
	/*进入机构浏览页面*/
290
	document.getElementById("department").addEventListener("tap",function(){
291
		if(orgAuth==1){
292
			mui.openWindow({
293
				url: '../html/cmpinfor-index.html',
294
				id: 'cmpinfor-index.html',
295
				show: {
296
					autoShow: false,
297
					aniShow: "slide-in-right",
298
				},
299
				extras: {
300
					orgId: orgId,
301
				}
302
			});
303
		}
304
		
305
	})
287 306
	//	/*专家的历史和评价*/
288 307
	//	document.getElementById("accessHistory").addEventListener('tap', function() {
289 308
	//		mui.openWindow({

+ 20 - 1
app/js/studentbrowse.js

@ -3,7 +3,7 @@ var yesExpert = document.getElementById("yesExpert");
3 3
var noExpert = document.getElementById("noExpert");
4 4
var personalMaterial = document.getElementsByClassName('personalMaterial');
5 5
var personSummary = document.getElementsByClassName("breifinfo")[0];
6

6
var orgAuth,orgId;
7 7
mui.plusReady(function() {
8 8
	var userid = plus.storage.getItem('userid');
9 9
	var self = plus.webview.currentWebview();
@ -51,6 +51,8 @@ mui.plusReady(function() {
51 51
			success: function(data) {
52 52
				plus.nativeUI.closeWaiting();
53 53
				plus.webview.currentWebview().show("slide-in-right", 150);
54
				orgAuth=data.data.orgAuth;
55
				orgId=data.data.orgId;
54 56
				var $data = data.data;
55 57
				personalMaterial[0].innerText = $data.name;
56 58
				document.getElementById("professorName").innerText = $data.name;
@ -248,6 +250,23 @@ mui.plusReady(function() {
248 250
		});
249 251

250 252
	}
253
	/*进入机构浏览页面*/
254
	document.getElementById("department").addEventListener("tap",function(){
255
		if(orgAuth==1){
256
			mui.openWindow({
257
				url: '../html/cmpinfor-index.html',
258
				id: 'cmpinfor-index.html',
259
				show: {
260
					autoShow: false,
261
					aniShow: "slide-in-right",
262
				},
263
				extras: {
264
					orgId: orgId,
265
				}
266
			});
267
		}
268
		
269
	})
251 270
	//	/*专家的历史和评价*/
252 271
	//	document.getElementById("accessHistory").addEventListener('tap', function() {
253 272
	//		mui.openWindow({