wx-guyantv/pages/my/index.wxml
2024-12-27 17:35:38 +08:00

48 lines
2.4 KiB
Plaintext

<!-- index.wxml -->
<view class="px-main">
<view class="flex flex-wrap justify-between items-center pt-main">
<image src="{{userInfo.avatarUrl || '/static/nav.png'}}" mode="scaleToFill" class="w-96 h-96 rounded-full" />
<view class="flex-1 px-32">
<view class="text-48">{{userInfo.nickname != 0 ? userInfo.nickname : '微信用户'}}</view>
<view class="text-[#999] text-24 pt-8">ID:{{ userInfo.uid }}</view>
</view>
<!-- <van-button plain type="primary" round color="#F9637B" size="small" bind:tap="login">
授权
</van-button> -->
</view>
<view class="rounded-32 bg-[#f5f5f5] mt-36 px-40 py-36">
<view class="flex flex-wrap justify-between items-center border-0 border-b-2 border-dashed border-[#ddd] pb-20 ">
<view class="">我的余额</view>
</view>
<view class="flex flex-wrap justify-between items-center pt-28 pb-16">
<view class="flex">
<view class="flex flex-wrap items-center">
<image src="/static/images/gift.png" mode="widthFix" class="w-48 rounded-full" />
<view class="pl-16">
<view class="text-20 text-[#EBB0CB] ">我的K币</view>
<view class="text-48 leading-1.3">{{userInfo.egold || 0}}</view>
</view>
</view>
<view class="flex flex-wrap items-center pl-56">
<image src="/static/images/diamond.png" mode="widthFix" class="w-48 rounded-full" />
<view class="pl-16">
<view class="text-20 text-[#EBB0CB]">会员天数</view>
<view class="text-48 leading-1.3">{{userInfo.vip_enddate || 0}}</view>
</view>
</view>
</view>
<van-button type="primary" color="linear-gradient(to right, #F76D67, #FB5196)" block custom-class="recharge-button1" bind:tap="openPay">
充值
</van-button>
</view>
</view>
<view class="rounded-32 bg-[#f5f5f5] mt-36 px-40 ">
<view class="flex flex-wrap justify-between items-center border-0 border-b-2 last:border-b-0 border-solid border-[#e8e8e8] py-32" wx:for="{{list}}" wx:key="*this" bind:tap="openDetail" data-item="{{item}}">
<image src="/static/my/{{item.image}}.png" class="w-40 h-40" />
<view class="flex-1 px-main ">{{item.name}}</view>
<i class="iconfont icon-more text-24 text-000-6" />
</view>
</view>
</view>
<Login userInfo="{{userInfo}}" show="{{showLogin}}" bind:changeInfo="changeInfo" bind:clone="clone" />
<PayWx userInfo="{{userInfo}}" show="{{showPay}}" bindclone="clone" />