Commit 883d6197caf7334a375669d2551ffa82921acf5b

Authored by 李宇
1 parent a9069005

1

pages/declaration/declarationList.vue
1   -<template>
  1 +<template>
2 2 <view>
3 3 <view v-if="list.length>0">
4 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+'&cent='+JSON.stringify(item))">
... ... @@ -9,21 +9,21 @@
9 9 </view>
10 10 </view>
11 11 <view v-else style="width: 100%;text-align: center;margin-top: 100rpx;font-size: 30rpx;">
12   - 暂无数据
  12 + 暂无数据
13 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 20 return {
21   - type:null,
  21 + type:null,
22 22 list:[],
23 23 from:{
24 24 createdUser:uni.getStorageSync('USERS_KEY').userId,
25   - }
26   - }
  25 + }
  26 + }
27 27 },
28 28 onLoad() {
29 29  
... ... @@ -33,7 +33,7 @@
33 33  
34 34 this.getlist()
35 35  
36   - },
  36 + },
37 37 methods: {
38 38 getlist() {
39 39 if(this.type == '1') {
... ... @@ -97,11 +97,11 @@
97 97 uni.navigateTo({
98 98 url: e
99 99 })
100   - },
101   - }
102   - }
103   -</script>
104   -
  100 + },
  101 + }
  102 + }
  103 +</script>
  104 +
105 105 <style lang="scss">
106 106 .top-box {
107 107 display: flex;
... ... @@ -119,7 +119,7 @@
119 119 // height: 40rpx;
120 120 }
121 121 }
122   - }
  122 + }
123 123 .content{
124 124 padding: 20rpx;
125 125 .box_item{
... ... @@ -153,5 +153,5 @@
153 153 text-align: right;
154 154 }
155 155 }
156   - }
157   -</style>
  156 + }
  157 +</style>
... ...