update two login style
This commit is contained in:
@@ -1,31 +1,35 @@
|
||||
<template>
|
||||
<view class="home">
|
||||
<view class="image-swiper">
|
||||
<u-swiper :list="imageList" mode="dot" border-radius="20"></u-swiper>
|
||||
</view>
|
||||
<view class="image-swiper"><u-swiper :list="imageList" mode="dot" border-radius="20"></u-swiper></view>
|
||||
<view class="tab-swiper">
|
||||
<u-tabs-swiper ref="uTabs" :list="list" :current="current" @change="tabsChange" active-color="#FF780F" inactive-color="#333333" font-size="26" height="98" :show-bar="false" swiperWidth="750" gutter="52"></u-tabs-swiper>
|
||||
<u-tabs-swiper
|
||||
ref="uTabs"
|
||||
:list="list"
|
||||
:current="current"
|
||||
@change="tabsChange"
|
||||
active-color="#FF780F"
|
||||
inactive-color="#333333"
|
||||
font-size="26"
|
||||
height="98"
|
||||
:show-bar="false"
|
||||
swiperWidth="750"
|
||||
gutter="52"
|
||||
></u-tabs-swiper>
|
||||
</view>
|
||||
<swiper :current="swiperCurrent" @animationfinish="animationfinish">
|
||||
<swiper-item class="swiper-item">
|
||||
<scroll-view scroll-y style="height: 100%;width: 100%;" class="order-list">
|
||||
<view v-for="(item, index) in 5" :key="index">
|
||||
<OrderItem :cur="current"></OrderItem>
|
||||
</view>
|
||||
<view v-for="(item, index) in 5" :key="index"><OrderItem :cur="current"></OrderItem></view>
|
||||
</scroll-view>
|
||||
</swiper-item>
|
||||
<swiper-item class="swiper-item">
|
||||
<scroll-view scroll-y style="height: 100%;width: 100%;">
|
||||
<view v-for="(item, index) in 5" :key="index">
|
||||
<OrderItem :cur="current"></OrderItem>
|
||||
</view>
|
||||
<view v-for="(item, index) in 5" :key="index"><OrderItem :cur="current"></OrderItem></view>
|
||||
</scroll-view>
|
||||
</swiper-item>
|
||||
<swiper-item class="swiper-item">
|
||||
<scroll-view scroll-y style="height: 100%;width: 100%;">
|
||||
<view v-for="(item, index) in 5" :key="index">
|
||||
<OrderItem :cur="current"></OrderItem>
|
||||
</view>
|
||||
<view v-for="(item, index) in 5" :key="index"><OrderItem :cur="current"></OrderItem></view>
|
||||
</scroll-view>
|
||||
</swiper-item>
|
||||
<swiper-item class="swiper-item">
|
||||
@@ -34,41 +38,37 @@
|
||||
<view class="select-container">
|
||||
<view class="title">选择骑手</view>
|
||||
<view class="worker" v-if="JSON.stringify(worker) != '{}'">
|
||||
<view>{{ worker.company + " " + worker.name }}</view>
|
||||
<u-icon name="edit-pen" @click="worker={}"></u-icon>
|
||||
<view>{{ worker.company + ' ' + worker.name }}</view>
|
||||
<u-icon name="edit-pen" @click="worker = {}"></u-icon>
|
||||
</view>
|
||||
<view v-else class="select" @click="showSelect=true">
|
||||
<view v-else class="select" @click="showSelect = true">
|
||||
<view>请选择</view>
|
||||
<image src="/static/image/home/5.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="textarea">
|
||||
<view class="title">投诉简介</view>
|
||||
<textarea placeholder-style="color:#999999" placeholder="请输入内容" />
|
||||
<textarea placeholder-style="color:#999999" placeholder="请输入内容" />
|
||||
</view>
|
||||
<!-- 事件 -->
|
||||
<view class="btn" @click="showComplaint=true">确定</view>
|
||||
<view class="btn" @click="showComplaint = true">确定</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</swiper-item>
|
||||
<swiper-item class="swiper-item">
|
||||
<scroll-view scroll-y style="height: 100%;width: 100%;">
|
||||
<view v-for="(item, index) in 5" :key="index">
|
||||
<OrderItem :cur="current"></OrderItem>
|
||||
</view>
|
||||
<view v-for="(item, index) in 5" :key="index"><OrderItem :cur="current"></OrderItem></view>
|
||||
</scroll-view>
|
||||
</swiper-item>
|
||||
<swiper-item class="swiper-item">
|
||||
<scroll-view scroll-y style="height: 100%;width: 100%;">
|
||||
<view v-for="(item, index) in 15" :key="index">
|
||||
<OrderItem :cur="current"></OrderItem>
|
||||
</view>
|
||||
<view v-for="(item, index) in 15" :key="index"><OrderItem :cur="current"></OrderItem></view>
|
||||
</scroll-view>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<view class="release-btn" @click="publish">
|
||||
<image src="/static/home/1.png"></image>
|
||||
<view class="text" @click="release()">发布</view>
|
||||
<image src="../../static/image/index/publish.png"></image>
|
||||
<view class="text">发布</view>
|
||||
</view>
|
||||
<u-select v-model="showSelect" mode="mutil-column-auto" :list="workerList" @confirm="setWorker"></u-select>
|
||||
<u-popup v-model="showComplaint" mode="center" border-radius="10">
|
||||
@@ -84,45 +84,50 @@
|
||||
<view class="publish">
|
||||
<view class="list">
|
||||
<view @click="navto('release/tosign')">
|
||||
<image></image>
|
||||
<image src="../../static/image/index/live.png"></image>
|
||||
<text>直播</text>
|
||||
</view>
|
||||
<view @click="navto('release/index')">
|
||||
<image></image>
|
||||
<view @click="navto('release/index')">
|
||||
<image src="../../static/image/index/photo.png"></image>
|
||||
<text>图文</text>
|
||||
</view>
|
||||
<view @click="navto('release/video')">
|
||||
<image></image>
|
||||
<image src="../../static/image/index/video.png"></image>
|
||||
<text>视频</text>
|
||||
</view>
|
||||
</view>
|
||||
<image class="off"></image>
|
||||
<image src="../../static/image/index/close.png" class="off" @click="close"></image>
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import OrderItem from '@/components/order-item/index'
|
||||
import OrderItem from '@/components/order-item/index';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
list: [{
|
||||
name: '全部订单'
|
||||
}, {
|
||||
name: '试穿订单'
|
||||
}, {
|
||||
name: '待处理订单'
|
||||
}, {
|
||||
name: '投诉骑手'
|
||||
}, {
|
||||
name: '已完成订单'
|
||||
}, {
|
||||
name: '退货订单'
|
||||
}],
|
||||
imageList: [
|
||||
{}, {}, {}
|
||||
list: [
|
||||
{
|
||||
name: '全部订单'
|
||||
},
|
||||
{
|
||||
name: '试穿订单'
|
||||
},
|
||||
{
|
||||
name: '待处理订单'
|
||||
},
|
||||
{
|
||||
name: '投诉骑手'
|
||||
},
|
||||
{
|
||||
name: '已完成订单'
|
||||
},
|
||||
{
|
||||
name: '退货订单'
|
||||
}
|
||||
],
|
||||
imageList: [],
|
||||
showSelect: false,
|
||||
current: 0,
|
||||
swiperCurrent: 0,
|
||||
@@ -157,28 +162,75 @@ export default {
|
||||
]
|
||||
}
|
||||
],
|
||||
publishstate:true
|
||||
}
|
||||
publishstate: false,
|
||||
num: 0
|
||||
};
|
||||
},
|
||||
components: {
|
||||
OrderItem
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
this.getswiper();
|
||||
this.getallorder();
|
||||
this.getorderlist();
|
||||
},
|
||||
methods: {
|
||||
release(){
|
||||
this.publishstate = true
|
||||
// 关闭发布弹窗
|
||||
close() {
|
||||
this.publishstate = false;
|
||||
},
|
||||
publish(){
|
||||
|
||||
// 获取订单列表
|
||||
getorderlist(type) {
|
||||
let that = this;
|
||||
this.$u.api
|
||||
.getorderlist({
|
||||
page: that.num,
|
||||
state_type: type
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.errCode != 0) {
|
||||
} else {
|
||||
}
|
||||
});
|
||||
},
|
||||
// 获取全部订单
|
||||
getallorder() {
|
||||
let that = this;
|
||||
this.$u.api
|
||||
.getorderlist({
|
||||
page: that.num
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.errCode != 0) {
|
||||
} else {
|
||||
}
|
||||
});
|
||||
},
|
||||
// 获取轮播图
|
||||
getswiper() {
|
||||
this.imageList =[{
|
||||
image: '../../static/image/index/swiper.png'
|
||||
},
|
||||
{
|
||||
image: '../../static/image/index/swiper.png'
|
||||
},
|
||||
{
|
||||
image: '../../static/image/index/swiper.png'
|
||||
}
|
||||
]
|
||||
},
|
||||
// 打开发布弹窗
|
||||
publish() {
|
||||
this.publishstate = true;
|
||||
},
|
||||
setWorker(e) {
|
||||
// console.log(e);
|
||||
this.worker = {
|
||||
company: e[0].label,
|
||||
name: e[1].label
|
||||
}
|
||||
};
|
||||
},
|
||||
tabsChange(index) {
|
||||
this.swiperCurrent = index;
|
||||
@@ -189,22 +241,22 @@ export default {
|
||||
this.swiperCurrent = current;
|
||||
this.current = current;
|
||||
},
|
||||
navto(url){
|
||||
navto(url) {
|
||||
this.$u.route({
|
||||
url:`/pages/${url}`
|
||||
})
|
||||
url: `/pages/${url}`
|
||||
});
|
||||
// console.log(`/pages/${url}`)
|
||||
// uni.navigateTo({
|
||||
// url: `/pages/${url}`
|
||||
// });
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.home {
|
||||
min-height: calc(100vh - var(--window-top));
|
||||
background-color: #ECECEC;
|
||||
background-color: #ececec;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
// padding-bottom: 100rpx;
|
||||
@@ -229,14 +281,14 @@ export default {
|
||||
margin-bottom: 60rpx;
|
||||
.title {
|
||||
font-size: 30rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
color: rgba(51, 51, 51, 1);
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.select {
|
||||
padding: 18rpx 20rpx;
|
||||
width: 490rpx;
|
||||
height: 60rpx;
|
||||
background: rgba(236,236,236,1);
|
||||
background: rgba(236, 236, 236, 1);
|
||||
border-radius: 6rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -255,7 +307,7 @@ export default {
|
||||
align-items: center;
|
||||
> view {
|
||||
font-size: 30rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
color: rgba(51, 51, 51, 1);
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
}
|
||||
@@ -265,7 +317,7 @@ export default {
|
||||
display: flex;
|
||||
.title {
|
||||
font-size: 30rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
color: rgba(51, 51, 51, 1);
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
> textarea {
|
||||
@@ -280,10 +332,10 @@ export default {
|
||||
margin: 90rpx auto 0;
|
||||
width: 630rpx;
|
||||
height: 88rpx;
|
||||
background: rgba(255,120,15,1);
|
||||
background: rgba(255, 120, 15, 1);
|
||||
border-radius: 44rpx;
|
||||
font-size: 36rpx;
|
||||
color: rgba(255,255,255,1);
|
||||
color: rgba(255, 255, 255, 1);
|
||||
line-height: 88rpx;
|
||||
text-align: center;
|
||||
}
|
||||
@@ -295,8 +347,8 @@ export default {
|
||||
right: 30rpx;
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
background: rgba(255,120,15,1);
|
||||
box-shadow: 0rpx 6rpx 6rpx 0rpx rgba(255,120,15,0.22);
|
||||
background: rgba(255, 120, 15, 1);
|
||||
box-shadow: 0rpx 6rpx 6rpx 0rpx rgba(255, 120, 15, 0.22);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -310,7 +362,7 @@ export default {
|
||||
}
|
||||
.text {
|
||||
font-size: 20rpx;
|
||||
color: rgba(255,255,255,1);
|
||||
color: rgba(255, 255, 255, 1);
|
||||
}
|
||||
}
|
||||
.confirm-complaint {
|
||||
@@ -321,7 +373,7 @@ export default {
|
||||
width: 420rpx;
|
||||
padding: 55rpx 112rpx;
|
||||
font-size: 28rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
color: rgba(51, 51, 51, 1);
|
||||
line-height: 4r2px;
|
||||
> view:first-child {
|
||||
margin-bottom: 20rpx;
|
||||
@@ -330,38 +382,37 @@ export default {
|
||||
.btn {
|
||||
width: 200rpx;
|
||||
height: 60rpx;
|
||||
background: rgba(255,120,15,1);
|
||||
background: rgba(255, 120, 15, 1);
|
||||
border-radius: 30rpx;
|
||||
text-align: center;
|
||||
line-height: 60rpx;
|
||||
font-size: 28rpx;
|
||||
color: rgba(255,255,255,1);
|
||||
color: rgba(255, 255, 255, 1);
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
.publish{
|
||||
.publish {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 50rpx 84rpx 31rpx 78rpx;
|
||||
image{
|
||||
background-color: #0f0;
|
||||
image {
|
||||
}
|
||||
.list{
|
||||
.list {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
>view{
|
||||
> view {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
>image{
|
||||
> image {
|
||||
width: 94rpx;
|
||||
height: 80rpx;
|
||||
}
|
||||
>text{
|
||||
> text {
|
||||
margin-top: 10rpx;
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
@@ -369,11 +420,11 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
.off{
|
||||
.off {
|
||||
margin-top: 81rpx;
|
||||
width: 37rpx;
|
||||
height: 37rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user