Bläddra i källkod

Merge branch 'dev' of http://git.ycjcjy.com/shigongli/miniapp-v2 into dev

张延森 3 år sedan
förälder
incheckning
16c7c61c8d

+ 0
- 4
src/components/AuthPage/login.less Visa fil

30
   bottom: 80px;
30
   bottom: 80px;
31
   width: 100%;
31
   width: 100%;
32
   vertical-align: middle;
32
   vertical-align: middle;
33
-
34
   radio-group {
33
   radio-group {
35
     display: inline-block;
34
     display: inline-block;
36
     vertical-align: middle;
35
     vertical-align: middle;
37
   }
36
   }
38
-
39
   radio {
37
   radio {
40
     transform: scale(.8);
38
     transform: scale(.8);
41
   }
39
   }
42
-
43
   view {
40
   view {
44
     display: inline-block;
41
     display: inline-block;
45
     vertical-align: middle;
42
     vertical-align: middle;
46
-
47
     text{
43
     text{
48
       color: #274190;
44
       color: #274190;
49
       text-decoration: underline;
45
       text-decoration: underline;

+ 30
- 18
src/hotel/pages/components/Extend/style.less Visa fil

1
-#det{
2
-  .editword{
1
+#det {
2
+  .editword {
3
     padding-top: 60px;
3
     padding-top: 60px;
4
-    .srl{
4
+    .srl {
5
       font-size: 30px;
5
       font-size: 30px;
6
       font-weight: bold;
6
       font-weight: bold;
7
       color: #202020;
7
       color: #202020;
8
-    }  
9
-    .mg{
8
+    }
9
+    .mg {
10
       font-size: 38px;
10
       font-size: 38px;
11
       margin: 0 20px 50px 20px;
11
       margin: 0 20px 50px 20px;
12
     }
12
     }
13
-    .rzline{
13
+    .rzline {
14
       border-top: 2px #999 dashed;
14
       border-top: 2px #999 dashed;
15
       height: 2px;
15
       height: 2px;
16
       width: 160px;
16
       width: 160px;
17
       display: inline-block;
17
       display: inline-block;
18
       margin-bottom: 8px;
18
       margin-bottom: 8px;
19
-    } 
20
-    .cancel{
19
+    }
20
+    .cancel {
21
       color: #274290;
21
       color: #274290;
22
       display: inline-block;
22
       display: inline-block;
23
       margin-right: 44px;
23
       margin-right: 44px;
24
-      width: 240px;      
25
-      font-size: 30px;      
24
+      width: 240px;
25
+      font-size: 30px;
26
       font-weight: bold;
26
       font-weight: bold;
27
       height: 78px;
27
       height: 78px;
28
       line-height: 78px;
28
       line-height: 78px;
34
       letter-spacing: 3px;
34
       letter-spacing: 3px;
35
       width: 240px;
35
       width: 240px;
36
       height: 78px;
36
       height: 78px;
37
-      font-size: 30px;      
37
+      font-size: 30px;
38
       line-height: 78px;
38
       line-height: 78px;
39
       background: #274290;
39
       background: #274290;
40
       font-weight: bold;
40
       font-weight: bold;
41
       border-radius: 12px;
41
       border-radius: 12px;
42
       display: inline-block;
42
       display: inline-block;
43
       color: #fff;
43
       color: #fff;
44
-    }  
44
+    }
45
   }
45
   }
46
-  .storezn{
46
+  .storezn {
47
+    // color: #202020;
48
+    // line-height: 64px;
49
+    // margin-bottom: 60px;
50
+    // overflow: hidden;
51
+    // text-align: justify;
52
+    // white-space: pre-wrap;
53
+
47
     color: #202020;
54
     color: #202020;
48
-    line-height: 64px;
49
-    margin-bottom: 60px;
55
+    line-height: 64rpx;
56
+    margin-bottom: 60rpx;
57
+    overflow: hidden;
50
     text-align: justify;
58
     text-align: justify;
59
+    width: 23em;
60
+    padding: 0 21px 0 11px;
61
+    /* padding-right: -12px; */
51
     white-space: pre-wrap;
62
     white-space: pre-wrap;
63
+    overflow-wrap: break-word;
52
   }
64
   }
53
-  Textarea{
65
+  Textarea {
54
     height: 300px;
66
     height: 300px;
55
     width: 100%;
67
     width: 100%;
56
     padding: 30px;
68
     padding: 30px;
57
-    background: #F8F8F8;
69
+    background: #f8f8f8;
58
     border-radius: 8px;
70
     border-radius: 8px;
59
     box-sizing: border-box;
71
     box-sizing: border-box;
60
     height: 254px;
72
     height: 254px;
61
     font-size: 26px;
73
     font-size: 26px;
62
   }
74
   }
63
-}
75
+}

+ 5
- 4
src/hotel/pages/landlord/addRoom/addRoom.jsx Visa fil

34
 
34
 
35
   const onRoomMap = () => {
35
   const onRoomMap = () => {
36
     Taro.chooseLocation().then((res) => {
36
     Taro.chooseLocation().then((res) => {
37
-      setRoomModel({ ...roomModel, location: res.longitude + ',' + res.latitude, locName: res.name })
37
+      console.log("🚀 ~ file: addRoom.jsx ~ line 37 ~ Taro.chooseLocation ~ res", res)
38
+      setRoomModel({ ...roomModel, location: res.longitude + ',' + res.latitude, locName: res.name, address: res.address })
38
     })
39
     })
39
   }
40
   }
40
-  
41
+
41
   const onParkMap = () => {
42
   const onParkMap = () => {
42
     Taro.chooseLocation().then((res) => {
43
     Taro.chooseLocation().then((res) => {
43
-      setRoomModel({ ...roomModel, parkingLocation: res.longitude + ',' + res.latitude, pkLocName: res.name })
44
+      setRoomModel({ ...roomModel, parkingLocation: res.longitude + ',' + res.latitude, pkLocName: res.name, address: res.address })
44
     })
45
     })
45
   }
46
   }
46
   const sumbit = () => {
47
   const sumbit = () => {
174
         <CustomNav title={hotelName} />
175
         <CustomNav title={hotelName} />
175
       </view>
176
       </view>
176
       <view className='roomDetail' style={{ height: '100%', overflow: "hidden", }} >
177
       <view className='roomDetail' style={{ height: '100%', overflow: "hidden", }} >
177
-        <scroll-view scrollY style={{ height: '100%' }}>
178
+        <scroll-view scrollY style={{ height: '87%' }}>
178
           <View id='det'>
179
           <View id='det'>
179
             <Popup show={showCutover} onClose={onClose}>
180
             <Popup show={showCutover} onClose={onClose}>
180
               <View className='editword'>
181
               <View className='editword'>

+ 19
- 6
src/hotel/pages/landlord/addRoom/addRoom.less Visa fil

56
     }
56
     }
57
   }
57
   }
58
   .button-OK {
58
   .button-OK {
59
-    height: 92px;
59
+    // height: 92px;
60
+    // background: #274291;
61
+    // margin: 60px 0 30px 0;
62
+    // letter-spacing: 5px;
63
+    // line-height: 92px;
64
+    // border-radius: 12px;
65
+    // font-size: 30px;
66
+    // font-weight: bold;
67
+    // color: #fff;
68
+    /* height: 95rpx; */
69
+
60
     background: #274291;
70
     background: #274291;
61
-    margin: 60px 0 30px 0;
62
-    letter-spacing: 5px;
63
-    line-height: 92px;
64
-    border-radius: 12px;
65
-    font-size: 30px;
71
+    margin: 60rpx 0 30rpx 0;
72
+    letter-spacing: 5rpx;
73
+    line-height: 92rpx;
74
+    border-radius: 12rpx;
75
+    font-size: 30rpx;
66
     font-weight: bold;
76
     font-weight: bold;
67
     color: #fff;
77
     color: #fff;
78
+    position: fixed;
79
+    top: 37em;
80
+    width: 23em;
68
   }
81
   }
69
 }
82
 }

+ 2
- 2
src/pages/MineUserAll/AllOrder/index.jsx Visa fil

6
 import Complete from '@/components/CompoentsOrder/complete'
6
 import Complete from '@/components/CompoentsOrder/complete'
7
 import './style.less'
7
 import './style.less'
8
 
8
 
9
-const tabs = ['全部', '待支付', '待核销', '已使用','已过期'].map(x => ({ title: x }))
9
+const tabs = ['全部', '待支付', '待核销', '已使用', '已过期'].map(x => ({ title: x }))
10
 
10
 
11
 const TabBar = (props) => {
11
 const TabBar = (props) => {
12
   const handleClick = (e) => {
12
   const handleClick = (e) => {
47
     setActiveTab(index)
47
     setActiveTab(index)
48
 
48
 
49
   }
49
   }
50
-  
50
+
51
   console.log('------setActiveTab--------', activeTab)
51
   console.log('------setActiveTab--------', activeTab)
52
 
52
 
53
   return (
53
   return (

+ 1
- 5
src/pages/index/components/Card/style.less Visa fil

6
   margin-bottom: 30px;
6
   margin-bottom: 30px;
7
   break-inside: avoid;
7
   break-inside: avoid;
8
   position: relative;
8
   position: relative;
9
-
10
   width: calc(100% - 30px);
9
   width: calc(100% - 30px);
11
   box-sizing: border-box;
10
   box-sizing: border-box;
12
   margin-left: 15px;
11
   margin-left: 15px;
13
-
14
   .cardTop{
12
   .cardTop{
15
     border-radius: 24px 24px 0px 0px;
13
     border-radius: 24px 24px 0px 0px;
16
     .cCardimg{
14
     .cCardimg{
40
       color: #404040;
38
       color: #404040;
41
       text-align: justify;
39
       text-align: justify;
42
     }
40
     }
43
-
44
     .cCBottom {
41
     .cCBottom {
45
-      display: flex;
46
-    
42
+      display: flex;    
47
       .cCleft{
43
       .cCleft{
48
         flex: 3;
44
         flex: 3;
49
         position: relative;
45
         position: relative;

+ 1
- 0
src/pages/index/tabs/Guide.jsx Visa fil

256
         <view style={{ marginTop: '10rpx', paddingBottom: '60rpx' }}>
256
         <view style={{ marginTop: '10rpx', paddingBottom: '60rpx' }}>
257
           {(spackage || []).map((item, index) => <BossCard det={item} st={parseFloat(item.score.toFixed(1))} key={(index)} trackClick={trackClick} taRoomContent={taRoomContent} item={item} />)}
257
           {(spackage || []).map((item, index) => <BossCard det={item} st={parseFloat(item.score.toFixed(1))} key={(index)} trackClick={trackClick} taRoomContent={taRoomContent} item={item} />)}
258
         </view>
258
         </view>
259
+        {/* <Image src={} /> */}
259
       </view>
260
       </view>
260
     </scroll-view>
261
     </scroll-view>
261
   )
262
   )

+ 8
- 5
src/pages/index/tabs/Recommend.jsx Visa fil

33
 
33
 
34
   //分类标签
34
   //分类标签
35
   const tabs = [{ title: '附近' }].concat(typeList.map(x => ({ ...x, title: x.typeName })))
35
   const tabs = [{ title: '附近' }].concat(typeList.map(x => ({ ...x, title: x.typeName })))
36
-  //切换上面的标签
37
-  const handleTabChange = (e) => {
38
-    const { index } = e.detail
36
+  const details=(index,tab)=>{
39
     setActiveTab(index)
37
     setActiveTab(index)
40
-    const tab = tabs[index].typeId || ''
41
-
42
     setQueryParams({
38
     setQueryParams({
43
       ...queryParams,
39
       ...queryParams,
44
       typeId: tab
40
       typeId: tab
45
     })
41
     })
46
   }
42
   }
43
+  //切换上面的标签
44
+  const handleTabChange = (e) => {
45
+    const { index } = e.detail
46
+    details(index,tabs[index].typeId||'')
47
+  }
47
 
48
 
48
   const handleDataChange = (value, e) => {
49
   const handleDataChange = (value, e) => {
49
     if (e.paramsChanged) {
50
     if (e.paramsChanged) {
62
     //查询分类标签表
63
     //查询分类标签表
63
     getIndexType({ pageSize: 20 }).then((res) => {
64
     getIndexType({ pageSize: 20 }).then((res) => {
64
       setTypeList(res.records || [])
65
       setTypeList(res.records || [])
66
+      details(1,res.records[1].typeId)
67
+
65
     })
68
     })
66
   }, [])
69
   }, [])
67
 
70