Commit 912c8c00f8e499e4aa33fcba557ca4442be2f212

Authored by 后端研发-苏泰源
2 parents 0763b8dc b699cb07

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

@@ -51,7 +51,7 @@ App({ @@ -51,7 +51,7 @@ App({
51 config: null, //门店参数 51 config: null, //门店参数
52 config2: null, //门店配置 52 config2: null, //门店配置
53 code: null, 53 code: null,
54 - user_id: 5682094,//1564704,// 10153869,// 6453964,//5682094,6520044,6520119 qa 4687 6519901 54 + user_id: null,//1564704,// 10153869,// 6453964,//5682094,6520044,6520119 qa 4687 6519901
55 buy_now: null, 55 buy_now: null,
56 picklist: null, //门店列表 56 picklist: null, //门店列表
57 wuliuprice: null, //物流价格表 57 wuliuprice: null, //物流价格表
packageA/pages/jfbuy/jfbuy.wxss
@@ -130,7 +130,7 @@ page { @@ -130,7 +130,7 @@ page {
130 .img-container { 130 .img-container {
131 background-color: #f0f0f0; 131 background-color: #f0f0f0;
132 width: 280rpx; 132 width: 280rpx;
133 - height: 248rpx; 133 + height: 280rpx;
134 display: flex; 134 display: flex;
135 align-items: center; 135 align-items: center;
136 justify-content: center; 136 justify-content: center;
packageD/pages/AI-test-skin/analyse/analyse.json
1 { 1 {
2 - "usingComponents": {} 2 + "usingComponents": {},
  3 + "navigationBarTitleText": "测肤报告"
3 } 4 }
4 \ No newline at end of file 5 \ No newline at end of file
packageD/pages/AI-test-skin/analyse/analyse.wxml
1 <view class="content"> 1 <view class="content">
2 - <view style="width: 750rpx; display: flex;justify-content: center; height: autuo"> 2 + <view style="width: 750rpx; display: flex;justify-content: center; height: 310px">
3 <view class="img" style="background-image: url({{iurl}}/miniapp/images/skinimg/11.png);"></view> 3 <view class="img" style="background-image: url({{iurl}}/miniapp/images/skinimg/11.png);"></view>
4 </view> 4 </view>
5 - <view style="text-align: center;margin-top: -20%;">  
6 - <text style="color: #fff;">正在分析...</text>  
7 - <progress border-radius="6" percent="{{per}}" activeColor="#fff" backgroundColor="#85898a" class="progress"></progress> 5 + <view style="text-align: center;">
  6 + <text style="color: #fff; font-size: 28rpx">正在分析...</text>
  7 + <progress border-radius="3" percent="{{per}}" activeColor="#fff" stroke-width="4"
  8 + backgroundColor="#85898a" class="progress"></progress>
8 </view> 9 </view>
9 </view> 10 </view>
packageD/pages/AI-test-skin/analyse/analyse.wxss
@@ -29,13 +29,13 @@ page { @@ -29,13 +29,13 @@ page {
29 display: inline-block; 29 display: inline-block;
30 width: 350px; 30 width: 350px;
31 height: 350px; 31 height: 350px;
32 - transform: scale(0.5);  
33 - animation: 1s mymove infinite steps(27, end); 32 + transform: scale(0.4);
  33 + animation: 2s mymove infinite steps(27, end);
34 } 34 }
35 35
36 .progress { 36 .progress {
37 margin-top: 3%; 37 margin-top: 3%;
38 - width: 60%; 38 + width: 48%;
39 /* text-align: center; */ 39 /* text-align: center; */
40 margin-left: 50%; 40 margin-left: 50%;
41 transform: translateX(-50%); 41 transform: translateX(-50%);
packageD/pages/AI-test-skin/fail_result/fail_result.wxss
@@ -25,10 +25,10 @@ page { @@ -25,10 +25,10 @@ page {
25 margin: 70rpx 0 30rpx 50%; 25 margin: 70rpx 0 30rpx 50%;
26 transform: translateX(-50%); 26 transform: translateX(-50%);
27 background: #4bd6df; 27 background: #4bd6df;
28 - padding: 20rpx;  
29 - width: 50%; 28 + padding: 15rpx 10rpx;
  29 + width: 46%;
30 text-align: center; 30 text-align: center;
31 - border-radius: 40rpx; 31 + border-radius: 50rpx;
32 color: #fff; 32 color: #fff;
33 } 33 }
34 .btn_fixed { 34 .btn_fixed {
packageD/pages/AI-test-skin/history_record/history_record.js
@@ -234,6 +234,20 @@ Page({ @@ -234,6 +234,20 @@ Page({
234 arr.push(time_obj); 234 arr.push(time_obj);
235 } 235 }
236 } 236 }
  237 + function _sort_by_history_time (property){
  238 + return function(a,b){
  239 + let val1 = a[property];
  240 + let val2 = b[property];
  241 + if(val2 > val1){
  242 + return 1
  243 + }else if(val2 < val1){
  244 + return -1
  245 + }else{
  246 + return 0
  247 + }
  248 + }
  249 + }
  250 + arr.sort(_sort_by_history_time('history_time'));
237 return arr; 251 return arr;
238 }, 252 },
239 253
packageD/pages/AI-test-skin/index/aiskin.wxml
1 <view class="container1"> 1 <view class="container1">
2 - <view class="history" wx:if="{{show_his}}">  
3 - <cover-view style="padding: 0 6rpx 0 25rpx;" bindtap="goto" data-url="/packageD/pages/AI-test-skin/history_record/history_record">历史档案</cover-view>  
4 - <text class="iconfont icon-arrow_right"></text> 2 + <view class="history" wx:if="{{show_his}}" style="font-size: 30rpx">
  3 + <cover-view style="padding: 6rpx 6rpx 6rpx 25rpx;" bindtap="goto" data-url="/packageD/pages/AI-test-skin/history_record/history_record">历史档案</cover-view>
  4 + <text class="iconfont icon-arrow_right" style="font-size: 30rpx"></text>
5 </view> 5 </view>
6 - <image src="{{iurl}}/miniapp/images/skinimg/shouye.jpeg"></image>  
7 - <view class="start_btn" bindtap="goto" data-url="/packageD/pages/AI-test-skin/shoot_notice/shoot_notice">  
8 - <text>开始测肤</text> 6 + <view style="position: relative;width: 100%">
  7 + <image style="width: 100%" src="{{iurl}}/miniapp/images/skinimg/shouye.jpeg" mode="widthFix"></image>
  8 + <view class="start_btn" bindtap="goto" data-url="/packageD/pages/AI-test-skin/shoot_notice/shoot_notice">
  9 + <text>开始测肤</text>
  10 + </view>
9 </view> 11 </view>
10 </view> 12 </view>
11 \ No newline at end of file 13 \ No newline at end of file
packageD/pages/AI-test-skin/index/aiskin.wxss
1 -/* packageB/pages/AI-test-skin/aiskin.wxss */  
2 -page {  
3 - width: 100%;  
4 - height: 100%;  
5 -}  
6 -image {  
7 - width: 100vw;  
8 - height: 100%;  
9 -} 1 +
10 .container1 { 2 .container1 {
11 position: relative; 3 position: relative;
12 width: 100%; 4 width: 100%;
13 - height: 100%;  
14 } 5 }
15 .history { 6 .history {
16 margin-top: 30rpx; 7 margin-top: 30rpx;
@@ -21,18 +12,19 @@ image { @@ -21,18 +12,19 @@ image {
21 border-radius: 50rpx 0 0 50rpx; 12 border-radius: 50rpx 0 0 50rpx;
22 box-shadow: 0 0 2px 2px #f7f5f5; 13 box-shadow: 0 0 2px 2px #f7f5f5;
23 color: #4ad5df; 14 color: #4ad5df;
  15 + align-items: center;
  16 + z-index: 100;
24 } 17 }
25 .start_btn { 18 .start_btn {
26 - position: fixed;  
27 - bottom: 50rpx;  
28 - /* margin: auto; */  
29 - /* text-align: center; */  
30 margin-left: 50%; 19 margin-left: 50%;
31 transform: translateX(-50%); 20 transform: translateX(-50%);
32 background: #4bd6df; 21 background: #4bd6df;
33 - padding: 20rpx; 22 + padding:16rpx 20rpx;
34 width: 67%; 23 width: 67%;
35 text-align: center; 24 text-align: center;
36 border-radius: 40rpx; 25 border-radius: 40rpx;
37 color: #fff; 26 color: #fff;
  27 + font-size: 30rpx;
  28 + position:absolute;
  29 + bottom: 90rpx;
38 } 30 }
39 \ No newline at end of file 31 \ No newline at end of file
packageD/pages/AI-test-skin/select_photo/select_photo.wxml
1 <view class="content" style="height: 70%;"> 1 <view class="content" style="height: 70%;">
2 - <view style="height: 100%;">  
3 - <image style="height: 100%;width: 100%;border-radius: 3%;" src="{{gl_skin_img}}"></image> 2 + <view style="height: 100%;;display:flex;align-items:center;overflow: hidden;">
  3 + <image style="height: 100%;width: 100%;border-radius: 3%;" mode="widthFix" src="{{gl_skin_img}}"></image>
4 </view> 4 </view>
5 <view class="foot_btn"> 5 <view class="foot_btn">
6 <view class="reset_select" bindtap="show_pai_pop"> 6 <view class="reset_select" bindtap="show_pai_pop">
packageD/pages/AI-test-skin/select_photo/select_photo.wxss
@@ -23,9 +23,8 @@ page { @@ -23,9 +23,8 @@ page {
23 23
24 .foot_btn .ok_btn { 24 .foot_btn .ok_btn {
25 background: #5dd9dc; 25 background: #5dd9dc;
26 - padding: 0 50rpx; 26 + padding: 16rpx 40rpx;
27 border-radius: 50rpx; 27 border-radius: 50rpx;
28 /* margin: 0 auto; */ 28 /* margin: 0 auto; */
29 - line-height: 100rpx;  
30 color: #fff; 29 color: #fff;
31 } 30 }
packageD/pages/AI-test-skin/shoot_notice/shoot_notice.js
1 /* 1 /*
2 * @Author: abson 2 * @Author: abson
3 * @Date: 2022-02-15 10:01:57 3 * @Date: 2022-02-15 10:01:57
4 - * @LastEditTime: 2022-02-17 09:40:38 4 + * @LastEditTime: 2022-02-28 15:37:20
5 * @LastEditors: Please set LastEditors 5 * @LastEditors: Please set LastEditors
6 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AEet urkl 6 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AEet urkl
7 * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\shoot_notice\shoot_notice.js 7 * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\shoot_notice\shoot_notice.js
@@ -19,6 +19,7 @@ Page({ @@ -19,6 +19,7 @@ Page({
19 */ 19 */
20 data: { 20 data: {
21 iurl: setting.imghost, 21 iurl: setting.imghost,
  22 + notice_show:"",
22 }, 23 },
23 24
24 /** 25 /**
@@ -32,7 +33,11 @@ Page({ @@ -32,7 +33,11 @@ Page({
32 * 生命周期函数--监听页面显示 33 * 生命周期函数--监听页面显示
33 */ 34 */
34 onShow: function () { 35 onShow: function () {
35 - 36 + setTimeout(()=>{
  37 + this.setData({
  38 + notice_show:'none',
  39 + })
  40 + },3000).bind(this)
36 }, 41 },
37 42
38 /** 43 /**
@@ -64,15 +69,15 @@ Page({ @@ -64,15 +69,15 @@ Page({
64 }, 69 },
65 70
66 //从相册中选择图片 71 //从相册中选择图片
67 - show_pai_pop:function () { 72 + show_pai_pop: function () {
68 //选择和拍照一张图片 73 //选择和拍照一张图片
69 wx.chooseImage({ 74 wx.chooseImage({
70 count: 1, 75 count: 1,
71 sizeType: ['original', 'compressed'], 76 sizeType: ['original', 'compressed'],
72 sourceType: ['album', 'camera'], 77 sourceType: ['album', 'camera'],
73 - success (res) {  
74 - let imgArr = res.tempFilePaths;  
75 - getApp().globalData.skin_img=imgArr[0]; 78 + success(res) {
  79 + let imgArr = res.tempFiles;
  80 + getApp().globalData.skin_img_info = imgArr[0];
76 let url = "/packageD/pages/AI-test-skin/select_photo/select_photo"; 81 let url = "/packageD/pages/AI-test-skin/select_photo/select_photo";
77 app.goto(url); 82 app.goto(url);
78 } 83 }
packageD/pages/AI-test-skin/shoot_notice/shoot_notice.wxml
1 <!--packageB/pages/AI-test-skin/shoot_notice/shoot_notice.wxml--> 1 <!--packageB/pages/AI-test-skin/shoot_notice/shoot_notice.wxml-->
2 <view class="content"> 2 <view class="content">
  3 + <view class="notice_show" style="display: {{notice_show}};">根据要求拍摄,测肤结果更准确。</view>
3 <view> 4 <view>
4 <view class="work">准备工作</view> 5 <view class="work">准备工作</view>
5 <view class="hengxian"></view> 6 <view class="hengxian"></view>
packageD/pages/AI-test-skin/shoot_notice/shoot_notice.wxss
@@ -6,7 +6,31 @@ page { @@ -6,7 +6,31 @@ page {
6 box-sizing: border-box; 6 box-sizing: border-box;
7 background-color: #e7f5fb; 7 background-color: #e7f5fb;
8 } 8 }
  9 +
  10 +@keyframes notice_show {
  11 + 0% {
  12 + top: -999rpx;
  13 + }
  14 +
  15 + 100% {
  16 + top: 10rpx;
  17 + }
  18 +}
  19 +
  20 +.notice_show {
  21 + text-align: center;
  22 + padding: 30rpx;
  23 + color: skyblue;
  24 + position: absolute;
  25 + right: 10%;
  26 + box-shadow: #f0f0f0 0px 0px 5px;
  27 + z-index: 999;
  28 + background: #fff;
  29 + animation: 2s notice_show linear;
  30 +}
  31 +
9 .content { 32 .content {
  33 + position: relative;
10 width: 100%; 34 width: 100%;
11 /* height: 100%; */ 35 /* height: 100%; */
12 border-radius: 25rpx; 36 border-radius: 25rpx;
@@ -26,11 +50,12 @@ page { @@ -26,11 +50,12 @@ page {
26 align-items: center; 50 align-items: center;
27 margin-bottom: 40rpx 51 margin-bottom: 40rpx
28 } 52 }
  53 +
29 .content .ready1 { 54 .content .ready1 {
30 display: flex; 55 display: flex;
31 flex-direction: column; 56 flex-direction: column;
32 align-items: center; 57 align-items: center;
33 - padding-bottom: 50rpx ; 58 + padding-bottom: 50rpx;
34 /* margin-bottom: 40rpx */ 59 /* margin-bottom: 40rpx */
35 } 60 }
36 61
@@ -65,19 +90,21 @@ page { @@ -65,19 +90,21 @@ page {
65 .content image { 90 .content image {
66 height: 100%; 91 height: 100%;
67 } 92 }
  93 +
68 .btn { 94 .btn {
69 - 95 +
70 /* height: 150rpx; */ 96 /* height: 150rpx; */
71 /* margin-left: 50%; */ 97 /* margin-left: 50%; */
72 margin: 70rpx 0 30rpx 50%; 98 margin: 70rpx 0 30rpx 50%;
73 transform: translateX(-50%); 99 transform: translateX(-50%);
74 background: #4bd6df; 100 background: #4bd6df;
75 - padding: 20rpx; 101 + padding: 15rpx 15rpx;
76 width: 50%; 102 width: 50%;
77 text-align: center; 103 text-align: center;
78 - border-radius: 40rpx; 104 + border-radius: 50rpx;
79 color: #fff; 105 color: #fff;
80 } 106 }
  107 +
81 .btn_fixed { 108 .btn_fixed {
82 position: fixed; 109 position: fixed;
83 width: 100%; 110 width: 100%;
@@ -85,6 +112,7 @@ page { @@ -85,6 +112,7 @@ page {
85 height: 300rpx; 112 height: 300rpx;
86 background: #e7f5fb; 113 background: #e7f5fb;
87 } 114 }
  115 +
88 .notice { 116 .notice {
89 text-align: center; 117 text-align: center;
90 color: red; 118 color: red;
@@ -98,36 +126,71 @@ page { @@ -98,36 +126,71 @@ page {
98 right: 0; 126 right: 0;
99 bottom: 0; 127 bottom: 0;
100 z-index: 11; 128 z-index: 11;
101 - background: rgba(0,0,0,0.4); 129 + background: rgba(0, 0, 0, 0.4);
102 width: 100%; 130 width: 100%;
103 height: 100%; 131 height: 100%;
104 } 132 }
105 133
106 -.flex{display: flex}  
107 -.jc-center{ 134 +.flex {
  135 + display: flex
  136 +}
  137 +
  138 +.jc-center {
108 justify-content: center; 139 justify-content: center;
109 } 140 }
110 -.ac{align-items: center}  
111 -.pai_content{  
112 - position: fixed;z-index: 100;bottom: 0;background: #FFFFFF;width: 100%;  
113 - border-top-left-radius:30rpx;  
114 - border-top-right-radius:30rpx; 141 +
  142 +.ac {
  143 + align-items: center
115 } 144 }
116 -.p_item{ height: 100rpx; line-height: 100rpx;text-align: center; border-bottom: 1rpx solid #eee}  
117 -.p_cancle{height: 100rpx; line-height: 100rpx;text-align: center; border-top:20rpx solid #f8f8f8;}  
118 145
119 -@keyframes p_up  
120 -{  
121 - from {transform:translateY(100%);}  
122 - to {transform:translateY(0);} 146 +.pai_content {
  147 + position: fixed;
  148 + z-index: 100;
  149 + bottom: 0;
  150 + background: #FFFFFF;
  151 + width: 100%;
  152 + border-top-left-radius: 30rpx;
  153 + border-top-right-radius: 30rpx;
  154 +}
  155 +
  156 +.p_item {
  157 + height: 100rpx;
  158 + line-height: 100rpx;
  159 + text-align: center;
  160 + border-bottom: 1rpx solid #eee
  161 +}
  162 +
  163 +.p_cancle {
  164 + height: 100rpx;
  165 + line-height: 100rpx;
  166 + text-align: center;
  167 + border-top: 20rpx solid #f8f8f8;
123 } 168 }
124 169
125 -@keyframes p_down  
126 -{  
127 - from {transform:translateY(0);}  
128 - to {transform:translateY(100%);} 170 +@keyframes p_up {
  171 + from {
  172 + transform: translateY(100%);
  173 + }
  174 +
  175 + to {
  176 + transform: translateY(0);
  177 + }
129 } 178 }
130 -.p_to_up{animation:p_up 1s;}  
131 -.p_to_down{animation:p_down 0.5s;}  
132 179
  180 +@keyframes p_down {
  181 + from {
  182 + transform: translateY(0);
  183 + }
  184 +
  185 + to {
  186 + transform: translateY(100%);
  187 + }
  188 +}
  189 +
  190 +.p_to_up {
  191 + animation: p_up 1s;
  192 +}
133 193
  194 +.p_to_down {
  195 + animation: p_down 0.5s;
  196 +}
134 \ No newline at end of file 197 \ No newline at end of file
packageD/pages/AI-test-skin/success_result/success_result.js
1 /* 1 /*
2 * @Author: abson 2 * @Author: abson
3 * @Date: 2022-02-16 15:36:47 3 * @Date: 2022-02-16 15:36:47
4 - * @LastEditTime: 2022-02-25 11:30:33 4 + * @LastEditTime: 2022-02-28 10:44:27
5 * @LastEditors: Please set LastEditors 5 * @LastEditors: Please set LastEditors
6 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE 6 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
7 * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\success_result\success_result.js 7 * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\success_result\success_result.js
@@ -24,7 +24,7 @@ Page({ @@ -24,7 +24,7 @@ Page({
24 * 页面的初始数据 24 * 页面的初始数据
25 */ 25 */
26 data: { 26 data: {
27 - tab: [{ id: 'zong_he', name: '综合肤质' }, { id: 'mao_kong', name: '毛孔' }, { id: 'hei_tou', name: '黑头' }, { id: 'se_ban', name: '色斑' }, { id: 'zhou_wen', name: '皱纹' }, { id: 'hei_yan_quan', name: '黑眼圈' }, { id: 'cuo_chuang', name: '痤疮' }, { id: 'min_gan_du', name: '敏感度' }], 27 + // tab: [{ id: 'zong_he', name: '综合肤质' }, { id: 'mao_kong', name: '毛孔' }, { id: 'hei_tou', name: '黑头' }, { id: 'se_ban', name: '色斑' }, { id: 'zhou_wen', name: '皱纹' }, { id: 'hei_yan_quan', name: '黑眼圈' }, { id: 'cuo_chuang', name: '痤疮' }, { id: 'min_gan_du', name: '敏感度' }],
28 zhouwen_arr: [{ id: 1, name: '全部皱纹' }, { id: 2, name: '抬头纹' }, { id: 3, name: '川字纹' }, { id: 4, name: '眼周细纹' }, { id: 5, name: '鱼尾纹' }, { id: 6, name: '法令纹' }, { id: 7, name: '口周纹' }], 28 zhouwen_arr: [{ id: 1, name: '全部皱纹' }, { id: 2, name: '抬头纹' }, { id: 3, name: '川字纹' }, { id: 4, name: '眼周细纹' }, { id: 5, name: '鱼尾纹' }, { id: 6, name: '法令纹' }, { id: 7, name: '口周纹' }],
29 cuochuang_arr: [{ id: 1, name: '全部痤疮' }, { id: 2, name: '粉刺 ' }, { id: 3, name: '痘印 ' }, { id: 4, name: '脓包' }, { id: 5, name: '结节' }], 29 cuochuang_arr: [{ id: 1, name: '全部痤疮' }, { id: 2, name: '粉刺 ' }, { id: 3, name: '痘印 ' }, { id: 4, name: '脓包' }, { id: 5, name: '结节' }],
30 zhouwen_arr1: [{ id: 1, name: '皱纹/细纹',des:'是指皮肤受到外界环境影响,形成游离自由基,自由基破坏正常细胞膜组织内的胶原蛋白、活性物质,氧化细胞,或缺水而形成的小细纹,继而严重形成皱纹',sign: 'zhou1',sign1: 'zhou2' }, { id: 2, name: '抬头皱纹/抬头细纹',des:'位于额头的皱纹、细纹。形成原因因人而异,后天因素是比较少的。-般多为横纹, 竖纹较少见。' ,sign: 'zhou3',sign1:'zhou4'}, { id: 3, name: '眼部皱纹/眼部细纹',des:'眼部皱纹、细纹一般位于下眼睑部位,多见于下脸内1/3处。',sign:'zhou5',sign1:'zhou6' }, { id: 4, name: '鱼尾纹',des:'眼部皱纹的一种,是在人两侧外眼角和登角之间出现的皱纹,其纹路与鱼尾巴上的纹路很相似,故被形象地称为鱼尾纹。',sign:'zhou7',sign1:'zhou8' }, { id: 5, name: '眉间纹',des:'又叫川字纹,皱眉纹,是面部的一种正常的表情纹,随着年龄的增长,面部的皱纹会逐渐加深,双眉之间逐渐形成了较深的皱折,会使人看起来总是愁眉不展。',sign:'zhou9',sign1:'zhou10'}, { id: 6, name: '泪沟',des:'泪沟是指由内眼角开始出现在下眼睑靠鼻侧的两条凹沟,是由于眼眶隔膜下缘的软组织萎缩、下垂而生成的。',sign:'zhou11',sign1:'zhou12' }, { id: 7, name: '法令纹',des:'法令纹是位于鼻翼边延伸而下的两道纹路,是典型的皮肤组织老化、造成肌肤表面凹陷的现象。',sign:'zhou15',sign1:'zhou16' }, { id: 8, name: '口角纹',des:'口角纹又称木偶纹、括号纹,位于嘴角延伸而下的两道纹路,是表情肌、重力和遗传基因等几方面因素综合形成的。',sign:'zhou13',sign1:'zhou14' }], 30 zhouwen_arr1: [{ id: 1, name: '皱纹/细纹',des:'是指皮肤受到外界环境影响,形成游离自由基,自由基破坏正常细胞膜组织内的胶原蛋白、活性物质,氧化细胞,或缺水而形成的小细纹,继而严重形成皱纹',sign: 'zhou1',sign1: 'zhou2' }, { id: 2, name: '抬头皱纹/抬头细纹',des:'位于额头的皱纹、细纹。形成原因因人而异,后天因素是比较少的。-般多为横纹, 竖纹较少见。' ,sign: 'zhou3',sign1:'zhou4'}, { id: 3, name: '眼部皱纹/眼部细纹',des:'眼部皱纹、细纹一般位于下眼睑部位,多见于下脸内1/3处。',sign:'zhou5',sign1:'zhou6' }, { id: 4, name: '鱼尾纹',des:'眼部皱纹的一种,是在人两侧外眼角和登角之间出现的皱纹,其纹路与鱼尾巴上的纹路很相似,故被形象地称为鱼尾纹。',sign:'zhou7',sign1:'zhou8' }, { id: 5, name: '眉间纹',des:'又叫川字纹,皱眉纹,是面部的一种正常的表情纹,随着年龄的增长,面部的皱纹会逐渐加深,双眉之间逐渐形成了较深的皱折,会使人看起来总是愁眉不展。',sign:'zhou9',sign1:'zhou10'}, { id: 6, name: '泪沟',des:'泪沟是指由内眼角开始出现在下眼睑靠鼻侧的两条凹沟,是由于眼眶隔膜下缘的软组织萎缩、下垂而生成的。',sign:'zhou11',sign1:'zhou12' }, { id: 7, name: '法令纹',des:'法令纹是位于鼻翼边延伸而下的两道纹路,是典型的皮肤组织老化、造成肌肤表面凹陷的现象。',sign:'zhou15',sign1:'zhou16' }, { id: 8, name: '口角纹',des:'口角纹又称木偶纹、括号纹,位于嘴角延伸而下的两道纹路,是表情肌、重力和遗传基因等几方面因素综合形成的。',sign:'zhou13',sign1:'zhou14' }],
@@ -199,7 +199,26 @@ Page({ @@ -199,7 +199,26 @@ Page({
199 return e.type==3; 199 return e.type==3;
200 }) 200 })
201 th.data.acne_num4=a_arr.length; 201 th.data.acne_num4=a_arr.length;
202 - 202 + let tab_arr = [{ id: 'zong_he', name: '综合肤质' }];
  203 + if(pore_num) {
  204 + tab_arr.push({ id: 'mao_kong', name: '毛孔' });
  205 + }
  206 + if(blackhead_num){
  207 + tab_arr.push({ id: 'hei_tou', name: '黑头' });
  208 + }
  209 + if(speckle_num){
  210 + tab_arr.push({ id: 'se_ban', name: '色斑' });
  211 + }
  212 + if(wrinkle_num){
  213 + tab_arr.push({ id: 'zhou_wen', name: '皱纹' });
  214 + }
  215 + if(dark_type > -1) {
  216 + tab_arr.push( { id: 'hei_yan_quan', name: '黑眼圈' });
  217 + }
  218 + if(acne_num){
  219 + tab_arr.push({ id: 'cuo_chuang', name: '痤疮' });
  220 + }
  221 + tab_arr.push( { id: 'min_gan_du', name: '敏感度' });
203 th.setData({ 222 th.setData({
204 acne_num: acne_num, 223 acne_num: acne_num,
205 speckle_num: speckle_num, 224 speckle_num: speckle_num,
@@ -219,6 +238,7 @@ Page({ @@ -219,6 +238,7 @@ Page({
219 bili: bili, 238 bili: bili,
220 bili_eye:bili_eye, 239 bili_eye:bili_eye,
221 sex:sex, 240 sex:sex,
  241 + tab:tab_arr,
222 skin_dryoil_check_type:skin_dryoil_check_type, 242 skin_dryoil_check_type:skin_dryoil_check_type,
223 eye_top:eye_top* bili_eye, 243 eye_top:eye_top* bili_eye,
224 eye_left1:eye_left1* bili_eye, 244 eye_left1:eye_left1* bili_eye,
packageD/pages/AI-test-skin/success_result/success_result.wxml
@@ -130,7 +130,7 @@ @@ -130,7 +130,7 @@
130 <!-- 局部放大的 --> 130 <!-- 局部放大的 -->
131 <block wx:if="{{img_scale}}"> 131 <block wx:if="{{img_scale}}">
132 <!-- 图片显示区 --> 132 <!-- 图片显示区 -->
133 - <view class="dialog_img" style="{{show_type == 5?'height:60%':'height:75%'}}"> 133 + <view class="dialog_img" style="{{show_type == 5?'height:60%':'height:85%'}}">
134 <view class="img_content rel"> 134 <view class="img_content rel">
135 <!-- 如果是黑眼圈的左眼右眼的时候 --> 135 <!-- 如果是黑眼圈的左眼右眼的时候 -->
136 <view wx:if="{{is_esys_show}}" class="face_show_view rel" style="width:{{eye_w}}px;height:{{eye_h}}px;margin-top: -{{eye_top}}px;margin-left: -{{is_esys_show==1?eye_left1:eye_left2}}px"> 136 <view wx:if="{{is_esys_show}}" class="face_show_view rel" style="width:{{eye_w}}px;height:{{eye_h}}px;margin-top: -{{eye_top}}px;margin-left: -{{is_esys_show==1?eye_left1:eye_left2}}px">
@@ -237,7 +237,7 @@ @@ -237,7 +237,7 @@
237 </block> --> 237 </block> -->
238 </view> 238 </view>
239 <!-- 文字显示区 --> 239 <!-- 文字显示区 -->
240 - <view class="dialog_txt" style="{{show_type == 5?'height:40%':'height:25%'}}"> 240 + <view class="dialog_txt" style="{{show_type == 5?'height:40%':'height:15%'}}">
241 <block wx:if="{{show_type == 5}}"> 241 <block wx:if="{{show_type == 5}}">
242 <view class="heiyanquan_img flex"> 242 <view class="heiyanquan_img flex">
243 <view class="img1 t-c"> 243 <view class="img1 t-c">
@@ -259,31 +259,31 @@ @@ -259,31 +259,31 @@
259 </block> 259 </block>
260 <view class="dialog_progress"> 260 <view class="dialog_progress">
261 <view style="margin-right:7px;font-size:32rpx;"> 261 <view style="margin-right:7px;font-size:32rpx;">
262 - <text wx:if="{{show_type==1}}">毛孔粗大{{pore_num}}</text>  
263 - <text wx:if="{{show_type==2}}">色斑{{speckle_num}}</text> 262 + <text wx:if="{{show_type==1}}">毛孔粗大:{{pore_num}}</text>
  263 + <text wx:if="{{show_type==2}}">色斑:{{speckle_num}}</text>
264 <block wx:if="{{show_type==3}}"> 264 <block wx:if="{{show_type==3}}">
265 - <text wx:if="{{scroll_id==1}}">全部皱纹{{wrinkle_num}}</text>  
266 - <text wx:if="{{scroll_id==2}}">抬头纹{{wrinkle_num1}}</text>  
267 - <text wx:if="{{scroll_id==3}}">川字纹{{wrinkle_num2}}</text>  
268 - <text wx:if="{{scroll_id==4}}">眼周细纹{{wrinkle_num3}}</text>  
269 - <text wx:if="{{scroll_id==5}}">鱼尾纹{{wrinkle_num4}}</text>  
270 - <text wx:if="{{scroll_id==6}}">法令纹{{wrinkle_num5}}</text>  
271 - <text wx:if="{{scroll_id==7}}">口周纹{{wrinkle_num6}}</text> 265 + <text wx:if="{{scroll_id==1}}" style="position: relative;top: 25rpx;">全部皱纹:{{wrinkle_num}}</text>
  266 + <text wx:if="{{scroll_id==2}}" style="position: relative;top: 25rpx;">抬头纹:{{wrinkle_num1}}</text>
  267 + <text wx:if="{{scroll_id==3}}" style="position: relative;top: 25rpx;">川字纹:{{wrinkle_num2}}</text>
  268 + <text wx:if="{{scroll_id==4}}" style="position: relative;top: 25rpx;">眼周细纹:{{wrinkle_num3}}</text>
  269 + <text wx:if="{{scroll_id==5}}" style="position: relative;top: 25rpx;">鱼尾纹:{{wrinkle_num4}}</text>
  270 + <text wx:if="{{scroll_id==6}}" style="position: relative;top: 25rpx;">法令纹:{{wrinkle_num5}}</text>
  271 + <text wx:if="{{scroll_id==7}}" style="position: relative;top: 25rpx;">口周纹:{{wrinkle_num6}}</text>
272 </block> 272 </block>
273 - <text wx:if="{{show_type==4}}">黑头{{blackhead_num}}</text> 273 + <text wx:if="{{show_type==4}}">黑头{{blackhead_num}}</text>
274 <block wx:if="{{show_type==5}}"> 274 <block wx:if="{{show_type==5}}">
275 - <text wx:if="{{!s_dark_type}}">黑眼圈 {{s_filter.get_dark_type(dark_type)}}</text>  
276 - <text wx:if="{{s_dark_type==1}}">左眼黑眼圈 {{s_filter.get_dark_type(dark_type1)}}</text>  
277 - <text wx:if="{{s_dark_type==2}}">右眼黑眼圈 {{s_filter.get_dark_type(dark_type2)}}</text> 275 + <text wx:if="{{!s_dark_type}}">黑眼圈:{{s_filter.get_dark_type(dark_type)}}</text>
  276 + <text wx:if="{{s_dark_type==1}}">左眼黑眼圈:{{s_filter.get_dark_type(dark_type1)}}</text>
  277 + <text wx:if="{{s_dark_type==2}}">右眼黑眼圈:{{s_filter.get_dark_type(dark_type2)}}</text>
278 </block> 278 </block>
279 <block wx:if="{{show_type==6}}"> 279 <block wx:if="{{show_type==6}}">
280 - <text wx:if="{{scroll_id==1}}">全部痤疮{{acne_num}}</text>  
281 - <text wx:if="{{scroll_id==2}}">粉刺{{acne_num1}}</text>  
282 - <text wx:if="{{scroll_id==3}}">痘印{{acne_num2}}</text>  
283 - <text wx:if="{{scroll_id==4}}">脓包{{acne_num3}}</text>  
284 - <text wx:if="{{scroll_id==5}}">结节{{acne_num4}}</text> 280 + <text wx:if="{{scroll_id==1}}">全部痤疮:{{acne_num}}</text>
  281 + <text wx:if="{{scroll_id==2}}">粉刺:{{acne_num1}}</text>
  282 + <text wx:if="{{scroll_id==3}}">痘印:{{acne_num2}}</text>
  283 + <text wx:if="{{scroll_id==4}}">脓包:{{acne_num3}}</text>
  284 + <text wx:if="{{scroll_id==5}}">结节:{{acne_num4}}</text>
285 </block> 285 </block>
286 - <text wx:if="{{show_type==7}}">敏感度{{s_filter.get_nai_shou(skin_sensitive_check)}}</text> 286 + <text wx:if="{{show_type==7}}">敏感度{{s_filter.get_nai_shou(skin_sensitive_check)}}</text>
287 </view> 287 </view>
288 <view style="margin-top:10rpx;display: flex;display: none"> 288 <view style="margin-top:10rpx;display: flex;display: none">
289 <view class="pp"></view> 289 <view class="pp"></view>
@@ -305,10 +305,7 @@ @@ -305,10 +305,7 @@
305 </view> 305 </view>
306 </scroll-view> 306 </scroll-view>
307 </view> 307 </view>
308 -  
309 -  
310 </block> 308 </block>
311 -  
312 <!-- 全图的,能够自由拖拽和放大 --> 309 <!-- 全图的,能够自由拖拽和放大 -->
313 <block wx:else> 310 <block wx:else>
314 <view bindtouchstart='touchstartCallback' bindtouchmove='touchmoveCallback' bindtouchEnd='touchendCallback' style="position: relative;transform: scale({{ig_scale}});top: {{img_top}}px; left: {{img_left}}px;"> 311 <view bindtouchstart='touchstartCallback' bindtouchmove='touchmoveCallback' bindtouchEnd='touchendCallback' style="position: relative;transform: scale({{ig_scale}});top: {{img_top}}px; left: {{img_left}}px;">
@@ -401,8 +398,8 @@ @@ -401,8 +398,8 @@
401 <view class="fs28 mt10" style="color: #666;"> 398 <view class="fs28 mt10" style="color: #666;">
402 {{item.des}} 399 {{item.des}}
403 </view> 400 </view>
404 - <image class="yiwen_img" src="{{iurl}}/miniapp/images/skinimg/{{item.sign}}.png"></image>  
405 - <image class="yiwen_img" src="{{iurl}}/miniapp/images/skinimg/{{item.sign1}}.png"></image> 401 + <image class="yiwen_img" mode="widthFix" src="{{iurl}}/miniapp/images/skinimg/{{item.sign}}.png"></image>
  402 + <image class="yiwen_img" mode="widthFix" src="{{iurl}}/miniapp/images/skinimg/{{item.sign1}}.png"></image>
406 </view> 403 </view>
407 </scroll-view> 404 </scroll-view>
408 <view style="position:fixed;bottom:0;width: 100%;"> 405 <view style="position:fixed;bottom:0;width: 100%;">
@@ -415,7 +412,7 @@ @@ -415,7 +412,7 @@
415 </scroll-view> 412 </scroll-view>
416 </view> 413 </view>
417 <view class="close_icon" bindtap="close_yiwen"> 414 <view class="close_icon" bindtap="close_yiwen">
418 - <text class="iconfont icon-close"></text> 415 + <text class="iconfont icon-guan"></text>
419 </view> 416 </view>
420 </view> 417 </view>
421 <!-- 提示 --> 418 <!-- 提示 -->
packageD/pages/AI-test-skin/success_result/success_result.wxss
@@ -11,6 +11,7 @@ page { @@ -11,6 +11,7 @@ page {
11 z-index: 99; 11 z-index: 99;
12 display: flex; 12 display: flex;
13 height: 100rpx; 13 height: 100rpx;
  14 + background-color: #fff;
14 } 15 }
15 16
16 .share { 17 .share {
@@ -18,12 +19,13 @@ page { @@ -18,12 +19,13 @@ page {
18 position: fixed; 19 position: fixed;
19 bottom: 100rpx; 20 bottom: 100rpx;
20 right: 0; 21 right: 0;
21 - padding: 20rpx; 22 + padding:8rpx 20rpx;
22 background-color: #fff; 23 background-color: #fff;
23 border: 2rpx solid #f0f0f0; 24 border: 2rpx solid #f0f0f0;
24 /* color: #FFF; */ 25 /* color: #FFF; */
25 border-radius: 40rpx 0 0 40rpx; 26 border-radius: 40rpx 0 0 40rpx;
26 z-index: 99; 27 z-index: 99;
  28 + align-items: center;
27 } 29 }
28 30
29 .tab_scroll_item { 31 .tab_scroll_item {
@@ -447,8 +449,7 @@ page { @@ -447,8 +449,7 @@ page {
447 transform: translate(50%, -50%); 449 transform: translate(50%, -50%);
448 height: 80%; 450 height: 80%;
449 width: 80%; 451 width: 80%;
450 - border-top-left-radius: 12rpx;  
451 - border-top-right-radius: 12rpx; 452 + border-radius: 18rpx;
452 z-index: 99999999; 453 z-index: 99999999;
453 overflow: hidden; 454 overflow: hidden;
454 } 455 }
@@ -463,7 +464,7 @@ page { @@ -463,7 +464,7 @@ page {
463 flex-direction: column; 464 flex-direction: column;
464 justify-content: space-evenly; 465 justify-content: space-evenly;
465 background-color: #fff; 466 background-color: #fff;
466 - min-height: 25%; 467 + min-height: 10%;
467 } 468 }
468 469
469 .dialog_txt .heiyanquan_img { 470 .dialog_txt .heiyanquan_img {
@@ -472,7 +473,7 @@ page { @@ -472,7 +473,7 @@ page {
472 } 473 }
473 474
474 .dialog_txt .heiyanquan_img .img1 { 475 .dialog_txt .heiyanquan_img .img1 {
475 - width: 32%; 476 + width: 32%;color: #777;
476 } 477 }
477 478
478 .dialog .dialog_progress { 479 .dialog .dialog_progress {
@@ -491,6 +492,7 @@ page { @@ -491,6 +492,7 @@ page {
491 padding: 3% 5%; 492 padding: 3% 5%;
492 white-space: nowrap; 493 white-space: nowrap;
493 background-color: #fff; 494 background-color: #fff;
  495 + color: #a9a9a9;
494 } 496 }
495 497
496 .dialog .dialog_icon { 498 .dialog .dialog_icon {
@@ -735,7 +737,7 @@ page { @@ -735,7 +737,7 @@ page {
735 line-height: 80rpx; 737 line-height: 80rpx;
736 text-align: center; 738 text-align: center;
737 color: #fff; 739 color: #fff;
738 - background-color: #c3172d 740 + background-color: #45d4eb
739 } 741 }
740 742
741 .sh_close { 743 .sh_close {
@@ -843,6 +845,7 @@ page { @@ -843,6 +845,7 @@ page {
843 } 845 }
844 846
845 .yiwen_img { 847 .yiwen_img {
  848 + width: 100%;
846 margin-top: 40rpx; 849 margin-top: 40rpx;
847 /* width: 600rpx; 850 /* width: 600rpx;
848 height: 600rpx; */ 851 height: 600rpx; */
@@ -856,4 +859,10 @@ page { @@ -856,4 +859,10 @@ page {
856 top: 15px; 859 top: 15px;
857 position: absolute; 860 position: absolute;
858 right: 50rpx; 861 right: 50rpx;
859 -}  
860 \ No newline at end of file 862 \ No newline at end of file
  863 +}
  864 +
  865 +::-webkit-scrollbar {
  866 + width: 0;
  867 + height: 0;
  868 + color: transparent;
  869 +}
pages/user/cardinfo/cardinfo.js
@@ -727,14 +727,19 @@ Page({ @@ -727,14 +727,19 @@ Page({
727 727
728 //--转到用户余额-- 728 //--转到用户余额--
729 to_user_money:function(){ 729 to_user_money:function(){
730 - this.setData({yu_e_show:1}) 730 + //提现小于0的值也不提现
  731 + if(!this.data.free.VIPRebate || parseFloat(this.data.free.VIPRebate)<=0){
  732 + getApp().my_warnning("您目前没有可提现的金额",0,th); return false;
  733 + }
  734 + this.setData({yu_e_show:1})
731 }, 735 },
732 close_yu_e:function(){ 736 close_yu_e:function(){
733 this.setData({yu_e_show:0}) 737 this.setData({yu_e_show:0})
734 }, 738 },
735 go_yu_e:function(){ 739 go_yu_e:function(){
736 var th=this,free=th.data.free; 740 var th=this,free=th.data.free;
737 - if(!th.data.free.VIPRebate){ 741 + //提现小于0的值也不提现
  742 + if(!th.data.free.VIPRebate || parseFloat(th.data.free.VIPRebate)<=0){
738 getApp().my_warnning("您目前没有可提现的金额",0,th); return false; 743 getApp().my_warnning("您目前没有可提现的金额",0,th); return false;
739 } 744 }
740 wx.showModal({ 745 wx.showModal({