New Huajishe Check ChaoXing
This commit is contained in:
16
HuajisheCheckChaoXing/components/no-data/no-data.js
Normal file
16
HuajisheCheckChaoXing/components/no-data/no-data.js
Normal file
@@ -0,0 +1,16 @@
|
||||
Component({
|
||||
properties: {
|
||||
text: {
|
||||
type: String,
|
||||
value: '暂无数据',
|
||||
},
|
||||
desc: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
},
|
||||
lifetimes: {
|
||||
attached() { },
|
||||
},
|
||||
methods: {}
|
||||
})
|
||||
3
HuajisheCheckChaoXing/components/no-data/no-data.json
Normal file
3
HuajisheCheckChaoXing/components/no-data/no-data.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
5
HuajisheCheckChaoXing/components/no-data/no-data.wxml
Normal file
5
HuajisheCheckChaoXing/components/no-data/no-data.wxml
Normal file
@@ -0,0 +1,5 @@
|
||||
<view class="no-data">
|
||||
<image class="no-data" src="/static/svg/illustration/no-data.svg" mode="aspectFit"></image>
|
||||
<text class="no-data">{{text}}</text>
|
||||
<text class="no-data" wx:if="{{desc}}">{{desc}}</text>
|
||||
</view>
|
||||
18
HuajisheCheckChaoXing/components/no-data/no-data.wxss
Normal file
18
HuajisheCheckChaoXing/components/no-data/no-data.wxss
Normal file
@@ -0,0 +1,18 @@
|
||||
view.no-data {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
margin-top: calc(50vh - 300rpx);
|
||||
color: gray;
|
||||
}
|
||||
|
||||
image.no-data {
|
||||
display: block;
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
margin: 20rpx auto;
|
||||
}
|
||||
|
||||
text.no-data {
|
||||
font-size: 26rpx;
|
||||
display: block;
|
||||
}
|
||||
12
HuajisheCheckChaoXing/components/watermark/watermark.js
Normal file
12
HuajisheCheckChaoXing/components/watermark/watermark.js
Normal file
@@ -0,0 +1,12 @@
|
||||
Component({
|
||||
properties: {
|
||||
waterText: {
|
||||
type: String,
|
||||
value: '小程序水印',
|
||||
}
|
||||
},
|
||||
lifetimes: {
|
||||
attached() { },
|
||||
},
|
||||
methods: {}
|
||||
})
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
21
HuajisheCheckChaoXing/components/watermark/watermark.wxml
Normal file
21
HuajisheCheckChaoXing/components/watermark/watermark.wxml
Normal file
@@ -0,0 +1,21 @@
|
||||
<!--components/watermark/watermark.wxml-->
|
||||
<view class="water_top" style="pointer-events: none;">
|
||||
<view class="water-text">{{waterText}}</view>
|
||||
<view class="water-text">{{waterText}}</view>
|
||||
<view class="water-text">{{waterText}}</view>
|
||||
<view class="water-text">{{waterText}}</view>
|
||||
<view class="water-text">{{waterText}}</view>
|
||||
<view class="water-text">{{waterText}}</view>
|
||||
<view class="water-text">{{waterText}}</view>
|
||||
<view class="water-text">{{waterText}}</view>
|
||||
|
||||
<view class="water-text">{{waterText}}</view>
|
||||
<view class="water-text">{{waterText}}</view>
|
||||
<view class="water-text">{{waterText}}</view>
|
||||
<view class="water-text">{{waterText}}</view>
|
||||
<view class="water-text">{{waterText}}</view>
|
||||
<view class="water-text">{{waterText}}</view>
|
||||
<view class="water-text">{{waterText}}</view>
|
||||
<view class="water-text">{{waterText}}</view>
|
||||
</view>
|
||||
|
||||
20
HuajisheCheckChaoXing/components/watermark/watermark.wxss
Normal file
20
HuajisheCheckChaoXing/components/watermark/watermark.wxss
Normal file
@@ -0,0 +1,20 @@
|
||||
/* components/watermark/watermark.wxss */
|
||||
/* 想要改水印大小或者稀疏通过样式调整即可 */
|
||||
.water_top {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
transform: rotate(-10deg);
|
||||
z-index: 9;
|
||||
}
|
||||
|
||||
.water-text {
|
||||
float: left;
|
||||
width: 375rpx;
|
||||
color: rgba(0, 0, 0, 0.15);
|
||||
text-align: center;
|
||||
font-size: 15px;
|
||||
margin: 120rpx 0;
|
||||
}
|
||||
Reference in New Issue
Block a user