|
|
|
|
@ -16,54 +16,27 @@
|
|
|
|
|
<view class="title">{{userProfile.nickName || '匿名用户'}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="myOrder">
|
|
|
|
|
<view class="orderTab">
|
|
|
|
|
<uni-segmented-control :current="current" :values="items.map(v=>v.title)" @clickItem="onClickItem" styleType="text" activeColor="#FF578A"></uni-segmented-control>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="orderTab">我的订单</view>
|
|
|
|
|
<view class="content">
|
|
|
|
|
<view class="tabCol" v-show="current === 0">
|
|
|
|
|
<view class="tabCol">
|
|
|
|
|
<view class="orderMenu">
|
|
|
|
|
<view class="menuCol" @tap="nodata()">
|
|
|
|
|
<view class="menuCol" @tap="goOrderCol(0)">
|
|
|
|
|
<image src="../../static/icon_daifukuan@2x.png"></image>
|
|
|
|
|
<text>待付款</text>
|
|
|
|
|
<text>待确认</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="menuCol" @tap="nodata()">
|
|
|
|
|
<view class="menuCol" @tap="goOrderCol(10)">
|
|
|
|
|
<image src="../../static/icon_daifuwu@2x.png"></image>
|
|
|
|
|
<text>待服务</text>
|
|
|
|
|
<text>待支付</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="menuCol" @tap="nodata()">
|
|
|
|
|
<view class="menuCol" @tap="goOrderCol(20)">
|
|
|
|
|
<image src="../../static/icon_yifuwu@2x.png"></image>
|
|
|
|
|
<text>已服务</text>
|
|
|
|
|
<text>进行中</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="menuCol" @tap="nodata()">
|
|
|
|
|
<view class="menuCol" @tap="goOrderCol(100)">
|
|
|
|
|
<image src="../../static/icon_daipingjia@2x.png"></image>
|
|
|
|
|
<text>待评价</text>
|
|
|
|
|
<text>已完成</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="menuCol allOrder" @tap="nodata()">
|
|
|
|
|
<image src="../../static/icon_dingdan@2x.png"></image>
|
|
|
|
|
<text>全部订单</text>
|
|
|
|
|
<image class="line" src="../../static/bg_yinying@2x.png"></image>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="tabCol" v-show="current === 1">
|
|
|
|
|
<view class="orderMenu">
|
|
|
|
|
<view class="menuCol" @tap="nodata()">
|
|
|
|
|
<image src="../../static/icon_daifukuan@2x.png"></image>
|
|
|
|
|
<text>待付款</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="menuCol" @tap="nodata()">
|
|
|
|
|
<image src="../../static/icon_daifahuo@2x.png"></image>
|
|
|
|
|
<text>待发货</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="menuCol" @tap="nodata()">
|
|
|
|
|
<image src="../../static/icon_yishouhuo@2x.png"></image>
|
|
|
|
|
<text>待收货</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="menuCol" @tap="nodata()">
|
|
|
|
|
<image src="../../static/icon_daipingjia@2x.png"></image>
|
|
|
|
|
<text>待评价</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="menuCol allOrder" @tap="nodata()">
|
|
|
|
|
<view class="menuCol allOrder" @tap="toMyOrder()">
|
|
|
|
|
<image src="../../static/icon_dingdan@2x.png"></image>
|
|
|
|
|
<text>全部订单</text>
|
|
|
|
|
<image class="line" src="../../static/bg_yinying@2x.png"></image>
|
|
|
|
|
@ -176,11 +149,13 @@
|
|
|
|
|
this.stytemInfo();
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
let userProfile = uni.getStorageSync('user_profile')
|
|
|
|
|
if (userProfile) {
|
|
|
|
|
this.userProfile = userProfile
|
|
|
|
|
} else {
|
|
|
|
|
uni.navigateTo({ url: '../login/index?showProfile=1'})
|
|
|
|
|
if (this.checkLogin()) {
|
|
|
|
|
let userProfile = uni.getStorageSync('user_profile')
|
|
|
|
|
if (userProfile) {
|
|
|
|
|
this.userProfile = userProfile
|
|
|
|
|
} else {
|
|
|
|
|
uni.navigateTo({ url: '../login/index?showProfile=1'})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onPageScroll(e) {
|
|
|
|
|
@ -207,6 +182,16 @@
|
|
|
|
|
url:"../../packages/packagePromotion/pages/speadApply/speadApply"
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
toMyOrder(){
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url:"../../packages/packageOrder/pages/myOrder/myOrder"
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
goOrderCol(v){
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url:"../../packages/packageOrder/pages/myOrder/myOrder?status=" + v
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
nodata(){
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: '正在建设中',
|
|
|
|
|
@ -270,9 +255,9 @@
|
|
|
|
|
image{width:112rpx;height:112rpx;border-radius: 50%;margin-right:30rpx;}
|
|
|
|
|
.title{font-size: 36rpx;font-weight: 500;color: #FFFFFF;line-height: 36px;}
|
|
|
|
|
}
|
|
|
|
|
.myOrder{width:710rpx;background:rgba(255,255,255,0.92);border-radius: 16rpx;margin:30rpx auto 0 auto;}
|
|
|
|
|
.myOrder{width:710rpx;background:rgba(255,255,255,1);border-radius: 16rpx;margin:30rpx auto 0 auto;}
|
|
|
|
|
.orderTab{
|
|
|
|
|
font-size: 32rpx;font-weight: 400;width:60%;margin-left:10rpx;padding-top:15rpx;
|
|
|
|
|
font-size: 32rpx;font-weight: 400;width:60%;margin-left:10rpx;padding:30rpx 30rpx 0 30rpx;
|
|
|
|
|
}
|
|
|
|
|
.segmented-control__item--text{border-color: rgba(255,255,255,0)!important;}
|
|
|
|
|
.segmented-control__text{color:#666666;}
|
|
|
|
|
|