Commit 89f7ed66 authored by youjie's avatar youjie

个人中心

parent 26718e28
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
text-align: center; text-align: center;
font-family: dinAli; font-family: dinAli;
text-align: center; text-align: center;
line-height: 30rpx; line-height: 34rpx;
font-weight: bolder; font-weight: bolder;
} }
.vip-box-unactive .step-item.active{ .vip-box-unactive .step-item.active{
......
<template>
<view class="vip-box">
<template v-if="vipInfo && vipInfo.vipOrderCount<vipInfo.vipCondition">
<view class="vip-box-unactive row">
<view class="col">
<view class="step-box row items-center">
<view class="line" :style="{width:`${(vipInfo.vipOrderCount/vipInfo.vipCondition)*100}%`}"></view>
<view class="step-item" :class="{'active':x<vipInfo.vipOrderCount}" v-for="x in vipInfo.vipCondition">
{{x+1}}
</view>
</view>
</view>
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638732528736165089.png" class="vip-logo"></image>
</view>
</template>
</view>
</template>
<script>
export default {
name:"vip",
props:['statistics'],
data() {
return {
vipInfo:null,
};
},
watch:{
statistics:{
handler(newVal,oldVal){
this.vipInfo = newVal
},
deep:true,
}
},
mounted() {
},
methods:{
}
}
</script>
<style scoped>
@import url('../../asset/css/flex.css');
@font-face {
font-family: "dinAli";
src: url("//at.alicdn.com/wf/webfont/MQHUV6e56ce5/BFOHNMvFqM80.woff2") format("woff2");
font-display: swap;
}
.vip-box{
padding-top: 28rpx;
}
.vip-box-unactive{
padding:0rpx;
background: linear-gradient(90deg, #3F423F, #313131);
position: relative;
border-radius: 18rpx;
}
.vip-box-unactive .vip-logo{
right: 34rpx;
width: 87rpx;
height: 99rpx;
top: -37rpx;
position: absolute;
z-index: 4;
}
.vip-box-unactive .remark{
font-size: 24rpx;
color: #E2C27A;
line-height: 1;
margin-bottom: 16rpx;
}
.vip-box-unactive .step-box{
position: relative;
justify-content: space-between;
}
.vip-box-unactive .step-box::after,
.vip-box-unactive .step-box .line{
height: 10rpx;
background: #C99E59;
border-radius: 5rpx;
left: 0;
top: 10rpx;
position: absolute;
z-index: 2;
}
.vip-box-unactive .step-box::after{
z-index: 1;
background: #2E2E2E;
border-radius: 0;
right: 0;
content: ' ';
display: block;
}
.vip-box-unactive .step-item{
/* font-weight: 400; */
font-size: 24rpx;
color: #494949;
width: 30rpx;
height: 30rpx;
background: #2E2E2E;
border-radius: 50%;
position: relative;
z-index: 3;
text-align: center;
font-family: dinAli;
text-align: center;
line-height: 34rpx;
font-weight: bolder;
}
.vip-box-unactive .step-item.active{
background: linear-gradient(270deg, #C99E59, #FFFFB3);
color: #583F2C;
}
</style>
\ No newline at end of file
...@@ -479,6 +479,6 @@ export default { ...@@ -479,6 +479,6 @@ export default {
background: #CBCBCB; background: #CBCBCB;
} }
.visaList.active .visaListL image{ .visaList.active .visaListL image{
filter: grayscale(100%); // filter: grayscale(100%);
} }
</style> </style>
\ No newline at end of file
...@@ -222,7 +222,7 @@ ...@@ -222,7 +222,7 @@
</view> </view>
</template> </template>
<cancelProgress v-if="order.OrderStatus==2||order.OrderStatus==5" :datas="order" type="1"></cancelProgress> <cancelProgress v-if="order.OrderStatus==5" :datas="order" type="1"></cancelProgress>
<view style="padding-bottom: 20rpx;"></view> <view style="padding-bottom: 20rpx;"></view>
</scroll-view> </scroll-view>
<view class="botton-box" :style="{paddingBottom:`${bottomSafeHeight}rpx`}"> <view class="botton-box" :style="{paddingBottom:`${bottomSafeHeight}rpx`}">
......
...@@ -445,7 +445,7 @@ ...@@ -445,7 +445,7 @@
</view> </view>
</view> </view>
<view class="empty-block"></view> <view class="empty-block"></view>
<cancelProgress :datas="orderData" v-if="orderData.OrderStatus==2||orderData.OrderStatus==5"></cancelProgress> <cancelProgress v-if="orderData.OrderStatus==5" :datas="orderData"></cancelProgress>
<view class="empty-block"></view> <view class="empty-block"></view>
<view style="padding: 50rpx 40rpx"> <view style="padding: 50rpx 40rpx">
<view class="big-title"> <view class="big-title">
......
<template> <template>
<view class="userHeaderBox"> <view class="userHeaderBox" v-if="statistics">
<view class="titlenav" :style="{ paddingTop: nav }">{{ pageTitle }}</view> <view class="titlenav" :style="{ paddingTop: nav }">{{ pageTitle }}</view>
<view class="userHeadPic row"> <view class="userHeadPic row">
<view class="userHeadPicL"> <view class="userHeadPicL">
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</view> </view>
<view class="col column"> <view class="col column">
<text v-if="b2b_user_info&&b2b_user_info.name" <text v-if="b2b_user_info&&b2b_user_info.name"
class="userHeadPicR_title" @click="navigatorToProfile"> class="userHeadPicR_title" @click="goUrl('/pages/user-center/user-profile')">
{{ b2b_user_info.name }} {{ b2b_user_info.name }}
</text> </text>
<text v-else-if="mall_UserInfo&&mall_UserInfo.Name" <text v-else-if="mall_UserInfo&&mall_UserInfo.Name"
...@@ -18,35 +18,38 @@ ...@@ -18,35 +18,38 @@
<text v-else class="userHeadPicR_title" @click="login(user_info)"> <text v-else class="userHeadPicR_title" @click="login(user_info)">
立即登录 立即登录
</text> </text>
<text class="userHeadPicR_text">销售:{{ b2b_user_info.salesBaseInfo.emName }}等3人</text> <text class="userHeadPicR_text" v-if="statistics.saleList&&statistics.saleList.length>0">
<!-- #ifdef MP-DI -->销售:{{ b2b_user_info.salesBaseInfo.emName }}<!-- #endif -->
<!-- #ifdef MP-AG -->销售:{{ statistics.saleList[0].saleName }}<template v-if="statistics.saleList.length>0">{{statistics.saleList.length}}</template><!-- #endif -->
</text>
</view> </view>
</view> </view>
<view class="userHeadPasBox"> <view class="userHeadPasBox">
<view class="userHeadPas column"> <view class="userHeadPas column">
<view class="userHeadPasTop"> <view class="userHeadPasTop">
<view class="userHeadPasT_Num row-sb-n"> <view class="userHeadPasT_Num row-sb-n" v-if="statistics.balance>=0">
<!-- #ifdef MG-AG--> <!-- #ifdef MP-AG-->
<view class="column"> <view class="column">
<text>{{formatNumberWithUnit(user_info.balance)}}</text> <text>{{formatNumberWithUnit(statistics.balance)}}</text>
<text class="userHeadPasTTeT"> <text class="userHeadPasTTeT">
幸福存折 幸福存折
</text> </text>
</view> </view>
<!-- #endif --> <!-- #endif -->
<view class="column"> <view class="column">
<text>{{ user_info.integral }}</text> <text>{{ statistics.integral }}</text>
<text class="userHeadPasTTeT"> <text class="userHeadPasTTeT">
我的积分 我的积分
</text> </text>
</view> </view>
<view class="column"> <view class="column">
<text> <text>
{{formatNumberWithUnit(user_info.totalSavings)}} {{formatNumberWithUnit(statistics.totalSavings)}}
</text> </text>
<text class="userHeadPasTTeT">累计已省</text> <text class="userHeadPasTTeT">累计已省</text>
</view> </view>
<view class="column"> <view class="column" @click="goUrl('/pages/coupon/index/index')">
<text>{{ user_info.couponNum }}</text> <text>{{ statistics.couponNum }}</text>
<text class="userHeadPasTTeT">优惠券</text> <text class="userHeadPasTTeT">优惠券</text>
</view> </view>
</view> </view>
...@@ -54,33 +57,11 @@ ...@@ -54,33 +57,11 @@
<view class="userHeadPasButtom column"> <view class="userHeadPasButtom column">
<view class="userHeadPasButText"> <view class="userHeadPasButText">
再完成 再完成
<text class="userHeadPasButTNum">4</text>即可成为 <text class="userHeadPasButTNum">{{statistics&&statistics.vipCondition?(statistics.vipCondition-statistics.vipOrderCount):''}}</text>即可成为
<text class="userHeadPasButTVip">VIP</text>享永久折扣! <text class="userHeadPasButTVip">VIP</text>享永久折扣!
<img class="userHeadPasButImg" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638732528690203686.png"/> <img class="userHeadPasButImg" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638732528690203686.png"/>
</view> </view>
<view class="jz_LineDetaVipPr"> <vipUser :statistics="statistics"></vipUser>
<view class="jz_LineDetaVPB">
<view class="jz_LineDetaVPBBox" v-for="(item,index) in progress"
:key="index">
<view class="jz_LineDetaVPBLine" :style="{'opacity':index==0?'0':1}"></view>
<view class="jz_LineDetaVPBN">{{item.text}}</view>
<view class="jz_LineDetaVPBBoxI" v-if="item.img"><img :src="item.img"/></view>
<view class="jz_LineDetaVPBLine" v-else></view>
</view>
</view>
<view class="jz_LineDetaVPB jz_LineDetaVPBY">
<view class="jz_LineDetaVPBBox" v-for="(item,index) in progress"
:key="index"
:class="[item.colorStyle]">
<view class="jz_LineDetaVPBLine" :style="{'opacity':index==0?'0':1}"></view>
<view class="jz_LineDetaVPBN">{{item.text}}</view>
<view class="jz_LineDetaVPBBoxI" v-if="item.img"></view>
<view class="jz_LineDetaVPBLine"
:class="[item.radiusR]" v-else></view>
</view>
</view>
</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -88,50 +69,29 @@ ...@@ -88,50 +69,29 @@
</template> </template>
<script> <script>
import vipUser from "@/components/vip/vipUser.vue";
export default { export default {
props:['user_info','b2b_user_info'], props:['user_info','statistics','b2b_user_info'],
components: {vipUser},
data() { data() {
return { return {
pageTitle: "个人中心", pageTitle: "个人中心",
nav: 0, nav: 0,
progress:[ progress:[],
{
text:'1',
colorStyle: 'active',
radiusL: '',
radiusR: '',
},
{
text:'2',
colorStyle: 'active',
radiusL: '',
radiusR: '',
},
{
text:'3',
colorStyle: 'active',
radiusL: '',
radiusR: '',
},
{
text:'4',
colorStyle: 'active',
radiusL: '',
radiusR: '',
},
{
text:'',
colorStyle: '',
radiusL: '',
radiusR: '',
img:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638732528736165089.png'
},
],
}; };
}, },
components: {},
computed: { computed: {
},
watch:{
statistics:{
handler(newVal,oldVal){
},
deep:true,
}
}, },
created() { created() {
...@@ -177,6 +137,19 @@ ...@@ -177,6 +137,19 @@
}) })
// #endif // #endif
}, },
goUrl(url){
if(url=='/pages/user-center/user-profile'){
// #ifdef MP-DI
uni.navigateTo({
url:url
})
return
// #endif
}
uni.navigateTo({
url:url
})
}
}, },
}; };
</script> </script>
...@@ -231,8 +204,8 @@ ...@@ -231,8 +204,8 @@
} }
.jz_LineDetaVipPr{ .jz_LineDetaVipPr{
margin-top: 28rpx; margin-top: 28rpx;
position: relative; // position: relative;
left: -20rpx; // left: -20rpx;
} }
.jz_LineDetaVip{ .jz_LineDetaVip{
width: 100%; width: 100%;
...@@ -315,7 +288,7 @@ ...@@ -315,7 +288,7 @@
} }
.jz_LineDetaVPBY{ .jz_LineDetaVPBY{
position: absolute; position: absolute;
left: -29rpx; left: -0;
right: 0; right: 0;
top: 0; top: 0;
} }
...@@ -344,7 +317,7 @@ ...@@ -344,7 +317,7 @@
padding-top: 7rpx; padding-top: 7rpx;
} }
.userHeadPasButtom{ .userHeadPasButtom{
padding: 21rpx 0 40rpx 39rpx; padding: 30rpx 0 50rpx 39rpx;
} }
.userHeadPasButText{ .userHeadPasButText{
font-family: PingFang SC; font-family: PingFang SC;
......
...@@ -25,31 +25,39 @@ ...@@ -25,31 +25,39 @@
</view> </view>
<view class="userHeadInfoBox"> <view class="userHeadInfoBox">
<view class="userHeadInfo"> <view class="userHeadInfo">
<view class="userHeadInfo_Name">{{ b2b_user_info.name }}</view> <view class="userHeadInfo_Name">
<view class="userHeadInfo_text">销售:{{ b2b_user_info.salesBaseInfo.emName }}等3位</view> <template v-if="b2b_user_info&&b2b_user_info.name">{{ b2b_user_info.name }}</template>
<template v-if="mall_UserInfo&&mall_UserInfo.Name" >{{ mall_UserInfo.Name }}</template>
</view>
<view class="userHeadInfo_text" v-if="statistics.saleList&&statistics.saleList.length>0">
<!-- #ifdef MP-DI -->销售:{{ b2b_user_info.salesBaseInfo.emName }}<!-- #endif -->
<!-- #ifdef MP-AG -->销售:{{ statistics.saleList[0].saleName }}<template v-if="statistics.saleList.length>0">{{statistics.saleList.length}}</template><!-- #endif -->
</view>
<image class="userHeadInfo_vip" mode="aspectFit" <image class="userHeadInfo_vip" mode="aspectFit"
style="width: 385rpx;height: 49rpx;" style="width: 385rpx;height: 49rpx;"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/202502111735zk.png" /> src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/202502111735zk.png" />
<view class="userHeadPasTop"> <view class="userHeadPasTop">
<view class="userHeadPasT_Num row-sbs-n"> <view class="userHeadPasT_Num row-sbs-n" v-if="statistics">
<!-- #ifdef MP-AG-->
<view class="column"> <view class="column">
<text>60k</text> <text>{{formatNumberWithUnit(statistics.balance)}}</text>
<text class="userHeadPasTTeT"> <text class="userHeadPasTTeT">
幸福存折 幸福存折
</text> </text>
</view> </view>
<!-- #endif -->
<view class="column"> <view class="column">
<text>1852</text> <text>{{ statistics.integral }}</text>
<text class="userHeadPasTTeT"> <text class="userHeadPasTTeT">
我的积分 我的积分
</text> </text>
</view> </view>
<view class="column"> <view class="column">
<text>248.2w</text> <text>{{formatNumberWithUnit(statistics.totalSavings)}}</text>
<text class="userHeadPasTTeT">累计已省</text> <text class="userHeadPasTTeT">累计已省</text>
</view> </view>
<view class="column"> <view class="column" @click="goUrl('/pages/coupon/index/index')">
<text class="userHeadPasTextb">3</text> <text class="userHeadPasTextb">{{ statistics.couponNum }}</text>
<text class="userHeadPasTTeT">优惠券</text> <text class="userHeadPasTTeT">优惠券</text>
</view> </view>
</view> </view>
...@@ -62,44 +70,11 @@ ...@@ -62,44 +70,11 @@
<script> <script>
export default { export default {
props:['user_info','b2b_user_info'], props:['user_info','b2b_user_info','statistics'],
data() { data() {
return { return {
pageTitle: "个人中心", pageTitle: "个人中心",
nav: 0, nav: 0,
progress:[
{
text:'1',
colorStyle: 'active',
radiusL: '',
radiusR: '',
},
{
text:'2',
colorStyle: 'active',
radiusL: '',
radiusR: '',
},
{
text:'3',
colorStyle: 'active',
radiusL: '',
radiusR: '',
},
{
text:'4',
colorStyle: 'active',
radiusL: '',
radiusR: '',
},
{
text:'',
colorStyle: 'active',
radiusL: '',
radiusR: '',
img:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638732528736165089.png'
},
],
}; };
}, },
components: {}, components: {},
...@@ -149,6 +124,11 @@ ...@@ -149,6 +124,11 @@
// #endif // #endif
}, },
goUrl(url){
uni.navigateTo({
url:url
})
}
}, },
}; };
</script> </script>
......
<template> <template>
<view style="width:100vw;height:100vh;" class="column"> <view style="width:100vw;height:100vh;" class="column">
<scroll-view :scroll-y="true" @scroll="scrollHandler" @scrolltoupper="scrollTopHandler" class="col" style="height: 1px;width: 100%;"> <scroll-view :scroll-y="true" @scroll="scrollHandler"
<view class="userStyle" style="min-height:100vh"> @scrolltoupper="scrollTopHandler" class="col"
style="height: 1px;width: 100%;">
<view class="userStyle">
<view class="headStatus" v-if="scrollTop > 50" :style="{ <view class="headStatus" v-if="scrollTop > 50" :style="{
zIndex: scrollTop < 10 ? 'unset' : 2, zIndex: scrollTop < 10 ? 'unset' : 2,
opacity: scrollTop < 10 ? '100' : scrollTop, opacity: scrollTop < 10 ? '100' : scrollTop,
...@@ -9,8 +11,8 @@ ...@@ -9,8 +11,8 @@
<view class="title">{{ pageTitle }}</view> <view class="title">{{ pageTitle }}</view>
</view> </view>
<view class="userBox"> <view class="userBox">
<vipUserHeader v-if="user_info.isVip==1" :user_info="user_info" :b2b_user_info="b2b_user_info" @login="openAuth"></vipUserHeader> <vipUserHeader v-if="statistics&&statistics.isVip==1" :user_info="user_info" :statistics="statistics" :b2b_user_info="b2b_user_info" @login="openAuth"></vipUserHeader>
<userHeader v-else :user_info="user_info" :b2b_user_info="b2b_user_info" @login="openAuth"></userHeader> <userHeader v-if="statistics&&statistics.isVip!=1" :user_info="user_info" :statistics="statistics" :b2b_user_info="b2b_user_info" @login="openAuth"></userHeader>
<view class="userMyOrderBox"> <view class="userMyOrderBox">
<view style="position: relative;top:-13rpx"> <view style="position: relative;top:-13rpx">
<view class="userMyOrder"> <view class="userMyOrder">
...@@ -27,36 +29,59 @@ ...@@ -27,36 +29,59 @@
<view class="order_bar_item" @click="goUrl('/pages/AggregateOrders/AggregateOrdersList?OrderStatus=1')"> <view class="order_bar_item" @click="goUrl('/pages/AggregateOrders/AggregateOrdersList?OrderStatus=1')">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638748963970628311.png" style="width: 66rpx; height: auto" mode="widthFix"></image> <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638748963970628311.png" style="width: 66rpx; height: auto" mode="widthFix"></image>
<Text style="margin-top: 10rpx;font-size: 24rpx;">待付款</Text> <Text style="margin-top: 10rpx;font-size: 24rpx;">待付款</Text>
<view class="badge" v-if="user_info.waitPayOrderNum>0">{{ user_info.waitPayOrderNum }}</view> <view class="badge" v-if="statistics.waitPayOrderNum>0">{{ statistics.waitPayOrderNum }}</view>
</view> </view>
<view class="order_bar_item" @click="goUrl('/pages/AggregateOrders/AggregateOrdersList?OrderStatus=2')"> <view class="order_bar_item" @click="goUrl('/pages/AggregateOrders/AggregateOrdersList?OrderStatus=2')">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638748963971941398.png" style="width: 66rpx; height: auto" mode="widthFix"></image> <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638748963971941398.png" style="width: 66rpx; height: auto" mode="widthFix"></image>
<Text style="margin-top: 10rpx;font-size: 24rpx;">待出行</Text> <Text style="margin-top: 10rpx;font-size: 24rpx;">待出行</Text>
<view class="badge">{{ user_info.waitPayOrderNum }}</view> <view class="badge" v-if="statistics.waitTravelOrderNum>0">{{ statistics.waitTravelOrderNum }}</view>
</view> </view>
<view class="order_bar_item" @click="goUrl('/pages/AggregateOrders/AggregateOrdersList?OrderStatus=3')"> <view class="order_bar_item" @click="goUrl('/pages/AggregateOrders/AggregateOrdersList?OrderStatus=3')">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638748963971902348.png" style="width: 66rpx; height: auto" mode="widthFix"></image> <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638748963971902348.png" style="width: 66rpx; height: auto" mode="widthFix"></image>
<Text style="margin-top: 10rpx;font-size: 24rpx;">已完成</Text> <Text style="margin-top: 10rpx;font-size: 24rpx;">已完成</Text>
<view class="badge"></view> <!-- <view class="badge"></view> -->
</view> </view>
<!-- #ifdef MP-DI -->
<view class="order_bar_item" @click="goUrl('/pages/AggregateOrders/AggregateOrdersList?OrderStatus=5')"> <view class="order_bar_item" @click="goUrl('/pages/AggregateOrders/AggregateOrdersList?OrderStatus=5')">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638748964440207840.png" style="width: 66rpx; height: auto" mode="widthFix"></image> <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638748964440207840.png" style="width: 66rpx; height: auto" mode="widthFix"></image>
<Text style="margin-top: 10rpx;font-size: 24rpx;">售后</Text> <Text style="margin-top: 10rpx;font-size: 24rpx;">售后</Text>
<view class="badge" v-if="user_info.afterSalesOrderNum>0">{{ user_info.afterSalesOrderNum }}</view> <view class="badge" v-if="statistics.afterSalesOrderNum>0">{{ statistics.afterSalesOrderNum }}</view>
</view> </view>
<!-- #endif -->
</view> </view>
<view class="orderProductBox"> <view class="orderProductBox" v-if="g.length>0">
<view class="orderProduct row items-center" <swiper class="swiper" circular
@click="goDetails"> :indicator-dots="indicatorDots"
<view class="orderProductL"> :autoplay="autoplay"
<image style="width: 91rpx; height: 88rpx;" mode="aspectFill" src="http://imgfile.oytour.com/Upload/WebSite/202501090355546390000000073.jpg"></image> :interval="interval"
</view> :duration="duration">
<view class="orderProductR col column" style="width: 1px;"> <swiper-item v-for="(item,index) in g" :key="index">
<view class="orderProductR_state">售后</view> <view
<view class="orderProductR_text">(东东一地) 河津樱早樱东京富士山纯 河津樱早樱东京富士山纯</view> class="orderProduct row items-center"
</view> @click="goDetails(item)">
</view> <view class="orderProductL">
<image style="width: 91rpx; height: 88rpx;" mode="aspectFill" :src="item.goodsPic"></image>
</view>
<view class="orderProductR col column" style="width: 1px;">
<view class="orderProductR_state">
<!-- #ifdef MP-DI -->
<template v-if="item.orderStatus!=5">
{{ item.orderStatusInfo.desc }}
</template>
<template v-else>{{ item.afterSalesOrderStatusStr }}</template>
<!-- #endif -->
<!-- #ifdef MP-AG -->
{{ item.orderStatusInfo.desc }}
<!-- {{ item.orderStatusStr=='取消'?'已取消':item.orderStatusStr }}-->
<!-- #endif -->
</view>
<view class="orderProductR_text">{{ item.goodsName }}</view>
</view>
</view>
</swiper-item>
</swiper>
</view> </view>
</view> </view>
<view style="height: 20rpx;"></view> <view style="height: 20rpx;"></view>
<view class="userMyOrder" style="padding: 12rpx 0 20rpx 0;"> <view class="userMyOrder" style="padding: 12rpx 0 20rpx 0;">
...@@ -66,11 +91,11 @@ ...@@ -66,11 +91,11 @@
<Text style="margin-top: 10rpx;font-size: 24rpx;">在线客服</Text> <Text style="margin-top: 10rpx;font-size: 24rpx;">在线客服</Text>
<button open-type="contact" style="position: absolute;left: 0;top: 0;bottom: 0;right: 0;z-index: 1;opacity: 0;"></button> <button open-type="contact" style="position: absolute;left: 0;top: 0;bottom: 0;right: 0;z-index: 1;opacity: 0;"></button>
</view> </view>
<view class="order_bar_item" style="margin-top: 0;"> <view class="order_bar_item" style="margin-top: 0;" @click="goUrl()">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638749520007722617.png" style="width: 70rpx; height: 70rpx" mode="widthFix"></image> <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638749520007722617.png" style="width: 70rpx; height: 70rpx" mode="widthFix"></image>
<Text style="margin-top: 10rpx;font-size: 24rpx;">年底大红包</Text> <Text style="margin-top: 10rpx;font-size: 24rpx;">年底大红包</Text>
</view> </view>
<view class="order_bar_item" style="margin-top: 0;" @click="goUrl('/pages/index/index')"> <view class="order_bar_item" style="margin-top: 0;" @click="goUrl()">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638749520286130928.png" style="width: 70rpx; height: 70rpx" mode="widthFix"></image> <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638749520286130928.png" style="width: 70rpx; height: 70rpx" mode="widthFix"></image>
<Text style="margin-top: 10rpx;font-size: 24rpx;">我的旅行社</Text> <Text style="margin-top: 10rpx;font-size: 24rpx;">我的旅行社</Text>
</view> </view>
...@@ -82,7 +107,9 @@ ...@@ -82,7 +107,9 @@
</view> </view>
</view> </view>
</view> </view>
<view style="height: 140rpx;"></view>
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth> <auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
...@@ -91,6 +118,9 @@ ...@@ -91,6 +118,9 @@
</template> </template>
<script> <script>
import {mappingListType,mappingListTypeTy} from "../../utils/producttypeenum";
import EnumHelper from '../../utils/enumhelper';
import OrderStatusEnum from '../../utils/orderStautsEnum';
import tabbars from "@/components/tabbar/index"; import tabbars from "@/components/tabbar/index";
import auth from "@/components/auth/index.vue"; import auth from "@/components/auth/index.vue";
import userHeader from "./components/userHeader.vue"; import userHeader from "./components/userHeader.vue";
...@@ -111,8 +141,19 @@ ...@@ -111,8 +141,19 @@
mall_UserInfo: {}, mall_UserInfo: {},
u: {}, u: {},
user_info: {}, user_info: {},
shopBasics: {}, statistics: {},
PointNum: 0, msg:{
pageSize:100,
pageIndex:1,
OrderStatus: 0,
GoodsName: '',
OrderTypeStr: ''
},
g: [],
indicatorDots: true,
autoplay: true,
interval: 4000,
duration: 1000
}; };
}, },
onLoad() { onLoad() {
...@@ -121,12 +162,13 @@ ...@@ -121,12 +162,13 @@
this.showAuth = !this.mall_UserInfo || !this.b2b_user_info; this.showAuth = !this.mall_UserInfo || !this.b2b_user_info;
}, },
onShow() { onShow() {
// this.userCenterinfo(2); this.userCenterinfo(2);
// this.GetAppletUserPointDetail() this.GetCustomerCenter()
this.g = []
this.init()
}, },
methods: { methods: {
goDetails(item) { goDetails(item) {
return
let url = null let url = null
let msg = null let msg = null
// #ifdef MP-DI // #ifdef MP-DI
...@@ -171,6 +213,12 @@ ...@@ -171,6 +213,12 @@
this.scrollTop = 0; this.scrollTop = 0;
}, },
goUrl(url) { goUrl(url) {
if(!url){
return uni.showToast({
title: '灰度开放中,尽情期待!',
icon: "none",
})
}
uni.navigateTo({ url }); uni.navigateTo({ url });
}, },
//获取菜单配置 //获取菜单配置
...@@ -188,20 +236,7 @@ ...@@ -188,20 +236,7 @@
} }
} }
); );
let u = uni.getStorageSync("mall_UserInfo");
if (u && type == 1) {
this.getMicroShopBasics();
}
},
getMicroShopBasics() {
this.request2({
url: "/api/AppletUser/GetMicroShopBasics",
data: {},
},
(res) => {
this.shopBasics = res.data;
}
)
}, },
reloadUserinfo() { reloadUserinfo() {
this.b2b_user_info = uni.getStorageSync('b2b_user'); this.b2b_user_info = uni.getStorageSync('b2b_user');
...@@ -209,33 +244,14 @@ ...@@ -209,33 +244,14 @@
this.u = this.user_info; this.u = this.user_info;
this.mall_UserInfo = uni.getStorageSync("mall_UserInfo") ? this.mall_UserInfo = uni.getStorageSync("mall_UserInfo") ?
uni.getStorageSync("mall_UserInfo") : {}; uni.getStorageSync("mall_UserInfo") : {};
this.getUserPoint();
}, },
getUserPoint() { GetCustomerCenter(){
this.request2({ this.apipost('b2b_get_GetCustomerCenter_New',
url: "/api/AppletPoint/GetAppletUserPointDetailPageList",
data: {
pageIndex: 1,
pageSize: 10,
Type: 0
},
},
(res) => {
this.PointNum = res.data.pageData.PointNum;
}
);
},
GetAppletUserPointDetail(){
uni.showLoading({
title: '加载中...'
})
this.apipost('/api/AppletPoint/GetAppletUserPointDetailPageList',
{}, {},
(res) => { (res) => {
uni.hideLoaging() uni.hideLoading()
this.user_info = res.data this.statistics = res.data
},err=>{ },err=>{
uni.hideLoaging()
uni.showToast({ uni.showToast({
title: err.message, title: err.message,
icon: "none", icon: "none",
...@@ -243,11 +259,65 @@ ...@@ -243,11 +259,65 @@
} }
); );
}, },
init(){
uni.showLoading({
title: '加载中...'
})
// #ifdef MP-DI
this.OrderPageZK(1);
this.OrderPageZK();
// #endif
// #ifdef MP-AG
this.OrderPageTY();
// #endif
},
OrderPageTY(){
this.msg.OrderStatus = 1
this.apipost('b2b_get_GetB2BAllOrderPageList',this.msg,
res => {
if (res.resultCode == 1) {
uni.hideLoading()
res.data.pageData.forEach(x=>{
// #ifdef MP-DI
x.goodTypeEnum = mappingListType(x.goodsType)
// #endif
// #ifdef MP-AG
x.goodTypeEnum = mappingListTypeTy(x.goodsType)
// #endif
x.orderStatusInfo = EnumHelper.ParseToEnum(OrderStatusEnum,x.orderStatus,'value')
})
this.g = res.data.pageData
}
},
err => {
uni.hideLoading()
}
);
},
OrderPageZK(type){
if(type==1) this.msg.OrderStatus = 1
else this.msg.OrderStatus = 5
this.apipost('GetMyDirectOrderPageList_post',this.msg,
res => {
if (res.resultCode == 1) {
uni.hideLoading()
res.data.pageData.forEach(x=>{
x.goodTypeEnum = mappingListType(x.goodsType)
x.orderStatusInfo = EnumHelper.ParseToEnum(OrderStatusEnum,x.orderStatus,'value')
})
this.g = this.g.concat(res.data.pageData);
}
},
err => {
uni.hideLoading()
}
);
},
} }
}; };
</script> </script>
<style> <style scoped>
@import url('../../asset/css/flex.css'); @import url('../../asset/css/flex.css');
.row-sbas-n { .row-sbas-n {
justify-content: space-between; justify-content: space-between;
...@@ -306,12 +376,13 @@ ...@@ -306,12 +376,13 @@
right: 0; right: 0;
top: 0; top: 0;
display: flex; display: flex;
background-image: linear-gradient(to right, #e6b865, #ebb45e); background: url("https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638748787642081151.png") no-repeat;
background-size: 100% auto;
} }
.headStatus .title { .headStatus .title {
font-size: 18px; font-size: 18px;
color: #fff; color: #000;
flex: 1; flex: 1;
width: 1px; width: 1px;
line-height: 34px; line-height: 34px;
...@@ -319,6 +390,7 @@ ...@@ -319,6 +390,7 @@
} }
.userMyOrderBox { .userMyOrderBox {
width: 100%;
padding: 0 31rpx; padding: 0 31rpx;
} }
.userMyOrder { .userMyOrder {
...@@ -356,6 +428,7 @@ ...@@ -356,6 +428,7 @@
background: #F7F7F7; background: #F7F7F7;
border-radius: 18rpx; border-radius: 18rpx;
padding: 21rpx 20rpx; padding: 21rpx 20rpx;
overflow: hidden;
} }
.orderProductL { .orderProductL {
width: 91rpx; width: 91rpx;
...@@ -382,4 +455,32 @@ ...@@ -382,4 +455,32 @@
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.uni-margin-wrap {
width: 690rpx;
width: 100%;
}
.swiper {
height: 132rpx;
}
.swiper-item {
display: block;
height: 132rpx;
text-align: center;
}
.swiper-list {
margin-top: 40rpx;
margin-bottom: 0;
}
.uni-common-mt {
margin-top: 60rpx;
position: relative;
}
.info {
position: absolute;
right: 20rpx;
}
.uni-padding-wrap {
width: 550rpx;
padding: 0 100rpx;
}
</style> </style>
\ No newline at end of file
...@@ -456,7 +456,7 @@ ...@@ -456,7 +456,7 @@
</view> </view>
</view> </view>
<view class="empty-block"></view> <view class="empty-block"></view>
<cancelProgress v-if="orderData.OrderStatus==2||orderData.OrderStatus==5" :datas="orderData"></cancelProgress> <cancelProgress v-if="orderData.OrderStatus==5" :datas="orderData"></cancelProgress>
<view class="empty-block"></view> <view class="empty-block"></view>
<view style="padding: 50rpx 40rpx" v-if="orderData.OrderModel"> <view style="padding: 50rpx 40rpx" v-if="orderData.OrderModel">
<view class="big-title"> <view class="big-title">
...@@ -788,7 +788,6 @@ ...@@ -788,7 +788,6 @@
icon: "success", icon: "success",
}); });
this.getOrderInfoHandler() this.getOrderInfoHandler()
this.initOrderInfo(this.orderId)
// uni.navigateTo({ // uni.navigateTo({
// url: "/pages/AggregateOrders/AggregateOrdersList", // url: "/pages/AggregateOrders/AggregateOrdersList",
// }); // });
......
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