Commit 3bc7c6ed097374a73b9b6984753b9bc2d0f72ba7
1 parent
1d9f590a
预约服务的修改,先购买的图标
Showing
2 changed files
with
16 additions
and
1 deletions
pages/user/my_service/i_service.wxml
... | ... | @@ -15,7 +15,7 @@ |
15 | 15 | <image class="equity_money" src="{{iurl}}/miniapp/images//yyservice/equity.png" lazy-load="true"></image> |
16 | 16 | </block> |
17 | 17 | <!-- 金钱log --> |
18 | - <block wx:if="{{item.BuyType==1}}"> | |
18 | + <block wx:if="{{item.BuyType==1 || item.BuyType==2 }}"> | |
19 | 19 | <image class="equity_money" src="{{iurl}}/miniapp/images/yyservice/money.png" lazy-load="true"></image> |
20 | 20 | </block> |
21 | 21 | <!-- 礼包log --> | ... | ... |
utils/request.js
... | ... | @@ -238,6 +238,21 @@ module.exports = { |
238 | 238 | success: function (res) { succ(res);th.hideLoading(); }, |
239 | 239 | fail:function(res){fail(res);} |
240 | 240 | }) |
241 | + }, | |
242 | + | |
243 | + promise_downimg(url){ | |
244 | + return new Promise((resolve, reject) => { | |
245 | + wx.getImageInfo({ | |
246 | + src: url, | |
247 | + success: function(res) { | |
248 | + //res.path是网络图片的本地地址 | |
249 | + resolve(res.path); | |
250 | + }, | |
251 | + fail: function(err) { | |
252 | + reject(err); | |
253 | + } | |
254 | + }); | |
255 | + }) | |
241 | 256 | } |
242 | 257 | |
243 | 258 | }; |
244 | 259 | \ No newline at end of file | ... | ... |