apply.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <view class="applyContainer">
  3. <view class="main">
  4. <view class="tags"> 理赔申请 </view>
  5. <view class="content">
  6. 优惠券在使用微信支付后,若出现未满减的问题,为了避免顾客长时间的等待,可通过此通道按要求上传图片,审核通过后,会给您返现相应的金额红包请注意微信的<span
  7. class="green"
  8. >【服务通知】</span
  9. >
  10. </view>
  11. <view class="flex-center">
  12. <view class="btn" @click="toUpload"> 上传凭证 </view>
  13. </view>
  14. <view class="guide" @click="toGraph"
  15. >支付账单详情和优惠券的获取指引></view
  16. >
  17. </view>
  18. <image
  19. src="https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/dp.png"
  20. mode="scaleToFill"
  21. class="dun"
  22. />
  23. </view>
  24. </template>
  25. <script setup lang="ts">
  26. const toGraph = () => {
  27. uni.navigateTo({
  28. url: "/pagesOne/claim/graph",
  29. });
  30. };
  31. const toUpload = () => {
  32. //用户订阅消息模板消息
  33. wx.requestSubscribeMessage({
  34. tmplIds: ["FWGvRFSZ65JVrMsTqeBoT9hJYyeN9Z_aFAacMxoPlhY"],
  35. success(response: any) {
  36. if (
  37. response["FWGvRFSZ65JVrMsTqeBoT9hJYyeN9Z_aFAacMxoPlhY"] === "accept"
  38. ) {
  39. // uni.showToast({ title: "操作成功!", icon: "none" });
  40. }
  41. uni.navigateTo({
  42. url: "/pagesOne/claim/uploadRecept",
  43. });
  44. },
  45. fail(err) {
  46. // uni.showToast({ title: "订阅失败", icon: "error" });
  47. uni.navigateTo({
  48. url: "/pagesOne/claim/uploadRecept",
  49. });
  50. },
  51. });
  52. };
  53. </script>
  54. <style lang="scss" scoped>
  55. .applyContainer {
  56. background: $bg-green;
  57. width: 100%;
  58. height: 100vh;
  59. font-family: PingFang SC;
  60. overflow: hidden;
  61. .main {
  62. margin: 32rpx;
  63. border-radius: 16rpx;
  64. background: #fff;
  65. padding: 32rpx;
  66. box-sizing: border-box;
  67. .tags {
  68. width: 134rpx;
  69. text-align: center;
  70. line-height: 48rpx;
  71. color: #fff;
  72. font-size: 24rpx;
  73. text-align: center;
  74. background: $bg-green2;
  75. border-radius: 8rpx;
  76. }
  77. .content {
  78. font-size: 32rpx;
  79. margin: 24rpx 0 80rpx;
  80. .green {
  81. color: #224f36;
  82. }
  83. }
  84. .btn {
  85. @include btnStyle(560rpx, 104rpx);
  86. }
  87. .guide {
  88. color: #2a6443;
  89. font-size: 28rpx;
  90. text-align: center;
  91. margin-top: 20rpx;
  92. text-decoration: underline;
  93. }
  94. }
  95. .dun {
  96. width: 212rpx;
  97. height: 216rpx;
  98. float: right;
  99. }
  100. }
  101. </style>