浏览代码

静态页面

1002884655 3 年前
父节点
当前提交
9bf5eb18ef

+ 2
- 2
config/dev.js 查看文件

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

+ 1
- 1
project.config.json 查看文件

2
 	"miniprogramRoot": "dist/",
2
 	"miniprogramRoot": "dist/",
3
 	"projectname": "miniapp",
3
 	"projectname": "miniapp",
4
 	"description": "",
4
 	"description": "",
5
-	"appid": "wxc96058d57e77f373",
5
+	"appid": "wxe44244d1a5ea3364",
6
 	"setting": {
6
 	"setting": {
7
 		"urlCheck": false,
7
 		"urlCheck": false,
8
 		"es6": false,
8
 		"es6": false,

+ 1
- 1
src/pages/chat/index.jsx 查看文件

70
                 <view className='flex-item'>
70
                 <view className='flex-item'>
71
                   <view className='flex-h'>
71
                   <view className='flex-h'>
72
                     <text className='flex-item'>{item.name}</text>
72
                     <text className='flex-item'>{item.name}</text>
73
-                    <text>{formatDate(item.createDate, 'yyyy/M/d')}</text>
73
+                    <text>{formatDate(item.createDate, 'yyyy/MM/dd')}</text>
74
                   </view>
74
                   </view>
75
                   <view className='Msg'>
75
                   <view className='Msg'>
76
                     <text>{item.messageType === 'text' ? item.message : '[图片]'}</text>
76
                     <text>{item.messageType === 'text' ? item.message : '[图片]'}</text>

+ 1
- 1
src/pages/index/activityDetail/CountDown.jsx 查看文件

7
 
7
 
8
   return (
8
   return (
9
     <view className='CountDown'>
9
     <view className='CountDown'>
10
-      <text>距离结束还有</text>
10
+      <text>距离报名结束还有</text>
11
       <text className='Red'>{CountDown[1]||0}</text>
11
       <text className='Red'>{CountDown[1]||0}</text>
12
       <text>天</text>
12
       <text>天</text>
13
       <text className='Number' style={{ marginLeft: '40rpx' }}>{CountDown[2]||0}</text>
13
       <text className='Number' style={{ marginLeft: '40rpx' }}>{CountDown[2]||0}</text>

+ 3
- 3
src/pages/index/activityDetail/index.jsx 查看文件

164
         </view>
164
         </view>
165
         <text className='Time'>
165
         <text className='Time'>
166
           报名截止时间:
166
           报名截止时间:
167
-          {formatDate(detail.enlistEnd, 'yyyy/M/d')}
167
+          {formatDate(detail.enlistEnd, 'yyyy/MM/dd')}
168
         </text>
168
         </text>
169
         <text className='Name'>{detail.title}</text>
169
         <text className='Name'>{detail.title}</text>
170
         <view className='flex-h Address'>
170
         <view className='flex-h Address'>
177
           <text>时间:</text>
177
           <text>时间:</text>
178
           <view className='flex-item'>
178
           <view className='flex-item'>
179
             <text>
179
             <text>
180
-              {`${formatDate(detail.startDate, 'yyyy/M/d')} - ${formatDate(detail.endDate, 'yyyy/M/d')}`}
180
+              {`${formatDate(detail.startDate, 'yyyy/MM/dd')} - ${formatDate(detail.endDate, 'yyyy/MM/dd')}`}
181
             </text>
181
             </text>
182
           </view>
182
           </view>
183
         </view>
183
         </view>
204
             </view>
204
             </view>
205
           </view>
205
           </view>
206
           <text className='Price'>{detail.groupBuyPrice || '价格待定'}</text>
206
           <text className='Price'>{detail.groupBuyPrice || '价格待定'}</text>
207
-          <text className='Time'>时间:{formatDate(detail.startDate, 'yyyy/M/d')} - {formatDate(detail.endDate, 'yyyy/M/d')}</text>
207
+          <text className='Time'>时间:{formatDate(detail.startDate, 'yyyy/MM/dd')} - {formatDate(detail.endDate, 'yyyy/MM/dd')}</text>
208
         </view>
208
         </view>
209
         <view className='Option'>
209
         <view className='Option'>
210
           <view>
210
           <view>

+ 1
- 1
src/pages/index/buildingAround/index.jsx 查看文件

14
   const [DetailInfo, setDetailInfo] = useState({})
14
   const [DetailInfo, setDetailInfo] = useState({})
15
   const [loc, setLoc] = useState([])
15
   const [loc, setLoc] = useState([])
16
   const [NavList, setNavList] = useState([])
16
   const [NavList, setNavList] = useState([])
17
-  const [CurrentNavId, setCurrentNavId] = useState(1)
17
+  const [CurrentNavId, setCurrentNavId] = useState(0)
18
   const [List, setList] = useState([])
18
   const [List, setList] = useState([])
19
   const [OtherList, setOtherList] = useState([])
19
   const [OtherList, setOtherList] = useState([])
20
   const [markers, setMarkers] = useState([])
20
   const [markers, setMarkers] = useState([])

+ 1
- 1
src/pages/index/buildingTakeLook/index.jsx 查看文件

59
             </view>
59
             </view>
60
 
60
 
61
             <view className='CountDown'>
61
             <view className='CountDown'>
62
-              <text>距离结束还有</text>
62
+              <text>距离报名结束还有</text>
63
               <text className='Red'>7</text>
63
               <text className='Red'>7</text>
64
               <text>天</text>
64
               <text>天</text>
65
               <text className='Number' style={{ marginLeft: '40rpx' }}>7</text>
65
               <text className='Number' style={{ marginLeft: '40rpx' }}>7</text>

+ 1
- 1
src/pages/index/components/ActivityListItem/index.jsx 查看文件

38
           <text className={activityStatusDict[data.activityStatus]?.className}>{activityStatusDict[data.activityStatus]?.text}</text>
38
           <text className={activityStatusDict[data.activityStatus]?.className}>{activityStatusDict[data.activityStatus]?.text}</text>
39
         </view>
39
         </view>
40
         <view className='Time'>
40
         <view className='Time'>
41
-          <text>活动时间:{formatDate(data.startDate, 'yyyy/M/d')} - {formatDate(data.endDate, 'yyyy/M/d')}</text>
41
+          <text>活动时间:{formatDate(data.startDate, 'yyyy/MM/dd')} - {formatDate(data.endDate, 'yyyy/MM/dd')}</text>
42
         </view>
42
         </view>
43
       </view>
43
       </view>
44
     </view>
44
     </view>

+ 1
- 1
src/subpackages/pages/marketing/components/ResidentListItem/index.jsx 查看文件

102
       <view className='flex-h'>
102
       <view className='flex-h'>
103
         <text>报备时间:</text>
103
         <text>报备时间:</text>
104
         <view className='flex-item'>
104
         <view className='flex-item'>
105
-          <text>{formatDate(data.createDate, 'yyyy/M/d')}</text>
105
+          <text>{formatDate(data.createDate, 'yyyy/MM/dd')}</text>
106
         </view>
106
         </view>
107
       </view>
107
       </view>
108
       <view className='Opt'>
108
       <view className='Opt'>

+ 1
- 1
src/utils/chatDate.js 查看文件

25
   return new Date(t[0], t[1]-1, t[2], t[3] || 0, t[4] || 0, t[5] || 0)
25
   return new Date(t[0], t[1]-1, t[2], t[3] || 0, t[4] || 0, t[5] || 0)
26
 }
26
 }
27
 
27
 
28
-//例子 getDateFormat(new Date().valueOf(),true,'yyyy/M/d')
28
+//例子 getDateFormat(new Date().valueOf(),true,'yyyy/MM/dd')
29
 export function formatDate(dt, fmt) {
29
 export function formatDate(dt, fmt) {
30
   if (!dt) return dt;
30
   if (!dt) return dt;
31
 
31