Browse Source

快手demo

黎海 1 year ago
parent
commit
4edbafda81

+ 1 - 1
src/pages/comic/index.jsx

@@ -86,7 +86,7 @@ export default class collection extends Component {
86
   //上传图片
86
   //上传图片
87
   upLode () {
87
   upLode () {
88
     let that = this
88
     let that = this
89
-    Taro.chooseMedia({
89
+    ks.chooseImage({
90
       count: 1, // 默认
90
       count: 1, // 默认
91
       sizeType: ['compressed'], // 可以指定是原图还是压缩图,默认二者都有
91
       sizeType: ['compressed'], // 可以指定是原图还是压缩图,默认二者都有
92
       mediaType:['image'],
92
       mediaType:['image'],

+ 4 - 4
src/pages/communityDetail/index.jsx

@@ -420,9 +420,9 @@ export default class Task extends Component {
420
               maxlength='1000'
420
               maxlength='1000'
421
             />
421
             />
422
             <View className='copy'>
422
             <View className='copy'>
423
-              <View className='copy-button' onClick={e => (this.copyPromptAI())}>
423
+              {/* <View className='copy-button' onClick={e => (this.copyPromptAI())}>
424
                 <View>AI换脸</View>
424
                 <View>AI换脸</View>
425
-              </View>
425
+              </View> */}
426
               <View className='copy-button' onClick={e => (this.copyPrompt())}>
426
               <View className='copy-button' onClick={e => (this.copyPrompt())}>
427
                 <View>画同款</View>
427
                 <View>画同款</View>
428
               </View>
428
               </View>
@@ -475,13 +475,13 @@ export default class Task extends Component {
475
               <Image className='func-image' src='https://we-spa.oss-cn-shenzhen.aliyuncs.com/total_picture/1678952380367.png'></Image>
475
               <Image className='func-image' src='https://we-spa.oss-cn-shenzhen.aliyuncs.com/total_picture/1678952380367.png'></Image>
476
               <View>发布</View>
476
               <View>发布</View>
477
             </View> */}
477
             </View> */}
478
-            {
478
+            {/* {
479
               this.state.qrCodeImg.length > 0 && process.env.TARO_ENV != 'tt' &&
479
               this.state.qrCodeImg.length > 0 && process.env.TARO_ENV != 'tt' &&
480
               <View className='func-info' onClick={e => (this.openFill())}>
480
               <View className='func-info' onClick={e => (this.openFill())}>
481
                 <Image className='func-image' src='https://we-spa.oss-cn-shenzhen.aliyuncs.com/total_picture/1678952396973.png'></Image>
481
                 <Image className='func-image' src='https://we-spa.oss-cn-shenzhen.aliyuncs.com/total_picture/1678952396973.png'></Image>
482
                 <View>分享</View>
482
                 <View>分享</View>
483
               </View>
483
               </View>
484
-            }
484
+            } */}
485
             <View className='func-info' onClick={e => (this.download())}>
485
             <View className='func-info' onClick={e => (this.download())}>
486
               <Image className='func-image' src='https://we-spa.oss-cn-shenzhen.aliyuncs.com/total_picture/1678952411029.png'></Image>
486
               <Image className='func-image' src='https://we-spa.oss-cn-shenzhen.aliyuncs.com/total_picture/1678952411029.png'></Image>
487
               <View>下载</View>
487
               <View>下载</View>

+ 4 - 4
src/pages/darwDetailIndex/index.jsx

@@ -611,9 +611,9 @@ export default class Task extends Component {
611
               disabled
611
               disabled
612
             />
612
             />
613
             <View className='copy'>
613
             <View className='copy'>
614
-              <View className='copy-button-AI' onClick={e => (this.copyPromptAI())}>
614
+              {/* <View className='copy-button-AI' onClick={e => (this.copyPromptAI())}>
615
                 <View>AI换脸</View>
615
                 <View>AI换脸</View>
616
-              </View>
616
+              </View> */}
617
               <View className='copy-button' onClick={e => (this.copyPrompt())}>
617
               <View className='copy-button' onClick={e => (this.copyPrompt())}>
618
                 <Image className='copy-icon' src='https://we-spa.oss-cn-shenzhen.aliyuncs.com/total_picture/1679017836200.png'></Image>
618
                 <Image className='copy-icon' src='https://we-spa.oss-cn-shenzhen.aliyuncs.com/total_picture/1679017836200.png'></Image>
619
                 <View>复制</View>
619
                 <View>复制</View>
@@ -666,13 +666,13 @@ export default class Task extends Component {
666
           this.state.draw_status == 2 &&
666
           this.state.draw_status == 2 &&
667
           <View className='func'>
667
           <View className='func'>
668
             <View className='func-list'>
668
             <View className='func-list'>
669
-              {
669
+              {/* {
670
                 this.state.qrCodeImg.length > 0 && process.env.TARO_ENV != 'tt' &&
670
                 this.state.qrCodeImg.length > 0 && process.env.TARO_ENV != 'tt' &&
671
                 <View className='func-info' onClick={e => (this.openFill())}>
671
                 <View className='func-info' onClick={e => (this.openFill())}>
672
                   <Image className='func-image' src='https://we-spa.oss-cn-shenzhen.aliyuncs.com/total_picture/1678952396973.png'></Image>
672
                   <Image className='func-image' src='https://we-spa.oss-cn-shenzhen.aliyuncs.com/total_picture/1678952396973.png'></Image>
673
                   <View>分享</View>
673
                   <View>分享</View>
674
                 </View>
674
                 </View>
675
-              }
675
+              } */}
676
               <View className='func-info' onClick={e => (this.download())}>
676
               <View className='func-info' onClick={e => (this.download())}>
677
                 <Image className='func-image' src='https://we-spa.oss-cn-shenzhen.aliyuncs.com/total_picture/1678952411029.png'></Image>
677
                 <Image className='func-image' src='https://we-spa.oss-cn-shenzhen.aliyuncs.com/total_picture/1678952411029.png'></Image>
678
                 <View>下载</View>
678
                 <View>下载</View>

+ 1 - 1
src/pages/darwDetailIndex/index.less

@@ -57,7 +57,7 @@
57
       margin-top: 20px;
57
       margin-top: 20px;
58
 
58
 
59
       .draw-taxtarea {
59
       .draw-taxtarea {
60
-        width: 642px;
60
+        // width: 642px;
61
         font-size: 28px;
61
         font-size: 28px;
62
         background-color: rgba(255, 255, 255, .05);
62
         background-color: rgba(255, 255, 255, .05);
63
         color: rgba(255, 255, 255, .5);
63
         color: rgba(255, 255, 255, .5);

+ 2 - 3
src/pages/earnPoints/index.jsx

@@ -372,13 +372,12 @@ export default class Task extends Component {
372
               </View>
372
               </View>
373
             ))
373
             ))
374
           }
374
           }
375
-          {
375
+          {/* {
376
             //分销用户
376
             //分销用户
377
             this.state.userInfo.p_user_id == 1 &&
377
             this.state.userInfo.p_user_id == 1 &&
378
             <View className='register'>
378
             <View className='register'>
379
               <View className='register-left'>
379
               <View className='register-left'>
380
                 <View className='register-title'><Image className='register-icon' src='http://video-img.fyshark.com/1680060033169%E5%88%86%E9%94%80.png'></Image> 分销明细</View>
380
                 <View className='register-title'><Image className='register-icon' src='http://video-img.fyshark.com/1680060033169%E5%88%86%E9%94%80.png'></Image> 分销明细</View>
381
-                {/* <View className='register-tips'>{item.sub_title}</View> */}
382
               </View>
381
               </View>
383
               <View className='register-right' onClick={e => (this.toShareCnt())}>查看</View>
382
               <View className='register-right' onClick={e => (this.toShareCnt())}>查看</View>
384
             </View>
383
             </View>
@@ -440,7 +439,7 @@ export default class Task extends Component {
440
             <View className='ios-tips'>
439
             <View className='ios-tips'>
441
               ios暂不支持充值
440
               ios暂不支持充值
442
             </View>
441
             </View>
443
-          }
442
+          } */}
444
         </View>
443
         </View>
445
       </View >
444
       </View >
446
     )
445
     )

+ 1 - 1
src/pages/faceChanging/index.jsx

@@ -100,7 +100,7 @@ export default class collection extends Component {
100
         isChangeButton: false
100
         isChangeButton: false
101
       })
101
       })
102
     }
102
     }
103
-    Taro.chooseMedia({
103
+    ks.chooseImage({
104
       count: 1, // 默认
104
       count: 1, // 默认
105
       sizeType: ['compressed'], // 可以指定是原图还是压缩图,默认二者都有
105
       sizeType: ['compressed'], // 可以指定是原图还是压缩图,默认二者都有
106
       mediaType:['image'],
106
       mediaType:['image'],

+ 3 - 4
src/pages/index/index.jsx

@@ -571,10 +571,9 @@ export default class Mine extends Component {
571
   //上传参考图
571
   //上传参考图
572
   upLode () {
572
   upLode () {
573
     let that = this
573
     let that = this
574
-    Taro.chooseMedia({
574
+    ks.chooseImage({
575
       count: 1, // 默认9
575
       count: 1, // 默认9
576
       sizeType: ['compressed'], // 可以指定是原图还是压缩图,默认二者都有
576
       sizeType: ['compressed'], // 可以指定是原图还是压缩图,默认二者都有
577
-      mediaType:['image'],
578
       sourceType: ['album', 'camera'],
577
       sourceType: ['album', 'camera'],
579
       success: function (res) {
578
       success: function (res) {
580
         console.log(res, 'res');
579
         console.log(res, 'res');
@@ -741,7 +740,7 @@ export default class Mine extends Component {
741
               </View>
740
               </View>
742
             </View>
741
             </View>
743
           }
742
           }
744
-          <View className='draw-title'>上传参考图</View>
743
+          {/* <View className='draw-title'>上传参考图</View>
745
           <View className='consult'>
744
           <View className='consult'>
746
             {
745
             {
747
               this.state.consultImg.length == 0 ?
746
               this.state.consultImg.length == 0 ?
@@ -754,7 +753,7 @@ export default class Mine extends Component {
754
                   <Image className='delete' src='http://video-img.fyshark.com/1680147210173guanbi.png' onClick={e => (this.deleteImg())}></Image>
753
                   <Image className='delete' src='http://video-img.fyshark.com/1680147210173guanbi.png' onClick={e => (this.deleteImg())}></Image>
755
                 </View>
754
                 </View>
756
             }
755
             }
757
-          </View>
756
+          </View> */}
758
           <View className='draw-title'>色彩丰富度</View>
757
           <View className='draw-title'>色彩丰富度</View>
759
           <View className='components-page'>
758
           <View className='components-page'>
760
             <Slider style={'margin: 10px 0;'} showValue step={1} max={15} min={1} activeColor='#0F84EC' value={this.state.sliderNum} />
759
             <Slider style={'margin: 10px 0;'} showValue step={1} max={15} min={1} activeColor='#0F84EC' value={this.state.sliderNum} />

+ 2 - 2
src/pages/index/index.less

@@ -164,11 +164,11 @@
164
       }
164
       }
165
 
165
 
166
       .draw-taxtarea {
166
       .draw-taxtarea {
167
-        width: 642px;
167
+        // width: 642px;
168
         background-color: rgba(255, 255, 255, .05);
168
         background-color: rgba(255, 255, 255, .05);
169
         font-size: 28px;
169
         font-size: 28px;
170
         color: rgba(255, 255, 255, .5);
170
         color: rgba(255, 255, 255, .5);
171
-        height: 150px;
171
+        height: 240px;
172
         padding: 24rpx 24rpx 44rpx 24rpx;
172
         padding: 24rpx 24rpx 44rpx 24rpx;
173
       }
173
       }
174
 
174
 

+ 1 - 1
src/pages/invite/index.jsx

@@ -297,7 +297,7 @@ export default class Task extends Component {
297
 
297
 
298
             <View className='console'>
298
             <View className='console'>
299
               <View className='inte-button' onClick={e => (this.saveToAlbum())}>保存</View>
299
               <View className='inte-button' onClick={e => (this.saveToAlbum())}>保存</View>
300
-              <View className='inte-button' onClick={e => (this.shareImage())}>分享</View>
300
+              {/* <View className='inte-button' onClick={e => (this.shareImage())}>分享</View> */}
301
             </View>
301
             </View>
302
           </View>
302
           </View>
303
         }
303
         }

+ 4 - 4
src/pages/mine/index.jsx

@@ -117,24 +117,24 @@ export default class Mine extends Component {
117
             <Image className='work-img' src='http://video-img.fyshark.com/1680055380074%E7%A7%AF%E5%88%86%E6%98%8E%E7%BB%86.png'></Image>
117
             <Image className='work-img' src='http://video-img.fyshark.com/1680055380074%E7%A7%AF%E5%88%86%E6%98%8E%E7%BB%86.png'></Image>
118
             <View className='work-title'>点券详情</View>
118
             <View className='work-title'>点券详情</View>
119
           </View>
119
           </View>
120
-          {
120
+          {/* {
121
             process.env.TARO_ENV != 'tt' &&
121
             process.env.TARO_ENV != 'tt' &&
122
             <View className='work-info' onClick={e => (this.toDetail(2))}>
122
             <View className='work-info' onClick={e => (this.toDetail(2))}>
123
               <Image className='work-img' src='http://video-img.fyshark.com/1680506104131icon-%E6%88%91%E7%9A%84%E5%96%9C%E6%AC%A2.png'></Image>
123
               <Image className='work-img' src='http://video-img.fyshark.com/1680506104131icon-%E6%88%91%E7%9A%84%E5%96%9C%E6%AC%A2.png'></Image>
124
               <View className='work-title'>邀请好友</View>
124
               <View className='work-title'>邀请好友</View>
125
             </View>
125
             </View>
126
-          }
126
+          } */}
127
           <View className='work-info' onClick={e => (this.toDetail(3))}>
127
           <View className='work-info' onClick={e => (this.toDetail(3))}>
128
             <Image className='work-img' src='http://video-img.fyshark.com/1680505725946icon-%E5%88%86%E9%94%80%E8%AE%A1%E5%88%92.png'></Image>
128
             <Image className='work-img' src='http://video-img.fyshark.com/1680505725946icon-%E5%88%86%E9%94%80%E8%AE%A1%E5%88%92.png'></Image>
129
             <View className='work-title'>分销计划</View>
129
             <View className='work-title'>分销计划</View>
130
           </View>
130
           </View>
131
-          {
131
+          {/* {
132
             process.env.TARO_ENV != 'tt' &&
132
             process.env.TARO_ENV != 'tt' &&
133
             <View className='work-info work-info-only' onClick={e => (this.toDetail(4))}>
133
             <View className='work-info work-info-only' onClick={e => (this.toDetail(4))}>
134
               <Image className='work-img' src='http://video-img.fyshark.com/1680505998515icon-%E5%8A%A0%E5%85%A5%E4%BA%A4%E5%8F%8B%E7%BE%A4.png'></Image>
134
               <Image className='work-img' src='http://video-img.fyshark.com/1680505998515icon-%E5%8A%A0%E5%85%A5%E4%BA%A4%E5%8F%8B%E7%BE%A4.png'></Image>
135
               <View className='work-title'>加入交友群</View>
135
               <View className='work-title'>加入交友群</View>
136
             </View>
136
             </View>
137
-          }
137
+          } */}
138
           <Button className='button work-info work-info-only' type='default' open-type='contact'>
138
           <Button className='button work-info work-info-only' type='default' open-type='contact'>
139
             <Image className='work-img' src='http://video-img.fyshark.com/1680506053680icon-%E8%81%94%E7%B3%BB%E6%88%91%E4%BB%AC.png'></Image>
139
             <Image className='work-img' src='http://video-img.fyshark.com/1680506053680icon-%E8%81%94%E7%B3%BB%E6%88%91%E4%BB%AC.png'></Image>
140
             <View className='work-title'>联系客服</View>
140
             <View className='work-title'>联系客服</View>

+ 2 - 2
src/pages/poetry/index.jsx

@@ -800,13 +800,13 @@ export default class collection extends Component {
800
                   this.state.draw_status == 2 &&
800
                   this.state.draw_status == 2 &&
801
                   < View className='func'>
801
                   < View className='func'>
802
                     <View className='func-list'>
802
                     <View className='func-list'>
803
-                      {
803
+                      {/* {
804
                         this.state.qrCodeImg.length > 0 && process.env.TARO_ENV != 'tt' &&
804
                         this.state.qrCodeImg.length > 0 && process.env.TARO_ENV != 'tt' &&
805
                         <View className='func-info' onClick={e => (this.openFill())}>
805
                         <View className='func-info' onClick={e => (this.openFill())}>
806
                           <Image className='func-image' src='https://we-spa.oss-cn-shenzhen.aliyuncs.com/total_picture/1678952396973.png'></Image>
806
                           <Image className='func-image' src='https://we-spa.oss-cn-shenzhen.aliyuncs.com/total_picture/1678952396973.png'></Image>
807
                           <View>分享</View>
807
                           <View>分享</View>
808
                         </View>
808
                         </View>
809
-                      }
809
+                      } */}
810
                       <View className='func-info' onClick={e => (this.download())}>
810
                       <View className='func-info' onClick={e => (this.download())}>
811
                         <Image className='func-image' src='https://we-spa.oss-cn-shenzhen.aliyuncs.com/total_picture/1678952411029.png'></Image>
811
                         <Image className='func-image' src='https://we-spa.oss-cn-shenzhen.aliyuncs.com/total_picture/1678952411029.png'></Image>
812
                         <View>下载</View>
812
                         <View>下载</View>