proportionCheckList.vue 927 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view>
  3. <view v-for="(proportionCheck, index) in proportionCheckList" :key="index">
  4. <uni-list-item :title="name+proportionCheck.userName" @click="retail(proportionCheck)" />
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. name:'账号:',
  13. proportionCheckList:[],
  14. weixinDown: true
  15. };
  16. },
  17. onShow() {
  18. this.init();
  19. },
  20. methods: {
  21. init(){
  22. var token = uni.getStorageSync("token");
  23. uni.request({
  24. url: this.serverurl + '/TProportionCheck/getList',
  25. header: {
  26. 'token': token
  27. },
  28. method: "GET",
  29. success: (res) => {
  30. if(res.data.code){
  31. this.proportionCheckList = res.data.data;
  32. }
  33. },
  34. });
  35. },
  36. retail(proportionCheck) {
  37. uni.navigateTo({
  38. url: 'proportionCheck?proportionCheck='+encodeURIComponent(JSON.stringify(proportionCheck)),
  39. });
  40. }
  41. }
  42. }
  43. </script>
  44. <style>
  45. </style>