瀏覽代碼

2023年7月25日14:34:29

yxb
wq 2 年之前
父節點
當前提交
02d25539e8
共有 1 個檔案被更改,包括 8 行新增5 行删除
  1. 8
    5
      pages/user/user.vue

+ 8
- 5
pages/user/user.vue 查看文件

<image :src="`${$imgUrl}user/bg-user-2.png`" class="bg-head" mode="widthFix"></image> <image :src="`${$imgUrl}user/bg-user-2.png`" class="bg-head" mode="widthFix"></image>
<!-- <view class="bar" :style="{ top: top, height: height, lineHeight: height }">我的-九州ETC</view> --> <!-- <view class="bar" :style="{ top: top, height: height, lineHeight: height }">我的-九州ETC</view> -->
<view class="content" :style="{ top: margin + 'px' }"> <view class="content" :style="{ top: margin + 'px' }">
<!-- <view class="content"> -->
<!-- <view class="content"> -->
<view class="head" :style="{ marinTop: margin + 'px' }"> <view class="head" :style="{ marinTop: margin + 'px' }">
<view class="avatar"> <view class="avatar">
<image :src="`${$imgUrl}user/icon-avatar.png`" :class="!state.data.opId ? 'unlogin' : ''"> <image :src="`${$imgUrl}user/icon-avatar.png`" :class="!state.data.opId ? 'unlogin' : ''">
<text>总消费</text> <text>总消费</text>
</view> </view>
<view class="amount m-top"> <view class="amount m-top">
<text>¥ {{state.monthFlowingVo.flowingNum/100}}</text>
<text>¥ {{state.monthFlowingVo.money/100}}</text>
<text>¥
{{(state.monthFlowingVo.flowingNum ? state.monthFlowingVo.flowingNum : 0) /100}}</text>
<text>¥
{{(state.monthFlowingVo.flowingNum ? state.monthFlowingVo.flowingNum : 0)/100}}</text>
</view> </view>
<view class="line m-top"> <view class="line m-top">
<view class="line1" <view class="line1"
:style="{width: state.monthFlowingVo.flowingNum*100/state.monthFlowingVo.money+'%'}">
:style="{width: (state.monthFlowingVo.flowingNum ? state.monthFlowingVo.flowingNum : 0)*100/state.monthFlowingVo.money+'%'}">
</view> </view>
<view class="line2"></view> <view class="line2"></view>
</view> </view>
console.log("state.list", state.list, data.length) console.log("state.list", state.list, data.length)
}) })
.catch((err) => { .catch((err) => {
console.log('输出内容',err)
console.log('输出内容', err)
}); });
} }
const getUserInfo = () => { const getUserInfo = () => {
filter: grayscale(100%); filter: grayscale(100%);
opacity: 0.7; opacity: 0.7;
} }

.wrapper { .wrapper {
position: relative; position: relative;
background: #fff; background: #fff;

Loading…
取消
儲存