1002884655 3 vuotta sitten
vanhempi
commit
bb09535794

+ 2
- 2
config/dev.js Näytä tiedosto

@@ -3,8 +3,8 @@ module.exports = {
3 3
     NODE_ENV: '"development"'
4 4
   },
5 5
   defineConstants: {
6
-    HOST: '"https://xlk.njyz.tech"',
7
-    // HOST: '"http://127.0.0.1:8081"',
6
+    // HOST: '"https://xlk.njyz.tech"',
7
+    HOST: '"http://127.0.0.1:8081"',
8 8
     WSS_HOST: '"wss://xlk.njyz.tech"',
9 9
     OSS_PATH: '"https://xlk-assets.oss-accelerate.aliyuncs.com/"',
10 10
     OSS_FAST_PATH: '"https://xlk-assets.oss-accelerate.aliyuncs.com/"',

+ 1
- 78
src/pages/index/activityDetail/index.jsx Näytä tiedosto

@@ -303,87 +303,10 @@ export default withLayout((props) => {
303 303
         <view className='flex-item'>
304 304
           <text>{detail.enlisted || 0}人已报名</text>
305 305
         </view>
306
-        <text className='Btn' onClick={handleSignup}>{activityStatusDict[detail.activityStatus]?.text1}</text>
306
+        <button className='Btn' disabled={btnDisabled} onClick={handleSignup}>{btnText}</button>
307 307
       </view>
308 308
 
309 309
     </view>
310
-    // <view className='houseInfo'>
311
-    //   {/* <view> */}
312
-    //   <view className='flex-h'>
313
-    //     <view className='left'>
314
-    //       <view className='Title'>
315
-    //         <view className='flex-item'>
316
-    //           <text>{detail.title}</text>
317
-    //         </view>
318
-    //       </view>
319
-    //       <view className='flex-h Address'>
320
-    //         <text className='iconfont icon-dingwei'></text>
321
-    //         <view className='flex-item'>
322
-    //           <text>{detail.address}</text>
323
-    //         </view>
324
-    //         <text className='price'>价格待定</text>
325
-    //       </view>
326
-    //       <text className='flex-h Time'>
327
-    //         时间:
328
-    //         {getDateFormat(
329
-    //           new Date(detail.startDate).valueOf(),
330
-    //           true,
331
-    //           'yyyy/M/d'
332
-    //         )}{' '}
333
-    //         -{' '}
334
-    //         {getDateFormat(
335
-    //           new Date(detail.endDate).valueOf(),
336
-    //           true,
337
-    //           'yyyy/M/d'
338
-    //         )}
339
-    //       </text>
340
-    //     </view>
341
-    //     <view className='right'>
342
-    //       <view>
343
-    //         {/* <Button open-type='share'>
344
-    //           <text className='iconfont icon-fenxiang'></text>
345
-    //           <text>分享</text>
346
-    //         </Button> */}
347
-    //         <text className='iconfont icon-fenxiang'></text>
348
-    //         <text>分享</text>
349
-    //       </view>
350
-    //       <view>
351
-    //         <text className='iconfont icon-dingwei'></text>
352
-    //         <text>海报</text>
353
-    //       </view>
354
-    //     </view>
355
-    //   </view>
356
-
357
-    //   <view className='lastdate'>
358
-    //     <text className='text'>距离结束还有</text>
359
-    //     <text className='text day'>7</text>
360
-    //     <text className='text'>天</text>
361
-    //     <text className='text time'>2</text>
362
-    //     <text className='text'>时</text>
363
-    //     <text className='text time'>4</text>
364
-    //     <text className='text'>分</text>
365
-    //     <text className='text time'>5</text>
366
-    //     <text className='text'>秒</text>
367
-    //     {/* <view>距离结束还有</view> */}
368
-    //   </view>
369
-
370
-    //   <view className='flex-h join'>
371
-    //     <view className='Collect' onClick={handleFavor}>
372
-    //       <text className='iconfont icon-shoucang' style={isSaved ? { color: 'red' } : undefined}></text>
373
-    //       <text>{isSaved ? '已收藏' : '收藏'}</text>
374
-    //     </view>
375
-    //     <view className='enlisted'>
376
-    //       <view>
377
-    //         <text className='iconfont icon-shoucang'></text>
378
-    //         <text>{detail.enlisted || 0}人已报名</text>
379
-    //       </view>
380
-    //     </view>
381
-    //     <view className='btn' onClick={handleSignup}>
382
-    //       <text>{activityStatusDict[detail.activityStatus]?.text1}</text>
383
-    //     </view>
384
-    //   </view>
385
-    //   {/* </view> */}
386
-    // </view>
387 310
   );
388 311
 
389 312
   return (

+ 10
- 10
src/pages/index/activityDetail/index.scss Näytä tiedosto

@@ -198,16 +198,16 @@
198 198
                   color: #193C83;
199 199
                   margin-left: 24px;
200 200
                 }
201
-                &.Btn {
202
-                  font-size: 32px;
203
-                  width: 360px;
204
-                  line-height: 92px;
205
-                  border-radius: 92px;
206
-                  background: #193C83;
207
-                  text-align: center;
208
-                  margin-left: 0;
209
-                  color: #fff;
210
-                }
201
+              }
202
+              >.Btn {
203
+                font-size: 32px;
204
+                width: 360px;
205
+                line-height: 92px;
206
+                border-radius: 92px;
207
+                background: #193C83;
208
+                text-align: center;
209
+                margin-left: 0;
210
+                color: #fff;
211 211
               }
212 212
               >.flex-item {
213 213
                 margin-left: 12px;