Commit 4f32735e9cb98d6d01aba77ee68fbe4d471d654a
Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into dev
Showing
6 changed files
with
20 additions
and
43 deletions
app.js
packageC/pages/presell/goodsInfo/goodsInfo.js
| ... | ... | @@ -4019,6 +4019,14 @@ Page({ |
| 4019 | 4019 | corpId: id, |
| 4020 | 4020 | success(res) {} |
| 4021 | 4021 | }) |
| 4022 | - } | |
| 4022 | + }, | |
| 4023 | + | |
| 4024 | + // 预览海报 | |
| 4025 | + previewPoster() { | |
| 4026 | + wx.previewImage({ | |
| 4027 | + current: this.data.shareImgPath, // 当前显示图片的http链接 | |
| 4028 | + urls: [this.data.shareImgPath] ,// 需要预览的图片http链接列表 | |
| 4029 | + }); | |
| 4030 | + }, | |
| 4023 | 4031 | |
| 4024 | 4032 | }); | ... | ... |
pages/cart/cart2_inte/cart2_inte.js
| ... | ... | @@ -161,19 +161,6 @@ Page({ |
| 161 | 161 | |
| 162 | 162 | } else { |
| 163 | 163 | this.getuser_addr(function (ie) { |
| 164 | - /*-- | |
| 165 | - //地址切换要把包邮券清空 | |
| 166 | - if( !th.data.user_addr || !ie || th.data.user_addr.address_id!=ie.address_id){ | |
| 167 | - var using_quan=th.data.using_quan; | |
| 168 | - for(var i in using_quan){ | |
| 169 | - var item=using_quan[i]; | |
| 170 | - if(item.isby==1){ | |
| 171 | - var ob={},txt="using_quan["+i+"]";ob[txt]={}; | |
| 172 | - th.setData(ob); | |
| 173 | - } | |
| 174 | - } | |
| 175 | - | |
| 176 | - }--*/ | |
| 177 | 164 | |
| 178 | 165 | //th.data.prom_goods_map={}; |
| 179 | 166 | //更换地址回来要重新调用计算价钱的接口 | ... | ... |
pages/goods/search/search.js
| ... | ... | @@ -191,7 +191,12 @@ Page({ |
| 191 | 191 | getApp().request.promiseGet(t, {data:data}).then(async res=>{ |
| 192 | 192 | th.data.loading=0; |
| 193 | 193 | if(ut.ajax_ok(res)){ |
| 194 | - if(!e.data.requestData) e.data.requestData=[]; | |
| 194 | + if(!e.data.requestData) { | |
| 195 | + // e.data.requestData=[]; | |
| 196 | + e.setData({ | |
| 197 | + requestData: [], | |
| 198 | + }); | |
| 199 | + }; | |
| 195 | 200 | for(let i in res.data.data.pageData){ |
| 196 | 201 | let item=res.data.data.pageData[i]; |
| 197 | 202 | item.original_img = th.data.url + item.original_img; |
| ... | ... | @@ -355,7 +360,7 @@ Page({ |
| 355 | 360 | if(val==undefined) val=t.detail.value; |
| 356 | 361 | val=val?val.trim():''; |
| 357 | 362 | if(!val){ |
| 358 | - a.showWarning("请输入搜索关键词"); | |
| 363 | + a.showWarning("请输入关键词"); | |
| 359 | 364 | } |
| 360 | 365 | this.search(val); |
| 361 | 366 | }, |
| ... | ... | @@ -375,7 +380,7 @@ Page({ |
| 375 | 380 | |
| 376 | 381 | //-----点击搜索按钮---- |
| 377 | 382 | search: function(t) { |
| 378 | - if ("string" != typeof t || "" == t) return a.showWarning("请输入搜索关键词"); | |
| 383 | + if ("string" != typeof t || "" == t) return a.showWarning("请输入关键词"); | |
| 379 | 384 | this.data.key_str=t; |
| 380 | 385 | this.resetData(); |
| 381 | 386 | this.requestSearch(this.data.baseUrl + "&key_str=" + encodeURIComponent(t)); | ... | ... |
pages/team/team_ping/team_ping.js
| ... | ... | @@ -90,13 +90,6 @@ Page({ |
| 90 | 90 | order_goods=null;//订单商品表 |
| 91 | 91 | |
| 92 | 92 | //获取订单表的信息根据活动user_id,pt_prom_id>0 AND pay_time>0 |
| 93 | - /*--- | |
| 94 | - await getApp().request.promiseGet("/api/weshop/order/page?"+where, { | |
| 95 | - data: { is_pt:1,store_id: os.stoid, user_id: user_id, pageSize: 6, page: this.data.currentPage,} | |
| 96 | - }).then(res => { | |
| 97 | - order = res.data.data.pageData; | |
| 98 | - this.data.currentPage++; | |
| 99 | - })--*/ | |
| 100 | 93 | |
| 101 | 94 | await getApp().request.promiseGet("/api/weshop/order/pageTuan?"+where, { |
| 102 | 95 | data: { is_pt:1,store_id: os.stoid, user_id: user_id, pageSize: 6, page: this.data.currentPage,} | ... | ... |
utils/filter.wxs
| ... | ... | @@ -82,24 +82,7 @@ var filters = { |
| 82 | 82 | } |
| 83 | 83 | }, |
| 84 | 84 | |
| 85 | - | |
| 86 | - // show_default: function (value, placeholder, multiple) { | |
| 87 | - // if(typeof value === 'number') { | |
| 88 | - // if(isNaN(value) || value === 0) { | |
| 89 | - // return placeholder || '0'; | |
| 90 | - // } else { | |
| 91 | - // if(multiple) { | |
| 92 | - // return value / multiple; | |
| 93 | - // } else { | |
| 94 | - // return value; | |
| 95 | - // } | |
| 96 | - // }; | |
| 97 | - // } else if(value === '' || value === undefined || value === null) { | |
| 98 | - // return placeholder || '-'; | |
| 99 | - // } else { | |
| 100 | - // return value; | |
| 101 | - // } | |
| 102 | - // }, | |
| 85 | + | |
| 103 | 86 | show_default: function (value, placeholder, multiple) { |
| 104 | 87 | if(typeof value === 'number') { |
| 105 | 88 | if(isNaN(value)) { | ... | ... |