Przeglądaj źródła

更改人物动漫化风格显示

黎海 2 lat temu
rodzic
commit
09b9d8ad65

+ 1 - 1
app_list.json

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "taroConfig": {
3
-    "version": "1.3.7",
3
+    "version": "1.4.1",
4 4
     "desc": "更改人物动漫化"
5 5
   },
6 6
   "app_list": [

+ 1 - 1
package.json

@@ -81,7 +81,7 @@
81 81
         "webpack": "5.69.0"
82 82
     },
83 83
     "taroConfig": {
84
-        "version": "1.3.7",
84
+        "version": "1.4.1",
85 85
         "desc": "更改人物动漫化"
86 86
     }
87 87
 }

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

@@ -349,7 +349,9 @@ export default class collection extends Component {
349 349
           </View>
350 350
         }
351 351
         <View className='update' onClick={e => (tool.throttle(this.updateButton()), 2000)}>
352
-          <View className='update-button'>
352
+          <View className={!this.state.isImage?'update-button':'update-button update-active'}
353
+          style={!this.state.isImage?'background: linear-gradient(90deg, #038EFF, #3342FF);':'background: linear-gradient(90deg, #1cbd67, #13c027);'}
354
+          >
353 355
             <Image className='update-img' src={!this.state.isImage ? 'http://video-img.fyshark.com/1681719589061%E7%BB%98%E7%94%BB%402x.png' : 'http://video-img.fyshark.com/1681719637510%E5%9B%BE%E7%89%87%402x.png'}></Image>
354 356
             {!this.state.isImage ? '上传图片' : this.state.creatInfo.wallet_status == 0 ? '点击看广告绘制图片' : '点击绘制 (当前点券充足,前往绘制吧)'}
355 357
           </View>

+ 21 - 2
src/moduleB/pages/comic/index.less

@@ -7,17 +7,20 @@
7 7
   .banner {
8 8
     position: relative;
9 9
     margin-top: 20px;
10
-    .banner-content{
10
+
11
+    .banner-content {
11 12
       position: relative;
12 13
       left: 50%;
13 14
       transform: translateX(-50%);
14 15
       width: 312px;
15 16
       height: 312px;
17
+
16 18
       .content-img {
17 19
         width: 100%;
18 20
         height: 100%;
19 21
       }
20
-      .delete{
22
+
23
+      .delete {
21 24
         position: absolute;
22 25
         right: -20px;
23 26
         top: -20px;
@@ -123,8 +126,24 @@
123 126
   .update {
124 127
     margin-top: 40px;
125 128
 
129
+    /* 定义动画 */
130
+    @keyframes shrink {
131
+      0%, 100% {
132
+        transform: translateY(0) scale(1);
133
+      }
134
+      50% {
135
+        transform: translateY(0px) scale(0.95);
136
+      }
137
+    }
138
+
139
+    /* 应用动画 */
140
+    .update-active {
141
+      animation: shrink 1.2s ease-in-out infinite;
142
+    }
143
+
126 144
     .update-button {
127 145
       background: linear-gradient(90deg, #038EFF, #3342FF);
146
+
128 147
       border-radius: 46px;
129 148
       width: 100%;
130 149
       height: 94px;

+ 5 - 1
src/moduleB/pages/comicDetail/index.jsx

@@ -371,7 +371,7 @@ export default class collection extends Component {
371 371
                   <View className='lock'>
372 372
                     <View className='lock-content'>
373 373
                       <Image className='lock-img' src='http://video-img.fyshark.com/1681733630830%E8%A7%A3%E9%94%81%402x.png'></Image>
374
-                      <View className='lock-title'>解锁</View>
374
+                      <View className='lock-title'>{item.model_name}</View>
375 375
                     </View>
376 376
                   </View>
377 377
                 }
@@ -379,6 +379,10 @@ export default class collection extends Component {
379 379
             ))
380 380
           }
381 381
         </ScrollView>
382
+        <View className='tips'>作品可在「绘画作品」中查看</View>
383
+        {/* <View className='send'>
384
+          <View className='sendTT'>一键发抖音</View>
385
+        </View> */}
382 386
         <View className='control'>
383 387
           <View className='download' onClick={e => (this.download())}>保存图片</View>
384 388
           <View className='toIndex' onClick={e => (this.toIndex())}>前往探索更多玩法</View>

+ 48 - 0
src/moduleB/pages/comicDetail/index.less

@@ -1,6 +1,7 @@
1 1
 .mine {
2 2
   padding: 1px 40px;
3 3
   min-height: 100vh;
4
+  position: relative;
4 5
   background-color: #041129;
5 6
 
6 7
 
@@ -135,6 +136,53 @@
135 136
 
136 137
   }
137 138
 
139
+  .tips {
140
+    margin-top: 30px;
141
+    font-size: 26px;
142
+    font-family: PingFang SC;
143
+    font-weight: 500;
144
+    color: #c7c5c5;
145
+    text-align: center;
146
+  }
147
+
148
+  .send {
149
+    width: 100%;
150
+    display: flex;
151
+    justify-content: center;
152
+  }
153
+
154
+  .sendTT {
155
+    margin-top: 100px;
156
+    width: 460px;
157
+    height: 80px;
158
+    line-height: 80px;
159
+    text-align: center;
160
+    font-size: 28px;
161
+    font-family: PingFang SC;
162
+    font-weight: 500;
163
+    color: #FFFFFF;
164
+    background: linear-gradient(90deg, #1cbd67, #13c027);
165
+    border-radius: 14px;
166
+  }
167
+
168
+  /* 定义动画 */
169
+  @keyframes shrink {
170
+
171
+    0%,
172
+    100% {
173
+      transform: translateY(0) scale(1);
174
+    }
175
+
176
+    50% {
177
+      transform: translateY(0px) scale(0.95);
178
+    }
179
+  }
180
+
181
+  /* 应用动画 */
182
+  .sendTT {
183
+    animation: shrink 1.2s ease-in-out infinite;
184
+  }
185
+
138 186
   .control {
139 187
     width: 100%;
140 188
     margin-top: 100px;