瀏覽代碼

修正细节

LIPENGTAO1313 6 年之前
父節點
當前提交
b31ec1002c

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

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

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

@ -2,18 +2,42 @@
2 2
  <div class="newsLeft">
3 3
    <ul>
4 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 10
    </ul>
11 11
  </div>
12 12
</template>
13 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 34
</script>
16 35

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

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

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

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

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

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

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

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

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

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

@ -3,8 +3,8 @@
3 3
    <div class="newsLeft">
4 4
      <ul>
5 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 8
      </ul>
9 9
    </div>
10 10
    <div class="newsRight">
@ -13,7 +13,7 @@
13 13
          <div class="updataPa">
14 14
            <el-form label-width="100px" class="demo-ruleForm" size="medium" :model="ruleForm2" status-icon :rules="rules2" ref="ruleForm2">
15 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 17
              </el-form-item>
18 18
              <el-form-item label="新密码" prop="pass">
19 19
                <el-input type="password" v-model="ruleForm2.pass" auto-complete="off"></el-input>
@ -96,6 +96,15 @@
96 96
      };
97 97
    },
98 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 108
      open() {
100 109
        this.$confirm('密码修改成功!', '提示', {
101 110
          confirmButtonText: '确定',
@ -151,8 +160,14 @@
151 160
          position: absolute
152 161
          top: 0
153 162
          right: -80px
163
          cursor: pointer
154 164
    .newsLeft
165
      .bg
166
        background-color: $mainColor
167
        color: #fff
155 168
      .band
156 169
        margin-top: 0px
157 170
        border-top: none
171

172
    
158 173
</style>

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

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

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

@ -0,0 +1,81 @@
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>