Commit 0cfced19 authored by 程新智's avatar 程新智 👽

适配样式

parent d3052f6f
<template> <template>
<view class="appCotent" v-if="show"> <view class="appCotent" v-if="show">
<view class="index-content"> <view class="index-content">
<u-swiper :radius="0" :height="210" :list="list5" circular @change="e => current = e.current" :autoplay="true"> <u-swiper radius="0 0 0 30px" :height="210" :list="list5" circular @change="e => current = e.current" :autoplay="true">
<view slot="indicator" class="indicator"> <view slot="indicator" class="indicator">
<view class="indicator__dot" v-for="(item, index) in list5" :key="index" :class="[index === current && 'indicator__dot--active']"> <view class="indicator__dot" v-for="(item, index) in list5" :key="index" :class="[index === current && 'indicator__dot--active']">
</view> </view>
...@@ -69,13 +69,16 @@ export default { ...@@ -69,13 +69,16 @@ export default {
methods: { methods: {
getPrice() { getPrice() {
let token = uni.getStorageSync('userToken'); let token = uni.getStorageSync('userToken');
if(!token){ if (!token) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/binding/index?url=/pages/main&index=0' url: '/pages/binding/index?url=/pages/main&index=0'
}) })
return; return;
} }
let opts = { url: '/app/user/info', method: 'get' } let opts = {
url: '/app/user/info',
method: 'get'
}
this.http.httpTokenRequest(opts, {}).then(res => { this.http.httpTokenRequest(opts, {}).then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
let freeMoveFlag = res.data.data.freeMoveFlag let freeMoveFlag = res.data.data.freeMoveFlag
...@@ -143,6 +146,11 @@ export default { ...@@ -143,6 +146,11 @@ export default {
<style lang="scss"> <style lang="scss">
.index-content { .index-content {
/deep/ .u-swiper__indicator {
position: absolute;
right: 30rpx !important;
}
background-color: #f9f9f9; background-color: #f9f9f9;
height: 100%; height: 100%;
...@@ -273,10 +281,6 @@ export default { ...@@ -273,10 +281,6 @@ export default {
} }
} }
/deep/ .u-swiper__indicator {
right: 0 !important;
}
/deep/ .u-swiper { /deep/ .u-swiper {
border-radius: 0 0 0 100rpx !important; border-radius: 0 0 0 100rpx !important;
} }
...@@ -304,6 +308,7 @@ export default { ...@@ -304,6 +308,7 @@ export default {
background-color: rgba(0, 0, 0, 0.35); background-color: rgba(0, 0, 0, 0.35);
border-radius: 100%; border-radius: 100%;
width: 35px; width: 35px;
text-align: right;
@include flex; @include flex;
justify-content: center; justify-content: center;
......
...@@ -15,10 +15,10 @@ ...@@ -15,10 +15,10 @@
<image src="@/static/move-car/my-move-car4.png" /> <image src="@/static/move-car/my-move-car4.png" />
</div> </div>
<div class="top__car__phone"> <div class="top__car__phone">
<div> <div class="top__car">
{{vo.carNo}} {{vo.carNo}}
</div> </div>
<div> <div class="top__phone">
{{vo.userMobile}} {{vo.userMobile}}
</div> </div>
</div> </div>
...@@ -158,8 +158,7 @@ export default { ...@@ -158,8 +158,7 @@ export default {
} }
.top__car__phone { .top__car__phone {
width: 60%; width: 340rpx;
.top__car { .top__car {
font-size: 36rpx; font-size: 36rpx;
font-family: PingFang SC; font-family: PingFang SC;
...@@ -180,6 +179,7 @@ export default { ...@@ -180,6 +179,7 @@ export default {
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 500; font-weight: 500;
color: #666666; color: #666666;
padding-bottom: 50rpx;
} }
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
--> -->
<template> <template>
<view class="appCotent"> <view class="appCotent">
<div class="myRecord"> <div class="myRecord">
<scroll-list ref="list" :option="option" @load="load"> <scroll-list ref="list" :option="option" @load="load">
<div class="record__item" v-for="(vo,inx) in items" :key="inx"> <div class="record__item" v-for="(vo,inx) in items" :key="inx">
<div class="item__top"> <div class="item__top">
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
</div> </div>
</scroll-list> </scroll-list>
</div> </div>
</view> </view>
</template> </template>
...@@ -54,7 +54,10 @@ export default { ...@@ -54,7 +54,10 @@ export default {
load(paging) { load(paging) {
setTimeout(() => { setTimeout(() => {
let list = []; let list = [];
let opts = { url: '/app/moveLog/my/list?pageSize='+paging.size+'&pageNum='+paging.page, method: 'get' }; let opts = {
url: '/app/moveLog/my/list?pageSize=' + paging.size + '&pageNum=' + paging.page,
method: 'get'
};
this.http.httpTokenRequest(opts, {}).then(res => { this.http.httpTokenRequest(opts, {}).then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
list = res.data.rows list = res.data.rows
...@@ -71,14 +74,17 @@ export default { ...@@ -71,14 +74,17 @@ export default {
// this.$refs.list.loadFail() // this.$refs.list.loadFail()
}, this.$u.random(100, 1000)); }, this.$u.random(100, 1000));
}, },
goDetail(id){ goDetail(id) {
//console.log(id) //console.log(id)
uni.navigateTo({ uni.navigateTo({
url: '/pagesB/pages/move-car/recordDetail?id='+id url: '/pagesB/pages/move-car/recordDetail?id=' + id
}) })
}, },
getMyMoveLogList(){ getMyMoveLogList() {
let opts = { url: '/app/moveLog/my/list', method: 'get' }; let opts = {
url: '/app/moveLog/my/list',
method: 'get'
};
this.http.httpTokenRequest(opts, {}).then(res => { this.http.httpTokenRequest(opts, {}).then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
this.items = res.data.rows this.items = res.data.rows
...@@ -112,6 +118,13 @@ export default { ...@@ -112,6 +118,13 @@ export default {
padding-bottom: 30rpx; padding-bottom: 30rpx;
margin-bottom: 30rpx; margin-bottom: 30rpx;
.top__time {
font-size: 26rpx;
font-family: PingFang SC;
font-weight: 500;
color: #666666;
}
.top__state { .top__state {
background: #cfffe2; background: #cfffe2;
width: 70rpx; width: 70rpx;
......
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
.list__item { .list__item {
padding: 28rpx; padding: 28rpx;
box-sizing: border-box; box-sizing: border-box;
width: 620rpx; width: 640rpx;
height: 220rpx; height: 220rpx;
background: #ffffff; background: #ffffff;
box-shadow: 0rpx 0rpx 28rpx 1rpx rgba(232, 232, 232, 0.16); box-shadow: 0rpx 0rpx 28rpx 1rpx rgba(232, 232, 232, 0.16);
......
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
}" itemStyle="padding-left: 15px; padding-right: 15px; height: 34px;"> }" itemStyle="padding-left: 15px; padding-right: 15px; height: 34px;">
</u-tabs> </u-tabs>
<scroll-list ref="list" :option="option" @load="load"> <scroll-list ref="list" :option="option" @load="load">
<div class="order__content" v-for="(item,index) in orderList"> <u-gap bgColor="transparent" height="15"></u-gap>
<div class="order__content" v-for="(item,index) in orderList" :key="index">
<div class="order__items" @click="orderDetail(item.id)" v-if="(current===0||current===1) && item.orderStatus == 10"> <div class="order__items" @click="orderDetail(item.id)" v-if="(current===0||current===1) && item.orderStatus == 10">
<div class="item"> <div class="item">
<div class="item__time"> <div class="item__time">
...@@ -313,9 +314,8 @@ export default { ...@@ -313,9 +314,8 @@ export default {
uni-view { uni-view {
background: #fff; background: #fff;
} }
.order__content { .order__content {
padding: 40rpx; padding:0 40rpx;
.order__items { .order__items {
background: #FFFFFF; background: #FFFFFF;
...@@ -370,7 +370,7 @@ export default { ...@@ -370,7 +370,7 @@ export default {
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
width: 320rpx; width: 340rpx;
padding-right: 70rpx; padding-right: 70rpx;
} }
......
...@@ -209,7 +209,7 @@ export default { ...@@ -209,7 +209,7 @@ export default {
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 500; font-weight: 500;
color: #666666; color: #666666;
padding: 0 14rpx; padding-right: 14rpx;
} }
span:nth-of-type(2) { span:nth-of-type(2) {
...@@ -292,7 +292,7 @@ export default { ...@@ -292,7 +292,7 @@ export default {
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
width: 320rpx; width: 340rpx;
padding-right: 70rpx; padding-right: 70rpx;
} }
......
...@@ -24,3 +24,7 @@ ...@@ -24,3 +24,7 @@
padding-left: 10rpx; padding-left: 10rpx;
width: 70rpx !important; width: 70rpx !important;
} }
/deep/ .u-swiper__indicator {
position: absolute;
right: 30rpx !important;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment