您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

equityList.vue 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <div>
  3. <view v-for="(item, index) in listData" :key="index" @click="onClick(item)" :data-code="item" class="item"
  4. style="justify-content: flex-start; display: flex; font-size: 28rpx; min-height: 20px; background-color: #023F8F; color: white; border-radius: 20rpx; padding: 20px; margin: 20px;">
  5. <view style="display: flex; flex-direction: column; flex: 1;">
  6. <text>{{ item.productName }}</text>
  7. <!-- <text>记账卡</text> -->
  8. </view>
  9. <view>></view>
  10. </view>
  11. </div>
  12. </template>
  13. <script setup lang='ts'>
  14. import {
  15. ref
  16. } from 'vue';
  17. import {
  18. request
  19. } from "@/utils/network/request.js";
  20. let listData = ref([])
  21. //卡券渠道类型获取单项权益列表
  22. request("a867bb01c200466b8715f3bb98be3eb9", {
  23. type: 2,
  24. data: {
  25. couponAgencyType: ['TUHU','ZFB'],
  26. },
  27. method: "POST",
  28. showLoading: true,
  29. }).then((item) => {
  30. let res = JSON.parse(item.bizContent)
  31. console.log(res, '=========');
  32. listData.value = res.data
  33. })
  34. function onClick(singId: any) {
  35. uni.navigateTo({
  36. url: '/subpackage/service/equity/equity?singleEquityId=' + singId.singleEquityId +
  37. '&couponAgencyType=' + singId.couponAgencyType + '&couponId=' + singId.couponId,
  38. })
  39. }
  40. </script>
  41. <style lang='scss' scoped>
  42. </style>