Browse Source

优化页面

demo-md
kola-web 2 weeks ago
parent
commit
1a14d241db
  1. BIN
      src/images/md/popup2.png
  2. 23
      src/pages/17/index.scss
  3. 9
      src/pages/17/index.ts
  4. 8
      src/pages/17/index.wxml

BIN
src/images/md/popup2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

23
src/pages/17/index.scss

@ -40,25 +40,10 @@
} }
.float1 { .float1 {
position: fixed; position: absolute;
bottom: 0; top: 0;
left: 0;
z-index: 3;
width: 100vw;
}
.float2 {
position: fixed;
bottom: 0;
left: 0;
z-index: 3;
width: 100vw;
}
.float3 {
position: fixed;
bottom: 0;
left: 0; left: 0;
z-index: 3; z-index: 2;
width: 100vw; width: 100vw;
height: 100vh;
} }

9
src/pages/17/index.ts

@ -1,7 +1,9 @@
const _app = getApp<IAppOption>(); const _app = getApp<IAppOption>();
Page({ Page({
data: {}, data: {
float1: true,
},
onLoad() {}, onLoad() {},
handlePage() { handlePage() {
wx.navigateTo({ wx.navigateTo({
@ -18,6 +20,11 @@ Page({
url: "/pages/17/index", url: "/pages/17/index",
}); });
}, },
handleFloat1() {
this.setData({
float1: false,
});
},
}); });
export {}; export {};

8
src/pages/17/index.wxml

@ -8,3 +8,11 @@
<view class="tabbar-click"></view> <view class="tabbar-click"></view>
</view> </view>
</view> </view>
<image
wx:if="{{float1}}"
class="float1"
mode="widthFix"
src="{{imageUrl}}md/popup2.png?t={{Timestamp}}"
catch:tap="handleFloat1"
></image>

Loading…
Cancel
Save