Commit ecdefd7397638cce911bcb75d3b845d3a8b3539f

Authored by yvan.ni
1 parent 6d48a315

限购的bug优化

packageD/pages/AI-test-skin/success_result/success_result.js
@@ -842,7 +842,7 @@ Page({ @@ -842,7 +842,7 @@ Page({
842 //--定义的保存图片方法,分享团--- 842 //--定义的保存图片方法,分享团---
843 saveImageToPhotosAlbum: function () { 843 saveImageToPhotosAlbum: function () {
844 var th = this; 844 var th = this;
845 - var rpx = this.data.cWidth / 750 * 4; //基础单位, 845 + var rpx = this.data.cWidth / 750*1.7; //基础单位,
846 //--先判断会员状态-- 846 //--先判断会员状态--
847 // var user_info = getApp().globalData.userInfo; 847 // var user_info = getApp().globalData.userInfo;
848 // if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { 848 // if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) {
@@ -947,8 +947,8 @@ Page({ @@ -947,8 +947,8 @@ Page({
947 y: 0, 947 y: 0,
948 width: 750, 948 width: 750,
949 height: 1093, 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 canvasId: 'share', 952 canvasId: 'share',
953 success: function (res) { 953 success: function (res) {
954 that.setData({ 954 that.setData({
packageD/pages/AI-test-skin/success_result/success_result.wxml
@@ -378,7 +378,7 @@ @@ -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 <view id="share_show" wx:if="{{share_show}}"> 383 <view id="share_show" wx:if="{{share_show}}">
384 <view class="cover-layer" bindtap="close_share" style="z-index: 77777"></view> 384 <view class="cover-layer" bindtap="close_share" style="z-index: 77777"></view>
pages/cart/cart/cart.js
@@ -4099,7 +4099,8 @@ Page({ @@ -4099,7 +4099,8 @@ Page({
4099 is_json:1, 4099 is_json:1,
4100 data: { 4100 data: {
4101 listNumNewDtos: glist, 4101 listNumNewDtos: glist,
4102 - store_id: oo.stoid 4102 + store_id: oo.stoid,
  4103 + user_id:getApp().globalData.user_id,
4103 } 4104 }
4104 }).then(async ee=>{ 4105 }).then(async ee=>{
4105 if (ee.data.code == 0 && ee.data.data && ee.data.data.length) { 4106 if (ee.data.code == 0 && ee.data.data && ee.data.data.length) {