0000
This commit is contained in:
7
template/myMoney/myMoney.js
Normal file
7
template/myMoney/myMoney.js
Normal file
@@ -0,0 +1,7 @@
|
||||
Component({
|
||||
properties: {
|
||||
user: Object
|
||||
},
|
||||
data: {},
|
||||
methods: {}
|
||||
});
|
||||
4
template/myMoney/myMoney.json
Normal file
4
template/myMoney/myMoney.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
8
template/myMoney/myMoney.wxml
Normal file
8
template/myMoney/myMoney.wxml
Normal file
@@ -0,0 +1,8 @@
|
||||
<view class="money-box">
|
||||
<block wx:if="{{user.uid>0}}">
|
||||
<view class="l">余额:{{user.money}}</view>
|
||||
<view class="r">洗车金:{{user.principal}},赠送:{{user.givenamount}}</view>
|
||||
</block>
|
||||
<navigator class="l" hoverClass="hover" url="/pages/login/login" wx:if="{{user.uid==0}}">余额: <view class="red">点击同步</view>
|
||||
</navigator>
|
||||
</view>
|
||||
30
template/myMoney/myMoney.wxss
Normal file
30
template/myMoney/myMoney.wxss
Normal file
@@ -0,0 +1,30 @@
|
||||
.money-box {
|
||||
background: #eee;
|
||||
color: #333;
|
||||
justify-content: space-between;
|
||||
margin: 0;
|
||||
padding: 0 18rpx;
|
||||
}
|
||||
|
||||
.money-box,.money-box .l {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
height: 64rpx;
|
||||
}
|
||||
|
||||
.money-box .l {
|
||||
flex: 1;
|
||||
font-size: 29rpx;
|
||||
}
|
||||
|
||||
.money-box .r {
|
||||
font-size: 22rpx;
|
||||
}
|
||||
|
||||
.hover {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.red {
|
||||
color: #f50;
|
||||
}
|
||||
Reference in New Issue
Block a user