Commit 656ac522 authored by Smile's avatar Smile Committed by wux

任务88:客户端改造,首页和订单页面非86用户不显示我要下单按钮和菜单,不显示去处理和退仓按钮。显示提单号

parent 30ee5968
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
v-for="(item, index) in nvs" v-for="(item, index) in nvs"
@click="toPage(item.url, item.isHttp)" @click="toPage(item.url, item.isHttp)"
:key="index" :key="index"
v-if="(item.name === $lang.lang.index.delivery && isDelivery) || item.name !== $lang.lang.index.delivery"
> >
<image :src="item.icon" mode=""></image> <image :src="item.icon" mode=""></image>
<view v-if="item.num > 0" class="order_dian">{{ item.num }}</view> <view v-if="item.num > 0" class="order_dian">{{ item.num }}</view>
...@@ -117,9 +118,14 @@ ...@@ -117,9 +118,14 @@
@click="toOrderInfo(item.orderId)" @click="toOrderInfo(item.orderId)"
> >
<view class="item-til"> <view class="item-til">
<image src="../../static/img/sn.png" mode=""></image> <view class="full-width">
<view class="orderNo">{{ $lang.lang.index.orderNo }}:{{ item.orderNo }}</view> <image src="../../static/img/sn.png" mode=""></image>
<view class="marks">{{ $lang.lang.index.marks }}:{{ item.marks }}</view> <view class="orderNo">{{ $lang.lang.index.orderNo }}:{{ item.orderNo }}</view>
<view class="marks">{{ $lang.lang.index.marks }}:{{ item.marks }}</view>
</view>
<view class="tidan-no" v-if="item.tidanNo">
<view class="tidanNo">{{ $lang.lang.index.tidanNo }}:{{ item.tidanNo }}</view>
</view>
</view> </view>
<view class="item-body"> <view class="item-body">
<view class="item-body-v">{{ item.departureName }}</view> <view class="item-body-v">{{ item.departureName }}</view>
...@@ -265,6 +271,7 @@ export default { ...@@ -265,6 +271,7 @@ export default {
adData: {}, adData: {},
updateAdData: {}, updateAdData: {},
membershipLevels:[], membershipLevels:[],
isDelivery: true,
levelLeviteInfo:'', levelLeviteInfo:'',
levelTitle:'', levelTitle:'',
noticeData: [], noticeData: [],
...@@ -429,7 +436,9 @@ export default { ...@@ -429,7 +436,9 @@ export default {
let that = this let that = this
that.$request.get('/app-api/member/user/get').then((res) => { that.$request.get('/app-api/member/user/get').then((res) => {
let userInfo = res.data let userInfo = res.data
console.log(res.data) if (userInfo != null){
this.isDelivery = userInfo.areaCode === '86';
}
if (res.code == 0 && res.data) { if (res.code == 0 && res.data) {
if (res.data.isSimplePassword) { if (res.data.isSimplePassword) {
uni.showModal({ uni.showModal({
......
...@@ -57,8 +57,13 @@ ...@@ -57,8 +57,13 @@
<image v-else class="fa" :src="receivingImg" mode=""></image> <image v-else class="fa" :src="receivingImg" mode=""></image>
<view class="order-list-it-v"> <view class="order-list-it-v">
<view class="fa-v"> <view class="fa-v">
<text>{{$lang.lang.order.orderNo}}:{{item.orderNo}}</text> <view class="order-no">
<text>{{formatMsg(item.status)}}</text> <text>{{$lang.lang.order.orderNo}}:{{item.orderNo}}</text>
<text>{{formatMsg(item.status)}}</text>
</view>
<view v-if="item.tidanNo">
<text>{{ $lang.lang.index.tidanNo }}:{{ item.tidanNo }}</text>
</view>
<!-- <text>{{getStatusName(item.status)}}</text> --> <!-- <text>{{getStatusName(item.status)}}</text> -->
</view> </view>
</view> </view>
...@@ -99,8 +104,8 @@ ...@@ -99,8 +104,8 @@
<view v-if='item.status==0||item.status==2' @click="toEditOrder(item.orderId, false)">{{$lang.lang.order.edit}}</view> <view v-if='item.status==0||item.status==2' @click="toEditOrder(item.orderId, false)">{{$lang.lang.order.edit}}</view>
<view v-if='item.status==0||item.status==88' @click="delOrder(item.orderId)">{{$lang.lang.order.delete}}</view> <view v-if='item.status==0||item.status==88' @click="delOrder(item.orderId)">{{$lang.lang.order.delete}}</view>
<view v-if='item.status==2&&item.status!=88' @click="cancelOrder(item.orderId)">{{$lang.lang.order.cancelOrder}}</view> <view v-if='item.status==2&&item.status!=88' @click="cancelOrder(item.orderId)">{{$lang.lang.order.cancelOrder}}</view>
<view v-if='item.status==5&&item.status!=88' @click="returnOrder(index)">{{$lang.lang.order.exit}}</view> <view v-if='item.status==5&&item.status!=88&&isDelivery' @click="returnOrder(index)">{{$lang.lang.order.exit}}</view>
<view v-if='item.abnormalState!=0&&item.status!=88' @click="toException(item.orderId)">{{$lang.lang.order.toDeal}}</view> <view v-if='item.abnormalState!=0&&item.status!=88&&isDelivery' @click="toException(item.orderId)">{{$lang.lang.order.toDeal}}</view>
</view> </view>
<view class="order-btn"> <view class="order-btn">
<view @click="copy(item.orderId)">{{$lang.lang.order.copy}}</view> <view @click="copy(item.orderId)">{{$lang.lang.order.copy}}</view>
...@@ -113,7 +118,7 @@ ...@@ -113,7 +118,7 @@
</view> </view>
</view> </view>
<view class="bom"> <view class="bom" v-if="isDelivery">
<view class="" @click="toCreatOrders"> <view class="" @click="toCreatOrders">
<image src="../../static/img/carFa.png" mode=""></image> <image src="../../static/img/carFa.png" mode=""></image>
<text>{{$lang.lang.order.delivery}}</text> <text>{{$lang.lang.order.delivery}}</text>
...@@ -501,6 +506,7 @@ ...@@ -501,6 +506,7 @@
reason:'', reason:'',
imgUrl:[],//退仓图片地址 imgUrl:[],//退仓图片地址
params:{}, params:{},
isDelivery: true,
config:{ config:{
transport:{ transport:{
index:-1, index:-1,
...@@ -638,6 +644,9 @@ ...@@ -638,6 +644,9 @@
if(res.code==0&&res.data){ if(res.code==0&&res.data){
this.userInfo = res.data this.userInfo = res.data
this.isHavePassword = this.userInfo.isHavePassword this.isHavePassword = this.userInfo.isHavePassword
if (this.userInfo != null){
this.isDelivery = this.userInfo.areaCode === '86';
}
} }
}) })
......
...@@ -183,24 +183,25 @@ page{ ...@@ -183,24 +183,25 @@ page{
margin: 0 auto; margin: 0 auto;
padding: 20upx; padding: 20upx;
display: flex; display: flex;
flex-direction: column;
color: var(--c3); color: var(--c3);
font-size: var(--f26); font-size: var(--f26);
border-bottom: 1px solid #DFDFDF; border-bottom: 1px solid #DFDFDF;
align-items: center; align-items: center;
position: relative; position: relative;
} }
.act-list .item-til image{ .act-list .item-til .full-width image{
width: 42upx; width: 42upx;
height: 40upx; height: 40upx;
margin: 6upx 10upx 0 0; margin: 6upx 10upx 0 0;
} }
.act-list .item-til .marks{ .act-list .item-til .full-width .marks{
position: absolute; position: absolute;
right: 20upx; right: 20upx;
font-size: var(--f26); font-size: var(--f26);
color: var(--c3); color: var(--c3);
} }
.act-list .item-til .orderNo{ .act-list .item-til .full-width .orderNo{
width: 320upx; width: 320upx;
} }
.item-body{ .item-body{
...@@ -573,4 +574,19 @@ page{ ...@@ -573,4 +574,19 @@ page{
position: absolute; position: absolute;
right: 6px; right: 6px;
margin: 0; margin: 0;
}
.full-width{
width: 100%;
display: flex;
color: var(--c3);
font-size: var(--f26);
align-items: center;
position: relative;
float: right;
}
.tidan-no{
width: 100%;
}
.tidanNo{
margin-left: 54upx;
} }
\ No newline at end of file
...@@ -143,13 +143,13 @@ ...@@ -143,13 +143,13 @@
.order-list-it-v{ .order-list-it-v{
width: 84%; width: 84%;
} }
.order-list-tp .fa-v{ .order-list-tp .fa-v .order-no{
padding: 0upx 0 10upx; padding: 0upx 0 10upx;
border-bottom: 1px solid var(--cdf); border-bottom: 1px solid var(--cdf);
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.fa-v text{ .fa-v .order-no text{
font-size: 28rpx; font-size: 28rpx;
} }
.order-list-user{ .order-list-user{
......
...@@ -4,6 +4,7 @@ export default { ...@@ -4,6 +4,7 @@ export default {
"notice": "Notice", "notice": "Notice",
"dynamic": "Trend", "dynamic": "Trend",
"orderNo": "Order No.", "orderNo": "Order No.",
"tidanNo": "PL No.",
"marks": "Mark", "marks": "Mark",
"help": "Help", "help": "Help",
"consult": "Inquiry", "consult": "Inquiry",
......
...@@ -4,6 +4,7 @@ export default { ...@@ -4,6 +4,7 @@ export default {
"notice": "Avis", "notice": "Avis",
"dynamic": "Tendances", "dynamic": "Tendances",
"orderNo": "Numéro de commande", "orderNo": "Numéro de commande",
"tidanNo": "Numéro de PL",
"marks": "Marquer", "marks": "Marquer",
"help": "Aide", "help": "Aide",
"consult": "Demande", "consult": "Demande",
......
...@@ -4,6 +4,7 @@ export default { ...@@ -4,6 +4,7 @@ export default {
"notice": "公告", "notice": "公告",
"dynamic": "动态", "dynamic": "动态",
"orderNo": "订单号", "orderNo": "订单号",
"tidanNo": "提单号",
"marks": "唛头", "marks": "唛头",
"help": "帮助", "help": "帮助",
"consult": "咨询", "consult": "咨询",
......
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