Przeglądaj źródła

添加关注抖音号

黎海 2 lat temu
rodzic
commit
fae3bb4fcd

+ 3 - 0
.vscode/settings.json

@@ -0,0 +1,3 @@
1
+{
2
+  "chat-gpt.lang": "cn"
3
+}

+ 2 - 2
app_list.json

@@ -1,7 +1,7 @@
1 1
 {
2 2
   "taroConfig": {
3
-    "version": "1.5.3",
4
-    "desc": "更改绘画详情页"
3
+    "version": "1.5.7",
4
+    "desc": "添加关注抖音号"
5 5
   },
6 6
   "app_list": [
7 7
     {

+ 2 - 2
package.json

@@ -81,7 +81,7 @@
81 81
         "webpack": "5.69.0"
82 82
     },
83 83
     "taroConfig": {
84
-        "version": "1.5.3",
85
-        "desc": "更改绘画详情页"
84
+        "version": "1.5.7",
85
+        "desc": "添加关注抖音号"
86 86
     }
87 87
 }

+ 3 - 0
src/app.config.js

@@ -43,6 +43,9 @@ export default defineAppConfig({
43 43
     },
44 44
     
45 45
   ],
46
+  navigateToMiniProgramAppIdList: [
47
+    "ttf31985a46c214faf"
48
+  ],
46 49
   window: {
47 50
     backgroundTextStyle: 'light',
48 51
     navigationBarBackgroundColor: '#041129',

+ 1 - 1
src/moduleA/pages/darwDetailIndex/index.jsx

@@ -184,7 +184,7 @@ export default class Task extends Component {
184 184
   // 生成临时路径 保存图片到手机
185 185
   doSaveImg () {
186 186
     Taro.downloadFile({
187
-      url: this.state.draw_infos[0].img,
187
+      url: this.state.draw_infos[this.state.current].img,
188 188
       success: res => {
189 189
         Taro.saveImageToPhotosAlbum({
190 190
           filePath: res.tempFilePath,

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

@@ -294,7 +294,6 @@ export default class Task extends Component {
294 294
           this.state.shareImage.length > 0 &&
295 295
           <View className='content'>
296 296
             <Image className='invite-image' src={this.state.shareImage}></Image>
297
-
298 297
             <View className='console'>
299 298
               <View className='inte-button' onClick={e => (this.saveToAlbum())}>保存</View>
300 299
               <View className='inte-button' onClick={e => (this.shareImage())}>分享</View>

+ 8 - 6
src/moduleB/pages/comic/index.jsx

@@ -307,12 +307,14 @@ export default class collection extends Component {
307 307
   //充值
308 308
   toOrder () {
309 309
     if (this.state.creatInfo.ios_status==0) {
310
-      Taro.showToast({
311
-        title: 'ios暂不支持充值',
312
-        icon: 'none',
313
-        duration: 2000
314
-      })
315
-      return
310
+      if (this.state.isIos) {
311
+        Taro.showToast({
312
+          title: 'ios暂不支持充值',
313
+          icon: 'none',
314
+          duration: 2000
315
+        })
316
+        return
317
+      }
316 318
     }
317 319
     let that = this
318 320
     if (process.env.TARO_ENV === 'tt') {

+ 8 - 6
src/moduleB/pages/comicActivity/index.jsx

@@ -289,12 +289,14 @@ export default class collection extends Component {
289 289
   //充值
290 290
   toOrder () {
291 291
     if (this.state.models.ios_status==0) {
292
-      Taro.showToast({
293
-        title: 'ios暂不支持充值',
294
-        icon: 'none',
295
-        duration: 2000
296
-      })
297
-      return
292
+      if (this.state.isIos) {
293
+        Taro.showToast({
294
+          title: 'ios暂不支持充值',
295
+          icon: 'none',
296
+          duration: 2000
297
+        })
298
+        return
299
+      }
298 300
     }
299 301
     let that = this
300 302
     if (process.env.TARO_ENV === 'tt') {

+ 42 - 12
src/moduleB/pages/comicActivityCurrent/index.jsx

@@ -1,5 +1,5 @@
1 1
 import { Component } from 'react'
2
-import { View, Text, Button, Image, scrollView,Video, Input } from '@tarojs/components'
2
+import { View, Text, Button, Image, scrollView, Video, Input } from '@tarojs/components'
3 3
 import * as api from '../../../service/index'
4 4
 import tool from '../../../common/tool'
5 5
 import Taro, { getCurrentInstance } from '@tarojs/taro'
@@ -126,6 +126,9 @@ export default class collection extends Component {
126 126
             Taro.showToast({ title: item.msg, icon: 'none' })
127 127
           }
128 128
         })
129
+      },
130
+      fail: function (params) {
131
+        console.log(params, 'fail');
129 132
       }
130 133
     })
131 134
   }
@@ -139,7 +142,7 @@ export default class collection extends Component {
139 142
       if (res.code == 200) {
140 143
         if (this.state.is_week == 1) {
141 144
           Taro.navigateTo({
142
-            url: `/moduleB/pages/comicActivityCurrentDetail/index?task_id=${res.data.task_id}`
145
+            url: `/moduleB/pages/comicActivityCurrentDetail/index?task_id=${res.data.task_id}&promotion_img=${this.state.models.promotion_img}`
143 146
           })
144 147
         } else {
145 148
           this.setState({
@@ -196,7 +199,7 @@ export default class collection extends Component {
196 199
       Taro.hideLoading()
197 200
       if (data.isEnded) {
198 201
         Taro.navigateTo({
199
-          url: `/moduleB/pages/comicActivityDetail/index?task_id=${that.state.drawTaskId}`
202
+          url: `/moduleB/pages/comicActivityCurrentDetail/index?task_id=${that.state.drawTaskId}&promotion_img=${that.state.models.promotion_img}`
200 203
         })
201 204
       } else {
202 205
 
@@ -234,7 +237,7 @@ export default class collection extends Component {
234 237
         if (res && res.isEnded || res === undefined) {
235 238
           // 正常播放结束,可以下发游戏奖励
236 239
           Taro.navigateTo({
237
-            url: `/moduleB/pages/comicActivityDetail/index?task_id=${that.state.drawTaskId}`
240
+            url: `/moduleB/pages/comicActivityCurrentDetail/index?task_id=${that.state.drawTaskId}&promotion_img=${that.state.models.promotion_img}`
238 241
           })
239 242
         } else {
240 243
           //提前关闭小程序
@@ -291,13 +294,15 @@ export default class collection extends Component {
291 294
   }
292 295
   //充值
293 296
   toOrder () {
294
-    if (this.state.models.ios_status==0) {
295
-      Taro.showToast({
296
-        title: 'ios暂不支持充值',
297
-        icon: 'none',
298
-        duration: 2000
299
-      })
300
-      return
297
+    if (this.state.models.ios_status == 0) {
298
+      if (this.state.isIos) {
299
+        Taro.showToast({
300
+          title: 'ios暂不支持充值',
301
+          icon: 'none',
302
+          duration: 2000
303
+        })
304
+        return
305
+      }
301 306
     }
302 307
     let that = this
303 308
     if (process.env.TARO_ENV === 'tt') {
@@ -380,6 +385,22 @@ export default class collection extends Component {
380 385
       url: `/moduleB/pages/comic/index`
381 386
     })
382 387
   }
388
+  //关注抖音号
389
+  followAwemeUser () {
390
+    console.log('关联');
391
+    tt.followAwemeUser({
392
+      success: (res) => {
393
+        Taro.showToast({
394
+          title: '关注成功',
395
+          icon: 'none',
396
+          duration: 2000
397
+        })
398
+      },
399
+      fail: (res) => {
400
+        console.log(res);
401
+      }
402
+    });
403
+  }
383 404
 
384 405
   render () {
385 406
     return (
@@ -399,7 +420,7 @@ export default class collection extends Component {
399 420
                     mode='aspectFit'
400 421
                     src={this.state.consultImg}
401 422
                   ></Image> */}
402
-                   <Video
423
+                  <Video
403 424
                     className='album_swiper_video'
404 425
                     src={this.state.models.video_url}
405 426
                     showCenterPlayBtn={false}
@@ -416,6 +437,15 @@ export default class collection extends Component {
416 437
                     x5-video-orientation='portraint'
417 438
                   ></Video>
418 439
                 </View>
440
+                {
441
+                  process.env.TARO_ENV == 'tt' &&
442
+                  <View className='follow'>
443
+                    <View className='follow-content' onClick={e => (this.followAwemeUser())}>
444
+                      <Image className='follow-img' src='https://video-img.fyshark.com/1685585243379ajlna.png'></Image>
445
+                      预览效果
446
+                    </View>
447
+                  </View>
448
+                }
419 449
                 <View className='step'>
420 450
                   <Image className='step-img' src='http://video-img.fyshark.com/1683196371096123.png'>
421 451
                   </Image>

+ 24 - 1
src/moduleB/pages/comicActivityCurrent/index.less

@@ -61,7 +61,30 @@
61 61
         height: 40px;
62 62
       }
63 63
     }
64
-
64
+    .follow {
65
+      margin-top: 20px;
66
+      width: 100%;
67
+      display: flex;
68
+      justify-content: flex-end;
69
+      align-items: center;
70
+  
71
+      .follow-content {
72
+        padding: 10px 12px;
73
+        display: flex;
74
+        background: linear-gradient(90deg, #038EFF, #3342FF);
75
+        border-radius: 10px;
76
+        align-items: center;
77
+        justify-content: center;
78
+        color: #FFFFFF;
79
+        font-size: 24px;
80
+  
81
+        .follow-img {
82
+          width: 30px;
83
+          height: 30px;
84
+          margin-right: 10px;
85
+        }
86
+      }
87
+    }
65 88
 
66 89
     .banner-tips {
67 90
       margin-top: 20px;

+ 89 - 12
src/moduleB/pages/comicActivityCurrentDetail/index.jsx

@@ -14,6 +14,7 @@ export default class collection extends Component {
14 14
     repeat: 0,//广告次数
15 15
     current: 0,
16 16
     interval: null,
17
+    intervalVideo: null,
17 18
     draw_status: 0,
18 19
     draw_infos: [],
19 20
     que_cnt: 0,
@@ -39,6 +40,7 @@ export default class collection extends Component {
39 40
   componentWillUnmount () {
40 41
     //避免服务器攻击
41 42
     clearInterval(this.state.interval)
43
+    clearInterval(this.state.intervalVideo)
42 44
   }
43 45
   getCoinTaskAd () {
44 46
     api.getCoinTaskAd().then(res => {
@@ -332,9 +334,9 @@ export default class collection extends Component {
332 334
     })
333 335
   }
334 336
   toIndex () {
335
-    // Taro.reLaunch({
336
-    //   url: `/pages/index/index`
337
-    // })
337
+    Taro.reLaunch({
338
+      url: `/pages/index/index`
339
+    })
338 340
   }
339 341
   previewImage () {
340 342
     Taro.previewImage({
@@ -342,11 +344,77 @@ export default class collection extends Component {
342 344
       urls: [`${this.state.draw_infos[this.state.current].img}`] // 需要预览的图片http链接列表  
343 345
     })
344 346
   }
345
-  onUploadDouyinVideo = async () => {
346
-    Taro.navigateTo({
347
-      url: `/native-pages/index/index?videoUrl=http://video-img.fyshark.com/16833402744695%E6%9C%885%E6%97%A5(1).mp4`
347
+  onUploadDouyinVideo () {
348
+    Taro.showLoading({
349
+      title: '加载中...',
348 350
     })
351
+    api.drawImg2video({ img_id: this.state.draw_infos[this.state.current].img_id }).then(res => {
352
+      if (res.code == 200) {
353
+        this.getImg2videoUrl()
354
+      }
355
+    })
356
+
357
+
349 358
   };
359
+  getImg2videoUrl () {
360
+    api.getImg2videoUrl({ img_id: this.state.draw_infos[this.state.current].img_id }).then(res => {
361
+      if (res.data.video_type != 2) {
362
+        clearInterval(this.state.intervalVideo)
363
+        this.state.intervalVideo = setInterval(() => {
364
+          this.getImg2videoUrl()
365
+        }, 1000 * 2)
366
+      } else {
367
+        clearInterval(this.state.intervalVideo)
368
+        Taro.hideLoading()
369
+        this.downloadAndSaveVideo(res.data.video_url)
370
+      }
371
+    })
372
+  }
373
+  // downloadFile (videoUrl) {
374
+
375
+  // }
376
+  downloadAndSaveVideo (videoUrl) {
377
+    let routers = this.$instance.router.params
378
+    tt.downloadFile({
379
+      url: videoUrl,
380
+      success (res) {
381
+        if (res.statusCode === 200) {
382
+          tt.saveVideoToPhotosAlbum({
383
+            filePath: res.tempFilePath,
384
+            success () {
385
+              console.log('视频已保存到相册');
386
+              tt.showToast({
387
+                title: '视频已保存到相册',
388
+                icon: 'success',
389
+              });
390
+              Taro.navigateTo({
391
+                url: `/native-pages/index/index?videoUrl=${res.tempFilePath}&promotion_img=${routers.promotion_img}`
392
+              })
393
+            },
394
+            fail () {
395
+              tt.showToast({
396
+                title: '保存失败',
397
+                icon: 'none',
398
+              });
399
+            },
400
+          });
401
+        } else {
402
+          tt.showToast({
403
+            title: '下载失败',
404
+            icon: 'none',
405
+          });
406
+        }
407
+      },
408
+      fail () {
409
+        tt.showToast({
410
+          title: '下载失败',
411
+          icon: 'none',
412
+        });
413
+      },
414
+    });
415
+  }
416
+
417
+
350 418
 
351 419
 
352 420
   render () {
@@ -364,6 +432,7 @@ export default class collection extends Component {
364 432
             </View>
365 433
           </View>
366 434
         }
435
+        
367 436
         <ScrollView
368 437
           className='recharge'
369 438
           scrollX
@@ -393,14 +462,22 @@ export default class collection extends Component {
393 462
         </View> */}
394 463
         {
395 464
           this.state.draw_infos.length > 0 && this.state.draw_infos[this.state.current].status == 2 &&
396
-          <View className='control'>
397
-            <View className='download' onClick={e => (this.download())}>保存图片</View>
398
-            <View className='toIndex' onClick={e => (this.toIndex())}>前往探索更多玩法</View>
465
+          <View>
466
+            <View className='control'>
467
+              <View className='download' onClick={e => (this.download())}>保存图片</View>
468
+              <View className='toIndex' onClick={e => (this.toIndex())}>前往探索更多玩法</View>
469
+            </View>
470
+            {
471
+              process.env.TARO_ENV == 'tt' &&
472
+              <View className='result-update-button'
473
+                onClick={e => (tool.throttle(this.onUploadDouyinVideo()), 2000)}
474
+              >
475
+                <Image className='result-update-img' src='http://video-img.fyshark.com/1682414441783aghidjnl.png'></Image>
476
+                生成视频并发布
477
+              </View>
478
+            }
399 479
           </View>
400 480
         }
401
-        {/* <Button open-type="uploadDouyinVideo" className='upload-button' onClick={this.onUploadDouyinVideo}>
402
-          上传抖音视频
403
-        </Button> */}
404 481
       </View>
405 482
     )
406 483
   }

+ 20 - 0
src/moduleB/pages/comicActivityCurrentDetail/index.less

@@ -213,4 +213,24 @@
213 213
     }
214 214
   }
215 215
 
216
+  .result-update-button {
217
+    margin-top: 40px;
218
+    background: linear-gradient(90deg, #C367DE, #3342FF);
219
+    border-radius: 23px;
220
+    width: 100%;
221
+    height: 94px;
222
+    display: flex;
223
+    align-items: center;
224
+    justify-content: center;
225
+    color: #FFFFFF;
226
+
227
+    .result-update-img {
228
+      width: 52px;
229
+      height: 52px;
230
+      display: block;
231
+      margin-right: 20px;
232
+    }
233
+  }
234
+
235
+
216 236
 }

+ 0 - 2
src/moduleB/pages/realDetail/index.less

@@ -8,6 +8,4 @@
8 8
   h1,h2,h3,h4,h5,h6{
9 9
     color: #FFFFFF;
10 10
   }
11
- 
12
- 
13 11
 }

+ 23 - 41
src/native-pages/index/index.js

@@ -1,14 +1,17 @@
1 1
 // index.js
2
+import ttappid from '../../../project.tt.json'
2 3
 Page({
3 4
   data: {
4
-    videoUrl:'',
5
+    videoUrl: '',
6
+    promotion_img:''
5 7
   },
6
-   onLoad(options){
7
-    console.log(options,'pages');
8
+  onLoad (options) {
9
+    console.log(options, 'pages');
8 10
     this.setData({
9
-      videoUrl: options.videoUrl
11
+      videoUrl: options.videoUrl,
12
+      promotion_img:options.promotion_img
10 13
     })
11
-    console.log(this.data.videoUrl,'videoUrl');
14
+    console.log(this.data.videoUrl, 'videoUrl');
12 15
   },
13 16
   // onUploadDouyinVideo 和 onLoad 等其他钩子同级
14 17
   async onUploadDouyinVideo (uploadOptions) {
@@ -17,26 +20,11 @@ Page({
17 20
     console.log("onUploadDouyinVideoOptions: ", uploadOptions);
18 21
 
19 22
     // 可以利用异步能力配合其他 API 获取必要的字段信息
20
-    const videoPath = await this.chooseVideo();
23
+    const videoPath = this.data.videoUrl;
21 24
     console.log("videoPath:", videoPath);
22 25
     // 返回值(文档中称之为 uploadParams)将被当作发布参数传入视频发布器,发布视频
23 26
     return {
24 27
       videoPath,
25
-      titleConfig: {
26
-        title: "视频标题",
27
-        mentionMarkers: [
28
-          {
29
-            start: 0,
30
-            openId: "标题里要 @ 的人",
31
-          },
32
-        ],
33
-        hashtagMarkers: [
34
-          {
35
-            start: 0,
36
-            hashtag: "标题里要 # 的话题",
37
-          },
38
-        ],
39
-      },
40 28
       extra: {
41 29
         anchor: {
42 30
           anchorType: "app",
@@ -56,26 +44,20 @@ Page({
56 44
       },
57 45
     };
58 46
   },
59
-  chooseVideo () {
60
-    return new Promise((resolve) => {
61
-      tt.chooseVideo({
62
-        sourceType: ["album", "camera"],
63
-        compressed: true,
64
-        success: (res) => {
65
-          resolve(res.tempFilePath);
66
-        },
67
-        fail: (err) => {
68
-          let errType = err.errMsg.includes("chooseVideo:fail cancel")
69
-            ? "取消选择"
70
-            : "选择失败";
71
-          tt.showModal({
72
-            title: errType,
73
-            content: err.errMsg,
74
-            showCancel: false,
75
-          });
76
-          resolve("");
77
-        },
78
-      });
47
+  toPromotion () {
48
+    console.log('当前小程序的 AppID 实例为:', ttappid.appid);
49
+    tt.navigateToMiniProgram({
50
+      appId: "ttf31985a46c214faf",
51
+      path: `subPackage/subApp/appDetail/index?appId=${ttappid.appid}`,
52
+      extraData: {
53
+
54
+      },
55
+      success: function () {
56
+        console.log('跳转成功');
57
+      },
58
+      fail: function (e) {
59
+        console.log(e, '失败');
60
+      },
79 61
     });
80 62
   },
81 63
   navigateBack () {

+ 19 - 12
src/native-pages/index/index.ttml

@@ -1,16 +1,23 @@
1 1
 <view class="intro">
2
-  <view class="banner-content" hover-class="none" hover-stop-propagation="false">
3
-    <video class='album_swiper_video' src="{{videoUrl}}" showCenterPlayBtn="{{false}}" showPlayBtn="{{false}}"
4
-      showFullscreenBtn="{{false}}" autoplay objectFit='cover' loop controls="{{false}}" x5-video-player-type='h5-page'
5
-      webkit-playsinline='true' x5-playsinline='true' x5-video-orientation='portraint'></video>
2
+  
3
+  <view class="content" hover-class="none" hover-stop-propagation="false">
4
+    <view class="banner-content" hover-class="none" hover-stop-propagation="false">
5
+      <video class='album_swiper_video' src="{{videoUrl}}" showCenterPlayBtn="{{false}}" showPlayBtn="{{false}}"
6
+        showFullscreenBtn="{{false}}" autoplay object-fit='contain' loop controls="{{false}}" x5-video-player-type='h5-page'
7
+        webkit-playsinline='true' x5-playsinline='true' x5-video-orientation='portraint'></video>
8
+    </view>
9
+    <view class="console" hover-class="none" hover-stop-propagation="false">
10
+      <view class="back" type="primary" bindtap="navigateBack">返回上一页</view>
11
+      <button class="release" open-type="uploadDouyinVideo">
12
+        <image class="douyin-logo" src="http://video-img.fyshark.com/1683353853830%E6%8A%96%E9%9F%B3.png"
13
+          mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="">
14
+        </image>
15
+        一键发布至抖音
16
+      </button>
17
+    </view>
6 18
   </view>
7
-  <view class="console" hover-class="none" hover-stop-propagation="false">
8
-    <view class="back" type="primary" bindtap="navigateBack">返回上一页</view>
9
-    <button class="" open-type="uploadDouyinVideo">
10
-      <image class="douyin-logo" src="http://video-img.fyshark.com/1683353853830%E6%8A%96%E9%9F%B3.png"
11
-        mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="">
12
-      </image>
13
-      保存视频并发布
14
-    </button>
19
+  <view class="promotion" hover-class="none"  bindtap="toPromotion" hover-stop-propagation="false">
20
+    <image class="promotion-img" src="{{promotion_img}}" mode="widthFix" lazy-load="false" binderror="" bindload="">
21
+    </image>
15 22
   </view>
16 23
 </view>

+ 50 - 6
src/native-pages/index/index.ttss

@@ -1,8 +1,13 @@
1 1
 .intro {
2
-  padding: 48px 20px;
3 2
   min-height: 100vh;
4 3
   background-color: #041129;
5 4
 }
5
+
6
+.content {
7
+  padding: 48px 20px;
8
+
9
+}
10
+
6 11
 .banner-content {
7 12
   position: relative;
8 13
   left: 50%;
@@ -10,20 +15,59 @@
10 15
   width: 100%;
11 16
   height: 700px;
12 17
 }
18
+
13 19
 .album_swiper_video {
14 20
   width: 100%;
15 21
   height: 100%;
16 22
 }
17
-.console{
23
+
24
+.console {
25
+  margin-top: 100px;
18 26
   width: 100%;
19 27
   display: flex;
20 28
   justify-content: space-between;
21 29
   align-items: center;
22 30
 }
23
-.back{
31
+
32
+.back {
33
+  width: 260px;
34
+  height: 80px;
35
+  line-height: 80px;
36
+  font-size: 28px;
37
+  text-align: center;
38
+  border: 2px solid #FFFFFF;
39
+  color: #FFFFFF;
40
+  border-radius: 14px;
24 41
 
25 42
 }
26
-.douyin-logo{
27
-  width: 60px;
28
-  height: 60px;
43
+
44
+.release {
45
+  margin: 0;
46
+  width: 380px;
47
+  height: 80px;
48
+  line-height: 80px;
49
+  font-size: 28px;
50
+  text-align: center;
51
+  background: linear-gradient(90deg, #C367DE, #3342FF);
52
+  border-radius: 23px;
53
+  display: flex;
54
+  align-items: center;
55
+  justify-content: center;
56
+  color: #FFFFFF;
57
+
58
+}
59
+
60
+.douyin-logo {
61
+  width: 52px;
62
+  height: 52px;
63
+  display: block;
64
+  margin-right: 10px;
65
+}
66
+
67
+.promotion {}
68
+
69
+.promotion-img {
70
+  /* border: 2px solid aliceblue; */
71
+  width: 100%;
72
+  border-radius: 10px;
29 73
 }

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

@@ -14,9 +14,9 @@ export default class collection extends Component {
14 14
   }
15 15
 
16 16
   componentWillMount () {
17
+    this.init()
17 18
   }
18 19
   componentDidShow () {
19
-    this.init()
20 20
   }
21 21
   init () {
22 22
     this.setState({

+ 22 - 1
src/service/index.js

@@ -172,13 +172,20 @@ export const getUserShareCnt = data =>
172 172
     method: 'POST',
173 173
     data,
174 174
   });
175
-//获取用户分销明细
175
+//画画
176 176
 export const drawGcImg = data =>
177 177
   Request({
178 178
     url: '/api/draw_gc_img',
179 179
     method: 'POST',
180 180
     data,
181 181
   });
182
+//单风格画画
183
+export const drawGcImgAlone = data =>
184
+  Request({
185
+    url: '/api/draw_gc_img_alone',
186
+    method: 'POST',
187
+    data,
188
+  });
182 189
 //获取资讯列表
183 190
 export const getInformationList = data =>
184 191
   Request({
@@ -284,6 +291,20 @@ export const getDrawAloneImgIndex = data =>
284 291
     method: 'POST',
285 292
     data,
286 293
   });
294
+//生成视频
295
+export const drawImg2video = data =>
296
+  Request({
297
+    url: '/api/draw_img2video',
298
+    method: 'POST',
299
+    data,
300
+  });
301
+//获取视频
302
+export const getImg2videoUrl = data =>
303
+  Request({
304
+    url: '/api/get_img2video_url',
305
+    method: 'POST',
306
+    data,
307
+  });
287 308
 
288 309
 
289 310