소스 검색

静态页面

1002884655 4 년 전
부모
커밋
5cfc57f809

+ 43
- 43
project.config.json 파일 보기

@@ -1,45 +1,45 @@
1 1
 {
2
-  "miniprogramRoot": "dist/",
3
-  "projectname": "miniapp",
4
-  "description": "",
5
-  "appid": "wxf2956bfef9daf0ae",
6
-  "setting": {
7
-    "urlCheck": false,
8
-    "es6": false,
9
-    "enhance": false,
10
-    "postcss": false,
11
-    "preloadBackgroundData": false,
12
-    "minified": false,
13
-    "newFeature": false,
14
-    "coverView": true,
15
-    "nodeModules": false,
16
-    "autoAudits": false,
17
-    "showShadowRootInWxmlPanel": true,
18
-    "scopeDataCheck": false,
19
-    "uglifyFileName": false,
20
-    "checkInvalidKey": true,
21
-    "checkSiteMap": true,
22
-    "uploadWithSourceMap": true,
23
-    "compileHotReLoad": false,
24
-    "babelSetting": {
25
-      "ignore": [],
26
-      "disablePlugins": [],
27
-      "outputPath": ""
28
-    },
29
-    "bundle": false,
30
-    "useIsolateContext": true,
31
-    "useCompilerModule": false,
32
-    "userConfirmedUseCompilerModuleSwitch": false,
33
-    "useMultiFrameRuntime": false,
34
-    "useApiHook": true,
35
-    "enableEngineNative": false,
36
-    "userConfirmedBundleSwitch": false,
37
-    "packNpmManually": false,
38
-    "packNpmRelationList": [],
39
-    "minifyWXSS": true
40
-  },
41
-  "compileType": "miniprogram",
42
-  "simulatorType": "wechat",
43
-  "simulatorPluginLibVersion": {},
44
-  "condition": {}
2
+	"miniprogramRoot": "dist/",
3
+	"projectname": "miniapp",
4
+	"description": "",
5
+	"appid": "wxf2956bfef9daf0ae",
6
+	"setting": {
7
+		"urlCheck": false,
8
+		"es6": false,
9
+		"enhance": false,
10
+		"postcss": false,
11
+		"preloadBackgroundData": false,
12
+		"minified": false,
13
+		"newFeature": false,
14
+		"coverView": true,
15
+		"nodeModules": false,
16
+		"autoAudits": false,
17
+		"showShadowRootInWxmlPanel": true,
18
+		"scopeDataCheck": false,
19
+		"uglifyFileName": false,
20
+		"checkInvalidKey": true,
21
+		"checkSiteMap": true,
22
+		"uploadWithSourceMap": true,
23
+		"compileHotReLoad": false,
24
+		"babelSetting": {
25
+			"ignore": [],
26
+			"disablePlugins": [],
27
+			"outputPath": ""
28
+		},
29
+		"bundle": false,
30
+		"useIsolateContext": true,
31
+		"useCompilerModule": false,
32
+		"userConfirmedUseCompilerModuleSwitch": false,
33
+		"useMultiFrameRuntime": false,
34
+		"useApiHook": true,
35
+		"enableEngineNative": false,
36
+		"userConfirmedBundleSwitch": false,
37
+		"packNpmManually": false,
38
+		"packNpmRelationList": [],
39
+		"minifyWXSS": true
40
+	},
41
+	"compileType": "miniprogram",
42
+	"simulatorType": "wechat",
43
+	"simulatorPluginLibVersion": {},
44
+	"condition": {}
45 45
 }

+ 1
- 1
src/components/PrizeChangeListItem/index.jsx 파일 보기

@@ -10,7 +10,7 @@ export default function PrizeChangeListItem (props) {
10 10
   const { Data } = props
11 11
 
12 12
   return (
13
-    <view className='PrizeChangeListItem flex-h'>
13
+    <view className='PrizeChangeListItem flex-h' onClick={() => { Taro.navigateTo({ url: `/pages/FuLi/ShangPinXiangQing/index?id=${Data.targetId}` }) }}>
14 14
       <view className='Img'>
15 15
         <image mode='aspectFill' src={Data.image}></image>
16 16
       </view>

+ 8
- 8
src/components/WuYeFuWu/index.less 파일 보기

@@ -6,7 +6,7 @@
6 6
   background-color: #f2f2f2;
7 7
 
8 8
   .TypeList {
9
-    padding-right: 60px;
9
+    padding-right: 30px;
10 10
     font-size: 0;
11 11
 
12 12
     >view {
@@ -14,9 +14,9 @@
14 14
       vertical-align: middle;
15 15
       position: relative;
16 16
       overflow: hidden;
17
-      margin-left: 60px;
17
+      margin-left: 30px;
18 18
       margin-top: 30px;
19
-      width: calc((100% - 180px) / 3);
19
+      width: calc((100% - 150px) / 5);
20 20
 
21 21
       >view {
22 22
         position: relative;
@@ -29,8 +29,8 @@
29 29
           width: 100%;
30 30
 
31 31
           >.Icon {
32
-            width: 80px;
33
-            height: 80px;
32
+            width: 60px;
33
+            height: 60px;
34 34
             position: relative;
35 35
             overflow: hidden;
36 36
             margin: 0 auto;
@@ -41,7 +41,7 @@
41 41
             }
42 42
 
43 43
             text {
44
-              font-size: 70px;
44
+              font-size: 50px;
45 45
               color: #F35844;
46 46
               display: block;
47 47
               text-align: center;
@@ -52,10 +52,10 @@
52 52
             text {
53 53
               display: block;
54 54
               text-align: center;
55
-              font-size: 28px;
55
+              font-size: 24px;
56 56
               color: #333;
57 57
               line-height: 40px;
58
-              margin-top: 10px;
58
+              white-space: nowrap;
59 59
             }
60 60
           }
61 61
         }

+ 8
- 3
src/components/WuYeJiaoFeiItem/index.jsx 파일 보기

@@ -1,5 +1,6 @@
1 1
 import React, { useState } from 'react'
2 2
 import Taro from '@tarojs/taro'
3
+import toolclass from '@/utils/toolclass.js'
3 4
 import '@/assets/css/reset.less'
4 5
 import '@/assets/css/iconfont.less'
5 6
 import './index.less'
@@ -37,9 +38,13 @@ export default function WuYeJiaoFeiItem (props) {
37 38
     //   </view>
38 39
     // </view>
39 40
     <view className='WuYeJiaoFeiItem flex-h'>
40
-      <view>{Data.billName}</view>
41
-      <view></view>
42
-      <view>{`${Data.payPrice} 元`}</view>
41
+      <view className='flex-item'>
42
+        <text>{Data.billName}</text>
43
+        <text>{toolclass.FormatDate(Data.createDate)}</text>
44
+      </view>
45
+      <view>
46
+        <text>{Data.payPrice}元</text>
47
+      </view>
43 48
     </view>
44 49
   )
45 50
 }

+ 96
- 69
src/components/WuYeJiaoFeiItem/index.less 파일 보기

@@ -2,89 +2,116 @@
2 2
   position: relative;
3 3
   background: #fff;
4 4
   padding: 30px;
5
-  width: 100%;
5
+  align-items: flex-start;
6 6
 
7
-  >.Title {
8
-    align-items: center;
7
+  >.flex-item {
8
+    position: relative;
9
+    margin-right: 20px;
9 10
 
10 11
     >text {
11
-      font-size: 24px;
12
-      color: #999;
12
+      display: block;
13
+      font-size: 28px;
14
+      color: #333;
13 15
       line-height: 40px;
14 16
 
15
-      &:first-child {
16
-        font-size: 30px;
17
-        color: #333;
17
+      +text {
18
+        font-size: 24px;
19
+        color: #999;
20
+      }
21
+    }
22
+
23
+    +view {
24
+      >text {
25
+        display: block;
26
+        font-size: 28px;
18 27
         font-weight: bold;
19
-        margin-right: 20px;
20
-        white-space: nowrap;
21
-        overflow: hidden;
22
-        text-overflow: ellipsis;
28
+        color: #F35844;
29
+        line-height: 40px;
23 30
       }
24 31
     }
25 32
   }
26 33
 
27
-  >.JiaoFeiContent {
28
-    padding: 20px;
29
-    background: rgba(243, 88, 68, 0.08);
30
-    position: relative;
31
-    overflow: hidden;
32
-    margin-top: 40px;
34
+  // >.Title {
35
+  //   align-items: center;
33 36
 
34
-    >.Name {
35
-      align-items: center;
37
+  //   >text {
38
+  //     font-size: 24px;
39
+  //     color: #999;
40
+  //     line-height: 40px;
36 41
 
37
-      >text {
38
-        font-size: 24px;
39
-        color: #999;
40
-        line-height: 40px;
42
+  //     &:first-child {
43
+  //       font-size: 30px;
44
+  //       color: #333;
45
+  //       font-weight: bold;
46
+  //       margin-right: 20px;
47
+  //       white-space: nowrap;
48
+  //       overflow: hidden;
49
+  //       text-overflow: ellipsis;
50
+  //     }
51
+  //   }
52
+  // }
41 53
 
42
-        &:first-child {
43
-          color: #333;
44
-          white-space: nowrap;
45
-          overflow: hidden;
46
-          text-overflow: ellipsis;
47
-          margin-right: 20px;
48
-        }
49
-
50
-        &.Num {
51
-          color: #F35844;
52
-        }
53
-      }
54
-    }
54
+  // >.JiaoFeiContent {
55
+  //   padding: 20px;
56
+  //   background: rgba(243, 88, 68, 0.08);
57
+  //   position: relative;
58
+  //   overflow: hidden;
59
+  //   margin-top: 40px;
55 60
 
56
-    >text {
57
-      display: block;
58
-      font-size: 24px;
59
-      color: #333;
60
-      line-height: 40px;
61
-      margin-top: 6px;
62
-    }
61
+  //   >.Name {
62
+  //     align-items: center;
63 63
 
64
-    >.Price {
65
-      border-top: 2px solid rgba(0, 0, 0, 0.08);
66
-      padding: 20px 0;
67
-      align-items: center;
68
-      margin-top: 20px;
64
+  //     >text {
65
+  //       font-size: 24px;
66
+  //       color: #999;
67
+  //       line-height: 40px;
69 68
 
70
-      >text {
71
-        font-size: 24px;
72
-        color: #999;
73
-        line-height: 60px;
74
-
75
-        &.Num {
76
-          font-size: 48px;
77
-          font-weight: bold;
78
-          color: #F35844;
79
-        }
80
-
81
-        &.Btn {
82
-          padding: 0 30px;
83
-          background: #F35844;
84
-          border-radius: 60px;
85
-          color: #fff;
86
-        }
87
-      }
88
-    }
89
-  }
69
+  //       &:first-child {
70
+  //         color: #333;
71
+  //         white-space: nowrap;
72
+  //         overflow: hidden;
73
+  //         text-overflow: ellipsis;
74
+  //         margin-right: 20px;
75
+  //       }
76
+
77
+  //       &.Num {
78
+  //         color: #F35844;
79
+  //       }
80
+  //     }
81
+  //   }
82
+
83
+  //   >text {
84
+  //     display: block;
85
+  //     font-size: 24px;
86
+  //     color: #333;
87
+  //     line-height: 40px;
88
+  //     margin-top: 6px;
89
+  //   }
90
+
91
+  //   >.Price {
92
+  //     border-top: 2px solid rgba(0, 0, 0, 0.08);
93
+  //     padding: 20px 0;
94
+  //     align-items: center;
95
+  //     margin-top: 20px;
96
+
97
+  //     >text {
98
+  //       font-size: 24px;
99
+  //       color: #999;
100
+  //       line-height: 60px;
101
+
102
+  //       &.Num {
103
+  //         font-size: 48px;
104
+  //         font-weight: bold;
105
+  //         color: #F35844;
106
+  //       }
107
+
108
+  //       &.Btn {
109
+  //         padding: 0 30px;
110
+  //         background: #F35844;
111
+  //         border-radius: 60px;
112
+  //         color: #fff;
113
+  //       }
114
+  //     }
115
+  //   }
116
+  // }
90 117
 }

+ 1
- 1
src/pages/FuLi/index.jsx 파일 보기

@@ -31,7 +31,7 @@ export default function FuLi () {
31 31
     setDataLock(true)
32 32
     request({ ...apis.userSign }).then(() => {
33 33
       Taro.showToast({ title: '签到成功', icon: 'none' })
34
-      setUser({ ...user, havaSigned: 1 })
34
+      setUser({ ...user, havaSigned: 1, points: user.points - 0 > 0 ? user.points - 0 + 1 : 1 })
35 35
       setDataLock(false)
36 36
     }).catch((res) => {
37 37
       Taro.showToast({ title: res, icon: 'none' })

+ 4
- 2
src/pages/HuoDong/HuoDongDetail/index.jsx 파일 보기

@@ -95,6 +95,8 @@ export default function HuoDongDetail () {
95 95
       Taro.showToast({ title: '请填入参加活动人数', icon: 'none' })
96 96
       setDataLock(false)
97 97
     } else {
98
+      const { personId, phone, nickname, orgId } = user
99
+      const { dynamicId } = ActivityDetail
98 100
       let Data = {
99 101
         phone,
100 102
         personId,
@@ -107,6 +109,7 @@ export default function HuoDongDetail () {
107 109
         sharePersonType: null
108 110
       }
109 111
       request({ ...apis.JoinActivity, data: { ...Data } }).then(() => {
112
+        Taro.showToast({ title: '报名成功', icon: 'none' })
110 113
         setHasJoin(true)
111 114
         setShowJoinNumPopup(false)
112 115
         setDataLock(false)
@@ -123,8 +126,7 @@ export default function HuoDongDetail () {
123 126
     if (JoinBtnText === '去签到') {
124 127
       Taro.navigateTo({ url: `/pages/HuoDong/HuoDongSign/index?id=${ActivityDetail.dynamicId}` })
125 128
     } else {
126
-      const { personId, phone, nickname, orgId } = user
127
-      const { dynamicId } = ActivityDetail
129
+      const { phone } = user
128 130
       if (!phone) { // 未授权手机号,唤起授权手机号弹窗
129 131
         setShowGetUserPhoneLayer(true)
130 132
         setDataLock(false)

+ 1
- 1
src/pages/WuYe/BaoXiuDetail/index.jsx 파일 보기

@@ -59,7 +59,7 @@ export default function BaoXiuDetail () {
59 59
     setDataLock(true)
60 60
     request({ ...apis.PostGongDanPingJia, args: { orgId: user.orgId }, params: { ticketId: CurrnetBaoXiuId }, data: { score: StarIndex - 0 + 1, comment: Comment } }).then((res) => { // 获取工单详情
61 61
       Taro.showToast({ title: '评价成功', icon: 'none' })
62
-      setDetailInfo({ ...DetailInfo, status: 5 })
62
+      Init()
63 63
       setDataLock(false)
64 64
       setShowPingJiaPopup(false)
65 65
     }).catch((res) => {