Ver a proveniência

前端优化

master
pangdongxu há 3 anos
ascendente
cometimento
fc1d38eb38
4 ficheiros alterados com 126 adições e 96 eliminações
  1. +5
    -0
      pages/index/index.js
  2. +5
    -2
      pages/index/index.wxml
  3. +115
    -93
      pages/index/index.wxss
  4. +1
    -1
      utils/util.js

+ 5
- 0
pages/index/index.js Ver ficheiro

@@ -476,4 +476,9 @@ Page({
url: '/pages/handle/expenditureAudit/expenditureAudit?id='+e.currentTarget.dataset.id+'&taskId='+e.currentTarget.dataset.taskid,
})
},
goUpdate(e){
wx.navigateTo({
url: '/pages/apply/paymentTemplate/add/add?id='+e.currentTarget.dataset.id,
})
},
})

+ 5
- 2
pages/index/index.wxml Ver ficheiro

@@ -136,9 +136,12 @@
</view>
<view class="workflow" wx:if="{{active=='3'}}" wx:for-item="item" wx:for="{{yfqList}}" wx:key="id">
<!--1-->
<view class="workflow_list">
<view class="workflow_list" data-id="{{item.id}}" bindtap="{{tem.status == '1'?'in':item.status == '2'?'goUpdate':item.status == '3'?'agree':''}}">
<view class="process_intro">
<view class="name">{{item.submitter}}</view>
<view class="name">
<view class="name_tit">{{item.submitter}}</view>
<view class="{{item.status == '1'?'in':item.status == '2'?'disagree':item.status == '3'?'agree':''}}">{{item.status == '1'?'审核中':item.status == '2'?'已拒绝':item.status == '3'?'已通过':''}}</view>
</view>
<!-- <view class="state">已发起</view> -->
<view class="time">{{item.submitDate}}</view>
</view>


+ 115
- 93
pages/index/index.wxss Ver ficheiro

@@ -239,9 +239,15 @@
}

.workflow .process_intro .name{
width: 324rpx;
width: 390rpx;
font-size: 34rpx;
margin-right: 30rpx;
display: flex;
justify-content: space-between;
align-items: center;
}
.workflow .process_intro .name .name_tit{
width: 290rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -294,95 +300,111 @@
font-size: 26rpx;
}

/* <view class="workflow_list">
<view class="process_intro">
<view class="name">啊啊啊啊啊啊啊啊啊啊</view>
<view class="state">待审</view>
<view class="time">2021-1-26</view>
</view>
<view class="process_pay">
<view class="describe">银行转账</view>
<view class="amount">¥-2600.00</view>
</view>
</view> */
.textLimit{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.btn{
width: 100%;
height:90rpx;
padding:0 24rpx;
box-sizing:border-box;
line-height: 90rpx;
text-align: center;
display: flex;
background:rgba(255,255,255,.8);
justify-content: space-between;
}
.address-item {
min-height: 98rpx;
display: flex;
justify-content: flex-start;
align-items: center;
border-bottom: 1px solid #f1f1f1;
padding: 0 32rpx
}
.item-title {
width: 140rpx;
color: #4d4c4c;
font-size: 28rpx;
height: 98rpx;
line-height: 98rpx;
}
.item-content {
width: 520rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 28rpx;
height: 98rpx;
line-height: 98rpx;
color: #4d4c4c;
}
/* 地区级联选择器 */
.picker-view {
width: 100%;
display: flex;
background-color: #fff;
flex-direction: column;
justify-content: center;
align-items: center;
bottom: 0rpx;
left: 0rpx;
}
.picker-item {
line-height: 70rpx;
margin-left: 5rpx;
margin-right: 5rpx;
text-align: center;
}
.picker-view__pane {
height: 100rpx;
width: 100%;
padding: 20rpx 32rpx;
display: flex;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
}
.picker-view__pane text{
color: #00cc88;
font-size: 30rpx;
}
.pick-view__group {
width: 96%;
height: 450rpx;
}
.textLimit{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.btn{
width: 100%;
height:90rpx;
padding:0 24rpx;
box-sizing:border-box;
line-height: 90rpx;
text-align: center;
display: flex;
background:rgba(255,255,255,.8);
justify-content: space-between;
}
.address-item {
min-height: 98rpx;
display: flex;
justify-content: flex-start;
align-items: center;
border-bottom: 1px solid #f1f1f1;
padding: 0 32rpx
}

.item-title {
width: 140rpx;
color: #4d4c4c;
font-size: 28rpx;
height: 98rpx;
line-height: 98rpx;
}
.item-content {
width: 520rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 28rpx;
height: 98rpx;
line-height: 98rpx;
color: #4d4c4c;
}
/* 地区级联选择器 */

.picker-view {
width: 100%;
display: flex;
background-color: #fff;
flex-direction: column;
justify-content: center;
align-items: center;
bottom: 0rpx;
left: 0rpx;
}

.picker-item {
line-height: 70rpx;
margin-left: 5rpx;
margin-right: 5rpx;
text-align: center;
}

.picker-view__pane {
height: 100rpx;
width: 100%;
padding: 20rpx 32rpx;
display: flex;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
}

.picker-view__pane text{
color: #00cc88;
font-size: 30rpx;
}

.pick-view__group {
width: 96%;
height: 450rpx;
}
.agree{
background-color: rgba(92, 174, 119, 0.1);
color:#5CAE77 ;
text-align: center;
float: right;
padding: 2px 5px;
border-radius: 5px;
font-size: 12px;
}
.in{
background-color: rgba(245, 163, 39, 0.1);
color:#F5A327 ;
text-align: center;
float: right;
padding: 2px 5px;
border-radius: 5px;
font-size: 12px;
}
.disagree{
background-color: rgba(233, 0, 0, 0.1);
color:#E90000 ;
text-align: center;
float: right;
padding: 2px 5px;
border-radius: 5px;
font-size: 12px;
}

+ 1
- 1
utils/util.js Ver ficheiro

@@ -118,7 +118,7 @@ function httpRequest(url, data, {
wx.request({
url,
data: finalData,
method:data.method?data.method:'POST',
method:data.method,
timeout: 60000,
header: {
'Authorization':'Bearer '+getApp().globalData.userInfo.token


Carregando…
Cancelar
Guardar