Commit d3c66706a9b94ebf6d8a80cf13d5739ecfec9200

Authored by 后端研发-苏泰源
2 parents c63edec0 256b10d2

Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into dev

packageD/pages/AI-test-skin/success_result/goods.wxml
@@ -9,9 +9,9 @@ @@ -9,9 +9,9 @@
9 <!-- 显示正确的商品价格 --> 9 <!-- 显示正确的商品价格 -->
10 <view style="display: flex;justify-content: space-between;"> 10 <view style="display: flex;justify-content: space-between;">
11 <block wx:if="{{(item.prom_price>0 || item.prom_integral>0) && item.prom_id>0 && item.prom_type!=7 && item.prom_type!=10}}"> 11 <block wx:if="{{(item.prom_price>0 || item.prom_integral>0) && item.prom_id>0 && item.prom_type!=7 && item.prom_type!=10}}">
12 - <text wx:if="{{item.prom_integral}}"><text class="fs35" style="font-weight: bold;">{{item.prom_integral}}</text>积分</text>  
13 - <text wx:if="{{item.prom_integral && item.prom_price}}">+</text>  
14 <text wx:if="{{item.prom_price}}" class="bold">¥{{item.shop_price}}</text> 12 <text wx:if="{{item.prom_price}}" class="bold">¥{{item.shop_price}}</text>
  13 + <text wx:if="{{item.prom_integral && item.prom_price}}">+</text>
  14 +
15 </block> 15 </block>
16 <block wx:else> 16 <block wx:else>
17 <block wx:if="{{s_filter.is_has_rank(rank_switch,item)}}"> 17 <block wx:if="{{s_filter.is_has_rank(rank_switch,item)}}">
@@ -36,4 +36,5 @@ @@ -36,4 +36,5 @@
36 36
37 <view class="mm"><text class="iconfont icon-gouwuche"></text></view> 37 <view class="mm"><text class="iconfont icon-gouwuche"></text></view>
38 </view> 38 </view>
  39 + <view wx:if="{{item.prom_integral}}"><text style="font-weight: bold;">{{item.prom_integral}}</text>积分</view>
39 </view> 40 </view>
40 \ No newline at end of file 41 \ No newline at end of file
packageD/pages/AI-test-skin/success_result/success_result.js
@@ -302,6 +302,7 @@ Page({ @@ -302,6 +302,7 @@ Page({
302 //-- 获取一下分享要用的图片 -- 302 //-- 获取一下分享要用的图片 --
303 th.set_share_img(); 303 th.set_share_img();
304 acne.get_goods(th, setting.stoid); 304 acne.get_goods(th, setting.stoid);
  305 +
305 // let { heightRecord, tab } = th.data; 306 // let { heightRecord, tab } = th.data;
306 // tab.forEach(item => { 307 // tab.forEach(item => {
307 // console.log(2); 308 // console.log(2);
@@ -779,7 +780,7 @@ Page({ @@ -779,7 +780,7 @@ Page({
779 ///二微码 780 ///二微码
780 var path3 = setting.url + "/api/wx/open/app/user/getWeAppEwm/" + 781 var path3 = setting.url + "/api/wx/open/app/user/getWeAppEwm/" +
781 setting.stoid + "?sceneValue=" + scene + "&pageValue=packageD/pages/AI-test-skin/success_result/success_result"; 782 setting.stoid + "?sceneValue=" + scene + "&pageValue=packageD/pages/AI-test-skin/success_result/success_result";
782 - 783 +
783 // 读取文件成功则OK-- 784 // 读取文件成功则OK--
784 wx.getImageInfo({ 785 wx.getImageInfo({
785 src: path3, 786 src: path3,
@@ -793,21 +794,21 @@ Page({ @@ -793,21 +794,21 @@ Page({
793 context.fillStyle = '#ebf6f8'; 794 context.fillStyle = '#ebf6f8';
794 // 灰色实心矩形 795 // 灰色实心矩形
795 // 1. 语法: x坐标, y坐标, 宽度, 高度 796 // 1. 语法: x坐标, y坐标, 宽度, 高度
796 - context.fillRect(0, 0, 750 * rpx, 1338 * rpx); 797 + context.fillRect(0, 0, 750 * rpx, 1320 * rpx);
797 798
798 context.setFontSize(20 * rpx) 799 context.setFontSize(20 * rpx)
799 context.setFillStyle("#00d8e9") 800 context.setFillStyle("#00d8e9")
800 - context.fillText("官方检测认证", 28 * b * rpx, 80 * b * rpx); 801 + context.fillText("官方检测认证", 32 * b * rpx, 80 * b * rpx);
801 802
802 //两个底部颜色 803 //两个底部颜色
803 context.fillStyle = '#a7ecf5'; 804 context.fillStyle = '#a7ecf5';
804 - context.fillRect(28 * b * rpx, 136 * b * rpx, 262 * b * rpx, 18 * b * rpx);  
805 - context.fillRect(28 * b * rpx, 194 * b * rpx, 262 * b * rpx, 18 * b * rpx); 805 + context.fillRect(32 * b * rpx, 136 * b * rpx, 262 * b * rpx, 18 * b * rpx);
  806 + context.fillRect(32 * b * rpx, 194 * b * rpx, 262 * b * rpx, 18 * b * rpx);
806 807
807 context.setFontSize(42 * b * rpx) 808 context.setFontSize(42 * b * rpx)
808 context.setFillStyle("#070609") 809 context.setFillStyle("#070609")
809 - context.fillText("我的肌底强韧", 30 * b * rpx, 140 * b * rpx);  
810 - context.fillText("肌肤鲜活润泽", 30 * b * rpx, 196 * b * rpx); 810 + context.fillText("我的肌底强韧", 32 * b * rpx, 140 * b * rpx);
  811 + context.fillText("肌肤鲜活润泽", 32 * b * rpx, 196 * b * rpx);
811 812
812 //先画一个圆形 813 //先画一个圆形
813 th.circle(context, 110 * b * rpx, 280 * b * rpx, 140 * b * rpx, "#e7f3f8"); 814 th.circle(context, 110 * b * rpx, 280 * b * rpx, 140 * b * rpx, "#e7f3f8");
@@ -816,35 +817,35 @@ Page({ @@ -816,35 +817,35 @@ Page({
816 context.drawImage(th.data.share_head, 132 * b * rpx, 310 * b * rpx, 230 * b * rpx, 230 * b * rpx); 817 context.drawImage(th.data.share_head, 132 * b * rpx, 310 * b * rpx, 230 * b * rpx, 230 * b * rpx);
817 818
818 //左右俩个框并填充文字 819 //左右俩个框并填充文字
819 - th.darwRoundRect(38 * b * rpx, 340 * b * rpx, 140 * b * rpx, 40 * b * rpx, 20 * b * rpx, context);  
820 - th.darwRoundRect(324 * b * rpx, 340 * b * rpx, 140 * b * rpx, 40 * b * rpx, 20 * b * rpx, context);  
821 - context.setFontSize(20 * b * rpx) 820 + th.darwRoundRect(38 * b * rpx, 340 * b * rpx, 120 * b * rpx, 34 * b * rpx, 17 * b * rpx, context);
  821 + th.darwRoundRect(324 * b * rpx, 340 * b * rpx, 120 * b * rpx, 34 * b * rpx, 17 * b * rpx, context);
  822 + context.setFontSize(18 * b * rpx)
822 context.setFillStyle("black") 823 context.setFillStyle("black")
823 - context.fillText("黑眼圈 重度", 50 * b * rpx, 368 * b * rpx);  
824 - context.fillText("毛孔 " + th.data.pore_num, 336 * b * rpx, 368 * b * rpx); 824 + context.fillText("黑眼圈 重度", 50 * b * rpx, 363 * b * rpx);
  825 + context.fillText("毛孔 " + th.data.pore_num, 340 * b * rpx, 363 * b * rpx);
825 826
826 //左右俩个框并填充文字 827 //左右俩个框并填充文字
827 - th.darwRoundRect(40 * b * rpx, 412 * b * rpx, 116 * b * rpx, 40 * b * rpx, 20 * b * rpx, context);  
828 - th.darwRoundRect(348 * b * rpx, 412 * b * rpx, 116 * b * rpx, 40 * b * rpx, 20 * b * rpx, context); 828 + th.darwRoundRect(40 * b * rpx, 412 * b * rpx, 116 * b * rpx, 34 * b * rpx, 17 * b * rpx, context);
  829 + th.darwRoundRect(348 * b * rpx, 412 * b * rpx, 116 * b * rpx, 34 * b * rpx, 17 * b * rpx, context);
829 context.setFillStyle("black") 830 context.setFillStyle("black")
830 - context.fillText("黑头 " + th.data.blackhead_num, 52 * b * rpx, 440 * b * rpx);  
831 - context.fillText("色斑 " + th.data.speckle_num, 354 * b * rpx, 440 * b * rpx); 831 + context.fillText("黑头 " + th.data.blackhead_num, 60 * b * rpx, 434 * b * rpx);
  832 + context.fillText("色斑 " + th.data.speckle_num, 362 * b * rpx, 434 * b * rpx);
832 833
833 //左右俩个框并填充文字 834 //左右俩个框并填充文字
834 - th.darwRoundRect(60 * b * rpx, 484 * b * rpx, 116 * b * rpx, 40 * b * rpx, 20 * b * rpx, context);  
835 - th.darwRoundRect(328 * b * rpx, 484 * b * rpx, 116 * b * rpx, 40 * b * rpx, 20 * b * rpx, context); 835 + th.darwRoundRect(60 * b * rpx, 484 * b * rpx, 116 * b * rpx, 34 * b * rpx, 17 * b * rpx, context);
  836 + th.darwRoundRect(328 * b * rpx, 484 * b * rpx, 116 * b * rpx, 34 * b * rpx, 17 * b * rpx, context);
836 context.setFillStyle("black") 837 context.setFillStyle("black")
837 - context.fillText("皱纹 " + th.data.wrinkle_num, 74 * b * rpx, 510 * b * rpx);  
838 - context.fillText("痤疮 " + th.data.acne_num, 344 * b * rpx, 510 * b * rpx); 838 + context.fillText("皱纹 " + th.data.wrinkle_num, 74 * b * rpx, 506 * b * rpx);
  839 + context.fillText("痤疮 " + th.data.acne_num, 350 * b * rpx, 506 * b * rpx);
839 840
840 //底部的绘制 841 //底部的绘制
841 th.darwRoundRect(38 * b * rpx, 650 * b * rpx, 430 * b * rpx, 160 * b * rpx, 10 * b * rpx, context); 842 th.darwRoundRect(38 * b * rpx, 650 * b * rpx, 430 * b * rpx, 160 * b * rpx, 10 * b * rpx, context);
842 //绘制二维码 843 //绘制二维码
843 context.drawImage(vpath, 60 * b * rpx, 672 * b * rpx, 120 * b * rpx, 120 * b * rpx); 844 context.drawImage(vpath, 60 * b * rpx, 672 * b * rpx, 120 * b * rpx, 120 * b * rpx);
844 context.setFillStyle("black") 845 context.setFillStyle("black")
845 - context.setFontSize(32 * b * rpx) 846 + context.setFontSize(27 * b * rpx)
846 context.fillText("美肤管家AI测肤", 200 * b * rpx, 726 * b * rpx); 847 context.fillText("美肤管家AI测肤", 200 * b * rpx, 726 * b * rpx);
847 - context.setFontSize(22 * b * rpx) 848 + context.setFontSize(19 * b * rpx)
848 context.fillText("科学了解皮肤的真实状态", 200 * b * rpx, 766 * b * rpx); 849 context.fillText("科学了解皮肤的真实状态", 200 * b * rpx, 766 * b * rpx);
849 850
850 //把画板内容绘制成图片,并回调 画板图片路径 851 //把画板内容绘制成图片,并回调 画板图片路径
@@ -854,7 +855,7 @@ Page({ @@ -854,7 +855,7 @@ Page({
854 x: 0, 855 x: 0,
855 y: 0, 856 y: 0,
856 width: 750, 857 width: 750,
857 - height: 1338, 858 + height: 1320,
858 destWidth: 1.4 * 750 * 750 / th.data.screenWidth, 859 destWidth: 1.4 * 750 * 750 / th.data.screenWidth,
859 destHeight: 1.4 * 750 * 750 / th.data.screenWidth, 860 destHeight: 1.4 * 750 * 750 / th.data.screenWidth,
860 canvasId: 'share', 861 canvasId: 'share',
packageD/pages/AI-test-skin/success_result/success_result.wxml
@@ -378,12 +378,12 @@ @@ -378,12 +378,12 @@
378 378
379 379
380 <!-- 二维码显示页面 --> 380 <!-- 二维码显示页面 -->
381 -<canvas canvas-id='share' style='width:750rpx;height:1338rpx;background-color:white;' wx:if='{{!canvasHidden}}'></canvas> 381 +<canvas canvas-id='share' style='width:750rpx;height:1320rpx;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>
385 <view class="share_content"> 385 <view class="share_content">
386 - <view class="sh_close" bindtap="close_share"><text class="iconfont icon-guan"></text></view> 386 + <view class="sh_close" bindtap="close_share"><text class="iconfont icon-guan" style="font-size: 22rpx;"></text></view>
387 <image src="{{shareImgPath}}" style="width: 100%" mode="widthFix"></image> 387 <image src="{{shareImgPath}}" style="width: 100%" mode="widthFix"></image>
388 <view class="share_save_btn" bindtap="savePic">保存到相册</view> 388 <view class="share_save_btn" bindtap="savePic">保存到相册</view>
389 </view> 389 </view>
@@ -412,7 +412,7 @@ @@ -412,7 +412,7 @@
412 </scroll-view> 412 </scroll-view>
413 </view> 413 </view>
414 <view class="close_icon" bindtap="close_yiwen"> 414 <view class="close_icon" bindtap="close_yiwen">
415 - <text class="iconfont icon-guan"></text> 415 + <text class="iconfont icon-guan" ></text>
416 </view> 416 </view>
417 </view> 417 </view>
418 <!-- 提示 --> 418 <!-- 提示 -->
packageD/pages/AI-test-skin/success_result/success_result.wxss
@@ -384,13 +384,15 @@ page { @@ -384,13 +384,15 @@ page {
384 font-size: 28rpx; 384 font-size: 28rpx;
385 } 385 }
386 386
387 -.analyse_classify_foot .product_item {  
388 - display: flex; 387 +.analyse_classify_foot .product_item:nth-child(1) {
389 margin-right: 30rpx; 388 margin-right: 30rpx;
  389 +}
  390 +.analyse_classify_foot .product_item{
  391 + display: flex;
390 flex-direction: column; 392 flex-direction: column;
391 border-radius: 30rpx; 393 border-radius: 30rpx;
392 width: 40%; 394 width: 40%;
393 - padding: 5%; 395 + padding: 5% ;
394 background-color: #fff; 396 background-color: #fff;
395 } 397 }
396 398
@@ -592,8 +594,7 @@ page { @@ -592,8 +594,7 @@ page {
592 .xc-coupon-frame { 594 .xc-coupon-frame {
593 width: 100%; 595 width: 100%;
594 max-height: 560rpx; 596 max-height: 560rpx;
595 - overflow: auto;  
596 - 597 + /* overflow: auto; */
597 } 598 }
598 599
599 .xc-coupon-frame .rel:not(:first-child) { 600 .xc-coupon-frame .rel:not(:first-child) {
@@ -727,7 +728,7 @@ page { @@ -727,7 +728,7 @@ page {
727 z-index: 999999; 728 z-index: 999999;
728 top: 50%; 729 top: 50%;
729 left: 50%; 730 left: 50%;
730 - width: 70%; 731 + width: 75%;
731 transform: translate(-50%, -50%); 732 transform: translate(-50%, -50%);
732 } 733 }
733 734
@@ -742,10 +743,10 @@ page { @@ -742,10 +743,10 @@ page {
742 743
743 .sh_close { 744 .sh_close {
744 position: absolute; 745 position: absolute;
745 - right: 20rpx;  
746 - top: 20rpx;  
747 - width: 70rpx;  
748 - height: 70rpx; 746 + right: 34rpx;
  747 + top: 36rpx;
  748 + width: 65rpx;
  749 + height: 65rpx;
749 display: flex; 750 display: flex;
750 justify-content: center; 751 justify-content: center;
751 align-items: center; 752 align-items: center;