瀏覽代碼

静态页面

1002884655 4 年之前
父節點
當前提交
f46d2f0e2c
共有 3 個文件被更改,包括 30 次插入15 次删除
  1. 14
    14
      project.config.json
  2. 4
    1
      src/pages/Index/BookDetail/index.vue
  3. 12
    0
      src/pages/Index/BookDetail/page.scss

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

@@ -5,35 +5,35 @@
5 5
 	"appid": "wx75ce0dc4b59e0458",
6 6
 	"setting": {
7 7
 		"urlCheck": false,
8
-		"scopeDataCheck": false,
9
-		"coverView": true,
10 8
 		"es6": false,
9
+		"enhance": false,
11 10
 		"postcss": false,
12
-		"compileHotReLoad": false,
13 11
 		"preloadBackgroundData": false,
14 12
 		"minified": false,
15
-		"autoAudits": false,
16 13
 		"newFeature": false,
17
-		"uglifyFileName": false,
18
-		"uploadWithSourceMap": true,
19
-		"useIsolateContext": true,
14
+		"coverView": true,
20 15
 		"nodeModules": false,
21
-		"enhance": false,
22
-		"useCompilerModule": false,
23
-		"userConfirmedUseCompilerModuleSwitch": false,
16
+		"autoAudits": false,
24 17
 		"showShadowRootInWxmlPanel": true,
18
+		"scopeDataCheck": false,
19
+		"uglifyFileName": false,
25 20
 		"checkInvalidKey": true,
26 21
 		"checkSiteMap": true,
27
-		"useMultiFrameRuntime": true,
28
-		"useApiHook": true,
29
-		"useApiHostProcess": false,
22
+		"uploadWithSourceMap": true,
23
+		"compileHotReLoad": false,
30 24
 		"babelSetting": {
31 25
 			"ignore": [],
32 26
 			"disablePlugins": [],
33 27
 			"outputPath": ""
34 28
 		},
35
-		"enableEngineNative": false,
36 29
 		"bundle": false,
30
+		"useIsolateContext": true,
31
+		"useCompilerModule": false,
32
+		"userConfirmedUseCompilerModuleSwitch": false,
33
+		"useMultiFrameRuntime": true,
34
+		"useApiHook": true,
35
+		"useApiHostProcess": false,
36
+		"enableEngineNative": false,
37 37
 		"userConfirmedBundleSwitch": false,
38 38
 		"packNpmManually": false,
39 39
 		"packNpmRelationList": [],

+ 4
- 1
src/pages/Index/BookDetail/index.vue 查看文件

@@ -18,10 +18,13 @@
18 18
                 </view>
19 19
               </view>
20 20
               <view class="SubInfo">
21
-                <view class="Tag">
21
+                <view class="Tag flex-h">
22 22
                   <text class="iconfont iconbiaoqian"></text>
23 23
                   <text>分类:</text>
24 24
                   <text class="active">{{ArticleInfo.typeName}}</text>
25
+                  <view class="flex-item"></view>
26
+                  <text class="iconfont iconfenxiang" @tap="ShareArticle"></text>
27
+                  <button open-type="share" class="ShareBtn">分享</button>
25 28
                 </view>
26 29
                 <view class="flex-h">
27 30
                   <view class="flex-item flex-h" style="flex: 3; -webkit-flex: 3;">

+ 12
- 0
src/pages/Index/BookDetail/page.scss 查看文件

@@ -17,6 +17,7 @@
17 17
       > .FrontInfo {
18 18
         position: relative;
19 19
         overflow: hidden;
20
+        > .Share,
20 21
         > .Like {
21 22
           display: inline-block;
22 23
           position: absolute;
@@ -39,6 +40,9 @@
39 40
             }
40 41
           }
41 42
         }
43
+        > .Share {
44
+          top: 120px;
45
+        }
42 46
         > .Img {
43 47
           padding: 30px 120px;
44 48
           position: relative;
@@ -81,6 +85,14 @@
81 85
                 border-radius: 6px;
82 86
               }
83 87
             }
88
+            > .ShareBtn {
89
+              opacity: 0;
90
+              width: 40px;
91
+              position: absolute;
92
+              z-index: 3;
93
+              right: 30px;
94
+              top: 0;
95
+            }
84 96
           }
85 97
           > .flex-h {
86 98
             align-items: center;