bug
This commit is contained in:
@@ -77,7 +77,7 @@
|
|||||||
this.getInfo(query.id)
|
this.getInfo(query.id)
|
||||||
}
|
}
|
||||||
|
|
||||||
uni.$on('change', e => {
|
uni.$on('watermarkChange', e => {
|
||||||
if (e.type === 'watermark') {
|
if (e.type === 'watermark') {
|
||||||
this.watermarkId = e.value
|
this.watermarkId = e.value
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -102,8 +102,13 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
uni.$on('update', () => {
|
uni.$on('update', () => {
|
||||||
|
this.isMore = false
|
||||||
|
this.current = 1
|
||||||
this.getTotalInfo(query.id)
|
this.getTotalInfo(query.id)
|
||||||
this.getList()
|
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -80,9 +80,9 @@
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
getList () {
|
getList () {
|
||||||
this.$http.post(`/api/appalbumphoto/DetailByAlbumID?albumId=${this.id}`).then(res => {
|
this.$http.post(`/api/appalbumphoto/DetailByAlbumID?albumId=${this.id}&pageSize=100000`).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.list = res.data.map(v => {
|
this.list = res.data.records.map(v => {
|
||||||
return {
|
return {
|
||||||
...v,
|
...v,
|
||||||
checked: false
|
checked: false
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
return this.$u.toast('请选择人员')
|
return this.$u.toast('请选择人员')
|
||||||
}
|
}
|
||||||
|
|
||||||
uni.$emit('change', {
|
uni.$emit('watermarkChange', {
|
||||||
type: 'personnel',
|
type: 'personnel',
|
||||||
value: this.userList.length ? this.userList : []
|
value: this.userList.length ? this.userList : []
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
save () {
|
save () {
|
||||||
uni.$emit('change', {
|
uni.$emit('watermarkChange', {
|
||||||
type: 'photoSource',
|
type: 'photoSource',
|
||||||
value: this.currIndex
|
value: this.currIndex
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -166,7 +166,7 @@
|
|||||||
this.isHide = true
|
this.isHide = true
|
||||||
this.$loading()
|
this.$loading()
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
html2canvas(this.$refs.waterMarker, {
|
html2canvas(this.$refs.photo, {
|
||||||
allowTaint: true,
|
allowTaint: true,
|
||||||
useCORS: true
|
useCORS: true
|
||||||
}).then((canvas) => {
|
}).then((canvas) => {
|
||||||
@@ -330,6 +330,7 @@
|
|||||||
|
|
||||||
.waterMarker-img {
|
.waterMarker-img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
// max-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.watermark {
|
.watermark {
|
||||||
|
|||||||
@@ -44,15 +44,13 @@
|
|||||||
config,
|
config,
|
||||||
list: [],
|
list: [],
|
||||||
chooseIndex: -1,
|
chooseIndex: -1,
|
||||||
|
id: '',
|
||||||
pageShow: false
|
pageShow: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad (query) {
|
onLoad (query) {
|
||||||
if (query.value) {
|
this.id = query.value
|
||||||
this.currIndex = 1
|
|
||||||
this.chooseIndex = query.value ? Number(query.value) : -1
|
|
||||||
}
|
|
||||||
|
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
@@ -65,6 +63,11 @@
|
|||||||
this.list = res.data.records
|
this.list = res.data.records
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.id) {
|
||||||
|
this.chooseIndex = this.list.map(v => v.id).indexOf(this.id)
|
||||||
|
this.currIndex = 1
|
||||||
|
}
|
||||||
|
|
||||||
this.pageShow = true
|
this.pageShow = true
|
||||||
|
|
||||||
this.$hideLoading()
|
this.$hideLoading()
|
||||||
@@ -72,9 +75,9 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
save () {
|
save () {
|
||||||
uni.$emit('change', {
|
uni.$emit('watermarkChange', {
|
||||||
type: 'watermark',
|
type: 'watermark',
|
||||||
value: this.chooseIndex > -1 ? String(this.chooseIndex) : ''
|
value: this.chooseIndex > -1 ? this.list[this.chooseIndex].id : ''
|
||||||
})
|
})
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 1
|
delta: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user