Commit 883d6197caf7334a375669d2551ffa82921acf5b
1 parent
a9069005
1
Showing
1 changed file
with
20 additions
and
20 deletions
pages/declaration/declarationList.vue
| 1 | -<template> | 1 | +<template> |
| 2 | <view> | 2 | <view> |
| 3 | <view v-if="list.length>0"> | 3 | <view v-if="list.length>0"> |
| 4 | <view class="top-box" v-for="(item,index) in list" :key="index" @click="gopath(type == '7'?'/pages/declaration/newDeclarationdetail?cent='+JSON.stringify(item):'/pages/declaration/declarationListdetail?type= '+type+'¢='+JSON.stringify(item))"> | 4 | <view class="top-box" v-for="(item,index) in list" :key="index" @click="gopath(type == '7'?'/pages/declaration/newDeclarationdetail?cent='+JSON.stringify(item):'/pages/declaration/declarationListdetail?type= '+type+'¢='+JSON.stringify(item))"> |
| @@ -9,21 +9,21 @@ | @@ -9,21 +9,21 @@ | ||
| 9 | </view> | 9 | </view> |
| 10 | </view> | 10 | </view> |
| 11 | <view v-else style="width: 100%;text-align: center;margin-top: 100rpx;font-size: 30rpx;"> | 11 | <view v-else style="width: 100%;text-align: center;margin-top: 100rpx;font-size: 30rpx;"> |
| 12 | - 暂无数据 | 12 | + 暂无数据 |
| 13 | </view> | 13 | </view> |
| 14 | - </view> | ||
| 15 | -</template> | ||
| 16 | - | ||
| 17 | -<script> | ||
| 18 | - export default { | ||
| 19 | - data() { | 14 | + </view> |
| 15 | +</template> | ||
| 16 | + | ||
| 17 | +<script> | ||
| 18 | + export default { | ||
| 19 | + data() { | ||
| 20 | return { | 20 | return { |
| 21 | - type:null, | 21 | + type:null, |
| 22 | list:[], | 22 | list:[], |
| 23 | from:{ | 23 | from:{ |
| 24 | createdUser:uni.getStorageSync('USERS_KEY').userId, | 24 | createdUser:uni.getStorageSync('USERS_KEY').userId, |
| 25 | - } | ||
| 26 | - } | 25 | + } |
| 26 | + } | ||
| 27 | }, | 27 | }, |
| 28 | onLoad() { | 28 | onLoad() { |
| 29 | 29 | ||
| @@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
| 33 | 33 | ||
| 34 | this.getlist() | 34 | this.getlist() |
| 35 | 35 | ||
| 36 | - }, | 36 | + }, |
| 37 | methods: { | 37 | methods: { |
| 38 | getlist() { | 38 | getlist() { |
| 39 | if(this.type == '1') { | 39 | if(this.type == '1') { |
| @@ -97,11 +97,11 @@ | @@ -97,11 +97,11 @@ | ||
| 97 | uni.navigateTo({ | 97 | uni.navigateTo({ |
| 98 | url: e | 98 | url: e |
| 99 | }) | 99 | }) |
| 100 | - }, | ||
| 101 | - } | ||
| 102 | - } | ||
| 103 | -</script> | ||
| 104 | - | 100 | + }, |
| 101 | + } | ||
| 102 | + } | ||
| 103 | +</script> | ||
| 104 | + | ||
| 105 | <style lang="scss"> | 105 | <style lang="scss"> |
| 106 | .top-box { | 106 | .top-box { |
| 107 | display: flex; | 107 | display: flex; |
| @@ -119,7 +119,7 @@ | @@ -119,7 +119,7 @@ | ||
| 119 | // height: 40rpx; | 119 | // height: 40rpx; |
| 120 | } | 120 | } |
| 121 | } | 121 | } |
| 122 | - } | 122 | + } |
| 123 | .content{ | 123 | .content{ |
| 124 | padding: 20rpx; | 124 | padding: 20rpx; |
| 125 | .box_item{ | 125 | .box_item{ |
| @@ -153,5 +153,5 @@ | @@ -153,5 +153,5 @@ | ||
| 153 | text-align: right; | 153 | text-align: right; |
| 154 | } | 154 | } |
| 155 | } | 155 | } |
| 156 | - } | ||
| 157 | -</style> | 156 | + } |
| 157 | +</style> |