You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

equityList.vue 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view>
  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: #22dbc8; 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. </view>
  8. <view>></view>
  9. </view>
  10. </view>
  11. </template>
  12. <script setup lang='ts'>
  13. import {
  14. getItem
  15. } from "@/utils/storage";
  16. import {
  17. ref
  18. } from 'vue';
  19. import {
  20. request
  21. } from "@/utils/network/request.js";
  22. let listData = ref([])
  23. //卡券渠道类型获取单项权益列表
  24. request("a867bb01c200466b8715f3bb98be3eb9", {
  25. type: 2,
  26. data: {
  27. couponAgencyType: ['TUHU', 'ZFB'],
  28. mobile: getItem('mobile').toString()
  29. },
  30. method: "POST",
  31. showLoading: true,
  32. }).then((item) => {
  33. let res = JSON.parse(item.bizContent)
  34. console.log(res, '=========');
  35. listData.value = res.data
  36. })
  37. function onClick(singId: any) {
  38. uni.navigateTo({
  39. url: '/subpackage/service/equity/equity?singleEquityId=' + singId.singleEquityId +
  40. '&couponAgencyType=' + singId.couponAgencyType + '&couponId=' + singId.couponId,
  41. })
  42. }
  43. </script>
  44. <style lang='scss' scoped>
  45. </style>