Browse Source

修改配置文案

devlop
杨阁辉 4 years ago
parent
commit
57224ffef5
3 changed files with 29 additions and 18 deletions
  1. 9
      pages/trade/index.vue
  2. 8
      pages/trade/orderList.vue
  3. 30
      pages/trade/quotationList.vue

9
pages/trade/index.vue

@ -36,9 +36,9 @@ export default {
key: '', key: '',
mainKey: '1', mainKey: '1',
current: '0', current: '0',
controlCurrent: 0,
items: ['报价', '订单'], items: ['报价', '订单'],
controlItems: ['全部', '待确认', '待发货', '已完成'],
} }
}, },
mounted() { mounted() {
@ -60,10 +60,7 @@ export default {
// this.getTradingQurty() // this.getTradingQurty()
// } // }
}, },
//
onClickItem(value) {
console.log(value)
}
} }
} }
</script> </script>

8
pages/trade/orderList.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="order-list"> <view class="order-list">
<!-- <uni-segmented-control :current="controlCurrent" :values="controlItems" @clickItem="onClickItem" styleType="text" activeColor="#007AFF"></uni-segmented-control> -->
<uni-segmented-control :current="controlCurrent" :values="controlItems" @clickItem="onClickItem" styleType="text" activeColor="#007AFF"></uni-segmented-control>
<scroll-list style="touch-action: none" ref="orderRef" :option="orderOption" @load="orderUp" @refresh="orderDown"> <scroll-list style="touch-action: none" ref="orderRef" :option="orderOption" @load="orderUp" @refresh="orderDown">
<view v-for="(items,index) in orderData" :key="index"> <view v-for="(items,index) in orderData" :key="index">
<view class="list-border list-title-line"> <view class="list-border list-title-line">
@ -53,6 +53,8 @@ export default {
pageSize: 10 pageSize: 10
}, },
orderData: [], orderData: [],
controlCurrent: 0,
controlItems: ['全部', '待确认', '待发货', '已完成'],
orderOption: { orderOption: {
size: 10, size: 10,
auto: true, auto: true,
@ -128,6 +130,10 @@ export default {
.catch(() => { .catch(() => {
this.$refs.orderRef.refreshFail() this.$refs.orderRef.refreshFail()
}) })
},
//
onClickItem(value) {
console.log(value)
} }
} }
} }

30
pages/trade/quotationList.vue

@ -233,19 +233,27 @@ export default {
padding-bottom: 24px; padding-bottom: 24px;
} }
.my-image { .my-image {
width: 30px;
height: 30px;
width: 32rpx;
height: 32rpx;
} }
.my-price { .my-price {
color: #007aff;
font-size: 28rpx;
font-family: PingFangSC-Medium;
font-size: 18rpx;
color: #007AFF;
text-align: center;
font-weight: 500;
white-space: nowrap;
} }
.offer-class{ .offer-class{
display: flex; display: flex;
} }
.offer-btn{ .offer-btn{
width: 80px;
line-height: 35px;
width: 150rpx;
height: 64rpx;
line-height: 55rpx;
background: #007AFF;
border: 1px solid #007AFF;
border-radius: 8px;
} }
.offer-width{ .offer-width{
width: 70%; width: 70%;
@ -253,14 +261,14 @@ export default {
.offer-prices{ .offer-prices{
position: absolute; position: absolute;
z-index: 9999; z-index: 9999;
right: 10px;
bottom: 20%;
right: 4.3%;
bottom: 7.3%;
background-color: #ffffff; background-color: #ffffff;
border-radius: 50%; border-radius: 50%;
padding: 10px;
padding: 10rpx;
text-align: center; text-align: center;
width: 80px;
height: 80px;
width: 100rpx;
height: 100rpx;
border: 2px solid #F9F9F9; border: 2px solid #F9F9F9;
box-shadow: 0px 4px 34px 0px rgba(0,0,0,0.2); box-shadow: 0px 4px 34px 0px rgba(0,0,0,0.2);
} }

Loading…
Cancel
Save