Pārlūkot izejas kodu

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

张延森 3 gadus atpakaļ
vecāks
revīzija
16c7c61c8d

+ 0
- 4
src/components/AuthPage/login.less Parādīt failu

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

+ 30
- 18
src/hotel/pages/components/Extend/style.less Parādīt failu

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

+ 5
- 4
src/hotel/pages/landlord/addRoom/addRoom.jsx Parādīt failu

@@ -34,13 +34,14 @@ export default withLayout((props) => {
34 34
 
35 35
   const onRoomMap = () => {
36 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 42
   const onParkMap = () => {
42 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 47
   const sumbit = () => {
@@ -174,7 +175,7 @@ export default withLayout((props) => {
174 175
         <CustomNav title={hotelName} />
175 176
       </view>
176 177
       <view className='roomDetail' style={{ height: '100%', overflow: "hidden", }} >
177
-        <scroll-view scrollY style={{ height: '100%' }}>
178
+        <scroll-view scrollY style={{ height: '87%' }}>
178 179
           <View id='det'>
179 180
             <Popup show={showCutover} onClose={onClose}>
180 181
               <View className='editword'>

+ 19
- 6
src/hotel/pages/landlord/addRoom/addRoom.less Parādīt failu

@@ -56,14 +56,27 @@
56 56
     }
57 57
   }
58 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 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 76
     font-weight: bold;
67 77
     color: #fff;
78
+    position: fixed;
79
+    top: 37em;
80
+    width: 23em;
68 81
   }
69 82
 }

+ 2
- 2
src/pages/MineUserAll/AllOrder/index.jsx Parādīt failu

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

+ 1
- 5
src/pages/index/components/Card/style.less Parādīt failu

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

+ 1
- 0
src/pages/index/tabs/Guide.jsx Parādīt failu

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

+ 8
- 5
src/pages/index/tabs/Recommend.jsx Parādīt failu

@@ -33,17 +33,18 @@ export default (props) => {
33 33
 
34 34
   //分类标签
35 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 37
     setActiveTab(index)
40
-    const tab = tabs[index].typeId || ''
41
-
42 38
     setQueryParams({
43 39
       ...queryParams,
44 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 49
   const handleDataChange = (value, e) => {
49 50
     if (e.paramsChanged) {
@@ -62,6 +63,8 @@ export default (props) => {
62 63
     //查询分类标签表
63 64
     getIndexType({ pageSize: 20 }).then((res) => {
64 65
       setTypeList(res.records || [])
66
+      details(1,res.records[1].typeId)
67
+
65 68
     })
66 69
   }, [])
67 70