黎海 1 год назад
Родитель
Сommit
e2daf25c3e
54 измененных файлов с 84 добавлено и 96 удалено
  1. 2 2
      src/api/config.js
  2. 3 0
      src/api/request.js
  3. 17 32
      src/app.config.js
  4. 1 1
      src/pages/collection/index.jsx
  5. 0 0
      src/pages/comic/index.config.js
  6. 6 6
      src/moduleB/pages/comic/index.jsx
  7. 0 0
      src/pages/comic/index.less
  8. 0 0
      src/pages/comicDetail/index.config.js
  9. 2 2
      src/moduleB/pages/comicDetail/index.jsx
  10. 0 0
      src/pages/comicDetail/index.less
  11. 0 0
      src/pages/communityDetail/index.config.js
  12. 4 4
      src/moduleA/pages/communityDetail/index.jsx
  13. 0 0
      src/pages/communityDetail/index.less
  14. 0 0
      src/pages/darwDetailIndex/index.config.js
  15. 4 4
      src/moduleA/pages/darwDetailIndex/index.jsx
  16. 0 0
      src/pages/darwDetailIndex/index.less
  17. 0 0
      src/pages/earnPoints/index.config.js
  18. 4 4
      src/moduleA/pages/earnPoints/index.jsx
  19. 0 0
      src/pages/earnPoints/index.less
  20. 0 0
      src/pages/faceChanging/index.config.js
  21. 4 4
      src/moduleB/pages/faceChanging/index.jsx
  22. 0 0
      src/pages/faceChanging/index.less
  23. 0 0
      src/pages/imageWorks/index.config.js
  24. 4 4
      src/moduleB/pages/imageWorks/index.jsx
  25. 0 0
      src/pages/imageWorks/index.less
  26. 3 3
      src/pages/index/index.jsx
  27. 0 0
      src/pages/invite/index.config.js
  28. 3 3
      src/moduleA/pages/invite/index.jsx
  29. 0 0
      src/pages/invite/index.less
  30. 0 0
      src/pages/like/index.config.js
  31. 3 3
      src/moduleB/pages/like/index.jsx
  32. 0 0
      src/pages/like/index.less
  33. 6 6
      src/pages/mine/index.jsx
  34. 0 0
      src/pages/poetry/index.config.js
  35. 4 4
      src/moduleB/pages/poetry/index.jsx
  36. 0 0
      src/pages/poetry/index.less
  37. 0 0
      src/pages/point/index.config.js
  38. 2 2
      src/moduleB/pages/point/index.jsx
  39. 0 0
      src/pages/point/index.less
  40. 0 0
      src/pages/real/index.config.js
  41. 3 3
      src/moduleB/pages/real/index.jsx
  42. 0 0
      src/pages/real/index.less
  43. 0 0
      src/pages/realDetail/index.config.js
  44. 2 2
      src/moduleB/pages/realDetail/index.jsx
  45. 0 0
      src/pages/realDetail/index.less
  46. 0 0
      src/pages/shareCnt/index.config.js
  47. 2 2
      src/moduleA/pages/shareCnt/index.jsx
  48. 0 0
      src/pages/shareCnt/index.less
  49. 0 0
      src/pages/upload/index.config.js
  50. 2 2
      src/moduleA/pages/upload/index.jsx
  51. 0 0
      src/pages/upload/index.less
  52. 0 0
      src/pages/wallet/index.config.js
  53. 3 3
      src/moduleA/pages/wallet/index.jsx
  54. 0 0
      src/pages/wallet/index.less

+ 2 - 2
src/api/config.js

@@ -1,7 +1,7 @@
1 1
 // 配置请求对象
2 2
 // 本地调试 dev 开发阶段
3
-// export const baseUrl = "https://test-openai.fyshark.com";//测试
4
-export const baseUrl = "https://openai.fyshark.com";//正式
3
+export const baseUrl = "https://test-openai.fyshark.com";//测试
4
+// export const baseUrl = "https://openai.fyshark.com";//正式
5 5
 // product 阶段
6 6
 // https://www.fastmock.site/mock/3f112f6cb2f621fc9c2dd6a14be19f38/beers/
7 7
 // 设计模式

+ 3 - 0
src/api/request.js

@@ -1,6 +1,7 @@
1 1
 import Taro from '@tarojs/taro';
2 2
 import ttappid from '../../project.tt.json'
3 3
 import wxappid from '../../project.config.json'
4
+import kwaiappid from '../../project.kwai.json'
4 5
 import {
5 6
   baseUrl
6 7
 } from './config';
@@ -19,6 +20,8 @@ export default (options = {
19 20
     request_data['appid'] = wxappid.appid
20 21
   } else if (process.env.TARO_ENV === 'tt') {
21 22
     request_data['appid'] = ttappid.appid
23
+  }else if (process.env.TARO_ENV === 'kwai') {
24
+    request_data['appid'] = kwaiappid.appid
22 25
   }
23 26
   return Taro.request({
24 27
     url: baseUrl + options.url,

+ 17 - 32
src/app.config.js

@@ -5,38 +5,23 @@ export default defineAppConfig({
5 5
     'pages/index/index',
6 6
     "pages/mine/index",
7 7
     'pages/collection/index',
8
-    "pages/activity/index"
9
-  ],
10
-  subpackages: [
11
-    {
12
-      root: "moduleA",
13
-      name: "分包A",
14
-      pages: [
15
-        "pages/invite/index",
16
-        "pages/wallet/index",
17
-        "pages/shareCnt/index",
18
-        "pages/upload/index",//图片裁剪页面
19
-        "pages/darwDetailIndex/index",//图片作品页面
20
-        "pages/communityDetail/index",
21
-        "pages/earnPoints/index",
22
-      ]
23
-    },
24
-    {
25
-      root: "moduleB",
26
-      name: "分包B",
27
-      pages: [
28
-        "pages/imageWorks/index",//图画作品
29
-        "pages/like/index",//我的喜欢
30
-        "pages/comic/index",//人物动漫画
31
-        "pages/comicDetail/index",//人物动漫画详情页
32
-        "pages/poetry/index",//诗词绘画
33
-        "pages/faceChanging/index",//AI换脸
34
-        "pages/point/index",//新手指引
35
-        "pages/real/index",//资讯
36
-        "pages/realDetail/index",//资讯
37
-      ]
38
-    },
39
-    
8
+    "pages/activity/index",
9
+    "pages/invite/index",
10
+    "pages/wallet/index",
11
+    "pages/shareCnt/index",
12
+    "pages/upload/index",//图片裁剪页面
13
+    "pages/darwDetailIndex/index",//图片作品页面
14
+    "pages/communityDetail/index",
15
+    "pages/earnPoints/index",
16
+    "pages/imageWorks/index",//图画作品
17
+    "pages/like/index",//我的喜欢
18
+    "pages/comic/index",//人物动漫画
19
+    "pages/comicDetail/index",//人物动漫画详情页
20
+    "pages/poetry/index",//诗词绘画
21
+    "pages/faceChanging/index",//AI换脸
22
+    "pages/point/index",//新手指引
23
+    "pages/real/index",//资讯
24
+    "pages/realDetail/index",//资讯
40 25
   ],
41 26
   window: {
42 27
     backgroundTextStyle: 'light',

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

@@ -90,7 +90,7 @@ export default class collection extends Component {
90 90
   detail (item, index) {
91 91
     console.log(item, 'item');
92 92
     Taro.navigateTo({
93
-      url: `/moduleA/pages/communityDetail/index?task_id=${item.id}`
93
+      url: `/pages/communityDetail/index?task_id=${item.id}`
94 94
     })
95 95
   }
96 96
 

src/moduleB/pages/comic/index.config.js → src/pages/comic/index.config.js


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

@@ -1,7 +1,7 @@
1 1
 import { Component } from 'react'
2 2
 import { View, Text, Button, Image, scrollView, Input } from '@tarojs/components'
3
-import * as api from '../../../service/index'
4
-import tool from '../../../common/tool'
3
+import * as api from '../../service/index'
4
+import tool from '../../common/tool'
5 5
 import Taro, { } from '@tarojs/taro'
6 6
 import './index.less'
7 7
 
@@ -103,7 +103,7 @@ export default class collection extends Component {
103 103
         })
104 104
         Taro.hideLoading()
105 105
         Taro.navigateTo({
106
-          url: `/moduleA/pages/upload/index?image=${file}`
106
+          url: `/pages/upload/index?image=${file}`
107 107
         })
108 108
       }
109 109
     })
@@ -117,7 +117,7 @@ export default class collection extends Component {
117 117
     api.drawGcImg({ img_url: this.state.consultImg, style_id: this.state.creatInfo.models[this.state.modelIndex].id }).then(res => {
118 118
       if (res.code == 200) {
119 119
         Taro.navigateTo({
120
-          url: `/moduleB/pages/comicDetail/index?task_id=${res.data.task_id}`
120
+          url: `/pages/comicDetail/index?task_id=${res.data.task_id}`
121 121
         })
122 122
       } else {
123 123
         Taro.hideLoading()
@@ -186,7 +186,7 @@ export default class collection extends Component {
186 186
       Taro.hideLoading()
187 187
       if (data.isEnded) {
188 188
         Taro.navigateTo({
189
-          url: `/moduleB/pages/comicDetail/index?task_id=${that.state.drawTaskId}`
189
+          url: `/pages/comicDetail/index?task_id=${that.state.drawTaskId}`
190 190
         })
191 191
       } else {
192 192
        
@@ -224,7 +224,7 @@ export default class collection extends Component {
224 224
         if (res && res.isEnded || res === undefined) {
225 225
           // 正常播放结束,可以下发游戏奖励
226 226
           Taro.navigateTo({
227
-            url: `/moduleB/pages/comicDetail/index?task_id=${that.state.drawTaskId}`
227
+            url: `/pages/comicDetail/index?task_id=${that.state.drawTaskId}`
228 228
           })
229 229
         } else {
230 230
           //提前关闭小程序

src/moduleB/pages/comic/index.less → src/pages/comic/index.less


src/moduleB/pages/comicDetail/index.config.js → src/pages/comicDetail/index.config.js


+ 2 - 2
src/moduleB/pages/comicDetail/index.jsx

@@ -1,7 +1,7 @@
1 1
 import { Component } from 'react'
2 2
 import { View, Text, Button, Image, ScrollView, Input } from '@tarojs/components'
3
-import * as api from '../../../service/index'
4
-import tool from '../../../common/tool'
3
+import * as api from '../../service/index'
4
+import tool from '../../common/tool'
5 5
 import Taro, { getCurrentInstance } from '@tarojs/taro'
6 6
 import './index.less'
7 7
 

src/moduleB/pages/comicDetail/index.less → src/pages/comicDetail/index.less


src/moduleA/pages/communityDetail/index.config.js → src/pages/communityDetail/index.config.js


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

@@ -1,9 +1,9 @@
1 1
 import { Component } from 'react'
2 2
 import { View, Swiper, SwiperItem, Image, Textarea } from '@tarojs/components'
3 3
 import Taro, { getCurrentInstance } from '@tarojs/taro'
4
-import tool from '../../../common/tool'
5
-import TaroCanvasDrawer from '../../../component/taro-plugin-canvas';
6
-import * as api from '../../../service/index'
4
+import tool from '../../common/tool'
5
+import TaroCanvasDrawer from '../../component/taro-plugin-canvas';
6
+import * as api from '../../service/index'
7 7
 import './index.less'
8 8
 
9 9
 export default class Task extends Component {
@@ -356,7 +356,7 @@ export default class Task extends Component {
356 356
   }
357 357
   copyPromptAI () {
358 358
     Taro.navigateTo({
359
-      url: `/moduleB/pages/faceChanging/index?img=${this.state.img_info.img}`
359
+      url: `/pages/faceChanging/index?img=${this.state.img_info.img}`
360 360
     })
361 361
   }
362 362
 

src/moduleA/pages/communityDetail/index.less → src/pages/communityDetail/index.less


src/moduleA/pages/darwDetailIndex/index.config.js → src/pages/darwDetailIndex/index.config.js


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

@@ -1,9 +1,9 @@
1 1
 import { Component } from 'react'
2 2
 import { View, Swiper, SwiperItem, Image, Textarea, Canvas, Button } from '@tarojs/components'
3 3
 import Taro, { getCurrentInstance, CanvasContext } from '@tarojs/taro'
4
-import tool from '../../../common/tool'
5
-import TaroCanvasDrawer from '../../../component/taro-plugin-canvas';
6
-import * as api from '../../../service/index'
4
+import tool from '../../common/tool'
5
+import TaroCanvasDrawer from '../../component/taro-plugin-canvas';
6
+import * as api from '../../service/index'
7 7
 import './index.less'
8 8
 
9 9
 export default class Task extends Component {
@@ -225,7 +225,7 @@ export default class Task extends Component {
225 225
   }
226 226
   copyPromptAI () {
227 227
     Taro.navigateTo({
228
-      url: `/moduleB/pages/faceChanging/index?img=${this.state.draw_infos[this.state.current].img}`
228
+      url: `/pages/faceChanging/index?img=${this.state.draw_infos[this.state.current].img}`
229 229
     })
230 230
   }
231 231
 

src/moduleA/pages/darwDetailIndex/index.less → src/pages/darwDetailIndex/index.less


src/moduleA/pages/earnPoints/index.config.js → src/pages/earnPoints/index.config.js


+ 4 - 4
src/moduleA/pages/earnPoints/index.jsx

@@ -1,8 +1,8 @@
1 1
 import { Component } from 'react'
2 2
 import { View, Swiper, SwiperItem, Image, Textarea, Text, ScrollView, RichText } from '@tarojs/components'
3 3
 import Taro, { getCurrentInstance } from '@tarojs/taro'
4
-import tool from '../../../common/tool'
5
-import * as api from '../../../service/index'
4
+import tool from '../../common/tool'
5
+import * as api from '../../service/index'
6 6
 import './index.less'
7 7
 
8 8
 export default class Task extends Component {
@@ -95,7 +95,7 @@ export default class Task extends Component {
95 95
     }
96 96
     if (item.btn_title == '邀请') {
97 97
       Taro.navigateTo({
98
-        url: '/moduleA/pages/invite/index'
98
+        url: '/pages/invite/index'
99 99
       })
100 100
       return
101 101
     }
@@ -225,7 +225,7 @@ export default class Task extends Component {
225 225
   }
226 226
   toShareCnt () {
227 227
     Taro.navigateTo({
228
-      url: '/moduleA/pages/shareCnt/index'
228
+      url: '/pages/shareCnt/index'
229 229
     })
230 230
   }
231 231
   //充值

src/moduleA/pages/earnPoints/index.less → src/pages/earnPoints/index.less


src/moduleB/pages/faceChanging/index.config.js → src/pages/faceChanging/index.config.js


+ 4 - 4
src/moduleB/pages/faceChanging/index.jsx

@@ -1,7 +1,7 @@
1 1
 import { Component } from 'react'
2 2
 import { View, Text, Button, Image, scrollView, Input } from '@tarojs/components'
3
-import * as api from '../../../service/index'
4
-import tool from '../../../common/tool'
3
+import * as api from '../../service/index'
4
+import tool from '../../common/tool'
5 5
 import Taro, { getCurrentInstance } from '@tarojs/taro'
6 6
 import './index.less'
7 7
 
@@ -117,7 +117,7 @@ export default class collection extends Component {
117 117
         })
118 118
         Taro.hideLoading()
119 119
         Taro.navigateTo({
120
-          url: `/moduleA/pages/upload/index?image=${file}`
120
+          url: `/pages/upload/index?image=${file}`
121 121
         })
122 122
       }
123 123
     })
@@ -160,7 +160,7 @@ export default class collection extends Component {
160 160
             success: function (res) {
161 161
               if (res.confirm) {
162 162
                 Taro.navigateTo({
163
-                  url: `/moduleA/pages/earnPoints/index`
163
+                  url: `/pages/earnPoints/index`
164 164
                 })
165 165
               } else if (res.cancel) {
166 166
                 console.log('用户点击取消')

src/moduleB/pages/faceChanging/index.less → src/pages/faceChanging/index.less


src/moduleB/pages/imageWorks/index.config.js → src/pages/imageWorks/index.config.js


+ 4 - 4
src/moduleB/pages/imageWorks/index.jsx

@@ -1,8 +1,8 @@
1 1
 import { Component } from 'react'
2 2
 import { View, Swiper, SwiperItem, Image, Textarea, Canvas, Button } from '@tarojs/components'
3 3
 import Taro, { getCurrentInstance, CanvasContext } from '@tarojs/taro'
4
-import tool from '../../../common/tool'
5
-import * as api from '../../../service/index'
4
+import tool from '../../common/tool'
5
+import * as api from '../../service/index'
6 6
 import './index.less'
7 7
 
8 8
 export default class Task extends Component {
@@ -116,7 +116,7 @@ export default class Task extends Component {
116 116
 
117 117
     } else {
118 118
         Taro.navigateTo({
119
-          url: `/moduleA/pages/darwDetailIndex/index?task_id=${item.task_id}&img_id=${item.id}`
119
+          url: `/pages/darwDetailIndex/index?task_id=${item.task_id}&img_id=${item.id}`
120 120
         })
121 121
       
122 122
     }
@@ -205,7 +205,7 @@ export default class Task extends Component {
205 205
 
206 206
   getEarnPoints () {
207 207
     Taro.navigateTo({
208
-      url: `/moduleA/pages/earnPoints/index`
208
+      url: `/pages/earnPoints/index`
209 209
     })
210 210
   }
211 211
   onShareAppMessage = (res) => {

src/moduleB/pages/imageWorks/index.less → src/pages/imageWorks/index.less


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

@@ -347,7 +347,7 @@ export default class Mine extends Component {
347 347
           this.subscribe(res.data.task_id)
348 348
         }
349 349
         Taro.navigateTo({
350
-          url: `/moduleA/pages/darwDetailIndex/index?task_id=${res.data.task_id}`
350
+          url: `/pages/darwDetailIndex/index?task_id=${res.data.task_id}`
351 351
         })
352 352
       } else {
353 353
         console.log('11111111111');
@@ -359,7 +359,7 @@ export default class Mine extends Component {
359 359
             success: function (res) {
360 360
               if (res.confirm) {
361 361
                 Taro.navigateTo({
362
-                  url: `/moduleA/pages/earnPoints/index`
362
+                  url: `/pages/earnPoints/index`
363 363
                 })
364 364
               } else if (res.cancel) {
365 365
                 console.log('用户点击取消')
@@ -585,7 +585,7 @@ export default class Mine extends Component {
585 585
         }
586 586
         Taro.hideLoading()
587 587
         Taro.navigateTo({
588
-          url: `/moduleA/pages/upload/index?image=${file}`
588
+          url: `/pages/upload/index?image=${file}`
589 589
         })
590 590
       }
591 591
     })

src/moduleA/pages/invite/index.config.js → src/pages/invite/index.config.js


+ 3 - 3
src/moduleA/pages/invite/index.jsx

@@ -1,9 +1,9 @@
1 1
 import { Component } from 'react'
2 2
 import { View, Swiper, SwiperItem, Image, Textarea, Canvas, Button } from '@tarojs/components'
3 3
 import Taro, { getCurrentInstance, CanvasContext } from '@tarojs/taro'
4
-import tool from '../../../common/tool'
5
-import TaroCanvasDrawer from '../../../component/taro-plugin-canvas';
6
-import * as api from '../../../service/index'
4
+import tool from '../../common/tool'
5
+import TaroCanvasDrawer from '../../component/taro-plugin-canvas';
6
+import * as api from '../../service/index'
7 7
 import './index.less'
8 8
 
9 9
 export default class Task extends Component {

src/moduleA/pages/invite/index.less → src/pages/invite/index.less


src/moduleB/pages/like/index.config.js → src/pages/like/index.config.js


+ 3 - 3
src/moduleB/pages/like/index.jsx

@@ -1,8 +1,8 @@
1 1
 import { Component } from 'react'
2 2
 import { View, Swiper, SwiperItem, Image, Textarea, Canvas, Button } from '@tarojs/components'
3 3
 import Taro, { getCurrentInstance, CanvasContext } from '@tarojs/taro'
4
-import tool from '../../../common/tool'
5
-import * as api from '../../../service/index'
4
+import tool from '../../common/tool'
5
+import * as api from '../../service/index'
6 6
 import './index.less'
7 7
 
8 8
 export default class Task extends Component {
@@ -80,7 +80,7 @@ export default class Task extends Component {
80 80
   //选中||详情页
81 81
   toDetail (item, index, type) {
82 82
     Taro.navigateTo({
83
-      url: `/moduleA/pages/communityDetail/index?task_id=${item.id}`
83
+      url: `/pages/communityDetail/index?task_id=${item.id}`
84 84
     })
85 85
   }
86 86
   delectiImg () {

src/moduleB/pages/like/index.less → src/pages/like/index.less


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

@@ -40,34 +40,34 @@ export default class Mine extends Component {
40 40
 
41 41
   getEarnPoints () {
42 42
     Taro.navigateTo({
43
-      url: `/moduleA/pages/earnPoints/index`
43
+      url: `/pages/earnPoints/index`
44 44
     })
45 45
   }
46 46
   wallet () {
47 47
     Taro.navigateTo({
48
-      url: `/moduleA/pages/wallet/index`
48
+      url: `/pages/wallet/index`
49 49
     })
50 50
   }
51 51
   toDetail (index) {
52 52
     switch (index) {
53 53
       case 0:
54 54
         Taro.navigateTo({
55
-          url: `/moduleB/pages/imageWorks/index`
55
+          url: `/pages/imageWorks/index`
56 56
         })
57 57
         break;
58 58
       case 1:
59 59
         Taro.navigateTo({
60
-          url: `/moduleB/pages/like/index`
60
+          url: `/pages/like/index`
61 61
         })
62 62
         break;
63 63
       case 2:
64 64
         Taro.navigateTo({
65
-          url: `/moduleA/pages/invite/index`
65
+          url: `/pages/invite/index`
66 66
         })
67 67
         break;
68 68
       case 3:
69 69
         Taro.navigateTo({
70
-          url: `/moduleA/pages/shareCnt/index`
70
+          url: `/pages/shareCnt/index`
71 71
         })
72 72
         break;
73 73
       case 4:

src/moduleB/pages/poetry/index.config.js → src/pages/poetry/index.config.js


+ 4 - 4
src/moduleB/pages/poetry/index.jsx

@@ -1,8 +1,8 @@
1 1
 import { Component } from 'react'
2 2
 import { View, Text, Button, Image, Swiper, SwiperItem, scrollView, Input, Textarea } from '@tarojs/components'
3
-import * as api from '../../../service/index'
4
-import tool from '../../../common/tool'
5
-import TaroCanvasDrawer from '../../../component/taro-plugin-canvas';
3
+import * as api from '../../service/index'
4
+import tool from '../../common/tool'
5
+import TaroCanvasDrawer from '../../component/taro-plugin-canvas';
6 6
 import Taro, { getCurrentInstance } from '@tarojs/taro'
7 7
 import './index.less'
8 8
 
@@ -580,7 +580,7 @@ export default class collection extends Component {
580 580
                 success: function (res) {
581 581
                   if (res.confirm) {
582 582
                     Taro.navigateTo({
583
-                      url: `/moduleA/pages/earnPoints/index`
583
+                      url: `/pages/earnPoints/index`
584 584
                     })
585 585
                   } else if (res.cancel) {
586 586
 

src/moduleB/pages/poetry/index.less → src/pages/poetry/index.less


src/moduleB/pages/point/index.config.js → src/pages/point/index.config.js


+ 2 - 2
src/moduleB/pages/point/index.jsx

@@ -1,8 +1,8 @@
1 1
 import { Component } from 'react'
2 2
 import { View, Swiper, SwiperItem, Image, Textarea, Canvas, Button } from '@tarojs/components'
3 3
 import Taro, { getCurrentInstance, CanvasContext } from '@tarojs/taro'
4
-import tool from '../../../common/tool'
5
-import * as api from '../../../service/index'
4
+import tool from '../../common/tool'
5
+import * as api from '../../service/index'
6 6
 import './index.less'
7 7
 
8 8
 export default class Task extends Component {

src/moduleB/pages/point/index.less → src/pages/point/index.less


src/moduleB/pages/real/index.config.js → src/pages/real/index.config.js


+ 3 - 3
src/moduleB/pages/real/index.jsx

@@ -1,8 +1,8 @@
1 1
 import { Component } from 'react'
2 2
 import { View, Swiper, SwiperItem, Image, Textarea, Canvas, Button } from '@tarojs/components'
3 3
 import Taro, { getCurrentInstance, CanvasContext } from '@tarojs/taro'
4
-import tool from '../../../common/tool'
5
-import * as api from '../../../service/index'
4
+import tool from '../../common/tool'
5
+import * as api from '../../service/index'
6 6
 import './index.less'
7 7
 
8 8
 export default class Task extends Component {
@@ -49,7 +49,7 @@ export default class Task extends Component {
49 49
   }
50 50
   toRealDetail (item) {
51 51
     Taro.navigateTo({
52
-      url: `/moduleB/pages/realDetail/index?task_id=${item.id}`
52
+      url: `/pages/realDetail/index?task_id=${item.id}`
53 53
     })
54 54
   }
55 55
   onReachBottom () {

src/moduleB/pages/real/index.less → src/pages/real/index.less


src/moduleB/pages/realDetail/index.config.js → src/pages/realDetail/index.config.js


+ 2 - 2
src/moduleB/pages/realDetail/index.jsx

@@ -1,8 +1,8 @@
1 1
 import { Component } from 'react'
2 2
 import { View, RichText } from '@tarojs/components'
3 3
 import Taro, { getCurrentInstance, CanvasContext } from '@tarojs/taro'
4
-import tool from '../../../common/tool'
5
-import * as api from '../../../service/index'
4
+import tool from '../../common/tool'
5
+import * as api from '../../service/index'
6 6
 import './index.less'
7 7
 
8 8
 export default class Task extends Component {

src/moduleB/pages/realDetail/index.less → src/pages/realDetail/index.less


src/moduleA/pages/shareCnt/index.config.js → src/pages/shareCnt/index.config.js


+ 2 - 2
src/moduleA/pages/shareCnt/index.jsx

@@ -1,8 +1,8 @@
1 1
 import { Component } from 'react'
2 2
 import { View, Text, Button, Image, scrollView, Input } from '@tarojs/components'
3 3
 import Taro, { } from '@tarojs/taro'
4
-import tool from '../../../common/tool'
5
-import * as api from '../../../service/index'
4
+import tool from '../../common/tool'
5
+import * as api from '../../service/index'
6 6
 import './index.less'
7 7
 
8 8
 export default class Mine extends Component {

src/moduleA/pages/shareCnt/index.less → src/pages/shareCnt/index.less


src/moduleA/pages/upload/index.config.js → src/pages/upload/index.config.js


+ 2 - 2
src/moduleA/pages/upload/index.jsx

@@ -2,8 +2,8 @@ import React, { Component } from 'react'
2 2
 import { View, Text, Button, Image, ScrollView, Input } from '@tarojs/components'
3 3
 import Taro, { getCurrentInstance } from '@tarojs/taro'
4 4
 import TaroCropper from 'taro-cropper';
5
-import tool from '../../../common/tool'
6
-import * as api from '../../../service/index'
5
+import tool from '../../common/tool'
6
+import * as api from '../../service/index'
7 7
 
8 8
 import './index.less'
9 9
 

src/moduleA/pages/upload/index.less → src/pages/upload/index.less


src/moduleA/pages/wallet/index.config.js → src/pages/wallet/index.config.js


+ 3 - 3
src/moduleA/pages/wallet/index.jsx

@@ -1,8 +1,8 @@
1 1
 import { Component } from 'react'
2 2
 import { View, Text, Button, Image, scrollView, Input } from '@tarojs/components'
3 3
 import Taro, { } from '@tarojs/taro'
4
-import tool from '../../../common/tool'
5
-import * as api from '../../../service/index'
4
+import tool from '../../common/tool'
5
+import * as api from '../../service/index'
6 6
 import './index.less'
7 7
 
8 8
 export default class Mine extends Component {
@@ -54,7 +54,7 @@ export default class Mine extends Component {
54 54
   }
55 55
   toBuyPage (e) {
56 56
     Taro.navigateTo({
57
-      url: `/moduleA/pages/earnPoints/index`
57
+      url: `/pages/earnPoints/index`
58 58
     })
59 59
   }
60 60
 

src/moduleA/pages/wallet/index.less → src/pages/wallet/index.less