financialInfrastructure.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <view class="container">
  3. <!-- 供销社列表 -->
  4. <view class="rnwdList" v-for="(item, index) in list" :key="index">
  5. <view @tap="goDetails(item.id, item.type)" class="cooperativeImgBox">
  6. <image :src="loadImgSrc('/snbj.png')" class="cooperativeImg"></image>
  7. </view>
  8. <view @tap="goDetails(item.id, item.type)" class="cooperativeBox">
  9. <view class="list">
  10. <span class="listTitle">{{ item.titleName }}</span>
  11. </view>
  12. </view>
  13. <em class="iconfont icon-xiangyoujiantou"></em>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. import { listServer, getServer, delServer, addServer, updateServer } from '@/api/highFrequencyService/highFrequencyService';
  19. export default {
  20. data() {
  21. return {
  22. list: [
  23. {
  24. titleName:"-",
  25. imgUrlList:"-"
  26. }
  27. ],
  28. };
  29. }
  30. /**
  31. * 生命周期函数--监听页面加载
  32. */,
  33. onLoad(options) {
  34. this.getList(9);
  35. },
  36. methods: {
  37. /** 查询列表 */
  38. getList(type) {
  39. this.loading = true;
  40. listServer({type: type}).then(response => {
  41. this.list = response.rows;
  42. });
  43. },
  44. /** 查询详情 */
  45. goDetails(id, type) {
  46. uni.navigateTo({
  47. url: '/pages/specialService/financialInfrastructure/details?id='+id+'&type='+type
  48. });
  49. }
  50. }
  51. };
  52. </script>
  53. <style>
  54. @import './financialInfrastructure.css';
  55. </style>