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 87
   upLode () {
88 88
     let that = this
89
-    Taro.chooseMedia({
89
+    ks.chooseImage({
90 90
       count: 1, // 默认
91 91
       sizeType: ['compressed'], // 可以指定是原图还是压缩图,默认二者都有
92 92
       mediaType:['image'],

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

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

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

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

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

@@ -57,7 +57,7 @@
57 57
       margin-top: 20px;
58 58
 
59 59
       .draw-taxtarea {
60
-        width: 642px;
60
+        // width: 642px;
61 61
         font-size: 28px;
62 62
         background-color: rgba(255, 255, 255, .05);
63 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 372
               </View>
373 373
             ))
374 374
           }
375
-          {
375
+          {/* {
376 376
             //分销用户
377 377
             this.state.userInfo.p_user_id == 1 &&
378 378
             <View className='register'>
379 379
               <View className='register-left'>
380 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 381
               </View>
383 382
               <View className='register-right' onClick={e => (this.toShareCnt())}>查看</View>
384 383
             </View>
@@ -440,7 +439,7 @@ export default class Task extends Component {
440 439
             <View className='ios-tips'>
441 440
               ios暂不支持充值
442 441
             </View>
443
-          }
442
+          } */}
444 443
         </View>
445 444
       </View >
446 445
     )

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

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

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

@@ -571,10 +571,9 @@ export default class Mine extends Component {
571 571
   //上传参考图
572 572
   upLode () {
573 573
     let that = this
574
-    Taro.chooseMedia({
574
+    ks.chooseImage({
575 575
       count: 1, // 默认9
576 576
       sizeType: ['compressed'], // 可以指定是原图还是压缩图,默认二者都有
577
-      mediaType:['image'],
578 577
       sourceType: ['album', 'camera'],
579 578
       success: function (res) {
580 579
         console.log(res, 'res');
@@ -741,7 +740,7 @@ export default class Mine extends Component {
741 740
               </View>
742 741
             </View>
743 742
           }
744
-          <View className='draw-title'>上传参考图</View>
743
+          {/* <View className='draw-title'>上传参考图</View>
745 744
           <View className='consult'>
746 745
             {
747 746
               this.state.consultImg.length == 0 ?
@@ -754,7 +753,7 @@ export default class Mine extends Component {
754 753
                   <Image className='delete' src='http://video-img.fyshark.com/1680147210173guanbi.png' onClick={e => (this.deleteImg())}></Image>
755 754
                 </View>
756 755
             }
757
-          </View>
756
+          </View> */}
758 757
           <View className='draw-title'>色彩丰富度</View>
759 758
           <View className='components-page'>
760 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 166
       .draw-taxtarea {
167
-        width: 642px;
167
+        // width: 642px;
168 168
         background-color: rgba(255, 255, 255, .05);
169 169
         font-size: 28px;
170 170
         color: rgba(255, 255, 255, .5);
171
-        height: 150px;
171
+        height: 240px;
172 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 298
             <View className='console'>
299 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 301
             </View>
302 302
           </View>
303 303
         }

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

@@ -117,24 +117,24 @@ export default class Mine extends Component {
117 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 118
             <View className='work-title'>点券详情</View>
119 119
           </View>
120
-          {
120
+          {/* {
121 121
             process.env.TARO_ENV != 'tt' &&
122 122
             <View className='work-info' onClick={e => (this.toDetail(2))}>
123 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 124
               <View className='work-title'>邀请好友</View>
125 125
             </View>
126
-          }
126
+          } */}
127 127
           <View className='work-info' onClick={e => (this.toDetail(3))}>
128 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 129
             <View className='work-title'>分销计划</View>
130 130
           </View>
131
-          {
131
+          {/* {
132 132
             process.env.TARO_ENV != 'tt' &&
133 133
             <View className='work-info work-info-only' onClick={e => (this.toDetail(4))}>
134 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 135
               <View className='work-title'>加入交友群</View>
136 136
             </View>
137
-          }
137
+          } */}
138 138
           <Button className='button work-info work-info-only' type='default' open-type='contact'>
139 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 140
             <View className='work-title'>联系客服</View>

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

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