Browse Source

Merge branch 'dev' of http://git.ycjcjy.com/SpaceOfCheng/wechat into dev

wangfei 6 years ago
parent
commit
5754255bfd

+ 41
- 12
src/components/customerCard/customerCard.vue View File

1
 <template>
1
 <template>
2
   <div class="card-content">
2
   <div class="card-content">
3
+    <div class="tag">
4
+      <span>我推荐</span>
5
+    </div>
3
     <div class="card-top flex-h">
6
     <div class="card-top flex-h">
4
       <div class="flex-h">
7
       <div class="flex-h">
5
         <img :src="data.Headimgurl" alt="">
8
         <img :src="data.Headimgurl" alt="">
44
   border-radius: 0.08rem;
47
   border-radius: 0.08rem;
45
   overflow: hidden;
48
   overflow: hidden;
46
   margin-bottom: 0.2rem;
49
   margin-bottom: 0.2rem;
50
+  position: relative;
51
+  .tag {
52
+    position: absolute;
53
+    top: 0;
54
+    left: 0;
55
+    transform: rotate(-45deg);
56
+    width: 0.8rem;
57
+    height: 0.8rem;
58
+    top: -0.42rem;
59
+    left: -0.42rem;
60
+    background: linear-gradient(
61
+      138deg,
62
+      rgba(255, 149, 41, 1) 0%,
63
+      rgba(255, 63, 41, 1) 100%
64
+    );
65
+    span {
66
+      position: absolute;
67
+      bottom: 2px;
68
+      left: 50%;
69
+      transform: translateX(-50%);
70
+      color: #fff;
71
+      font-size: .12rem;
72
+      width: 100%;
73
+      text-align: center;
74
+    }
75
+  }
47
   .card-top {
76
   .card-top {
48
     padding: 0.3rem 0.1rem;
77
     padding: 0.3rem 0.1rem;
49
     > div:nth-of-type(1) {
78
     > div:nth-of-type(1) {
57
       div {
86
       div {
58
         span {
87
         span {
59
           display: block;
88
           display: block;
60
-          padding: .02rem 0;
89
+          padding: 0.02rem 0;
61
         }
90
         }
62
       }
91
       }
63
     }
92
     }
67
       align-items: center;
96
       align-items: center;
68
       justify-content: center;
97
       justify-content: center;
69
       flex: 1;
98
       flex: 1;
70
-      padding-left: .15rem;
71
-      div{
72
-        color: #FC6243;
73
-        font-size: .12rem;
74
-        padding: 0.02rem .15rem;
75
-        border: 1px solid #FC6243;
99
+      padding-left: 0.15rem;
100
+      div {
101
+        color: #fc6243;
102
+        font-size: 0.12rem;
103
+        padding: 0.02rem 0.15rem;
104
+        border: 1px solid #fc6243;
76
         border-radius: 20px;
105
         border-radius: 20px;
77
         margin: 0.05rem 0;
106
         margin: 0.05rem 0;
78
       }
107
       }
79
     }
108
     }
80
   }
109
   }
81
-  .card-bottom{
82
-    background: #F2F2F2;
110
+  .card-bottom {
111
+    background: #f2f2f2;
83
     display: flex;
112
     display: flex;
84
-    padding: .15rem;
113
+    padding: 0.15rem;
85
     justify-content: space-between;
114
     justify-content: space-between;
86
-    span:nth-of-type(1){
115
+    span:nth-of-type(1) {
87
       color: #323645;
116
       color: #323645;
88
     }
117
     }
89
-    span:nth-of-type(2){
118
+    span:nth-of-type(2) {
90
       color: #909090;
119
       color: #909090;
91
     }
120
     }
92
   }
121
   }

+ 6
- 7
src/components/myCard/myCard.vue View File

77
     opacity: 0.5;
77
     opacity: 0.5;
78
   }
78
   }
79
   .card-top {
79
   .card-top {
80
-    height: 0.88rem;
80
+    height: 1rem;
81
     padding: 0.1rem;
81
     padding: 0.1rem;
82
     box-sizing: border-box;
82
     box-sizing: border-box;
83
     .descs {
83
     .descs {
84
       overflow: hidden;
84
       overflow: hidden;
85
       text-overflow: ellipsis;
85
       text-overflow: ellipsis;
86
       display: -webkit-box;
86
       display: -webkit-box;
87
-      -webkit-line-clamp: 1;
87
+      -webkit-line-clamp: 2;
88
       -webkit-box-orient: vertical;
88
       -webkit-box-orient: vertical;
89
-      height: .16rem;
89
+      height: .32rem;
90
       line-height: .16rem;
90
       line-height: .16rem;
91
     }
91
     }
92
     div:nth-of-type(1) {
92
     div:nth-of-type(1) {
93
-      width: 1.2rem;
93
+      width: 1.15rem;
94
       position: relative;
94
       position: relative;
95
       .logo {
95
       .logo {
96
         width: 85%;
96
         width: 85%;
123
         font-size: 0.16rem;
123
         font-size: 0.16rem;
124
       }
124
       }
125
       span {
125
       span {
126
-        display: block;
127
         color: #323645;
126
         color: #323645;
128
-        font-size: 12px;
129
-        padding-top: 0.03rem;
127
+        font-size: 12px;      
128
+        padding-top: 0.05rem;
130
       }
129
       }
131
     }
130
     }
132
   }
131
   }

+ 1
- 1
src/pages/sales/customerSearch/index.vue View File

1
 <template>
1
 <template>
2
   <div class="mainPage flex-v">
2
   <div class="mainPage flex-v">
3
     <div class="top">
3
     <div class="top">
4
-      <topCaseInfo :data="topCaseInfoData" :userName="userInfo.customer !== undefined ? userInfo.customer.CustomerName : ''"></topCaseInfo>
4
+      <topCaseInfo :data="topCaseInfoData" :userName="userInfo.customer !== undefined ? userInfo.customer.Name : ''"></topCaseInfo>
5
     </div>
5
     </div>
6
     <div class="content flex-item">
6
     <div class="content flex-item">
7
       <div>
7
       <div>

+ 1
- 1
src/pages/sales/getRecord/index.vue View File

1
 <template>
1
 <template>
2
   <div class="mainPage flex-v">
2
   <div class="mainPage flex-v">
3
     <div class="top">
3
     <div class="top">
4
-      <topCaseInfo :data="topCaseInfoData" :userName="userInfo.customer !== undefined ? userInfo.customer.CustomerName : ''" @selectCase="showSelect = true"></topCaseInfo>
4
+      <topCaseInfo :data="topCaseInfoData" :userName="userInfo.customer !== undefined ? userInfo.customer.Name : ''" @selectCase="showSelect = true"></topCaseInfo>
5
     </div>
5
     </div>
6
     <div class="info">
6
     <div class="info">
7
       <span><em>姓名:</em>{{user.name}}</span>
7
       <span><em>姓名:</em>{{user.name}}</span>

+ 1
- 1
src/pages/sales/login/index.vue View File

14
           <div class="sms" style="margin-top:.2rem;">
14
           <div class="sms" style="margin-top:.2rem;">
15
             <i class="iconfont icon-mima"></i>
15
             <i class="iconfont icon-mima"></i>
16
             <input type="number" maxlength="6" placeholder="验证码" v-model="postData.captcha">
16
             <input type="number" maxlength="6" placeholder="验证码" v-model="postData.captcha">
17
-            <div class="sand" v-if="seconds === 61" @click="sandMsg">发送验证码</div>
17
+            <div class="sand color" v-if="seconds === 61" @click="sandMsg">发送验证码</div>
18
             <div class="sand" v-else>{{seconds}}后可重发</div>
18
             <div class="sand" v-else>{{seconds}}后可重发</div>
19
           </div>
19
           </div>
20
         </div>
20
         </div>

+ 5
- 1
src/pages/sales/login/page.scss View File

1
 .mainPage {
1
 .mainPage {
2
-  background: url("../../../common/icon/bg.jpg") no-repeat 0 -0.8rem;
2
+  background: url("../../../common/icon/bg.jpg") no-repeat 0 0;
3
   background-size: 100% calc(100% + 90px);
3
   background-size: 100% calc(100% + 90px);
4
   position: relative;
4
   position: relative;
5
   input::-webkit-input-placeholder {
5
   input::-webkit-input-placeholder {
67
           line-height: .24rem;
67
           line-height: .24rem;
68
           position: absolute;
68
           position: absolute;
69
           right: .1rem;
69
           right: .1rem;
70
+          &.color{
71
+            border:1px solid #DADADA;
72
+            color: #DADADA;
73
+          }
70
         }
74
         }
71
       }
75
       }
72
       .recommend{
76
       .recommend{

+ 1
- 1
src/pages/sales/salesGiveOutDetail/index.vue View File

1
 <template>
1
 <template>
2
   <div class="mainPage flex-v">
2
   <div class="mainPage flex-v">
3
     <div class="top">
3
     <div class="top">
4
-      <topCaseInfo :data="topCaseInfoData" :userName="userInfo.customer !== undefined ? userInfo.customer.CustomerName : ''" @selectCase="showVanPicker"></topCaseInfo>
4
+      <topCaseInfo :data="topCaseInfoData" :userName="userInfo.customer !== undefined ? userInfo.customer.Name : ''" @selectCase="showVanPicker"></topCaseInfo>
5
     </div>
5
     </div>
6
     <div class="flex-item flex-v body" v-if="data.allCard">
6
     <div class="flex-item flex-v body" v-if="data.allCard">
7
       <span>销售姓名:<em>{{data.RealName}}</em></span>
7
       <span>销售姓名:<em>{{data.RealName}}</em></span>

+ 1
- 1
src/pages/sales/salesRecord/index.vue View File

1
 <template>
1
 <template>
2
   <div class="mainPage flex-v">
2
   <div class="mainPage flex-v">
3
     <div class="top">
3
     <div class="top">
4
-      <topCaseInfo :data="topCaseInfoData" :userName="userInfo.customer !== undefined ? userInfo.customer.CustomerName : ''" @selectCase="showVanPicker"></topCaseInfo>
4
+      <topCaseInfo :data="topCaseInfoData" :userName="userInfo.customer !== undefined ? userInfo.customer.Name : ''" @selectCase="showVanPicker"></topCaseInfo>
5
     </div>
5
     </div>
6
     <div class="flex-item body">
6
     <div class="flex-item body">
7
       <div>
7
       <div>

+ 1
- 1
src/pages/user/bindMobile/bindMobile.vue View File

25
         <div class="sms">
25
         <div class="sms">
26
           <i class="iconfont icon-mima"></i>
26
           <i class="iconfont icon-mima"></i>
27
           <input type="number" maxlength="6" placeholder="验证码" v-model="postData.captcha">
27
           <input type="number" maxlength="6" placeholder="验证码" v-model="postData.captcha">
28
-          <div class="sand" v-if="seconds === 61" @click="sandMsg">发送验证码</div>
28
+          <div class="sand color" v-if="seconds === 61" @click="sandMsg">发送验证码</div>
29
           <div class="sand" v-else>{{seconds}}后可重发</div>
29
           <div class="sand" v-else>{{seconds}}后可重发</div>
30
         </div>
30
         </div>
31
 
31
 

+ 5
- 1
src/pages/user/bindMobile/page.scss View File

1
 .mainPage {
1
 .mainPage {
2
-  background: url("../../../common/icon/bg.jpg") no-repeat 0 -0.8rem;
2
+  background: url("../../../common/icon/bg.jpg") no-repeat 0 0;
3
   background-size: 100% calc(100% + 90px);
3
   background-size: 100% calc(100% + 90px);
4
   position: relative;
4
   position: relative;
5
   input::-webkit-input-placeholder {
5
   input::-webkit-input-placeholder {
67
           line-height: .24rem;
67
           line-height: .24rem;
68
           position: absolute;
68
           position: absolute;
69
           right: .1rem;
69
           right: .1rem;
70
+          &.color{
71
+            border:1px solid #DADADA;
72
+            color: #DADADA;
73
+          }
70
         }
74
         }
71
       }
75
       }
72
       .recommend{
76
       .recommend{

+ 5
- 5
src/pages/user/mainPage/coffeeIndex/index.vue View File

1
 <template>
1
 <template>
2
   <div class="mainPage flex-v">
2
   <div class="mainPage flex-v">
3
     <div class="top">
3
     <div class="top">
4
-      <topCaseInfo :data="topCaseInfoData" :userName="userInfo.customer !== undefined ? userInfo.customer.CustomerName : ''" @selectCase="showVanPicker"></topCaseInfo>
4
+      <topCaseInfo :data="topCaseInfoData" :userName="userInfo.customer !== undefined ? userInfo.customer.Name : ''" @selectCase="showVanPicker"></topCaseInfo>
5
     </div>
5
     </div>
6
     <nav class="flex-h" v-if="userInfo.customer.MapUser !== ''">
6
     <nav class="flex-h" v-if="userInfo.customer.MapUser !== ''">
7
       <a class="flex-item" v-for="(item,index) in cutNavList" :key="index" v-if="userInfo.customer.UserTypeId !== 'manager' || item.id !== '4'" :class="{'active': navActive === index}" @click="cutNav(index)">{{item.value}}</a>
7
       <a class="flex-item" v-for="(item,index) in cutNavList" :key="index" v-if="userInfo.customer.UserTypeId !== 'manager' || item.id !== '4'" :class="{'active': navActive === index}" @click="cutNav(index)">{{item.value}}</a>
282
               price: res.list[n].Price,
282
               price: res.list[n].Price,
283
               title: res.list[n].CouponName,
283
               title: res.list[n].CouponName,
284
               desc: res.list[n].Share.UseRule,
284
               desc: res.list[n].Share.UseRule,
285
-              startDate: this.toolClass.dateFormat(res.list[n].StartDate, 'YYYY年MM月DD日'),
286
-              endDate: this.toolClass.dateFormat(res.list[n].EndDate, 'YYYY年MM月DD日'),
285
+              startDate: this.toolClass.dateFormat(res.list[n].StartDate, 'yyyy年MM月dd日'),
286
+              endDate: this.toolClass.dateFormat(res.list[n].EndDate, 'yyyy年MM月dd日'),
287
               totalCount: res.list[n].TotalCount,
287
               totalCount: res.list[n].TotalCount,
288
               SentCount: res.list[n].SentCount,
288
               SentCount: res.list[n].SentCount,
289
               usedCount: res.list[n].UsedCount,
289
               usedCount: res.list[n].UsedCount,
306
               price: res.list[n].Price,
306
               price: res.list[n].Price,
307
               title: res.list[n].CardName,
307
               title: res.list[n].CardName,
308
               desc: res.list[n].Share.CardUseRule,
308
               desc: res.list[n].Share.CardUseRule,
309
-              startDate: this.toolClass.dateFormat(res.list[n].StartDate),
310
-              endDate: this.toolClass.dateFormat(res.list[n].EndDate),
309
+              startDate: this.toolClass.dateFormat(res.list[n].StartDate, 'yyyy年MM月dd日'),
310
+              endDate: this.toolClass.dateFormat(res.list[n].EndDate, 'yyyy年MM月dd日'),
311
               totalCount: res.list[n].TotalCount,
311
               totalCount: res.list[n].TotalCount,
312
               SentCount: res.list[n].SentCount,
312
               SentCount: res.list[n].SentCount,
313
               usedCount: res.list[n].UsedCount,
313
               usedCount: res.list[n].UsedCount,

+ 3
- 3
src/pages/user/majorProjects/index.vue View File

133
     ...mapProjectState({
133
     ...mapProjectState({
134
       projectInfo: x => x.projectInfo
134
       projectInfo: x => x.projectInfo
135
     }),
135
     }),
136
-    MySwiper () {
137
-      return this.$refs.mySwiper.swiper
138
-    },
136
+    // MySwiper () {
137
+    //   return this.$refs.mySwiper.swiper
138
+    // },
139
   },
139
   },
140
   components: {
140
   components: {
141
     courseItem,
141
     courseItem,

+ 4
- 0
src/pages/user/majorProjects/page.scss View File

24
         top: 0;
24
         top: 0;
25
         bottom: 0;
25
         bottom: 0;
26
       }
26
       }
27
+      img{
28
+        width: 100%;
29
+        height: 100%;
30
+      }
27
     }
31
     }
28
   }
32
   }
29
   .items{
33
   .items{