Commit 69f776e3 authored by Facius's avatar Facius

水印设置修改成功之后更新本地数据

parent 23a5fa4f
......@@ -100,7 +100,7 @@
const globalData = getApp().globalData
globalData.photo.productList = result
this.dataList = result
var item = result[0]
var item = result[0]
globalData.photo.waterSetting = item.userWatermark
this.rightList = item.list
},
......@@ -108,8 +108,8 @@
//顶部点击
handleTopItemChange: function(ikey, item) {
this.activeTop = ikey
this.rightList = item.list
const photo = getApp().globalData.photo
this.rightList = item.list
const photo = getApp().globalData.photo
photo.waterSetting = item.userWatermark
uni.pageScrollTo({
scrollTop: 0,
......
......@@ -130,7 +130,12 @@
'token': getApp().globalData.token,
'watermark': this.result
}).then(res => {
console.log(res)
console.log(res)
if (res.result == true) {
const photo = getApp().globalData.photo
photo.waterSetting = this.result
}
this.$nextTick(function() {
uni.hideLoading();
})
......
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