123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275 |
- <template>
- <view class="index">
- <scroll-view scroll-y="true" @scrolltolower="lower" style="height: 100%;">
- <nav-header>我的账户</nav-header>
- <view class="" style="width: 686rpx;margin: auto;" @click="table1">
- <image src="/static/my/1.png" mode="widthFix" style="width: 686rpx;" v-if="third_id==''"></image>
- <image src="/static/my/2.png" mode="widthFix" style="width: 686rpx;" v-else></image>
- </view>
- <!-- 我的余额 -->
- <!-- <view class="mymoney">
- <view class="">
- 我的余额
- </view>
- <view class="systemColor">
- {{money}} <text>元</text>
- </view>
- <view class="btn_box">
- <view class="" @click="table()">
- <view class="">
- 充值
- </view>
- </view>
- <view class="" @click="href('/pages/my/wallet/whit')">
- <view class="">
- 提现
- </view>
- </view>
- </view>
- </view> -->
- <!-- 我的余额 结束-->
- <!-- 明细列表 -->
- <!-- <view class="content">
- <view class="title">
- <view class="">账单明细</view>
- </view>
- <view class="item" v-for="(item,index) in list" :key="index">
- <view class="">
- <view class="">
- {{item.name}}
- </view>
- <view class="">
- {{item.create_at}}
- </view>
- </view>
- <view class="orange" v-if="item.amount>0">
- {{item.amount}}
- </view>
- <view class="fff" v-else>
- {{item.amount}}
- </view>
- </view>
- </view> -->
- <!-- 明细列表 结束-->
- </scroll-view>
- </view>
- </template>
- <script>
- import navHeader from "@/components/my/nav_header.vue"
- export default {
- components: {
- navHeader
- },
- data() {
- return {
- money: "",
- page: 0,
- list: [],
- mx: false,
- is_cert: '',
- third_id:''
- }
- },
- onReachBottom() {
- this.get_mx()
- },
- onShow() {
- this.api.get_user_info()
- this.money = uni.getStorageSync("user_info").balance
- this.is_cert = uni.getStorageSync("user_info").is_cert
- this.third_id = uni.getStorageSync("user_info").third_id
- this.get_mx()
- },
- methods: {
- table1() {
- this.api.open().then(res => {
- if(res.code==1) {
- window.location = res.data
- // uni.setStorage({
- // key:"pay_info",
- // data:res.data,
- // success:()=>{
- // // console.log("Sds")
- // this.$api.link(1,"121");
- // }
- // })
- }
- })
- },
- table() {
- if (this.is_cert == 1) {
- this.$api.to('/pages/my/wallet/recharge')
- } else {
- this.$api.pop('请先实名之后充值')
- }
- },
- lower() {
- this.get_mx()
- },
- init() {
- this.page = 0
- },
- get_mx() {
- this.api.mx(30, ++this.page).then(res => {
- res.data.data.forEach(ele => {
- this.list.push(ele)
- })
- })
- }
- }
- }
- </script>
- <style scoped>
- .index {
- box-sizing: border-box;
- padding-top: 100rpx;
- }
- .mymoney {
- width: 710rpx;
- height: 340rpx;
- background: #fff;
- margin: 24rpx auto;
- border-radius: 16rpx;
- box-sizing: border-box;
- background: linear-gradient(180deg, #69FF60 0%, #0C9D5B 100%);
- border-radius: 40rpx;
- position: relative;
- }
- .mymoney>view:first-child {
- padding-top: 60rpx;
- font-size: 28rpx;
- font-weight: 400;
- text-align: center;
- color: #000;
- }
- .mymoney>view:nth-child(2) {
- margin-top: 30rpx;
- text-align: center;
- font-size: 44rpx;
- font-weight: 400;
- color: #000;
- }
- .mymoney>view:nth-child(2) text {
- font-size: 24rpx;
- }
- .mymoney>view:nth-child(3) {
- color: #000;
- font-size: 24rpx;
- text-align: center;
- margin-top: 20rpx;
- }
- .btn_box {
- position: absolute;
- left: 0;
- bottom: 0;
- font-size: 24rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- box-sizing: border-box;
- width: 100%;
- height: 100rpx;
- background: linear-gradient(180deg, #69FF60 0%, #0C9D5B 100%);
- border-radius: 0px 0px 16px 16px;
- }
- .btn_box>view {
- flex: 1;
- text-align: center;
- font-size: 28rpx;
- color: #000;
- }
- .btn_box image:first-child {
- width: 54rpx;
- height: 54rpx;
- vertical-align: middle;
- margin-right: 10rpx;
- }
- .btn_box image:last-child {
- width: 34rpx;
- height: 34rpx;
- vertical-align: middle;
- margin-left: 10rpx;
- }
- .btn_box>view:nth-child(1) {
- position: relative;
- }
- .btn_box>view:nth-child(1)::after {
- content: '';
- position: absolute;
- top: 50%;
- right: 0;
- width: 3rpx;
- height: 40rpx;
- background: #000;
- display: inline-block;
- transform: translateY(-50%);
- }
- .content {
- width: 710rpx;
- box-sizing: border-box;
- padding: 0 32rpx;
- margin: 0 auto;
- margin-top: 20rpx;
- color: #fff;
- }
- .content .title {
- font-size: 30rpx;
- font-weight: 400;
- color: #fff;
- padding: 30rpx 0;
- border-bottom: 1rpx solid #cacaca;
- display: flex;
- align-items: center;
- }
- .content .item {
- display: flex;
- justify-content: space-between;
- box-sizing: border-box;
- padding-top: 20rpx;
- padding-bottom: 20rpx;
- }
- .item:last-of-type {
- border: none;
- }
- .item>view:first-child>view:last-child {
- margin-top: 10rpx;
- color: #999;
- font-size: 24rpx;
- }
- .item>view:first-child>view:first-child {
- font-size: 28rpx;
- }
- .item>view:last-child {
- align-self: center;
- font-size: 32rpx;
- color: #fff;
- font-weight: bold;
- }
- </style>
|