joinpayMchCheckList.vue 926 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view>
  3. <view v-for="(joinpayMchCheck, index) in joinpayMchCheckList" :key="index">
  4. <uni-list-item :title="name+joinpayMchCheck.userName" @click="retail(joinpayMchCheck)" />
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. name:'账号:',
  13. joinpayMchCheckList:[],
  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 + '/TJoinpayMchCheck/getList',
  25. header: {
  26. 'token': token
  27. },
  28. method: "GET",
  29. success: (res) => {
  30. if(res.data.code){
  31. this.joinpayMchCheckList = res.data.data;
  32. }
  33. },
  34. });
  35. },
  36. retail(joinpayMchCheck) {
  37. uni.navigateTo({
  38. url: 'joinpayMchCheck?joinpayMchCheck='+ encodeURIComponent(JSON.stringify(joinpayMchCheck)),
  39. });
  40. }
  41. }
  42. }
  43. </script>
  44. <style>
  45. </style>