许成详 6 年之前
父節點
當前提交
215606820e
共有 5 個檔案被更改,包括 53 行新增0 行删除
  1. 二進制
      assets/images/icon43.png
  2. 2
    0
      pages/components/SubIndex/index.wxss
  3. 1
    0
      pages/index/index.js
  4. 12
    0
      pages/index/index.wxml
  5. 38
    0
      pages/index/index.wxss

二進制
assets/images/icon43.png 查看文件


+ 2
- 0
pages/components/SubIndex/index.wxss 查看文件

@@ -279,6 +279,8 @@
279 279
   color: #666;
280 280
 }
281 281
 
282
+
283
+
282 284
 /* .top {
283 285
   width: 100%;
284 286
   position: relative;

+ 1
- 0
pages/index/index.js 查看文件

@@ -10,6 +10,7 @@ create(store, {
10 10
     })
11 11
   },
12 12
   data: {
13
+    ShowLayer: true,
13 14
     NavList: [{ // navlist数据
14 15
       value: '首页',
15 16
       icon: '/assets/images/icon1.png'

+ 12
- 0
pages/index/index.wxml 查看文件

@@ -34,4 +34,16 @@
34 34
     </view>
35 35
   </view>
36 36
 
37
+  <!-- 弹窗 -->
38
+  <view class="layer" hidden="{{!ShowLayer}}">
39
+    <view class="centerLabel">
40
+      <view class="top">
41
+        <image mode="widthFix" src="/assets/images/icon43.png"></image>
42
+      </view>
43
+      <view class="content">
44
+        引用内容
45
+      </view>
46
+    </view>
47
+  </view>
48
+
37 49
 </view>

+ 38
- 0
pages/index/index.wxss 查看文件

@@ -70,3 +70,41 @@
70 70
 .foot text.active {
71 71
   color: #bb9c79;
72 72
 }
73
+
74
+.layer {
75
+  width: 100%;
76
+  position: absolute;
77
+  left: 0;
78
+  top: 0;
79
+  bottom: 0;
80
+  z-index: 1000;
81
+  background: rgba(0, 0, 0, 0.7);
82
+}
83
+
84
+.layer > view {
85
+  width: 65%;
86
+  padding: 10rpx 0;
87
+  background: #fff;
88
+  border-radius: 20rpx;
89
+  box-shadow: 0 0 20rpx 10rpx rgba(0, 0, 0, 0.05);
90
+}
91
+
92
+.layer .top {
93
+  text-align: right;
94
+  position: relative;
95
+  overflow: hidden;
96
+}
97
+
98
+.layer .top image {
99
+  display: block;
100
+  width: 20rpx;
101
+  float: right;
102
+  margin-right: 20rpx;
103
+}
104
+
105
+.layer .content {
106
+  padding: 0 20rpx;
107
+  position: relative;
108
+  overflow: hidden;
109
+  margin: 10rpx auto 0;
110
+}