李志伟 3 年 前
コミット
1a33cfddae
共有2 個のファイルを変更した39 個の追加55 個の削除を含む
  1. 27
    40
      src/pages/RandomItinerary/ResultOver/index.jsx
  2. 12
    15
      src/pages/RandomItinerary/ResultOver/style.less

+ 27
- 40
src/pages/RandomItinerary/ResultOver/index.jsx ファイルの表示

@@ -18,17 +18,13 @@ export default withLayout((props) => {
18 18
 
19 19
 
20 20
   useEffect(() => {
21
-
22 21
     getTravelDestiny().then(e => {
23 22
       setTraveContent(e)
24 23
       setShareList(e?.travelItemList || [])
25 24
     })
26
-
27
-
28 25
   }, [])
29 26
 
30 27
   useShareAppMessage((e) => {
31
-
32 28
     return {
33 29
       promise: share({ shareUrl: '/pages/index/index', targetId: traveContent.serialNo, targetType: 'travel' }).then(res => {
34 30
         return {
@@ -36,7 +32,6 @@ export default withLayout((props) => {
36 32
           path: `/pages/index/index?shareId=${res.shareId}`,
37 33
         }
38 34
       })
39
-
40 35
     }
41 36
   })
42 37
 
@@ -46,43 +41,35 @@ export default withLayout((props) => {
46 41
       <view className='index-navbar'>
47 42
         <CustomNav title='命定行程' />
48 43
       </view>
49
-      <scroll-view scrollY style='height: calc(100% - 75px);margin-bottom: 40px;' >
50
-
51
-        <View className='Over-box'>
52
-
53
-          <View className='Over-index-box' >
54
-            <image className='OI-image' src={ShowOver} />
55
-            <View className='OI-text-box'>
56
-              <Text className='OI-text'>
57
-                整体运势或有起伏的情况,需要做好各方面的平衡避免有故此彼伏的情况。 你要学会自己衡量得失利弊,但时间不够用的时候就要面临个人的
58
-              </Text>
59
-              <Text className='OI-text'>
60
-                未必就是走的人多的路就是对,你可以保持自己的想法。
61
-              </Text>
62
-              <Text className='OI-text'>
63
-                南京对于你而言是梦想中的地方,你的命定行程适合阳光、梦幻的地方。结合你的回答你的命定行程如下:
64
-              </Text>
65
-              <View className='bottom-text'>》</View>
44
+      <View className='index-container' >
45
+        <scroll-view scrollY style='height: 100%;margin-bottom: 40px;' >
46
+          <View className='Over-box'>
47
+            <View className='Over-index-box' >
48
+              <image className='OI-image' src={ShowOver} />
49
+              <View className='OI-text-box'>
50
+                <Text className='OI-text'>
51
+                  整体运势或有起伏的情况,需要做好各方面的平衡避免有故此彼伏的情况。 你要学会自己衡量得失利弊,但时间不够用的时候就要面临个人的抉择。
52
+                </Text>
53
+                <Text className='OI-text'>
54
+                  未必就是走的人多的路就是对,你可以保持自己的想法。
55
+                </Text>
56
+                <Text className='OI-text'>
57
+                  南京对于你而言是梦想中的地方,你的命定行程适合阳光、梦幻的地方。结合你的回答你的命定行程如下:
58
+                </Text>
59
+                <View className='bottom-text'>》</View>
60
+              </View>
66 61
             </View>
62
+            {
63
+              traveContent?.isHidden === false && shareList.map((item) => <ShareCard det={item} item={item} key={item.itemId} />
64
+              )
65
+            }
66
+            {
67
+              traveContent?.isHidden &&
68
+              <Button openType='share' className='content'><View className='shareImg'>分享并邀请好友点开查看完整命定行程</View></Button>
69
+            }
67 70
           </View>
68
-          {
69
-            traveContent?.isHidden === false && shareList.map((item) => <ShareCard det={item} item={item} key={item.itemId} />
70
-
71
-
72
-            )
73
-          }
74
-          {
75
-            traveContent?.isHidden &&
76
-            <Button openType='share' className='purebtn'><View className='shareImg'>分享并邀请好友点开查看完整命定行程</View></Button>
77
-            // <View className='content' >分享并邀请好友点开查看完整命定行程</View>
78
-
79
-          }
80
-        </View>
81
-
82
-      </scroll-view>
83
-
71
+        </scroll-view>
72
+      </View>
84 73
     </view >
85
-
86
-
87 74
   )
88 75
 })

+ 12
- 15
src/pages/RandomItinerary/ResultOver/style.less ファイルの表示

@@ -1,52 +1,49 @@
1 1
 .Over-box {
2 2
   .Over-index-box {
3
-    width: 690px;
4
-    background: #ffffff;
3
+    background: #fff;
5 4
     border: 2px solid #dce6e3;
6 5
     border-radius: 10px;
7
-    margin: 15px auto;
6
+    margin: 20px 30px;
8 7
     .OI-image {
9 8
       width: 630px;
10 9
       height: 223px;
11
-      margin: 10px 30px;
10
+      margin: 30px;
12 11
     }
13 12
     .OI-text-box {
14
-      width: 100%;
15
-      padding: 10px 25px;
13
+      padding: 25px 38px 0 38px;
16 14
 
17 15
       .OI-text {
18 16
         text-indent: 2em;
19 17
         display: block;
20
-        width: 94%;
21 18
         font-size: 28px;
22 19
         font-weight: 400;
23 20
         color: #202020;
24 21
         line-height: 80px;
22
+        margin-bottom: 30px;
25 23
       }
26 24
       .bottom-text {
27 25
         transform: rotate(90deg);
28 26
         width: 200px;
29 27
         text-align: center;
30 28
         margin: 0 auto;
31
-
32 29
         position: relative;
33
-        right: 5vw;
34 30
       }
35 31
     }
36 32
   }
37 33
   .shareImg {
38
-    width: 95%;
39
-    height: 115px;
34
+    height: 120px;
40 35
     background: url("../../../assets/icons/GuideCheck/shareImage.png") no-repeat;
41 36
     background-size: 100%;
42
-    margin: 0 auto;
43
-    margin-bottom: 2em;
44 37
     font-size: 29px;
45
-    font-weight: 400;
46 38
     color: #1a3b83;
47 39
     line-height: 120px;
48
-    text-align: center;
49 40
   }
50 41
   .content {
42
+    background: transparent;
43
+    padding: 0;
44
+    margin: 26px 30px;
45
+    &::after {
46
+      border: none;
47
+    }
51 48
   }
52 49
 }