Commit c9401807 authored by 李俊赕's avatar 李俊赕

处理水印请求

parent dde5b61d
...@@ -101,6 +101,7 @@ ...@@ -101,6 +101,7 @@
globalData.photo.productList = result globalData.photo.productList = result
this.dataList = result this.dataList = result
var item = result[0] var item = result[0]
globalData.photo.waterSetting = item.userWatermark
this.rightList = item.list this.rightList = item.list
}, },
...@@ -108,6 +109,8 @@ ...@@ -108,6 +109,8 @@
handleTopItemChange: function(ikey, item) { handleTopItemChange: function(ikey, item) {
this.activeTop = ikey this.activeTop = ikey
this.rightList = item.list this.rightList = item.list
const photo = getApp().globalData.photo
photo.waterSetting = item.userWatermark
uni.pageScrollTo({ uni.pageScrollTo({
scrollTop: 0, scrollTop: 0,
duration: 0 duration: 0
......
...@@ -96,9 +96,11 @@ ...@@ -96,9 +96,11 @@
this.currentItem = photo.currentItem this.currentItem = photo.currentItem
}, },
compute: { compute: {
setting() { waterSetting() {
// photo.waterSetting
const photo = getApp().globalData.photo const photo = getApp().globalData.photo
return photo.setting || null console.log(photo.waterSetting,'photo.waterSetting')
return photo.waterSetting || null
} }
}, },
watch: { watch: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment