luyanan 7 年之前
父节点
当前提交
47027804bb

+ 22 - 7
src/common/stylus/listitem.styl

@ -34,14 +34,29 @@
34 34
    &.org-item
35 35
      height:200px
36 36
      text-align:center
37
      .item-block
37
      .item-block-org
38 38
        width:306px
39
        margin:auto
40
        .item-pic
41
          margin:auto
42
        .item-tag
43
          color:$secondaryFont
44
          text-ellipsis(1,20px)
39
        display:flex
40
        flex-direction: column
41
        align-items: center
42
        .item-pic-org
43
          center-items()
44
          background-size:cover
45
        .item-text-org
46
          margin-top:6px
47
          line-height:30px
48
          text-align:center
49
          .item-tit-org
50
            display:flex
51
            justify-content: center
52
            align-items:center
53
            span
54
              display: inline-block
55
              max-width: 100%
56
              text-ellipsis()
57
          .item-tag-org
58
            color:$secondaryFont
59
            text-ellipsis(1,20px)
45 60
/*home--cmp、expert*/
46 61
47 62
/*list--图文*/

+ 4 - 0
src/common/stylus/mixin.styl

@ -28,6 +28,7 @@ bg-image($url)
28 28
  background-image:url($url)
29 29
  background-position: center center
30 30
  background-repeat: no-repeat
31
  background-size:cover
31 32
/*bg-about e*/
32 33
33 34
/*border-about s*/
@ -68,11 +69,14 @@ text-ellipsis($n = 1,$lineH = 30px)
68 69
center-items($w = 180px,$h = 120px)
69 70
  display: flex
70 71
  align-items: center
72
  justify-content: center
71 73
  border: 1px solid $borderColor
72 74
  box-sizing:border-box
73 75
  width: $w+2px
74 76
  height: $h+2px
75 77
  border-radius(4px)
78
  background-size:cover
79
  background-position: center center
76 80
  img
77 81
    max-width: $w
78 82
    max-height: 100%

+ 5 - 5
src/components/bench-views/UpdateInfo.vue

@ -99,7 +99,7 @@
99 99
        plf_name: '',
100 100
        imageUrl: '', // 临时地址
101 101
        imgName: '', // 图片的name
102
        uploadUrl: httpUrl.workbench.uploadImg,
102
        uploadUrl: httpUrl.hQuery.baseInfo.upload,
103 103
        optionsCity: provinceAndCityData,
104 104
        selectedOptions: [],
105 105
        dynamicTags: [],
@ -150,7 +150,7 @@
150 150
    },
151 151
    methods: {
152 152
      getPlatInfo(id) {
153
        this.$axios.get(httpUrl.workbench.platBase, {
153
        this.$axios.get(httpUrl.hQuery.baseInfo.query, {
154 154
          params: {
155 155
            id: id
156 156
          }
@ -158,7 +158,7 @@
158 158
          console.log(res);
159 159
          let str = res.data;
160 160
          this.plf_name = str.name;
161
          this.imageUrl = util.orgLogoUrl(str.logo);
161
          this.imageUrl = util.ImageUrl('platform' + str.logo);
162 162
          this.imgName = str.logo;
163 163
          this.ruleForm.linkman = str.linkman;
164 164
          this.ruleForm.tel = str.linkphone;
@ -200,7 +200,7 @@
200 200
              'industry': this.ruleForm.industry,
201 201
              'descp': this.ruleForm.desc
202 202
            };
203
            this.$axios.post(httpUrl.workbench.updateInfo, paramsData).then((res) => {
203
            this.$axios.post(httpUrl.hQuery.baseInfo.update, paramsData).then((res) => {
204 204
              this.$message({
205 205
                message: '平台信息修改成功!',
206 206
                type: 'success'
@ -227,7 +227,7 @@
227 227
      // upload img
228 228
      handleAvatarSuccess(res, file) {
229 229
        this.imageUrl = URL.createObjectURL(file.raw);
230
        this.imgName = 'platform' + res.data[0].uri;
230
        this.imgName = res.data[0].uri;
231 231
      },
232 232
      beforeAvatarUpload(file) {
233 233
        const isJPG = file.type === 'image/jpeg';

+ 1 - 1
src/components/bench-views/WorkHead.vue

@ -53,7 +53,7 @@
53 53
      }
54 54
    },
55 55
    created() {
56
      this.plf_logo = util.orgLogoUrl(Cookies.get('plf_logo'));
56
      this.plf_logo = util.ImageUrl('platform' + Cookies.get('plf_logo'));
57 57
    }
58 58
	};
59 59
</script>

+ 2 - 2
src/components/bench-views/WorkHome.vue

@ -72,14 +72,14 @@
72 72
    },
73 73
    methods: {
74 74
      getPlatInfo(id) {
75
        this.$axios.get(httpUrl.workbench.platBase, {
75
        this.$axios.get(httpUrl.hQuery.baseInfo.query, {
76 76
          params: {
77 77
            id: id
78 78
          }
79 79
        }).then((res) => {
80 80
          console.log(res);
81 81
          this.platInfo = res.data;
82
          this.imgUrl = util.orgLogoUrl(res.data.logo);
82
          this.imgUrl = util.ImageUrl('platform' + res.data.logo);
83 83
        });
84 84
      },
85 85
      updateInfo() {

+ 29 - 2
src/components/form-views/findPwd.vue

@ -111,8 +111,35 @@
111 111
      resetPwd(formName) {
112 112
        this.$refs[formName].validate((valid) => {
113 113
          if (valid) {
114
            alert('submit!');
115
            this.$router.push({path: '/WorkHome'});
114
            // this.$axios.post(httpUrl.workbench.fingPwd, paramsData).then(res => {
115
            //   this.logining = false;
116
            //   console.log(res);
117
            //   if (res.success) {
118
            //     this.$router.push({path: '/loginPlat'});
119
            //   } else {
120
            //     let errorCode = [{
121
            //       code: -600001,
122
            //       msg: '用户不存在'
123
            //     }, {
124
            //       code: -600002,
125
            //       msg: '密码不正确'
126
            //     }, {
127
            //       code: -600003,
128
            //       msg: '平台信息不存在'
129
            //     }, {
130
            //       code: -600004,
131
            //       msg: '用户被禁用'
132
            //     }];
133
            //     for (let i = 0; i < errorCode.length; i++) {
134
            //       if (res.code === errorCode[i].code) {
135
            //         this.$message.error(errorCode[i].msg);
136
            //         return;
137
            //       };
138
            //     };
139
            //   }
140
            // }).catch(error => {
141
            //   console.log(error);
142
            // });
116 143
          } else {
117 144
            return false;
118 145
          }

+ 1 - 1
src/components/form-views/loginPlat.vue

@ -55,7 +55,7 @@
55 55
              'email': this.ruleForm.mail,
56 56
              'pw': this.ruleForm.pass
57 57
            };
58
            this.$axios.post(httpUrl.workbench.login, paramsData).then(res => {
58
            this.$axios.post(httpUrl.hQuery.sign.login, paramsData).then(res => {
59 59
              this.logining = false;
60 60
              console.log(res);
61 61
              if (res.success) {

+ 1 - 1
src/components/main-views/ViewCooperationAgency.vue

@ -1,5 +1,5 @@
1 1
<template>
2
	<div class="cooperation">
2
	<div class="cooperation block-wrapper">
3 3
		<div class="content-wrapper">
4 4
			<div class="content-title">平台合作机构</div>
5 5
			<baseAgency></baseAgency>

+ 62 - 32
src/components/main-views/ViewHome.vue

@ -103,16 +103,16 @@
103 103
        </div>
104 104
        <div class="swiper-container" ref="findService">
105 105
          <div class="swiper-wrapper">
106
            <div class="swiper-slide" v-for="item in 20" :key="item">
106
            <a class="swiper-slide" v-for="item in platWares" :key="item.index" :href="linkWare">
107 107
              <div class="item-block">
108
                <div class="item-pic" :style="{backgroundImage: 'url(' + item.imgs + ')'}"></div>
108
                <div class="item-pic" :style="{backgroundImage: 'url(' + waresUrl + ')'}"></div>
109 109
                <div class="item-text">
110
                  <p class="title">北京科袖科技有限公司北京科袖科技有限公司</p>
111
                  <p class="desc">北京科袖科技有限公司北京科袖科技有限公司有限公司有限公司</p>
110
                  <p class="title">{{item.name}}</p>
111
                  <p class="desc">{{item.cnt}}</p>
112 112
                  <p class="owner">北京科袖科技有限公司北京科袖科技有限公司有限公司有限公司</p>
113 113
                </div>
114 114
              </div>
115
            </div>
115
            </a>
116 116
          </div>
117 117
          <div class="swiper-button-prev el-icon-arrow-left" ref="prevService"></div>
118 118
          <div class="swiper-button-next el-icon-arrow-right" ref="nextService"></div>
@ -132,21 +132,21 @@
132 132
          </div>
133 133
          <div class="content-more">
134 134
            <router-link class="item-more" v-for="item in 4" :key="item" to="">咨询服务</router-link>
135
            <router-link class="item-more" to="">更多</router-link>
135
            <router-link class="item-more" to="/findResource">更多</router-link>
136 136
          </div>
137 137
        </div>
138 138
        <div class="swiper-container" ref="findResource">
139 139
          <div class="swiper-wrapper">
140
            <div class="swiper-slide" v-for="item in 20" :key="item">
140
            <a class="swiper-slide" v-for="item in platResources" :key="item.index" :href="linkResource">
141 141
              <div class="item-block">
142
                <div class="item-pic" :style="{backgroundImage: 'url(' + item.imgs + ')'}"></div>
142
                <div class="item-pic" :style="{backgroundImage: 'url(' + resourcesUrl(item) + ')'}"></div>
143 143
                <div class="item-text">
144
                  <p class="title">北京科袖科技有限公司北京科袖科技有限公司</p>
145
                  <p class="desc">北京科袖科技有限公司北京科袖科技有限公司有限公司有限公司</p>
146
                  <p class="owner">北京科袖科技有限公司北京科袖科技有限公司有限公司有限公司</p>
144
                  <p class="title">{{item.name}}</p>
145
                  <p class="desc">{{item.cnt}}</p>
146
                  <p class="owner">北京科袖科技</p>
147 147
                </div>
148 148
              </div>
149
            </div>
149
            </a>
150 150
          </div>
151 151
          <div class="swiper-button-prev el-icon-arrow-left" ref="prevResource"></div>
152 152
          <div class="swiper-button-next el-icon-arrow-right" ref="nextResource"></div>
@ -158,11 +158,9 @@
158 158
      <div class="content-wrapper full-wrapper">
159 159
        <div class="content-title">
160 160
            <span>专家顾问</span>
161
            <router-link class="content-more" to="">查看全部</router-link>
162
        </div>
163
        <div class="block-container">
164
          <baseExpert v-for="item in 6" :key="item"></baseExpert>
161
            <router-link class="content-more" to="/expertPool">查看全部</router-link>
165 162
        </div>
163
        <baseExpert :num="6"></baseExpert>
166 164
      </div>
167 165
    </div>
168 166
@ -170,7 +168,7 @@
170 168
      <div class="content-wrapper full-wrapper">
171 169
        <div class="content-title">
172 170
            <span>合作机构</span>
173
            <router-link class="content-more" to="">查看全部</router-link>
171
            <router-link class="content-more" to="/cooperationAgency">查看全部</router-link>
174 172
        </div>
175 173
        <baseAgency :num="3"></baseAgency>
176 174
      </div>
@ -182,6 +180,7 @@
182 180
<script type="text/ecmascript-6">
183 181
  import Cookies from 'js-cookie';
184 182
  import httpUrl from '@/libs/http';
183
  import util from '@/libs/util';
185 184
186 185
  import Swiper from 'swiper';
187 186
  import 'swiper/dist/css/swiper.min.css';
@ -198,12 +197,15 @@
198 197
    data() {
199 198
      return {
200 199
        platId: '',
201
        rows: 20
200
        rows: 20,
201
        platResources: '',
202
        platWares: ''
202 203
      };
203 204
    },
204 205
    created() {
205 206
       this.platId = Cookies.get('platId');
206
       this.queryOrg(this.platId);
207
       this.queryPlatResources(this.platId);
208
       this.queryPlatWares(this.platId);
207 209
    },
208 210
    mounted() {
209 211
      this.latestCmpSwiper = new Swiper(this.$refs.latestCmp, {
@ -212,7 +214,9 @@
212 214
        loop: true,
213 215
        autoplay: {
214 216
          disableOnInteraction: false
215
        }
217
        },
218
        observer: true,
219
        observeParents: true
216 220
      });
217 221
218 222
      this.findServiceSwiper = new Swiper(this.$refs.findService, {
@ -221,7 +225,9 @@
221 225
        navigation: {
222 226
          nextEl: this.$refs.nextService,
223 227
          prevEl: this.$refs.prevService
224
        }
228
        },
229
        observer: true,
230
        observeParents: true
225 231
      });
226 232
227 233
      this.findResourceSwiper = new Swiper(this.$refs.findResource, {
@ -230,19 +236,51 @@
230 236
        navigation: {
231 237
          nextEl: this.$refs.nextResource,
232 238
          prevEl: this.$refs.prevResource
233
        }
239
        },
240
        observer: true, // 修改swiper自己或子元素时,自动初始化swiper
241
        observeParents: true // 修改swiper的父元素时,自动初始化swiper
234 242
      });
235 243
    },
236 244
    methods: {
237
      queryOrg(id) {
238
        this.$axios.get(httpUrl.homequery.residentOrgs, {
245
      queryPlatResources(id) {
246
        this.$axios.get(httpUrl.hQuery.queryResource, {
247
          params: {
248
            pid: id,
249
            rows: this.rows
250
          }
251
        }).then((res) => {
252
          console.log(res);
253
          if (res.success) {
254
            var $info = res.data;
255
            this.platResources = $info;
256
          };
257
        });
258
      },
259
      queryPlatWares(id) {
260
        this.$axios.get(httpUrl.hQuery.queryWare, {
239 261
          params: {
240 262
            pid: id,
241 263
            rows: this.rows
242 264
          }
243 265
        }).then((res) => {
244 266
          console.log(res);
267
          if (res.success) {
268
            var $info = res.data;
269
            this.platWares = $info;
270
          };
245 271
        });
272
      },
273
      resourcesUrl(item) {
274
        return item.images ? util.ImageUrl('resource/' + item.images.split(',')[0]) : util.defaultSet.img.resource;
275
      },
276
      waresUrl(item) {
277
        return item.images ? util.ImageUrl('ware/' + item.images.split(',')[0]) : util.defaultSet.img.service;
278
      },
279
      linkResource(item) {
280
        return util.defaultSet.link.resource + item.id;
281
      },
282
      linkWare(item) {
283
        return util.defaultSet.link.service + item.id;
246 284
      }
247 285
    },
248 286
    components: {
@ -365,14 +403,6 @@
365 403
            line-height:30px
366 404
            &.item-left
367 405
              text-ellipsis()
368
            .item-tit
369
              text-align:center
370
              display:flex
371
              align-items:center
372
              span
373
                display: inline-block
374
                max-width: 86%
375
                text-ellipsis()
376 406
            .title
377 407
              text-ellipsis()
378 408
            .desc

+ 63 - 9
src/components/sub-component/BaseAgency.vue

@ -1,21 +1,75 @@
1 1
<template>
2 2
  <div class="block-container">
3
    <div class="block-item org-item" v-for="item in 3" :key="item">
4
      <div class="item-block">
5
        <div class="item-pic">
6
          <img src="">
3
    <a class="block-item org-item" v-for="item in orgData" :key="item.index" :href="linkUrl(item)">
4
      <div class="item-block-org">
5
        <div class="item-pic-org">
6
          <img :src="orgLogoUrl(item)">
7 7
        </div>
8
        <div class="item-text">
9
          <div class="item-tit"><span>北京科袖科技有限公司北京科有限公司北京科袖科技有限公司</span><em class="authicon icon-com"></em></div>
10
          <p class="item-tag">所属行业 | 所属行业 | 所属行业</p>
8
        <div class="item-text-org">
9
          <div class="item-tit-org"><span>{{item.name}}</span><em class="authicon" :class="{'icon-com': item.authStatus==='3'}"></em></div>
10
          <p class="item-tag-org">{{item.industry.replace(/,/gi, ' | ')}}</p>
11 11
        </div>
12 12
      </div>
13
    </div>
13
    </a>
14 14
  </div>
15 15
</template>
16 16
17 17
<script type="text/ecmascript-6">
18
  export default {
18
  import Cookies from 'js-cookie';
19
  import util from '@/libs/util';
20
  import httpUrl from '@/libs/http';
19 21
22
  export default {
23
    props: {
24
      num: {
25
        type: Number
26
      }
27
    },
28
    data() {
29
      return {
30
        platId: '',
31
        rows: 20,
32
        orgData: '',
33
        dataO: {
34
          bOid: '',
35
          bTime: ''
36
        }
37
      };
38
    },
39
    created() {
40
       this.platId = Cookies.get('platId');
41
       this.ResidentOrgs(this.platId);
42
    },
43
    methods: {
44
      ResidentOrgs(id) {
45
        this.$axios.get(httpUrl.hQuery.buttedOrgs.nopq, {
46
          params: {
47
            pid: id,
48
            oid: this.dataO.bOid,
49
            time: this.dataO.bTime,
50
            rows: this.num ? this.num : this.rows
51
          }
52
        }).then((res) => {
53
          console.log(res);
54
          if (res.success) {
55
            var $info = res.data;
56
            if ($info.length > 0) {
57
              this.dataO.bOid = $info[$info.length - 1].id;
58
              this.dataO.bTime = $info[$info.length - 1].buttedTime;
59
              this.orgData = $info;
60
              console.log(this.orgData);
61
            };
62
            if ($info.length < this.rows) {
63
            };
64
          };
65
        });
66
      },
67
      orgLogoUrl(item) {
68
        return item.hasOrgLogo ? util.ImageUrl(('org/' + item.id + '.jpg'), true) : util.defaultSet.img.org;
69
      },
70
      linkUrl(item) {
71
        return util.defaultSet.link.org + item.id;
72
      }
73
    }
20 74
  };
21 75
</script>

+ 62 - 6
src/components/sub-component/BaseExpert.vue

@ -1,21 +1,77 @@
1 1
<template>
2
  <div class="base">
3
    <div class="block-item">
4
      <div class="show-head"></div>
2
  <div class="block-container">
3
    <a class="block-item" v-for="item in userData" :key="item.index" :href="linkUrl(item)">
4
      <div class="show-head" :style="{backgroundImage:'url('+ headUrl(item) +')'}"></div>
5 5
      <div class="show-info">
6
        <div class="info-tit">专家姓名<em class="authicon icon-pro"></em></div>
6
        <div class="info-tit">{{item.name}}<em class="authicon" :class="headIcon(item)"></em></div>
7 7
        <div class="info-tag">职称/职位,所在机构</div>
8 8
        <div class="info-desc">
9 9
10 10
研究方向:研究方向A;研究方向B;研究方向C;研究方向A;研究方向B;研究方向C;研究方...
11 11
</div>
12 12
      </div>
13
    </div>
13
    </a>
14 14
  </div>
15 15
</template>
16 16
17 17
<script type="text/ecmascript-6">
18
  export default {
18
  import Cookies from 'js-cookie';
19
  import util from '@/libs/util';
20
  import httpUrl from '@/libs/http';
19 21
22
  export default {
23
    props: {
24
      num: {
25
        type: Number
26
      }
27
    },
28
    data() {
29
      return {
30
        platId: '',
31
        rows: 20,
32
        userData: '',
33
        dataO: {
34
          bUid: '',
35
          bTime: ''
36
        }
37
      };
38
    },
39
    created() {
40
       this.platId = Cookies.get('platId');
41
       this.buttedProfessors(this.platId);
42
    },
43
    methods: {
44
      buttedProfessors(id) {
45
        this.$axios.get(httpUrl.hQuery.buttedProfessors.nopq, {
46
          params: {
47
            pid: id,
48
            uid: this.dataO.bUid,
49
            time: this.dataO.bTime,
50
            rows: this.num ? this.num : this.rows
51
          }
52
        }).then((res) => {
53
          console.log(res);
54
          if (res.success) {
55
            var $info = res.data;
56
            if ($info.length > 0) {
57
              this.dataO.bUid = $info[$info.length - 1].id;
58
              this.dataO.bTime = $info[$info.length - 1].buttedTime;
59
              this.userData = $info;
60
            };
61
            if ($info.length < this.rows) {
62
            };
63
          };
64
        });
65
      },
66
      headUrl(item) {
67
        return item.hasHeadImage ? util.ImageUrl(('head/' + item.id + '_l.jpg'), true) : util.defaultSet.img.expert;
68
      },
69
      headIcon(item) {
70
        return util.autho(item.authType, item.orgAuth, item.authStatus);
71
      },
72
      linkUrl(item) {
73
        return util.defaultSet.link.expert + item.id;
74
      }
75
    }
20 76
  };
21 77
</script>

+ 43 - 17
src/libs/http.js

@ -8,18 +8,50 @@ http.utilUrl = utilUrl;
8 8
let webbase = '/api/plat';
9 9
http.webbase = webbase;
10 10
11
let workbench = {
12
    login: utilUrl + '/platform/login',
13
    platBase: utilUrl + '/platform/ginfo',
14
    updateInfo: utilUrl + '/platform/info',
15
    uploadImg: utilUrl + '/platform/upload'
11
let hQuery = {
12
    sign: {
13
      login: utilUrl + '/platform/loggin',
14
      modifypw: utilUrl + '/platform/modifypw', // 修改密码
15
      resetpw: utilUrl + '/platform/resetpw', // 重置密码
16
      reqResetPw: utilUrl + '/platform/reqResetPw', // 请求重置密码
17
      bindMail: utilUrl + '/platform/bindMail', // 绑定新邮箱
18
      reqBindMail: utilUrl + '/platform/reqBindMail' // 请求绑定新邮箱
19
    },
20
    baseInfo: {
21
      query: utilUrl + '/platform/info',
22
      update: utilUrl + '/platform/info',
23
      upload: utilUrl + '/platform/upload' // 上传平台图片
24
    },
25
    buttedOrgs: { // 对接平台机构
26
      nopq: utilUrl + '/platform/info/buttedOrgs',
27
      pq: utilUrl + '/platform/info/pqButtedOrgs',
28
      add: utilUrl + '/platform/buttedOrg',
29
      del: utilUrl + '/platform/buttedOrg/delete'
30
    },
31
    buttedProfessors: { // 对接专家
32
      nopq: utilUrl + '/platform/info/buttedProfessors',
33
      pq: utilUrl + '/platform/info/pqButtedProfessors',
34
      add: utilUrl + '/platform/buttedProfessor',
35
      del: utilUrl + '/platform/buttedProfessor/delete'
36
    },
37
    orgTrends: { // 企业动态
38
      nopq: utilUrl + '/article/publishInPlatform',
39
      pq: utilUrl + '/article/pgPublishInPlatform',
40
      pqun: utilUrl + '/article/pgPublishNotInPlatform', // 查询未加入企业动态的入驻企业发布中的文章(分页)
41
      add: utilUrl + '/platform/referencedArticle',
42
      del: utilUrl + '/platform/referencedArticle/delete'
43
    },
44
    residentOrgs: { // 入驻企业
45
      nopq: utilUrl + '/platform/info/residentOrgs',
46
      add: utilUrl + '/platform/resident',
47
      del: utilUrl + '/platform/resident/delete'
48
    },
49
    addOrgs: utilUrl + '/platform/add/info', // 增加企业
50
    addDemand: utilUrl + '/demand/publishInPlatform', // 平台新增需求
51
    queryWare: utilUrl + '/platform/info/wares', // 找服务
52
    queryResource: utilUrl + '/platform/info/resources' // 找资源
16 53
};
17
http.workbench = workbench;
18
19
let homequery = {
20
    residentOrgs: utilUrl + '/platform/info/residentOrgs'
21
};
22
http.homequery = homequery;
54
http.hQuery = hQuery;
23 55
24 56
// let manage = {
25 57
//     user: {
@ -30,12 +62,6 @@ http.homequery = homequery;
30 62
//         validate: utilUrl + '/user/validate.do',
31 63
//         setPWD: utilUrl + '/user/setPWD.do'
32 64
//     },
33
//     reagent: {
34
//         list: utilUrl + '/reagent/list.do',
35
//         getById: utilUrl + '/reagent/getById.do',
36
//         save: utilUrl + '/reagent/save.do',
37
//         delete: utilUrl + '/reagent/delete.do'
38
//     },
39 65
//     kit: {
40 66
//         list: utilUrl + '/kit/list.do',
41 67
//         getById: utilUrl + '/kit/getById.do',

+ 41 - 2
src/libs/util.js

@ -1,3 +1,4 @@
1
1 2
// let ekexiuUrl = 'https://www.ekexiu.com';
2 3
let ekexiuUrl = 'http://192.168.3.233:81';
3 4
@ -6,6 +7,44 @@ let util = {
6 7
};
7 8
8 9
util.ekexiuUrl = ekexiuUrl;
10
11
/**
12
 * default img
13
 */
14
util.defaultSet = {
15
  img: {
16
    expert: '/static/comimg/default-expert.jpg',
17
    org: '/static/comimg/default-org.jpg',
18
    article: '/static/comimg/default-article.jpg',
19
    resource: '/static/comimg/default-resource.jpg',
20
    service: '/static/comimg/default-service.jpg'
21
  },
22
  link: {
23
    expert: ekexiuUrl + '/userInforShow.html?professorId=',
24
    org: ekexiuUrl + '/cmpInforShow.html?orgId=',
25
    article: ekexiuUrl + '/articleShow.html?articleId=',
26
    resource: ekexiuUrl + '/resourceShow.html?resourceId=',
27
    service: ekexiuUrl + '/sevriceShow.html?sevriceId='
28
  }
29
};
30
31
/**
32
 * expert head symbol icon
33
 */
34
util.autho = function (a, b, c) {
35
  if (a === 1) {
36
    return 'icon-pro';
37
  } else {
38
    if (b === 1) {
39
      return 'icon-staff';
40
    } else {
41
      if (c === 3) {
42
        return 'icon-real';
43
      };
44
    };
45
  };
46
};
47
9 48
/**
10 49
 * 解析url参数
11 50
 * @example ?id=12345&a=b
@ -30,8 +69,8 @@ util.urlParse = function (name) {
30 69
/**
31 70
 * 拼接图片链接地址
32 71
 */
33
util.orgLogoUrl = function (str) {
34
    return ekexiuUrl + '/data/' + str;
72
util.ImageUrl = function (str, bol) {
73
    return bol ? (ekexiuUrl + '/images/' + str) : (ekexiuUrl + '/data/' + str);
35 74
};
36 75
37 76
// util.cutOutUrl = function (str) {

二进制
static/comimg/default-article.jpg


二进制
static/comimg/default-expert.jpg


二进制
static/comimg/default-org.jpg


二进制
static/comimg/default-resource.jpg


二进制
static/comimg/default-service.jpg