Commit ecdefd7397638cce911bcb75d3b845d3a8b3539f
1 parent
6d48a315
限购的bug优化
Showing
3 changed files
with
6 additions
and
5 deletions
packageD/pages/AI-test-skin/success_result/success_result.js
... | ... | @@ -842,7 +842,7 @@ Page({ |
842 | 842 | //--定义的保存图片方法,分享团--- |
843 | 843 | saveImageToPhotosAlbum: function () { |
844 | 844 | var th = this; |
845 | - var rpx = this.data.cWidth / 750 * 4; //基础单位, | |
845 | + var rpx = this.data.cWidth / 750*1.7; //基础单位, | |
846 | 846 | //--先判断会员状态-- |
847 | 847 | // var user_info = getApp().globalData.userInfo; |
848 | 848 | // if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
... | ... | @@ -947,8 +947,8 @@ Page({ |
947 | 947 | y: 0, |
948 | 948 | width: 750, |
949 | 949 | height: 1093, |
950 | - destWidth: 5 * 750, | |
951 | - destHeight: 5 * 1093, | |
950 | + destWidth: 1.2 * 750 * 750/that.data.cWidth, | |
951 | + destHeight: 1.2 * 1093 * 750/that.data.cWidth, | |
952 | 952 | canvasId: 'share', |
953 | 953 | success: function (res) { |
954 | 954 | that.setData({ | ... | ... |
packageD/pages/AI-test-skin/success_result/success_result.wxml
... | ... | @@ -378,7 +378,7 @@ |
378 | 378 | |
379 | 379 | |
380 | 380 | <!-- 二维码显示页面 --> |
381 | -<canvas canvas-id='share' style='width:750px;height:1093px;background-color:white;' wx:if='{{!canvasHidden}}'></canvas> | |
381 | +<canvas canvas-id='share' style='width:750rpx;height:1093rpx;background-color:white;' wx:if='{{!canvasHidden}}'></canvas> | |
382 | 382 | <!-- 展示分享图 --> |
383 | 383 | <view id="share_show" wx:if="{{share_show}}"> |
384 | 384 | <view class="cover-layer" bindtap="close_share" style="z-index: 77777"></view> | ... | ... |
pages/cart/cart/cart.js
... | ... | @@ -4099,7 +4099,8 @@ Page({ |
4099 | 4099 | is_json:1, |
4100 | 4100 | data: { |
4101 | 4101 | listNumNewDtos: glist, |
4102 | - store_id: oo.stoid | |
4102 | + store_id: oo.stoid, | |
4103 | + user_id:getApp().globalData.user_id, | |
4103 | 4104 | } |
4104 | 4105 | }).then(async ee=>{ |
4105 | 4106 | if (ee.data.code == 0 && ee.data.data && ee.data.data.length) { | ... | ... |