Commit 964a8dbc authored by 李俊赕's avatar 李俊赕

更新首页图片

parent f0601de2
...@@ -109,6 +109,8 @@ export default { ...@@ -109,6 +109,8 @@ export default {
classifyId: '', // 分类id classifyId: '', // 分类id
systemId: '', // 系统id systemId: '', // 系统id
}, },
topIndex:0,
itemIndex:0,
currentItemLength: 0,//已拍摄照片张数 currentItemLength: 0,//已拍摄照片张数
productList: [], productList: [],
currentItem: null, // 选择的某一项 currentItem: null, // 选择的某一项
......
...@@ -102,7 +102,8 @@ ...@@ -102,7 +102,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 const photo = getApp().globalData.photo
photo.topIndex = ikey
photo.waterSetting = item.userWatermark photo.waterSetting = item.userWatermark
uni.pageScrollTo({ uni.pageScrollTo({
scrollTop: 0, scrollTop: 0,
...@@ -122,6 +123,7 @@ ...@@ -122,6 +123,7 @@
rightItemClick: function(item, ikey) { rightItemClick: function(item, ikey) {
const photo = getApp().globalData.photo const photo = getApp().globalData.photo
photo.currentItem = item photo.currentItem = item
photo.itemIndex = ikey
uni.navigateTo({ uni.navigateTo({
url:'/pages/photo/take' url:'/pages/photo/take'
}) })
......
...@@ -70,6 +70,16 @@ ...@@ -70,6 +70,16 @@
}) })
} }
} }
if(photo.currentItem){
photo.currentItem.imageList.push(photo.tempPath.mixWater)
}
// if(photo.productList && photo.productList[photo.topIndex]){
// const topArr = photo.productList[photo.topIndex]
// if(topArr[photo.itemIndex]){
// topArr[photo.itemIndex].imageList.push(photo.tempPath.mixWater)
// }
// }
// photo.
if(photo.tempPath.mixWater){ if(photo.tempPath.mixWater){
// 保存水印处理图片到本地 // 保存水印处理图片到本地
path = photo.tempPath.mixWater path = photo.tempPath.mixWater
......
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