| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <template>
- <view class="sh-wallet-box u-flex u-m-b-10 u-p-r-10" style="border-radius: 16rpx;">
- <view class="u-flex wallet-left">
- <view @click="jump('/pagesA/pages/my-points/my-points?point='+data.channelPoint)" class="wallet-item u-flex-col u-col-center">
- <image style="width: 50rpx;height: 50rpx;" src="../static/icon/todayOrder1.png" mode=""></image>
- <text class="wallet-item__title">今日订单</text>
- </view>
- <view @click="jump('/pagesA/pages/my-balance/my-balance?pointValue='+data.balance)" class="wallet-item u-flex-col u-col-center" >
- <image style="width: 50rpx;height: 50rpx;" src="../static/icon/lishiOrder.png" mode=""></image>
- <text class="wallet-item__title">历史订单</text>
- </view>
- </view>
- <view @click="jump('/pagesA/pages/bill/my-bills')" class="wallet-item u-flex-col wallet-right u-col-center">
- <image class="cut-off--line" src="../static/icon/line.png" mode=""></image>
- <image class="wallet-img" src="../static/icon/my-order.png" mode="aspectFill"></image>
- <text class="wallet-item__title">我的订单</text>
- </view>
- </view>
- </template>
- <script>
- export default {
- props:{
- data:Object
- },
- data() {
- return {};
- },
- methods: {
- jump(url){
- this.$emit('click',url)
- }
- }
- };
- </script>
- <style lang="scss">
- // 钱包卡片
- .sh-wallet-box {
- background: #fff;
- height: 180rpx;
- position: relative;
- .wallet-left {
- flex: 4;
- }
- .wallet-right {
- position: relative;
- .cut-off--line {
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- right: (750rpx/5) - 15rpx;
- width: 30rpx;
- height: 136rpx;
- }
- }
- .wallet-item {
- flex: 1;
- .wallet-img {
- width: 50rpx;
- height: 50rpx;
- }
- .wallet-item__detail {
- font-size: 40rpx;
- width: 180rpx;
- text-align: center;
- color: $base-color;
- }
- .wallet-item__title {
- font-size: 26rpx;
- color: #242424;
- margin-top: 20rpx;
- }
- .item-balance::after {
- content: '元';
- font-size: 20rpx;
- margin-left: 4rpx;
- }
- .item-score::after {
- content: '元';
- font-size: 20rpx;
- margin-left: 4rpx;
- }
- .item-coupon::after {
- content: '笔';
- font-size: 20rpx;
- margin-left: 4rpx;
- }
- }
- }
- </style>
|