123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- <template>
- <view class="content">
- <view class="header-box">
- <view class="status_bar"></view>
- <view class="title"><text>管配件,就用</text>修配一码通</view>
- </view>
- <view class="body-box">
- <!-- 滚动区域 -->
- <view class="scroll-list">
- <scrollBox :list="list"></scrollBox>
- </view>
- <!-- 保证金 -->
- <view class="notices flex align_center">
- <view><u-icon name="volume" color="#f2a557" :size="28" :margin-right='15'></u-icon> 您有一笔保证金待支付 ¥2,000.00</view> <text>立即支付>></text>
- </view>
- <!-- 名片 -->
- <view class="userCard flex align_center justify_between">
- <view class="userCard-info flex align_center justify_between">
- <view>
- <u-image v-if="!hasLogin" src="/static/def_personal_avatar.png" width="90" height="90"></u-image>
- <open-data v-else type="userAvatarUrl" class="user-photo"></open-data>
- </view>
- <view>
- <view>王杰</view>
- <view>宇博极速汽车维修养护中心</view>
- </view>
- </view>
- <view>
- <u-icon name="arrow-right"></u-icon>
- </view>
- </view>
- <!-- 扫描按钮 -->
- <view class="scanButton flex align_center" @click="openCamera">
- <u-icon name="scan" size="40"></u-icon><text class="ml10">扫描VIN</text>
- </view>
- <!-- 扫描记录 -->
- <u-cell-group :border="false">
- <u-cell-item title="扫描记录" :title-style="{fontSize:'1.1em'}" value="查看全部">
- <u-icon slot="icon" size="38" color="#00aaff" style="margin-right: 0.3em;" name="order"></u-icon>
- </u-cell-item>
- </u-cell-group>
- </view>
- <!-- 扫描记录 -->
- <view class="list-box">
- <u-cell-group :border="false">
- <u-cell-item v-for="item in 10" title="LBVNU79049SB81489" :title-style="{fontSize:'1em'}" value="宝马 54646d">
- <text slot="icon"></text>
- </u-cell-item>
- </u-cell-group>
- <view class="des">仅展示最近10条记录,点击“全部”查看更多</view>
- </view>
- </view>
- </template>
- <script>
- import {
- mapState,
- mapMutations
- } from 'vuex'
- import scrollBox from '@/components/scrollBox.vue'
- export default {
- components: {
- scrollBox
- },
- data() {
- return {
- list:[
- {
- userName: '一部'
- },
- {
- userName: '夏利我'
- },
- {
- userName: '离散'
- },
- {
- userName: '网络'
- },
- {
- userName: '撒打发'
- },
- {
- userName: 'ipho23'
- }
- ]
- }
- },
- computed: {
- ...mapState(['hasLogin'])
- },
- onLoad() {
- },
- methods: {
- openCamera(){
- uni.navigateTo({
- url: "/pages/scan-frame/scan-frame"
- })
- }
- }
- }
- </script>
- <style lang="less">
- .content {
- margin: 0;
- padding: 0;
- height: 100vh;
- display: flex;
- flex-direction: column;
- background-image: linear-gradient(#86defa 0%,#cdeff9 25%,#ffffff 40%);
- .header-box{
- padding: 0.3em 1em;
- .status_bar {
- height: var(--status-bar-height);
- width: 100%;
- }
- .title{
- padding-top: 0.4em;
- font-size: 1.5em;
- color: #000;
- text{
- color: #0077fd;
- }
- }
- }
- .body-box{
- flex-grow: 1;
- padding: 0.5em 1em;
- .notices{
- padding: 0.5em 0 1em;
- view{
- color: #f2a557;
- }
- text{
- color: #0077fd;
- margin-left: 1em;
- }
- }
- .userCard{
- padding:0.8em;
- background: #fff;
- border-radius: 1em;
- box-shadow: 0.2em 0.3em 0.8em #cdeff9;
- .userCard-info{
- > view{
- &:last-child{
- margin-left: 0.5em;
- >view{
- padding: 0.2em;
- }
- }
- }
- }
- }
- .scanButton{
- margin: 0.6em 0;
- padding: 0.5em;
- background: #1283d4;
- color: #fff;
- font-size: 1.5em;
- border-radius: 5em;
- justify-content: center;
- &:active{
- opacity: 0.8;
- }
- }
- .ml10{
- margin-left: 0.2em;
- }
- }
- .list-box{
- padding: 0 1em;
- overflow: auto;
- .des{
- text-align: center;
- padding: 1em 0;
- color: #999;
- font-size: 0.8em;
- }
- }
- }
- </style>
|