Browse Source

修改路由跳转方式

devlop
buffeyu 4 years ago
parent
commit
144a9b2e1a
3 changed files with 23 additions and 8 deletions
  1. 3
      pages.json
  2. 26
      pages/my-offer/index.vue
  3. 2
      pages/trade/orderList.vue

3
pages.json

@ -104,7 +104,8 @@
{
"path": "pages/my-offer/index",
"style": {
"navigationBarTitleText": "我的报价",
"navigationBarTitleText": "我的报价",
"navigationStyle": "custom",
"enablePullDownRefresh": false
}
},

26
pages/my-offer/index.vue

@ -1,11 +1,17 @@
<template>
<view class="my-offer">
<uni-nav-bar left-icon="back" @clickLeft="back" statusBar fixed title="我的报价"></uni-nav-bar>
<view>
<uni-nav-bar left-icon="back" @clickLeft="back" statusBar fixed title="">
<view class="my-offer-title">我的报价</view>
<view slot="left"></view>
<view slot="right"></view>
</uni-nav-bar>
</view>
<scroll-list style="touch-action: none" ref="orderRef" :option="orderOption" @load="orderUp" @refresh="orderDown">
<view v-for="(items,index) in orderData" :key="index" @click="myPriceInfo(items)">
<view class="list-border list-title-line">
<text class="list-title">广州民族印刷有限公司</text>
<text class="list-title-Subtitle">{{ items.orderStatus }}</text>
<text class="list-title-Subtitle">{{controlItems[items.orderStatus -1] }}</text>
</view>
<view class="list-border list-info-line" v-for="(item, index) in items.orderItemList" :key="index">
<view class="list-info" :class="index===items.orderItemList.length?'list-border':''">
@ -57,7 +63,7 @@ export default {
},
orderData: [],
controlCurrent:0,
controlItems: ['全部', '待确认', '待发货', '已完成'],
controlItems: ['待付款', '待发货', '待收货', '已完成','已关闭'],
orderOption: {
size: 10,
auto: true,
@ -73,10 +79,9 @@ export default {
}
}
},
filters:{
},
watch: {
// queryOrderData(value) {
// console.log('value', value)
// },
orderParams: {
handler(val) {
this.getTradingQurty()
@ -159,6 +164,15 @@ export default {
padding-left: 48rpx;
background: #FFFFFF;
}
.my-offer-title {
width: 100%;
font-family: PingFangSC-Medium;
font-size: 36rpx;
color: #000000;
letter-spacing: 0;
text-align: center;
font-weight: 500;
}
.list-title {
font-family: PingFangSC-Semibold;
font-size: 30rpx;

2
pages/trade/orderList.vue

@ -5,7 +5,7 @@
<view v-for="(items, index) in orderData" :key="index">
<view class="list-border list-title-line">
<text class="list-title">广州民族印刷有限公司</text>
<text class="list-title-Subtitle">{{ items.orderStatus }}</text>
<text class="list-title-Subtitle">{{controlItems[items.orderStatus-1] }}</text>
</view>
<view class="list-border list-info-line" v-for="(item, index) in items.orderItemList" :key="index">
<view class="list-info " :class="index===items.orderItemList.length?'list-border':''">

Loading…
Cancel
Save