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.

equitySelection.vue 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <template>
  2. <view style="height: 100%">
  3. <custom-header :back="false" title="权益简介"></custom-header>
  4. <view class="product-content">
  5. <scroll-view scroll-y="true" style="height: 100%">
  6. <u-parse
  7. :html="cusQdOrderVal.productIntro"
  8. style="padding-left: 10rpx"
  9. ></u-parse>
  10. </scroll-view>
  11. </view>
  12. <!-- <view class="empty-con" v-else>
  13. <u-empty text="暂未选择权益" mode="data"></u-empty>
  14. </view> -->
  15. <view class="bottom-btn">
  16. <button type="success" class="btn-txt btn" @click="handleConfirm">
  17. 确认申办该权益产品
  18. </button>
  19. </view>
  20. </view>
  21. </template>
  22. <script setup lang="ts">
  23. import { unifyTemplate } from '@/hooks/unifyTemplate';
  24. import { nextTick, ref } from 'vue';
  25. import { onLoad } from '@dcloudio/uni-app';
  26. // import handleAmount from '@/utils/handleAmount.js';
  27. // import { request } from '@/utils/network/request';
  28. let config = ref<any>({
  29. submitName: '下一步',
  30. titleWidth: 160
  31. });
  32. const {
  33. CustomHeader, //头部组件
  34. initData, //初始化数据
  35. qdOrderVal, //qdOrder中数据 ref
  36. cusQdOrderVal
  37. } = unifyTemplate(); //初始化数据
  38. let show = ref(false);
  39. let productIntro = ref('');
  40. let equityId = ref('');
  41. //获取页面配置
  42. onLoad((opin) => {
  43. initData(opin, -2).then((data) => {
  44. console.log(data);
  45. if (opin && opin.equityId) {
  46. // if (opin.productIntro) {
  47. // productIntro.value = opin.productIntro;
  48. // }
  49. equityId.value = opin.equityId;
  50. }
  51. if (!cusQdOrderVal.value.promoteId) {
  52. uni.showModal({
  53. title: '提示',
  54. content: '请勿刷新页面,即将返回选择产品页...',
  55. success: () => {
  56. uni.navigateTo({
  57. url: '/pages/productSelection/productSelection',
  58. animationType: 'pop-in',
  59. animationDuration: 500
  60. });
  61. }
  62. });
  63. return;
  64. }
  65. // isShow.value = true
  66. delete data.config.tableConfig;
  67. config.value = Object.assign(data.config, config.value);
  68. });
  69. });
  70. function handleConfirm() {
  71. cusQdOrderVal.value.equityId = equityId.value;
  72. let { jumpPage } = config.value;
  73. uni.navigateTo({
  74. url: '/' + jumpPage,
  75. animationType: 'pop-in',
  76. animationDuration: 500
  77. });
  78. }
  79. </script>
  80. <style lang="scss" scoped>
  81. .product-content {
  82. height: calc(100% - 45px);
  83. font-size: 32rpx;
  84. color: #666;
  85. padding: 20rpx;
  86. padding-bottom: 140rpx;
  87. }
  88. .content-title {
  89. font-size: 50rpx;
  90. font-weight: bold;
  91. color: #222;
  92. }
  93. .content-price {
  94. font-size: 36rpx;
  95. padding-top: 20rpx;
  96. }
  97. .content-desc {
  98. font-size: 36rpx;
  99. padding: 20rpx 0;
  100. }
  101. .bottom-btn {
  102. position: fixed;
  103. bottom: 0;
  104. width: 100%;
  105. display: flex;
  106. justify-content: space-around;
  107. align-items: center;
  108. padding: 20rpx 20rpx 40rpx;
  109. background-color: #fff;
  110. }
  111. .popup-content {
  112. height: calc(100% - 80rpx);
  113. padding-bottom: 30rpx;
  114. .noClick {
  115. background-color: #eee !important;
  116. color: #ccc;
  117. }
  118. }
  119. .empty-con {
  120. text-align: center;
  121. margin-top: 40rpx;
  122. }
  123. </style>