|
@@ -172,6 +172,7 @@ export default {
|
172
|
172
|
},
|
173
|
173
|
email: {
|
174
|
174
|
get () {
|
|
175
|
+ console.log(this.Email)
|
175
|
176
|
return this.Email
|
176
|
177
|
},
|
177
|
178
|
set (val) {
|
|
@@ -189,7 +190,7 @@ export default {
|
189
|
190
|
methods: {
|
190
|
191
|
...mapMakingActions(['setBanner', 'calendar', 'setEmail']),
|
191
|
192
|
upload (url) {
|
192
|
|
- this.banner[this.mainIndex - 1].CustomerImg = url
|
|
193
|
+ this.banner[this.mainIndex - 1].CustomerImg = url + '?x-oss-process=style/calendar-thumb'
|
193
|
194
|
this.setBanner({ type: this.$route.query.type, data: JSON.parse(JSON.stringify(this.banner)) }).then(() => {
|
194
|
195
|
this.calSize().then(() => {
|
195
|
196
|
let cutDoms = document.getElementsByClassName('cutDom')[0]
|
|
@@ -200,18 +201,18 @@ export default {
|
200
|
201
|
})
|
201
|
202
|
})
|
202
|
203
|
})
|
203
|
|
- },
|
|
204
|
+ },
|
204
|
205
|
emailBlur () {
|
205
|
|
- var currentPosition,timer;
|
206
|
|
- var speed=1;//页面滚动距离
|
207
|
|
- timer=setInterval(function(){
|
208
|
|
- currentPosition=document.documentElement.scrollTop || document.body.scrollTop;
|
209
|
|
- currentPosition-=speed;
|
210
|
|
- window.scrollTo(0,currentPosition);//页面向上滚动
|
211
|
|
- currentPosition+=speed; //speed变量
|
212
|
|
- window.scrollTo(0,currentPosition);//页面向下滚动
|
213
|
|
- clearInterval(timer);
|
214
|
|
- },1);
|
|
206
|
+ var currentPosition, timer;
|
|
207
|
+ var speed = 1;//页面滚动距离
|
|
208
|
+ timer = setInterval(function () {
|
|
209
|
+ currentPosition = document.documentElement.scrollTop || document.body.scrollTop;
|
|
210
|
+ currentPosition -= speed;
|
|
211
|
+ window.scrollTo(0, currentPosition);//页面向上滚动
|
|
212
|
+ currentPosition += speed; //speed变量
|
|
213
|
+ window.scrollTo(0, currentPosition);//页面向下滚动
|
|
214
|
+ clearInterval(timer);
|
|
215
|
+ }, 1);
|
215
|
216
|
},
|
216
|
217
|
onRead (file) {
|
217
|
218
|
let that = this
|
|
@@ -278,6 +279,8 @@ export default {
|
278
|
279
|
delete curr['styleCut']
|
279
|
280
|
if (!curr.CustomerImg) {
|
280
|
281
|
curr.CustomerImg = curr.defaultNoUser
|
|
282
|
+ } else {
|
|
283
|
+ curr.CustomerImg.replace('?x-oss-process=style/calendar-thumb', '')
|
281
|
284
|
}
|
282
|
285
|
delete curr['defaultNoUser']
|
283
|
286
|
delete curr['CustomerImgShow']
|