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.

productOption.vue 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <div>
  3. <custom-header title="选择产品" :back="false"></custom-header>
  4. <div class="bg">
  5. <view @click="listClick" class="layout as-gravity-center-start"
  6. style="background-image: url(../../static/image/bg1.png);">
  7. <image style="width: 60px;height: 60px;" src="../../static/image/product.png"></image>
  8. <view style="width:20px"></view>
  9. <view style="display: flex; flex-direction: column;justify-content:span-between;height: 60px;">
  10. <text style="font-size: 16px;">ETC系列产品</text>
  11. <view style="flex: 1;"></view>
  12. <view style="display: flex; flex-direction: row;">
  13. <text>储值卡</text>
  14. </view>
  15. </view>
  16. <text style="font-weight: bold;font-size: 20px;flex: 1;text-align: right;">¥168.00</text>
  17. </view>
  18. </div>
  19. <agreement :start="start" @disagree="disagree" @consent="consent">
  20. <view class="text">为了更好的向您提供服务,我们需要收集您的用户、车辆等信息用于ETC发行、售后。请您务必审慎阅读、充分理解<text class="link"
  21. bindtap="userAgreement">《用户协议》</text>和<text class="link"
  22. bindtap="privacyPolicy">《隐私政策》</text>各条款。如果您同意,请点击下面按钮开始接受我们的服务,如果不同意将会限制您使用部分功能。</view>
  23. </agreement>
  24. </div>
  25. </template>
  26. <script setup lang='ts'>
  27. import {
  28. ref
  29. } from 'vue'
  30. import CustomHeader from '@/components/CustomHeader.vue';
  31. import Agreement from '@/components/Agreement.vue';
  32. const start = ref(false)
  33. function listClick() {
  34. start.value = true
  35. }
  36. function disagree() {
  37. start.value = false
  38. }
  39. // 检查是否在微信环境中
  40. function isWeChat() {
  41. var ua = navigator.userAgent.toLowerCase();
  42. return ua.indexOf('micromessenger') !== -1;
  43. }
  44. //点击确认
  45. function consent() {
  46. start.value = false
  47. uni.navigateTo({
  48. url: '/pages/memoryCardApplication/memoryCardApplication',
  49. animationType: 'pop-in',
  50. animationDuration: 500
  51. })
  52. // if (isWeChat()) {
  53. // // alert('请在微信中打开该链接123');
  54. // // 使用微信提供的接口跳转
  55. // // wx.miniProgram.navigateTo({
  56. // // appId: 'wx008c60533388527a',
  57. // // path: 'pages/sign/auth'
  58. // // });
  59. // // 例如,点击事件处理函数
  60. // window.location.href = 'https://file.etcjz.cn/file/web/sign.html?orderId=dcddf9c632fb4b4ca435b4d0aa2605b4';
  61. // //https://file.etcjz.cn/file/web/sign.html?orderId=dcddf9c632fb4b4ca435b4d0aa2605b4
  62. // // uni.navigateToMiniProgram({
  63. // // appId: 'wx008c60533388527a', // 要跳转的小程序appid
  64. // // path: 'pages/loginSing/appAuth', // 跳转的小程序页面路径,可选
  65. // // extraData: { // 传递给目标小程序的参数,可选
  66. // // foo: 'bar'
  67. // // },
  68. // // success: function () {
  69. // // console.log('跳转成功');
  70. // // }
  71. // // });
  72. // } else {
  73. // // 在非微信环境中给出提示
  74. // alert('请在微信中打开该链接');
  75. // }
  76. }
  77. </script>
  78. <style lang='scss' scoped>
  79. .layout {
  80. background-color: white;
  81. height: 70px;
  82. border-radius: 8px;
  83. padding: 8px 15px;
  84. flex-direction: row;
  85. background-size: cover;
  86. background-position: center;
  87. background-repeat: no-repeat;
  88. color: #FFFFFF;
  89. }
  90. </style>