diff --git a/app.js b/app.js index 7c34f27..8d24d13 100644 --- a/app.js +++ b/app.js @@ -362,7 +362,8 @@ App({ title: t, mask: e, duration: a, - image: "/images/gt.png", + icon: 'error', + // image: "/images/gt.png", complete: function () { "function" == typeof o && setTimeout(o, a); } diff --git a/packageC/pages/presell/goodsInfo/goodsInfo.js b/packageC/pages/presell/goodsInfo/goodsInfo.js index 753d4eb..d553948 100644 --- a/packageC/pages/presell/goodsInfo/goodsInfo.js +++ b/packageC/pages/presell/goodsInfo/goodsInfo.js @@ -4022,6 +4022,14 @@ Page({ corpId: id, success(res) {} }) - } + }, + + // 预览海报 + previewPoster() { + wx.previewImage({ + current: this.data.shareImgPath, // 当前显示图片的http链接 + urls: [this.data.shareImgPath] ,// 需要预览的图片http链接列表 + }); + }, }); diff --git a/pages/goods/search/search.js b/pages/goods/search/search.js index 364086a..1776180 100644 --- a/pages/goods/search/search.js +++ b/pages/goods/search/search.js @@ -191,7 +191,12 @@ Page({ getApp().request.promiseGet(t, {data:data}).then(async res=>{ th.data.loading=0; if(ut.ajax_ok(res)){ - if(!e.data.requestData) e.data.requestData=[]; + if(!e.data.requestData) { + // e.data.requestData=[]; + e.setData({ + requestData: [], + }); + }; for(let i in res.data.data.pageData){ let item=res.data.data.pageData[i]; item.original_img = th.data.url + item.original_img; @@ -355,7 +360,7 @@ Page({ if(val==undefined) val=t.detail.value; val=val?val.trim():''; if(!val){ - a.showWarning("请输入搜索关键词"); + a.showWarning("请输入关键词"); } this.search(val); }, @@ -375,7 +380,7 @@ Page({ //-----点击搜索按钮---- search: function(t) { - if ("string" != typeof t || "" == t) return a.showWarning("请输入搜索关键词"); + if ("string" != typeof t || "" == t) return a.showWarning("请输入关键词"); this.data.key_str=t; this.resetData(); this.requestSearch(this.data.baseUrl + "&key_str=" + encodeURIComponent(t));