bug
This commit is contained in:
@@ -60,7 +60,7 @@ export default {
|
|||||||
module = 'wangge'
|
module = 'wangge'
|
||||||
}
|
}
|
||||||
this.setModule(module)
|
this.setModule(module)
|
||||||
this.getToken({...this.form, module, corpId}).then(token => {
|
this.getToken({...this.form, module, corpId: 'wpytYEDgAAcpXjmlYkYwKO60JDGDWrXg'}).then(token => {
|
||||||
if (token) {
|
if (token) {
|
||||||
this.login(token)
|
this.login(token)
|
||||||
if (module != 'AppCountryAlbum') {
|
if (module != 'AppCountryAlbum') {
|
||||||
|
|||||||
@@ -93,7 +93,7 @@
|
|||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
const data = this.configList[this.currIndex]
|
const data = this.configList[this.currIndex]
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `./ReportImg?albumId=${this.albumId}&img=${res.data.url}&type=${data.watermarkType}&templateId=${data.id}`
|
url: `./ReportImg?albumId=${this.albumId}&img=${res.data.url}&fileId=${res.data.fileId}&type=${data.watermarkType}&templateId=${data.id}`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapActions, mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
name: 'Photo',
|
name: 'Photo',
|
||||||
|
|
||||||
@@ -62,43 +62,12 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(['wxInvoke']),
|
|
||||||
|
|
||||||
back () {
|
back () {
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 1
|
delta: 1
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
share () {
|
|
||||||
uni.showActionSheet({
|
|
||||||
itemList: ['分享', '微信分享'],
|
|
||||||
success: data => {
|
|
||||||
if (data.tapIndex === 0 || data.tapIndex === 1) {
|
|
||||||
if (data.tapIndex === 0) {
|
|
||||||
this.wxInvoke(['shareAppMessage', {
|
|
||||||
title: this.info.title,
|
|
||||||
desc: this.info.tableExplain,
|
|
||||||
link: this.linkUrl,
|
|
||||||
imgUrl: this.info.headPicture
|
|
||||||
}, () => {
|
|
||||||
this.isShow = false
|
|
||||||
}])
|
|
||||||
} else {
|
|
||||||
this.wxInvoke(['shareWechatMessage', {
|
|
||||||
title: this.info.title,
|
|
||||||
desc: this.info.tableExplain,
|
|
||||||
link: this.linkUrl,
|
|
||||||
imgUrl: this.info.headPicture
|
|
||||||
}, () => {
|
|
||||||
this.isShow = false
|
|
||||||
}])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
remove () {
|
remove () {
|
||||||
this.$confirm('确定删除该图片?').then(() => {
|
this.$confirm('确定删除该图片?').then(() => {
|
||||||
this.$http.post(`/api/appalbumphoto/delete?ids=${this.id}`).then(res => {
|
this.$http.post(`/api/appalbumphoto/delete?ids=${this.id}`).then(res => {
|
||||||
|
|||||||
@@ -71,7 +71,8 @@
|
|||||||
albumId: '',
|
albumId: '',
|
||||||
templateId: '',
|
templateId: '',
|
||||||
isShow: false,
|
isShow: false,
|
||||||
currIndex: 0
|
currIndex: 0,
|
||||||
|
fileId: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -90,6 +91,7 @@
|
|||||||
this.type = query.type
|
this.type = query.type
|
||||||
this.templateId = query.templateId
|
this.templateId = query.templateId
|
||||||
this.albumId = query.albumId
|
this.albumId = query.albumId
|
||||||
|
this.fileId = query.fileId
|
||||||
|
|
||||||
this.getWatermarkList()
|
this.getWatermarkList()
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user