Selaa lähdekoodia

平台默认图片

luyanan 6 vuotta sitten
vanhempi
commit
6832ff4d09

+ 1 - 3
src/components/Main.vue

@ -4,9 +4,7 @@
4 4
    <div class="Site-content">
5 5
      <div class="contain-wrapper">
6 6
        <transition name="router-fade" mode="out-in">
7
          <keep-alive>
8
            <router-view :plat="plat"></router-view>
9
          </keep-alive>
7
          <router-view :plat="plat"></router-view>
10 8
        </transition>
11 9
      </div>
12 10
    </div>

+ 1 - 3
src/components/bench-views/WorkCommon.vue

@ -4,9 +4,7 @@
4 4
    <div class="Site-content paddingTop">
5 5
      <div class="contain-wrapper">
6 6
        <transition name="router-fade" mode="out-in">
7
          <keep-alive>
8
            <router-view :plat="plat"></router-view>
9
          </keep-alive>
7
          <router-view :plat="plat"></router-view>
10 8
        </transition>
11 9
      </div>
12 10
    </div>

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

@ -79,7 +79,7 @@
79 79
        }).then((res) => {
80 80
          console.log(res);
81 81
          this.platInfo = res.data;
82
          this.imgUrl = util.ImageUrl('platform' + res.data.logo);
82
          this.imgUrl = res.data.logo ? util.ImageUrl('platform' + res.data.logo) : util.defaultSet.img.plat;
83 83
        });
84 84
      },
85 85
      updateInfo() {

+ 19 - 0
src/components/bench-views/demandSearch/DemandTemplate.vue

@ -102,6 +102,25 @@
102 102
         sortValue: ''
103 103
       };
104 104
     },
105
     computed: {
106
      // optionsNew: function() {
107
      //   let arr = util.Dictionary.durationTime;
108
      //   arr.unshift({
109
      //     value: '',
110
      //     label: '全部'
111
      //   });
112
      //   return arr;
113
      // },
114
      // budgetNew: function() {
115
      //   let arr = util.Dictionary.costRange;
116
      //   arr.unshift({
117
      //     value: '',
118
      //     label: '全部'
119
      //   });
120
      //   console.log(arr)
121
      //   return arr;
122
      // }
123
     },
105 124
     created() {
106 125
      this.platId = Cookies.get('platId');
107 126
      this.expertParameters = {

+ 20 - 4
src/components/sub-component/DynamicTags.vue

@ -81,14 +81,30 @@
81 81
      handleInputConfirm() {
82 82
        let inputValue = this.inputValue;
83 83
        if (inputValue.length > 15) {
84
          this.$message.error(`${this.tagInfo.lableTit}不得超过15个字,添加失败!`);
84
          this.$alert(`${this.tagInfo.lableTit}不得超过15个字,添加失败!`, '提示', {
85
            confirmButtonText: '确定',
86
            type: 'warning',
87
            center: true
88
          });
89
          return false;
90
        }
91
        for (var i = 0; i < this.dynamicTags.length; i++) {
92
          if (inputValue === this.dynamicTags[i]) {
93
            this.$alert('添加的内容不能重复', '提示', {
94
              confirmButtonText: '确定',
95
              type: 'warning',
96
              center: true
97
            });
98
            return false;
99
          }
85 100
        }
86 101
        if (this.dynamicTags.length === this.dynamicTagsLength) {
87 102
          this.isShowAdd = false;
103
          return false;
88 104
        }
89
        if (inputValue && inputValue.length < 15 && this.dynamicTags.length < this.dynamicTagsLength) {
90
          this.dynamicTags.push(inputValue);
91
        }
105
106
        this.dynamicTags.push(inputValue);
107
92 108
        this.$emit('turnTags', this.dynamicTags.join(',')); // 传给父组件
93 109
        this.inputVisible = false;
94 110
        this.inputValue = '';

+ 2 - 1
src/libs/util.js

@ -17,7 +17,8 @@ util.defaultSet = {
17 17
    org: '/static/comimg/default-org.jpg',
18 18
    article: '/static/comimg/default-article.jpg',
19 19
    resource: '/static/comimg/default-resource.jpg',
20
    service: '/static/comimg/default-service.jpg'
20
    service: '/static/comimg/default-service.jpg',
21
    plat: '/static/comimg/default-plat.jpg'
21 22
  },
22 23
  link: {
23 24
    expert: ekexiuUrl + '/userInforShow.html?professorId=',

BIN
static/comimg/default-plat.jpg