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
| @@ -362,7 +362,8 @@ App({ | @@ -362,7 +362,8 @@ App({ | ||
| 362 | title: t, | 362 | title: t, |
| 363 | mask: e, | 363 | mask: e, |
| 364 | duration: a, | 364 | duration: a, |
| 365 | - image: "/images/gt.png", | 365 | + icon: 'error', |
| 366 | + // image: "/images/gt.png", | ||
| 366 | complete: function () { | 367 | complete: function () { |
| 367 | "function" == typeof o && setTimeout(o, a); | 368 | "function" == typeof o && setTimeout(o, a); |
| 368 | } | 369 | } |
packageC/pages/presell/goodsInfo/goodsInfo.js
| @@ -4019,6 +4019,14 @@ Page({ | @@ -4019,6 +4019,14 @@ Page({ | ||
| 4019 | corpId: id, | 4019 | corpId: id, |
| 4020 | success(res) {} | 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,19 +161,6 @@ Page({ | ||
| 161 | 161 | ||
| 162 | } else { | 162 | } else { |
| 163 | this.getuser_addr(function (ie) { | 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 | //th.data.prom_goods_map={}; | 165 | //th.data.prom_goods_map={}; |
| 179 | //更换地址回来要重新调用计算价钱的接口 | 166 | //更换地址回来要重新调用计算价钱的接口 |
pages/goods/search/search.js
| @@ -191,7 +191,12 @@ Page({ | @@ -191,7 +191,12 @@ Page({ | ||
| 191 | getApp().request.promiseGet(t, {data:data}).then(async res=>{ | 191 | getApp().request.promiseGet(t, {data:data}).then(async res=>{ |
| 192 | th.data.loading=0; | 192 | th.data.loading=0; |
| 193 | if(ut.ajax_ok(res)){ | 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 | for(let i in res.data.data.pageData){ | 200 | for(let i in res.data.data.pageData){ |
| 196 | let item=res.data.data.pageData[i]; | 201 | let item=res.data.data.pageData[i]; |
| 197 | item.original_img = th.data.url + item.original_img; | 202 | item.original_img = th.data.url + item.original_img; |
| @@ -355,7 +360,7 @@ Page({ | @@ -355,7 +360,7 @@ Page({ | ||
| 355 | if(val==undefined) val=t.detail.value; | 360 | if(val==undefined) val=t.detail.value; |
| 356 | val=val?val.trim():''; | 361 | val=val?val.trim():''; |
| 357 | if(!val){ | 362 | if(!val){ |
| 358 | - a.showWarning("请输入搜索关键词"); | 363 | + a.showWarning("请输入关键词"); |
| 359 | } | 364 | } |
| 360 | this.search(val); | 365 | this.search(val); |
| 361 | }, | 366 | }, |
| @@ -375,7 +380,7 @@ Page({ | @@ -375,7 +380,7 @@ Page({ | ||
| 375 | 380 | ||
| 376 | //-----点击搜索按钮---- | 381 | //-----点击搜索按钮---- |
| 377 | search: function(t) { | 382 | search: function(t) { |
| 378 | - if ("string" != typeof t || "" == t) return a.showWarning("请输入搜索关键词"); | 383 | + if ("string" != typeof t || "" == t) return a.showWarning("请输入关键词"); |
| 379 | this.data.key_str=t; | 384 | this.data.key_str=t; |
| 380 | this.resetData(); | 385 | this.resetData(); |
| 381 | this.requestSearch(this.data.baseUrl + "&key_str=" + encodeURIComponent(t)); | 386 | this.requestSearch(this.data.baseUrl + "&key_str=" + encodeURIComponent(t)); |
pages/team/team_ping/team_ping.js
| @@ -90,13 +90,6 @@ Page({ | @@ -90,13 +90,6 @@ Page({ | ||
| 90 | order_goods=null;//订单商品表 | 90 | order_goods=null;//订单商品表 |
| 91 | 91 | ||
| 92 | //获取订单表的信息根据活动user_id,pt_prom_id>0 AND pay_time>0 | 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 | await getApp().request.promiseGet("/api/weshop/order/pageTuan?"+where, { | 94 | await getApp().request.promiseGet("/api/weshop/order/pageTuan?"+where, { |
| 102 | data: { is_pt:1,store_id: os.stoid, user_id: user_id, pageSize: 6, page: this.data.currentPage,} | 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,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 | show_default: function (value, placeholder, multiple) { | 86 | show_default: function (value, placeholder, multiple) { |
| 104 | if(typeof value === 'number') { | 87 | if(typeof value === 'number') { |
| 105 | if(isNaN(value)) { | 88 | if(isNaN(value)) { |