Browse Source

修正细节

LIPENGTAO1313 6 years ago
parent
commit
b31ec1002c

+ 15 - 12
src/components/bench-views/ArticleTemplate.vue

19
            <li>留言 {{item.leverNumber}}</li>
19
            <li>留言 {{item.leverNumber}}</li>
20
          </ul>
20
          </ul>
21
          <ul class="list-tag" v-if="(flag==1) && (item.status==2)">
21
          <ul class="list-tag" v-if="(flag==1) && (item.status==2)">
22
            <li v-show="item.status">修改于{{comTime(item.publishTime)}}</li>
22
            <li v-show="item.status">修改于{{comTime(item.modifyTime)}}</li>
23
            <li class="coRed">草稿</li>
23
            <li class="coRed">草稿</li>
24
            <li class="coRed">将在 定时发布</li>
24
            <li class="coRed">将在 {{comTime(item.modifyTime)}}定时发布</li>
25
          </ul>
25
          </ul>
26
          <ul class="list-tag" v-if="(flag==1) && (item.status==0)">
26
          <ul class="list-tag" v-if="(flag==1) && (item.status==0)">
27
            <li v-show="item.status">修改于{{comTime(item.publishTime)}}</li>
27
            <li v-show="item.status">修改于{{comTime(item.modifyTime)}}</li>
28
            <li class="coRed">草稿</li>
28
            <li class="coRed">草稿</li>
29
          </ul>
29
          </ul>
30
        </div>
30
        </div>
31
        <div class="dele" v-if='flag === 1'>
31
        <div class="dele" v-if='flag === 1'>
32
          <el-button type="primary" size="small" v-if="(item.status == 0 || item.status == 2)">修改</el-button>
32
          <el-button type="primary" size="small" v-if="(item.status == 0 || item.status == 2)">修改</el-button>
33
          <el-button type="danger" icon="el-icon-delete" circle  @click="delet(item.articleId, index)"></el-button>
33
          <el-button type="danger" icon="el-icon-delete" circle  @click.stop="delet(item.articleId, index)"></el-button>
34
        </div>
34
        </div>
35
        <div class="dele" v-else-if='flag === 2'>
35
        <div class="dele" v-else-if='flag === 2'>
36
          <el-button type="danger" icon="el-icon-delete" circle @click="delet(item.articleId, index)"></el-button>
36
          <el-button type="danger" icon="el-icon-delete" circle @click.stop="delet(item.articleId, index)"></el-button>
37
        </div>
37
        </div>
38
        <div class="dele" v-else-if='flag === 3'>
38
        <div class="dele" v-else-if='flag === 3'>
39
          <el-button type="primary" size="small" @click.once="add(item.articleId)">{{addText}}</el-button>
39
          <el-button type="primary" size="small" @click.once.stop="add(item.articleId)">{{addText}}</el-button>
40
        </div>
40
        </div>
41
      </li>
41
      </li>
42
    </ul>
42
    </ul>
43
    <div class="taglist">
43
    <defaultPage v-show="ifDefault"></defaultPage>
44
    <div class="taglist" v-show="!ifDefault">
44
      <el-pagination background layout="prev, pager, next" :total="total" :page-size="10" @current-change="handleCurrentChange">
45
      <el-pagination background layout="prev, pager, next" :total="total" :page-size="10" @current-change="handleCurrentChange">
45
      </el-pagination>
46
      </el-pagination>
46
    </div>
47
    </div>
61
        orgDefaultImage: util.defaultSet.img.article,
62
        orgDefaultImage: util.defaultSet.img.article,
62
        orgImageAddId: util.ImageUrl('article/', true),
63
        orgImageAddId: util.ImageUrl('article/', true),
63
        platId: '',
64
        platId: '',
64
        addText: '添加'
65
        addText: '添加',
66
        ifDefault: false
65
      };
67
      };
66
    },
68
    },
67
    watch: {
69
    watch: {
85
      if (this.flag === 1) {
87
      if (this.flag === 1) {
86
        this.expertParameters.ownerId = this.platId;
88
        this.expertParameters.ownerId = this.platId;
87
        this.expertParameters.articleType = 3;
89
        this.expertParameters.articleType = 3;
90
        this.expertParameters.status = [0, 1, 2];
88
      } else {
91
      } else {
89
        this.expertParameters.pid = this.platId;
92
        this.expertParameters.pid = this.platId;
90
      }
93
      }
91
      this.expertList();
94
      this.expertList();
92
    },
95
    },
93
    methods: {
96
    methods: {
94
      comTime: util.commenTime,
97
      comTime: util.dateChange,
95
      expertList() {
98
      expertList() {
96
        this.dataList = [];
99
        this.dataList = [];
97
        this.$axios.get(util.ekexiuUrl + this.url, {
100
        this.$axios.get(util.ekexiuUrl + this.url, {
98
          params: this.expertParameters
101
          params: this.expertParameters
99
        }).then((res) => {
102
        }).then((res) => {
100
          if (res.success) {
103
          if (res.success) {
101
            this.dataList = [];
102
            this.dataList = res.data.data;
104
            this.dataList = res.data.data;
103
            this.total = res.data.total;
105
            this.total = res.data.total;
106
            if (res.data.total.length === 0) {
107
              this.ifDefault = true;
108
            }
104
            for (let i = 0; i < res.data.data.length; i++) {
109
            for (let i = 0; i < res.data.data.length; i++) {
105
              if (this.flag !== 1) {
110
              if (this.flag !== 1) {
106
                this.leaveWordTotal(res.data.data[i]);
111
                this.leaveWordTotal(res.data.data[i]);
145
      },
150
      },
146
      delet(id, index) {
151
      delet(id, index) {
147
        this.$axios.post(httpUrl.hQuery.orgTrends.del, {
152
        this.$axios.post(httpUrl.hQuery.orgTrends.del, {
148
            params: {
149
              pid: this.platId,
153
              pid: this.platId,
150
              aid: id
154
              aid: id
151
            }
152
          }).then((res) => {
155
          }).then((res) => {
153
            if (res.success) {
156
            if (res.success) {
154
              this.dataList.splice(index, 1);
157
              this.dataList.splice(index, 1);

+ 30 - 6
src/components/bench-views/Sidebar.vue

2
  <div class="newsLeft">
2
  <div class="newsLeft">
3
    <ul>
3
    <ul>
4
      <li>工作台</li>
4
      <li>工作台</li>
5
      <li>内容管理</li>
6
      <li>企业管理</li>
7
      <li>需求查询</li>
8
      <li>对接服务</li>
9
      <li>返回</li>
5
      <li :class='{bg:manage}' @click="content1">内容管理</li>
6
      <li :class='{bg:compan}' @click="com1">企业管理</li>
7
      <li :class='{bg:searDemand}' @click="demand1">需求查询</li>
8
      <li :class='{bg:servi}' @click="serice1">对接服务</li>
9
      <li @click="goHome">返回</li>
10
    </ul>
10
    </ul>
11
  </div>
11
  </div>
12
</template>
12
</template>
13
<script>
13
<script>
14

14
  export default {
15
    props: ['manage', 'compan', 'searDemand', 'servi'],
16
    methods: {
17
      content1() {
18
        this.$router.push({ path: '/ContentManagement' });
19
      },
20
      com1() {
21
        this.$router.push({ path: '/BusinessManagement' });
22
      },
23
      demand1() {
24
        this.$router.push({ path: '/DemandSearch' });
25
      },
26
      serice1() {
27
        this.$router.push({ path: '/ButtService' });
28
      },
29
      goHome() {
30
        this.$router.push({ path: '/home' });
31
      }
32
    }
33
  };
15
</script>
34
</script>
16

35

17
<style lang="stylus" rel="stylesheet/stylus">
36
<style lang="stylus" rel="stylesheet/stylus">
18
  @import './Siderbar.styl'
37
  @import './Siderbar.styl'
38
  .newsLeft
39
    ul
40
      .bg
41
        background-color: $mainColor
42
        color: #fff
19
</style>
43
</style>

+ 1 - 1
src/components/bench-views/abutmentService/ButtService.vue

1
<template>
1
<template>
2
  <div class="newsmMain">
2
  <div class="newsmMain">
3
    <Sidebar></Sidebar>
3
    <Sidebar :manage='false' :compan='false' :searDemand='false' :servi='true'></Sidebar>
4
    <div class="newsRight">
4
    <div class="newsRight">
5
      <el-tabs v-model="activeName">
5
      <el-tabs v-model="activeName">
6
        <el-tab-pane label="专家顾问" name="first">
6
        <el-tab-pane label="专家顾问" name="first">

+ 1 - 1
src/components/bench-views/businessManagement/EnterBusiness.vue

1
<template>
1
<template>
2
  <div class="newsmMain">
2
  <div class="newsmMain">
3
    <Sidebar></Sidebar>
3
    <Sidebar :manage='false' :compan='true' :searDemand='false' :servi='false'></Sidebar>
4
    <div class="newsRight">
4
    <div class="newsRight">
5
      <el-tabs v-model="activeName">
5
      <el-tabs v-model="activeName">
6
        <el-tab-pane label="入住企业" name="first">
6
        <el-tab-pane label="入住企业" name="first">

+ 1 - 1
src/components/bench-views/contentManagement/ContentManagement.vue

1
<template>
1
<template>
2
  <div class="newsmMain">
2
  <div class="newsmMain">
3
    <Sidebar></Sidebar>
3
    <Sidebar :manage='true' :compan='false' :searDemand='false' :servi='false'></Sidebar>
4
    <div class="newsRight">
4
    <div class="newsRight">
5
      <el-tabs v-model="activeName">
5
      <el-tabs v-model="activeName">
6
        <el-tab-pane label="平台管理" name="first">
6
        <el-tab-pane label="平台管理" name="first">

+ 1 - 1
src/components/bench-views/demandSearch/DemandSearch.vue

1
<template>
1
<template>
2
  <div class="newsmMain">
2
  <div class="newsmMain">
3
    <Sidebar></Sidebar>
3
    <Sidebar :manage='false' :compan='false' :searDemand='true' :servi='false'></Sidebar>
4
    <div class="newsRight">
4
    <div class="newsRight">
5
      <el-tabs v-model="activeName">
5
      <el-tabs v-model="activeName">
6
        <el-tab-pane label="发布中的需求" name="first">
6
        <el-tab-pane label="发布中的需求" name="first">

+ 18 - 3
src/components/form-views/AccountSettings.vue

3
    <div class="newsLeft">
3
    <div class="newsLeft">
4
      <ul>
4
      <ul>
5
        <li>工作台</li>
5
        <li>工作台</li>
6
        <li>密码修改</li>
7
        <li class='band'>账号绑定</li>
6
        <li class='bg' @click="passxiu">密码修改</li>
7
        <li class='band' @click="mailUp">账号绑定</li>
8
      </ul>
8
      </ul>
9
    </div>
9
    </div>
10
    <div class="newsRight">
10
    <div class="newsRight">
13
          <div class="updataPa">
13
          <div class="updataPa">
14
            <el-form label-width="100px" class="demo-ruleForm" size="medium" :model="ruleForm2" status-icon :rules="rules2" ref="ruleForm2">
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">
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>
16
                <el-input type="password" auto-complete="off" v-model="ruleForm2.loginPass"></el-input><span class="forgetPass" @click="forget">忘记密码?</span>
17
              </el-form-item>
17
              </el-form-item>
18
              <el-form-item label="新密码" prop="pass">
18
              <el-form-item label="新密码" prop="pass">
19
                <el-input type="password" v-model="ruleForm2.pass" auto-complete="off"></el-input>
19
                <el-input type="password" v-model="ruleForm2.pass" auto-complete="off"></el-input>
96
      };
96
      };
97
    },
97
    },
98
    methods: {
98
    methods: {
99
      forget() {
100
        this.$router.push({ path: '/findPwd' });
101
      },
102
      passxiu() {
103
        this.$router.push({ path: '/AccountSettings' });
104
      },
105
      mailUp(){
106
        this.$router.push({ path: '/BindAccount' });
107
      },
99
      open() {
108
      open() {
100
        this.$confirm('密码修改成功!', '提示', {
109
        this.$confirm('密码修改成功!', '提示', {
101
          confirmButtonText: '确定',
110
          confirmButtonText: '确定',
151
          position: absolute
160
          position: absolute
152
          top: 0
161
          top: 0
153
          right: -80px
162
          right: -80px
163
          cursor: pointer
154
    .newsLeft
164
    .newsLeft
165
      .bg
166
        background-color: $mainColor
167
        color: #fff
155
      .band
168
      .band
156
        margin-top: 0px
169
        margin-top: 0px
157
        border-top: none
170
        border-top: none
171

172
    
158
</style>
173
</style>

+ 17 - 8
src/components/form-views/BindAccount.vue

3
    <div class="newsLeft">
3
    <div class="newsLeft">
4
      <ul>
4
      <ul>
5
        <li>工作台</li>
5
        <li>工作台</li>
6
        <li>密码修改</li>
7
        <li class='band'>账号绑定</li>
6
        <li  @click="passxiu">密码修改</li>
7
        <li class='band bg' @click="mailUp">账号绑定</li>
8
      </ul>
8
      </ul>
9
    </div>
9
    </div>
10
    <div class="newsRight">
10
    <div class="newsRight">
59
      };
59
      };
60
    },
60
    },
61
    methods: {
61
    methods: {
62
      passxiu() {
63
        this.$router.push({ path: '/AccountSettings' });
64
      },
65
      mailUp(){
66
        this.$router.push({ path: '/BindAccount' });
67
      },
62
      loginMail() {
68
      loginMail() {
63
        var hash = {
69
        var hash = {
64
              'qq.com': 'http://mail.qq.com',
70
              'qq.com': 'http://mail.qq.com',
85
              'foxmail.coom': 'http://www.foxmail.com'
91
              'foxmail.coom': 'http://www.foxmail.com'
86
            };
92
            };
87
            var url = this.emailName.split('@')[1];
93
            var url = this.emailName.split('@')[1];
88
            if (hash[url] == undefined){
94
            if (hash[url] === undefined) {
89
              location.href = 'http://mail.' + url;
95
              location.href = 'http://mail.' + url;
90
            }else{
91
              location.href =  hash[url];
96
            } else {
97
              location.href = hash[url];
92
            }
98
            }
93
      },
99
      },
94
      cblur(ar) {
100
      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}$/;
101
        var 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())) {
102
        if (gunf.test(this.emailName.trim())) {
97
          this.$axios.get(util.ekexiuUrl + '/ajax/isRegOrg', {
103
          this.$axios.get(util.ekexiuUrl + '/ajax/platform/checkEmail', {
98
                    params: {
104
                    params: {
99
                      email: this.emailName
105
                      email: this.emailName
100
                    }
106
                    }
108
                              this.$axios.post(util.ekexiuUrl + '/ajax/platform/reqBindMail', {
114
                              this.$axios.post(util.ekexiuUrl + '/ajax/platform/reqBindMail', {
109
                                  id: this.platId,
115
                                  id: this.platId,
110
                                  mail: this.emailName,
116
                                  mail: this.emailName,
111
                                  url: 'http://localhost/account-binding.html?sc'
117
                                  url: 'http://localhost:7070/upMail?sc'
112
                              }).then((res) => {
118
                              }).then((res) => {
113
                                if (res.success) {
119
                                if (res.success) {
114
                                  this.dias = true;
120
                                  this.dias = true;
171
          margin-left: 50px
177
          margin-left: 50px
172
          padding: 12px 40px
178
          padding: 12px 40px
173
    .newsLeft
179
    .newsLeft
180
      .bg
181
        background-color: $mainColor
182
        color: #fff
174
      .band
183
      .band
175
        margin-top: 0px
184
        margin-top: 0px
176
        border-top: none
185
        border-top: none

+ 81 - 0
src/components/form-views/upMail.vue

1
<template>
2
  <div class="login">
3
    <div class="logo-wrapper"></div>
4
    <div class="form-wrapper">
5
      <div class="form-contain">
6
        <p class="form-title">账号绑定</p>
7
        <el-form :model="ruleForm" :rules="rules" ref="ruleForm" class="demo-ruleForm">
8
          <el-form-item prop="pass">
9
            <el-input type="password" v-model="ruleForm.pass" placeholder="请输入登录密码" auto-complete="off"></el-input>
10
          </el-form-item>
11
          <el-form-item></el-form-item>
12
          <el-form-item>
13
            <el-button type="primary" :disabled="isDisabl" :loading="logining" @click="submitForm('ruleForm')">绑定邮箱</el-button>
14
          </el-form-item>
15
        </el-form>
16
      </div>
17
    </div>
18
  </div>
19
</template>
20
21
<script type="text/ecmascript-6">
22
  import httpUrl from '@/libs/http';
23
  import util from '@/libs/util';
24
  export default {
25
     data() {
26
      return {
27
        logining: false,
28
        isDisabl: false,
29
        ruleForm: {
30
          pass: ''
31
        },
32
        rules: {
33
          pass: [
34
            { required: true, message: '请输入登录密码', trigger: 'blur' },
35
            { min: 6, max: 24, message: '密码由6-24个字符组成,区分大小写', trigger: 'blur' }
36
          ]
37
        }
38
      };
39
    },
40
    methods: {
41
      submitForm(formName) {
42
        this.$refs[formName].validate((valid) => {
43
          if (valid) {
44
            this.logining = true;
45
            let paramsData = {
46
              'code': util.urlParse('sc'),
47
              'pw': this.ruleForm.pass
48
            };
49
            this.$axios.post(httpUrl.hQuery.sign.bindMail, paramsData).then(res => {
50
              this.logining = false;
51
              console.log(res);
52
              if (res.success) {
53
                 this.$alert('您可以使用该邮箱登录您的账户了', '恭喜您,您的邮箱绑定成功', {
54
                  center: true,
55
                  type: 'success',
56
                  confirmButtonText: '重新登录',
57
                  callback: action => {
58
                    this.$router.push({path: '/loginPlat'});
59
                  }
60
                });
61
              } else {
62
                this.$alert('小提示:邮件内的链接有效时长为10分钟', '很抱歉,当前的链接已失效!', {
63
                  center: true,
64
                  type: 'warning'
65
                });
66
              }
67
            }).catch(error => {
68
              console.log(error);
69
            });
70
          } else {
71
            return false;
72
          }
73
        });
74
      }
75
    }
76
  };
77
</script>
78
79
<style lang="stylus" rel="stylesheet/stylus">
80
  @import './style';
81
</style>