Commit cc1a9f0c by 黄秀兰

再次添加图片 问题修复

parent 408282d6
...@@ -58,7 +58,7 @@ Page({ ...@@ -58,7 +58,7 @@ Page({
onLoad: function ( opt ) { onLoad: function ( opt ) {
this.is_uploading = false; this.is_uploading = false;
this.renderTags(); this.renderTags();
app.globalData.puzzelData.forEach(function ( item, idx ) { app.globalData.puzzelData.forEach(function ( item, idx ) {
item.index = idx; item.index = idx;
}); });
...@@ -467,6 +467,10 @@ Page({ ...@@ -467,6 +467,10 @@ Page({
var _this = this; var _this = this;
addPhoto().then( photos => { addPhoto().then( photos => {
photos.forEach(function ( item, idx ) {
item.index = idx;
});
_this.setData({ _this.setData({
photos: photos photos: photos
}); });
......
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