瀏覽代碼

工作台

LIPENGTAO1313 6 年之前
父節點
當前提交
68ca0ce253

+ 10 - 6
src/components/bench-views/BusTemplate.vue

@ -14,10 +14,11 @@
14 14
        </ul>
15 15
      </div>
16 16
      <div class="dele" v-show="(flag == 1)">
17
        <el-button type="danger" icon="el-icon-delete" circle @click="dele(item.id)"></el-button>
17
        <el-button type="danger" icon="el-icon-delete" circle @click.stop="delet(item.id)"></el-button>
18 18
      </div>
19 19
    </li>
20
    <div class="taglist">
20
    <defaultPage v-show="ifDefault"></defaultPage>
21
    <div class="taglist" v-show="!ifDefault">
21 22
      <el-pagination background layout="prev, pager, next" :total="total" :page-size="10" @current-change="handleCurrentChange">
22 23
      </el-pagination>
23 24
    </div>
@ -32,6 +33,7 @@
32 33
    props: ['keyValue', 'url', 'flag'],
33 34
    data() {
34 35
      return {
36
        ifDefault: false,
35 37
        expertParameters: {},
36 38
        dataList: [],
37 39
        total: 0,
@ -70,8 +72,12 @@
70 72
          params: this.expertParameters
71 73
        }).then((res) => {
72 74
          if (res.success) {
73
            this.dataList = [];
74 75
            this.dataList = res.data.data;
76
            if (res.data.data.length === 0) {
77
              this.ifDefault = true;
78
            } else {
79
              this.ifDefault = false;
80
            }
75 81
            this.total = res.data.total;
76 82
          }
77 83
        });
@ -83,12 +89,10 @@
83 89
        this.expertParameters.pageNo = val;
84 90
        this.expertList();
85 91
      },
86
      dele(id, index) {
92
      delet(id, index) {
87 93
        this.$axios.post(httpUrl.hQuery.residentOrgs.del, {
88
            params: {
89 94
              pid: this.platId,
90 95
              oid: id
91
            }
92 96
          }).then((res) => {
93 97
            if (res.success) {
94 98
              this.dataList.splice(index, 1);

+ 9 - 2
src/components/bench-views/abutmentService/ExpertAdvisor.vue

@ -12,7 +12,8 @@
12 12
        </ul>
13 13
      </div>
14 14
    </li>
15
    <div class="taglist">
15
    <defaultPage v-show="ifDefault"></defaultPage>
16
    <div class="taglist" v-show="!ifDefault">
16 17
      <el-pagination background layout="prev, pager, next" :total="total" :page-size="10" @current-change="handleCurrentChange">
17 18
      </el-pagination>
18 19
    </div>
@ -28,7 +29,8 @@
28 29
      return {
29 30
        expertParameters: {},
30 31
        dataList: [],
31
        total: 0
32
        total: 0,
33
        ifDefault: false
32 34
      };
33 35
    },
34 36
    created() {
@ -50,6 +52,11 @@
50 52
          params: this.expertParameters
51 53
        }).then((res) => {
52 54
          if (res.success) {
55
            if (res.data.data.length === 0) {
56
              this.ifDefault = true;
57
            } else {
58
              this.ifDefault = false;
59
            }
53 60
            this.disposeData(res.data.data);
54 61
            this.total = res.data.total;
55 62
          }

+ 5 - 2
src/components/bench-views/contentManagement/News.vue

@ -4,7 +4,7 @@
4 4
      <div class="search-wrapper">
5 5
        <el-input placeholder="输入关键词" v-model="inValue"></el-input>
6 6
        <el-button type="primary" icon="el-icon-search" @click="search">搜索</el-button>
7
        <el-button type="primary" icon="el-icon-edit">发布文章</el-button>
7
        <el-button type="primary" icon="el-icon-edit" @click="goPublishArt">发布文章</el-button>
8 8
      </div>
9 9
    </div>
10 10
    <ArticleTemplate :url='url' :keyValue='keyValue' :flag='1'></ArticleTemplate>
@ -17,7 +17,7 @@
17 17
     data() {
18 18
      return {
19 19
        keyValue: '',
20
        url: '/ajax/article/pageQueryPublish',
20
        url: '/ajax/article/pageQuery',
21 21
        inValue: ''
22 22
       };
23 23
     },
@ -25,6 +25,9 @@
25 25
          ArticleTemplate
26 26
     },
27 27
     methods: {
28
     	 goPublishArt() {
29
         this.$router.push({path: '/PublishArticle'});
30
       },
28 31
       search() {
29 32
         this.keyValue = this.inValue;
30 33
       }

+ 5 - 2
src/components/bench-views/demandSearch/DemandSearch.vue

@ -4,10 +4,10 @@
4 4
    <div class="newsRight">
5 5
      <el-tabs v-model="activeName">
6 6
        <el-tab-pane label="发布中的需求" name="first">
7
          <DemandTemplate></DemandTemplate>
7
          <DemandTemplate :flag='1'></DemandTemplate>
8 8
        </el-tab-pane>
9 9
        <el-tab-pane label="已完成的需求" name="second">
10
          <DemandTemplate></DemandTemplate>
10
          <DemandTemplate :flag='2'></DemandTemplate>
11 11
        </el-tab-pane>
12 12
      </el-tabs>
13 13
    </div>
@ -33,6 +33,7 @@
33 33
<style lang="stylus" rel="stylesheet/stylus">
34 34
  ul
35 35
    .list-item
36
      cursor: pointer
36 37
      .list-info
37 38
        .list-tig
38 39
          height: 30px
@ -44,6 +45,8 @@
44 45
          li
45 46
            margin-right: 70px
46 47
  .listMain
48
    .coGreen
49
      color: green
47 50
    .select
48 51
      margin-top: 20px
49 52
      .week

+ 128 - 66
src/components/bench-views/demandSearch/DemandTemplate.vue

@ -2,14 +2,14 @@
2 2
  <div class="listMain">
3 3
    <div class="search">
4 4
      <div class="search-wrapper">
5
        <el-input placeholder="输入关键词"></el-input>
6
        <el-button type="primary" icon="el-icon-search">搜索</el-button>
5
        <el-input placeholder="输入关键词" v-model="searchValue" maxlength=50></el-input>
6
        <el-button type="primary" icon="el-icon-search" @click="search">搜索</el-button>
7 7
      </div>
8 8
    </div>
9 9
    <div class="select">
10 10
      <div class="week">
11 11
        <span class="weekText">周期:</span>
12
        <el-select v-model="value" placeholder="请选择">
12
        <el-select v-model="value" placeholder="请选择" @change="changeDate">
13 13
          <el-option
14 14
            v-for="item in options"
15 15
            :key="item.value"
@ -20,7 +20,7 @@
20 20
      </div>
21 21
      <div class="week">
22 22
        <span class="weekText">预算:</span>
23
        <el-select v-model="budgetValue" placeholder="请选择">
23
        <el-select v-model="budgetValue" placeholder="请选择" @change="changeBudget">
24 24
          <el-option
25 25
            v-for="item in budget"
26 26
            :key="item.value"
@ -29,9 +29,9 @@
29 29
          </el-option>
30 30
        </el-select>
31 31
      </div>
32
      <div class="week">
32
      <div class="week" v-if="flag==1">
33 33
        <span class="weekText">排序:</span>
34
        <el-select v-model="sortValue" placeholder="请选择">
34
        <el-select v-model="sortValue" placeholder="请选择" @change="changeSort">
35 35
          <el-option
36 36
            v-for="item in sort"
37 37
            :key="item.value"
@ -43,29 +43,30 @@
43 43
    </div>
44 44
    <div class="searchList">
45 45
      <ul>
46
        <li class="list-item">
46
        <li class="list-item" v-for="(item, index) in dataList" :key="index" @click="kexiuExpert(item.id)">
47 47
          <div class="list-info">
48
            <div class="list-tit list-tig">2017年“浙江杰出青年”揭晓,祝贺中科院宁波材料所王立平研究员上榜中科院宁波材料所王立平研究员上榜!</div>
48
            <div class="list-tit list-tig">{{item.title}}</div>
49 49
            <ul class="list-tag">
50
              <li>北京科袖科技有限公司</li>
51
              <li>发布于</li>
52
              <li>5月8日 18:00</li>
53
              <li>浏览量 1000</li>
50
              <li>{{item.orgName}}</li>
51
              <li>发布于 {{comTime(item.createTime)}}</li>
52
              <li>浏览量 {{item.pageViews}}</li>
54 53
            </ul>
55 54
            <ul class="list-tag list-tagl">
56
              <li>北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司北京科袖科技有限公司11</li>
55
              <li>{{item.descp}}</li>
57 56
            </ul>
58 57
            <ul class="list-tag list-tagy">
59
              <li>所在城市:北京市</li>
60
              <li>预计周期:1个月内</li>
61
              <li>费用预算:1万元以内</li>
62
              <li class="coRed">有效期至:2018年8月17日</li>
58
              <li>所在城市:{{item.city}}</li>
59
              <li v-if="item.duration !== '0'">预计周期:{{options[item.duration].label}}</li>
60
              <li v-if="item.cost !== '0'">费用预算:{{budget[item.cost].label}}</li>
61
              <li :class="{ coRed: sty(item)}" v-if="flag==1">有效期至:{{timeCh(item)}}</li>
62
              <li class="coGreen" v-if="flag==2">有效期至:{{timeCh(item)}}</li>
63 63
            </ul>
64 64
          </div>
65 65
        </li>
66 66
      </ul>
67
      <div class="taglist">
68
        <el-pagination background layout="prev, pager, next" :total="100">
67
      <defaultPage v-show="ifDefault"></defaultPage>
68
      <div class="taglist" v-show="!ifDefault">
69
        <el-pagination background layout="prev, pager, next" :total="total" :page-size="10" @current-change="handleCurrentChange">
69 70
        </el-pagination>
70 71
      </div>
71 72
    </div>
@ -73,62 +74,123 @@
73 74
</template>
74 75

75 76
<script>
76
   import DemandTemplate from './DemandTemplate.vue';
77
   import Cookies from 'js-cookie';
78
   import httpUrl from '@/libs/http';
79
   import util from '@/libs/util';
77 80
   export default {
81
     props: ['flag'],
78 82
     data() {
79 83
       return {
80
         options: [{
81
           value: '选项1',
82
           label: '全部'
83
         }, {
84
           value: '选项2',
85
           label: '1个月内'
86
         }, {
87
           value: '选项3',
88
           label: '1-3个月'
89
         }, {
90
           value: '选项4',
91
           label: '3-6个月'
92
         }, {
93
           value: '选项5',
94
           label: '6-12个月'
95
         }, {
96
           value: '选项6',
97
           label: '1年以上'
98
         }],
99
         value: '全部',
100
         budget: [{
101
           value: '选项1',
102
           label: '1万元以内'
103
         }, {
104
           value: '选项2',
105
           label: '5-10万元'
106
         }, {
107
           value: '选项3',
108
           label: '10-20万元'
109
         }, {
110
           value: '选项4',
111
           label: '20-50万元'
112
         }, {
113
           value: '选项5',
114
           label: '50万元以上'
115
         }, {
116
           value: '选项6',
117
           label: '全部'
118
         }],
119
         budgetValue: '全部',
84
         ifDefault: false,
85
         expertParameters: {},
86
         dataList: [],
87
         total: 0,
88
         platId: '',
89
         searchValue: '',
90
         isActive: '',
91
         options: util.Dictionary.durationTime,
92
         value: '',
93
         budget: util.Dictionary.costRange,
94
         budgetValue: '',
120 95
         sort: [{
121
           value: '选项1',
96
           value: '1',
122 97
           label: '最新发布'
123 98
         }, {
124
           value: '选项2',
99
           value: '0',
125 100
           label: '即将到期'
126 101
         }],
127
         sortValue: '最新发布'
102
         sortValue: ''
128 103
       };
129 104
     },
130
     components: {
131
         DemandTemplate
132
     }
105
     created() {
106
      this.platId = Cookies.get('platId');
107
      this.expertParameters = {
108
        source: 'xttjpt',
109
        key: this.searchValue,
110
        pageSize: 10,
111
        pageNo: 1
112
      };
113
      if (this.flag === 2) {
114
        this.expertParameters.byCreateTime = 2;
115
        this.expertParameters.state = 2;
116
      } else {
117
        this.expertParameters.byCreateTime = 1;
118
        this.expertParameters.state = 1;
119
      }
120
      this.expertList();
121
    },
122
    methods: {
123
      search() {
124
        this.expertParameters.key = this.searchValue;
125
        this.expertList();
126
      },
127
      sty(item) {
128
        var nowDate = new Date();
129
        var year = nowDate.getFullYear();
130
        var month = nowDate.getMonth() + 1 < 10 ? '0' + (nowDate.getMonth() + 1) : nowDate.getMonth() + 1;
131
        var day = nowDate.getDate() < 10 ? '0' + nowDate.getDate() : nowDate.getDate();
132
        var day1 = new Date(year + '-' + month + '-' + day);
133
        var day2 = new Date(item.invalidDay.substr(0, 4) + '-' + item.invalidDay.substr(4, 2) + '-' + item.invalidDay.substr(6, 2));
134
        if ((day2 - day1) / (1000 * 60 * 60 * 24) < 7) {
135
             return true;
136
        }
137
        return false;
138
      },
139
      timeCh(item) {
140
        if (item.invalidDay.substr(4, 1) === '0') {
141
          if (item.invalidDay.substr(6, 1) === '0') {
142
            return item.invalidDay.substr(0, 4) + '年' + item.invalidDay.substr(5, 1) + '月' + item.invalidDay.substr(7, 1) + '日';
143
          } else {
144
            return item.invalidDay.substr(0, 4) + '年' + item.invalidDay.substr(5, 1) + '月' + item.invalidDay.substr(6, 2) + '日';
145
          }
146
        } else {
147
          return item.invalidDay.substr(0, 4) + '年' + item.invalidDay.substr(4, 2) + '月' + item.invalidDay.substr(6, 2) + '日';
148
        }
149
      },
150
      changeDate(p) {
151
        if (p === '') {
152
          this.$delete(this.expertParameters, 'duration');
153
        } else {
154
          this.expertParameters.duration = p;
155
        }
156
        this.expertList();
157
      },
158
      changeBudget(p) {
159
        if (p === '') {
160
          this.$delete(this.expertParameters, 'cost');
161
        } else {
162
          this.expertParameters.cost = p;
163
        }
164
        this.expertList();
165
      },
166
      changeSort(p) {
167
        this.expertParameters.byCreateTime = p;
168
        this.expertList();
169
      },
170
      comTime: util.commenTime,
171
      expertList() {
172
        this.dataList = [];
173
        this.$axios.get(httpUrl.hQuery.demand.nopq, {
174
          params: this.expertParameters
175
        }).then((res) => {
176
          if (res.success) {
177
            this.dataList = res.data.data;
178
            if (res.data.data.length === 0) {
179
              this.ifDefault = true;
180
            } else {
181
              this.ifDefault = false;
182
            }
183
            this.total = res.data.total;
184
          }
185
        });
186
      },
187
      kexiuExpert(id) {
188
        window.open(util.defaultSet.link.demand + id);
189
      },
190
      handleCurrentChange(val) {
191
        this.expertParameters.pageNo = val;
192
        this.expertList();
193
      }
194
    }
133 195
   };
134 196
</script>

+ 100 - 9
src/components/form-views/AccountSettings.vue

@ -11,19 +11,19 @@
11 11
      <el-tabs >
12 12
        <el-tab-pane label="当前密码">
13 13
          <div class="updataPa">
14
            <el-form label-width="100px" class="demo-ruleForm" size="medium">
15
              <el-form-item label="当前密码">
16
                <el-input type="password" auto-complete="off"></el-input><span class="forgetPass">忘记密码?</span>
14
            <el-form label-width="100px" class="demo-ruleForm" size="medium" :model="ruleForm2" status-icon :rules="rules2" ref="ruleForm2">
15
              <el-form-item label="当前密码" prop="loginPass">
16
                <el-input type="password" auto-complete="off" v-model="ruleForm2.loginPass"></el-input><span class="forgetPass">忘记密码?</span>
17 17
              </el-form-item>
18
              <el-form-item label="新密码">
19
                <el-input type="password" auto-complete="off"></el-input>
18
              <el-form-item label="新密码" prop="pass">
19
                <el-input type="password" v-model="ruleForm2.pass" auto-complete="off"></el-input>
20 20
              </el-form-item>
21
              <el-form-item label="确认密码" >
22
                <el-input type="password"  auto-complete="off"></el-input>
21
              <el-form-item label="确认密码" prop="checkPass">
22
                <el-input type="password" v-model="ruleForm2.checkPass" auto-complete="off"></el-input>
23 23
              </el-form-item>
24 24
            </el-form>
25 25
            <el-row>
26
              <el-button type="primary" size="medium" class="save">保存</el-button>
26
              <el-button type="primary" size="medium" class="save" @click="submitForm('ruleForm2')" :disabled="ruleForm2.diab">保存</el-button>
27 27
            </el-row>
28 28
          </div>
29 29
        </el-tab-pane>
@ -33,8 +33,99 @@
33 33
</template>
34 34

35 35
<script>
36
  import Cookies from 'js-cookie';
37
  import httpUrl from '@/libs/http';
36 38
  export default {
37

39
    data() {
40
      var validatePass = (rule, value, callback) => {
41
        if (this.ruleForm2.pass !== '' && this.ruleForm2.checkPass !== '' && this.ruleForm2.loginPass !== '') {
42
          this.ruleForm2.diab = false;
43
        }
44
        if (value.length < 6) {
45
          callback(new Error('密码由6-24个字符组成,区分大小写'));
46
        } else {
47
          if (this.ruleForm2.checkPass !== '') {
48
            this.$refs.ruleForm2.validateField('checkPass');
49
          }
50
          callback();
51
        }
52
      };
53
      var validatePass3 = (rule, value, callback) => {
54
        if (this.ruleForm2.pass !== '' && this.ruleForm2.checkPass !== '' && this.ruleForm2.loginPass !== '') {
55
          this.ruleForm2.diab = false;
56
        }
57
        if (value.length < 6) {
58
          callback(new Error('密码由6-24个字符组成,区分大小写'));
59
        } else {
60
          if (this.ruleForm2.checkPass !== '') {
61
            this.$refs.ruleForm2.validateField('checkPass');
62
          }
63
          callback();
64
        }
65
      };
66
      var validatePass2 = (rule, value, callback) => {
67
        if (this.ruleForm2.pass !== '' && this.ruleForm2.checkPass !== '' && this.ruleForm2.loginPass !== '') {
68
          this.ruleForm2.diab = false;
69
        }
70
        if (value.length < 6) {
71
          callback(new Error('密码由6-24个字符组成,区分大小写'));
72
        } else if (value !== this.ruleForm2.pass) {
73
          callback(new Error('两次输入不一致,请重新输入'));
74
        } else {
75
          callback();
76
        }
77
      };
78
      return {
79
        ruleForm2: {
80
          pass: '',
81
          checkPass: '',
82
          loginPass: '',
83
          diab: true
84
        },
85
        rules2: {
86
          pass: [
87
            { validator: validatePass, trigger: 'blur' }
88
          ],
89
          checkPass: [
90
            { validator: validatePass2, trigger: 'blur' }
91
          ],
92
          loginPass: [
93
            { validator: validatePass3, trigger: 'blur' }
94
          ]
95
        }
96
      };
97
    },
98
    methods: {
99
      open() {
100
        this.$confirm('密码修改成功!', '提示', {
101
          confirmButtonText: '确定',
102
          type: 'success',
103
          showCancelButton: false,
104
          center: true
105
        });
106
      },
107
      submitForm(formName) {
108
        this.$refs[formName].validate((valid) => {
109
          if (valid) {
110
            this.$axios.post(httpUrl.hQuery.sign.modifypw, {
111
              id: Cookies.get('platId'),
112
              npw: this.ruleForm2.pass,
113
              opw: this.ruleForm2.loginPass
114
            }).then((res) => {
115
              if (res.success) {
116
                if (res.data === 1) {
117
                  this.open();
118
                  this.$refs[formName].resetFields();
119
                }
120
              }
121
            });
122
          } else {
123
            console.log('error submit!!');
124
            return false;
125
          }
126
        });
127
      }
128
    }
38 129
  };
39 130
</script>
40 131


+ 142 - 5
src/components/form-views/BindAccount.vue

@ -13,21 +13,135 @@
13 13
          <div class="updataPa">
14 14
            <div class="mailTitle">您可以使用以下方式登录账户</div>
15 15
            <div class="mailUpdata">
16
              <span class="el-icon-message"></span>已绑定邮箱 lixiao****@ekexiu.com
17
              <el-button type="primary" class="upGeng" @click="updata">更换</el-button>
16
              <span class="el-icon-message"></span>已绑定邮箱 {{mailUpadate(mail)}}
17
              <el-button type="primary" class="upGeng" @click="dialogFormVisible = true">更换</el-button>
18 18
            </div>
19 19
          </div>
20 20
        </el-tab-pane>
21 21
      </el-tabs>
22 22
    </div>
23
    <el-dialog title="提示" :visible.sync="dialogFormVisible" class="diog">
24
      <div class="boxText">验证邮箱,完成账号绑定</div>
25
      <div class="boxBody">
26
        <el-input v-model="emailName" auto-complete="off" @blur="cblur" @focus="titler = ''"></el-input>
27
        <p>{{titler}}</p>
28
      </div>
29
      <div class="foobox">
30
        <el-button type="primary" @click="cblur(1)">发送验证邮件</el-button>
31
      </div>
32
    </el-dialog>
33
    <el-dialog title="提示" :visible.sync="dias" class="diog">
34
      <div class="boxText">验证邮件已发送至:</div>
35
      <ul>
36
        <li class="gren">{{emailName}}</li>
37
        <li>请您在10分钟内登录您的邮箱,接收邮件,</li>
38
        <li>点击链接后即可完成绑定。</li>
39
      </ul>
40
      <div class="foobox">
41
        <el-button type="primary" @click="loginMail">登录邮箱</el-button>
42
      </div>
43
    </el-dialog>
23 44
  </div>
24 45
</template>
25 46

26 47
<script>
48
  import Cookies from 'js-cookie';
49
  import util from '@/libs/util';
27 50
  export default {
51
    data() {
52
      return {
53
        mail: Cookies.get('plf_email'),
54
        platId: Cookies.get('platId'),
55
        dialogFormVisible: false,
56
        emailName: '',
57
        titler: '',
58
        dias: false
59
      };
60
    },
28 61
    methods: {
29
      updata() {
30
        alert(1);
62
      loginMail() {
63
        var hash = {
64
              'qq.com': 'http://mail.qq.com',
65
              'gmail.com': 'http://mail.google.com',
66
              'sina.com': 'http://mail.sina.com.cn',
67
              '163.com': 'http://mail.163.com',
68
              '126.com': 'http://mail.126.com',
69
              'yeah.net': 'http://www.yeah.net/',
70
              'sohu.com': 'http://mail.sohu.com/',
71
              'tom.com': 'http://mail.tom.com/',
72
              'sogou.com': 'http://mail.sogou.com/',
73
              '139.com': 'http://mail.10086.cn/',
74
              'hotmail.com': 'http://www.hotmail.com',
75
              'live.com': 'http://login.live.com/',
76
              'live.cn': 'http://login.live.cn/',
77
              'live.com.cn': 'http://login.live.com.cn',
78
              '189.com': 'http://webmail16.189.cn/webmail/',
79
              'yahoo.com.cn': 'http://mail.cn.yahoo.com/',
80
              'yahoo.cn': 'http://mail.cn.yahoo.com/',
81
              'eyou.com': 'http://www.eyou.com/',
82
              '21cn.com': 'http://mail.21cn.com/',
83
              '188.com': 'http://www.188.com/',
84
              'ustb.edu.cn': 'http://mail.ustb.edu.cn/',
85
              'foxmail.coom': 'http://www.foxmail.com'
86
            };
87
            var url = this.emailName.split('@')[1];
88
            if (hash[url] == undefined){
89
              location.href = 'http://mail.' + url;
90
            }else{
91
              location.href =  hash[url];
92
            }
93
      },
94
      cblur(ar) {
95
        var gunf = gunf = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
96
        if (gunf.test(this.emailName.trim())) {
97
          this.$axios.get(util.ekexiuUrl + '/ajax/isRegOrg', {
98
                    params: {
99
                      email: this.emailName
100
                    }
101
                  }).then((res) => {
102
                    if (res.success) {
103
                      if (res.data === false) {
104
                          this.titler = '该邮箱已绑定账户,请使用其他邮箱';
105
                      } else {
106
                            if (ar === 1) {
107
                              this.dialogFormVisible = false;
108
                              this.$axios.post(util.ekexiuUrl + '/ajax/platform/reqBindMail', {
109
                                  id: this.platId,
110
                                  mail: this.emailName,
111
                                  url: 'http://localhost/account-binding.html?sc'
112
                              }).then((res) => {
113
                                if (res.success) {
114
                                  this.dias = true;
115
                                }
116
                              });
117
                            }
118
                      }
119
                    }
120
                  });
121
        } else {
122
           this.titler = '请输入正确的邮箱地址。';
123
        }
124
      },
125
      mailUpadate(emailset) {
126
        var emailCookieshow;
127
        var emailq = emailset.replace(/@.*/, '');
128
        var emailh = emailset.replace(emailq, '');
129
        if (emailq.length >= 6) {
130
          emailCookieshow = emailq.substring(emailq.length - 4, 0) + '****' + emailh;
131
        }
132
        if (emailq.length === 5) {
133
          emailCookieshow = emailq.substring(emailq.length - 3, 0) + '***' + emailh;
134
        }
135
        if (emailq.length === 4) {
136
          emailCookieshow = emailq.substring(emailq.length - 2, 0) + '**' + emailh;
137
        }
138
        if (emailq.length === 3) {
139
          emailCookieshow = emailq.substring(emailq.length - 1, 0) + '*' + emailh;
140
        }
141
        if (emailq.length < 3) {
142
          emailCookieshow = emailq + emailh;
143
        }
144
        return emailCookieshow;
31 145
      }
32 146
    }
33 147
  };
@ -35,7 +149,7 @@
35 149

36 150
<style lang="stylus" rel="stylesheet/stylus">
37 151
  @import '../bench-views/workCommon';
38
  @import '../bench-views/Siderbar.styl'
152
  @import '../bench-views/Siderbar.styl';
39 153
  .newsmMain
40 154
    .updataPa
41 155
      display: flex
@ -60,4 +174,27 @@
60 174
      .band
61 175
        margin-top: 0px
62 176
        border-top: none
177
    .diog
178
      .el-dialog
179
        width: 410px
180
        .boxText
181
          text-align: center
182
          margin-bottom: 10px
183
          margin-top: 15px
184
        ul
185
          text-align: center
186
          .gren
187
            color: green
188
            margin: 10px 0 20px 0;
189
        .boxBody
190
          text-align: center
191
          .el-input
192
            width: 300px
193
          p
194
            color: red
195
      .foobox
196
        text-align: center
197
        margin-top: 30px
198
        .el-button
199
          width: 200px
63 200
</style>