123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518 |
- <template>
- <block>
- <view class="topBack" :style="'top: ' + menuButton.top + 'px'">
- {{pages > 1}}
- <image v-if="pages > 1" @tap="toback"
- src="https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/f566738e424f33a415dea22dc4e11eec.png"
- class="ico-moon"></image>
- <image mode="heightFix" :style="'height: ' + menuButton.height * 2 + 'rpx'" @tap="toPage"
- data-url="/pages/tabbar/index/index" class="h-backBtn" v-else
- src="https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/2847/41c5f36528b8f4204130c4977c1ec2c5.png">
- </image>
- <view class="userName">钱包</view>
- </view>
- <view class="tpBg"></view>
- <view class="content">
- <view class="box">
- <view class="totalAllTitle">可提现金额(元)</view>
- <view class="total">
- <view class="totalNum">{{ info.money }}</view>
- </view>
- <view class="datas">
- <view class="dataItem">
- <view>冻结金额(元)</view>
- <view>{{ info.rozenAmount }}</view>
- <image
- src="https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/0a57e6af52d6001a69c585478c71f8b6.png"
- mode="widthFix" class="iicon"></image>
- </view>
- <view class="dataItem">
- <view>累计提现(元)</view>
- <view>{{ info.cumulativembodiment }}</view>
- </view>
- <view class="dataItem">
- <view>累计收益(元)</view>
- <view>{{ info.cumulativencome }}</view>
- </view>
- </view>
- <view class="btns">
- <view class="totalJump btn1" @tap="toPage" data-url="/pages/wallet/cashlist" :data-type="type">
- <view>提现记录</view>
- </view>
- <view class="totalJump" @tap="toPage" data-url="/pages/Withdrawal/index" :data-type="type">
- <view>申请提现</view>
- </view>
- </view>
- </view>
- <view class="box1">
- <view class="iItem" @tap="toPage" :data-url="item.url" :data-name="item.name"
- v-for="(item, index) in list" :key="index">
- <view class="iLeft">
- <image :src="item.icon" mode="widthFix"></image>
- <view>{{ item.name }}</view>
- </view>
- <view class="rWrap">
- <view class="intergal" v-if="item.name=='我的积分'">
- {{info.score}}
- </view>
- <image
- src="https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/9badd173c236af20edc6f800111d24c3.png"
- mode="widthFix" class="iRight"></image>
- </view>
- </view>
- </view>
- <view class="box1">
- <view class="iItem" @tap="toPage" :data-url="item.url" v-for="(item, index) in list2" :key="index">
- <view class="iLeft">
- <image :src="item.icon" mode="widthFix"></image>
- <view>{{ item.name }}</view>
- </view>
- <image
- src="https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/9badd173c236af20edc6f800111d24c3.png"
- mode="widthFix" class="iRight"></image>
- </view>
- </view>
- </view>
- </block>
- </template>
- <script module="parse" lang="wxs">
- module.exports = {
- filterTime: function(time) {
- console.log(time)
- var nowDate = getDate(time * 1000);
- var year = nowDate.getFullYear();
- var month = nowDate.getMonth() + 1;
- var date = nowDate.getDate();
- var hours = nowDate.getHours();
- var minutes = nowDate.getMinutes();
- var seconds = nowDate.getSeconds();
- month = month > 9 ? month : '0' + month;
- date = date > 9 ? date : '0' + date;
- hours = hours > 9 ? hours : '0' + hours;
- minutes = minutes > 9 ? minutes : '0' + minutes;
- seconds = seconds > 9 ? seconds : '0' + seconds;
- return year + '-' + month + '-' + date + " " + hours + ":" + minutes + ":" + seconds;
- }
- }
- </script>
- <script>
-
- var app = getApp();
- export default {
- data() {
- return {
- list: [
-
-
-
-
-
- {
- name: '账单明细',
- icon: 'https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/6018ceee3ac59c3908e093b84046a61b.png',
- url: '/pages/wallet/paylist'
- },
- {
- name: '银行卡列表',
- icon: 'https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/89582b899d26a1e1a17afcfca97dc74b.png',
- url: '/pages/Withdrawal/banklist'
- },
- ],
- list2: [{
- name: '我的团队',
- icon: 'https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/612dcfbf599a0be79cab31e7e9ceb651.png',
- url: '/pages/term/index'
- },
- {
- name: '我的海报',
- icon: 'https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/62a474930ae8d8dcfee4636acfc7c00a.png',
- url: '/pages/poster/index'
- }
- ],
- info: {
- },
- pages: '',
- menuButton: {
- top: '',
- height: 0
- },
- Page: 0
- };
- }
-
- ,
- onLoad: function(options) {
- let page = getCurrentPages();
- var menuButton = uni.getMenuButtonBoundingClientRect();
- console.log(menuButton);
- this.pages = page.length,
- this.menuButton = menuButton,
- this.getinfo();
- },
-
- onReady: function() {},
-
- onShow: function() {},
-
- onHide: function() {},
-
- onUnload: function() {},
-
- onPullDownRefresh: function() {
- },
-
- onReachBottom: function() {
- },
-
- onShareAppMessage: function() {},
- methods: {
- async getinfo() {
- let data = await this.$api.request('/wallet/index');
- console.log(data)
- this.info = data;
- },
- toPage(e) {
- app.globalData.toPage(e);
- },
- toback() {
- uni.navigateBack({
- delta: 1
- });
- },
- }
- };
- </script>
- <style>
- page {
- background: #F4F5F9;
- }
- .topBack {
- position: absolute;
- top: 0;
- left: 0;
- z-index: 1;
- margin-top: 2rpx;
- display: flex;
- align-items: center;
- }
- .topBack .ico-moon {
- padding: 0 0rpx 0 30rpx;
- width: 70rpx;
- height: 40rpx;
- }
- .h-backBtn {
- margin-left: 30rpx;
- }
- .homeImg {
- height: 40rpx;
- width: 40rpx;
- margin-right: 10rpx;
- }
- .userName {
- font-size: 28rpx;
- color: #fff;
- margin-left: 20rpx;
- font-size: 36rpx;
- }
- .tpBg {
- background: #FE5879;
- background-size: 100% 100%;
- width: 100%;
- height: 380rpx;
- }
- .content {
- margin: -180rpx 30rpx 25rpx;
- }
- .box {
- border-radius: 12rpx;
- background: #fff;
- padding: 50rpx 20rpx 40rpx;
- margin-bottom: 25rpx;
- }
- .totalAllTitle {
- color: #9194A6;
- margin-bottom: 28rpx;
- text-align: center;
- }
- .total {
- display: flex;
- align-items: center;
- justify-content: center;
- padding-bottom: 20rpx;
- }
- .totalNum {
- font-size: 50rpx;
- }
- .totalJump {
- display: flex;
- align-items: center;
- width: 220rpx;
- height: 70rpx;
- justify-content: center;
- background: #FB4C6F;
- border-radius: 12rpx;
- border-radius: 12rpx;
- }
- .totalJump>view {
- font-size: 28rpx;
- color: #fff;
- }
- .totalJump>image {
- width: 14rpx;
- margin-left: 14rpx;
- margin-top: 5rpx;
- }
- .tip {
- font-size: 30rpx;
- padding-bottom: 10rpx;
- }
- .iItem {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 32rpx 0;
- border-bottom: 1px solid #E4E5EE;
- }
- .iItem:last-child {
- border-bottom: none;
- padding-bottom: 0;
- }
- .iLeft {
- display: flex;
- align-items: center;
- }
- .iLeft>image {
- width: 40rpx;
- }
- .iLeft>view {
- font-size: 28rpx;
- margin-left: 32rpx;
- }
- .iRight {
- width: 12rpx;
- }
- .datas {
- padding-top: 50rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding-bottom: 36rpx;
- border-bottom: 1px solid #E4E5EE;
- margin-bottom: 30rpx;
- }
- .dataItem {
- display: flex;
- flex-direction: column;
- align-items: center;
- position: relative;
- }
- .dataItem>view:nth-child(1) {
- color: #9194A6;
- }
- .dataItem>view:nth-child(2) {
- margin-top: 15rpx;
- font-size: 30rpx;
- }
- .iicon {
- width: 28rpx;
- position: absolute;
- top: 4rpx;
- right: -38rpx;
- }
- .btns {
- display: flex;
- align-items: center;
- justify-content: space-around;
- }
- .btn1 {
- background: #fff;
- border: 1px solid #9194A6;
- color: #011B33 !important;
- }
- .btn1>view {
- color: #011B33 !important;
- }
- .box1 {
- border-radius: 12rpx;
- background: #fff;
- padding: 50rpx;
- margin-bottom: 25rpx;
- padding-top: 0;
- }
- .iItem {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 32rpx 0;
- border-bottom: 1px solid #e4e5ee;
- }
- .iItem:last-child {
- border-bottom: none;
- padding-bottom: 0;
- }
- .iLeft {
- display: flex;
- align-items: center;
- }
- .iLeft>image {
- width: 40rpx;
- }
- .iLeft>view {
- font-size: 28rpx;
- margin-left: 32rpx;
- }
- .iRight {
- width: 12rpx;
- }
- view {
- font-size: 24rpx;
- }
- .rWrap {
- display: flex;
- align-items: center;
- }
- .intergal {
- color: #000000;
- font-size: 30rpx;
- margin-right: 12rpx;
- }
- </style>
|