index - 副本.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <view>
  3. <iframe src="https://www.baidu.com/" class="iframe-box" frameborder="0" allowfullscreen>
  4. </iframe>
  5. <gap />
  6. <view class="operate">
  7. <view class="operate-item">
  8. 买入/做多
  9. </view>
  10. <view class="operate-item">
  11. 卖出/做空
  12. </view>
  13. </view>
  14. <openPopup ref="openPopupRef" />
  15. <popupHint ref="hintRef">
  16. <template #hintContent>
  17. <view class="">
  18. 赠金交易是BiKing交易所的赠品交易系统,交易盈利部分可实时划转至合约钱包。
  19. </view>
  20. <view class="">
  21. 赠金获取方式:
  22. </view>
  23. <view class="content-list">
  24. <text>1. 完成任务中心的各项任务</text>
  25. <text>2. 参与平台活动</text>
  26. <text>3. 不定期新老用户赠金空投</text>
  27. </view>
  28. <view class="">
  29. 更多内容请点击<text class="explain">《赠金交易》</text>
  30. </view>
  31. <view class="hite-box" @click.stop="readPact = !readPact">
  32. <text class="box">
  33. <text v-show="readPact" class="iconfont2">&#xe6c5;</text>
  34. </text>
  35. <text>不在提示</text>
  36. </view>
  37. <view class="confirm-btn" @click.stop="confirmHiteBtn">
  38. 确定
  39. </view>
  40. </template>
  41. </popupHint>
  42. </view>
  43. </template>
  44. <script>
  45. import openPopup from "./open.vue"
  46. import popupHint from "../modules/popup-hint.vue"
  47. export default {
  48. name: 'login',
  49. components:{openPopup , popupHint},
  50. data() {
  51. return {
  52. readPact : false
  53. };
  54. },
  55. created() {
  56. this.openPactPopup()
  57. },
  58. methods:{
  59. openPactPopup() {
  60. const readPactObj = this.$getStorageSync('contractReadPact');
  61. if (readPactObj && !readPactObj.capitalPact) {
  62. this.readPact = false
  63. this.$nextTick(() => {
  64. this.$refs.hintRef.open()
  65. })
  66. }
  67. },
  68. // 提示弹框确认按钮
  69. confirmHiteBtn() {
  70. // t.readPact
  71. const readPactObj = this.$getStorageSync('contractReadPact') || {}
  72. readPactObj.capitalPact = this.readPact
  73. this.$setStorageSync('contractReadPact', readPactObj)
  74. this.$refs.hintRef.close();
  75. }
  76. }
  77. }
  78. </script>
  79. <style lang="scss" scoped>
  80. .iframe-box {
  81. width: 100%;
  82. min-height: 800rpx;
  83. }
  84. .operate {
  85. padding: 30rpx $pages-padding 0;
  86. width: 100%;
  87. display: flex;
  88. justify-content: space-between;
  89. align-items: center;
  90. .operate-item{
  91. width: 338rpx;
  92. height: 80rpx;
  93. text-align: center;
  94. line-height: 80rpx;
  95. background: #05c175;
  96. border-radius: 8rpx;
  97. font-size: 28rpx;
  98. font-family: PingFang SC, PingFang SC-Bold;
  99. font-weight: 700;
  100. color: #ffffff;
  101. & + .operate-item{
  102. background-color: #EF3E58;
  103. }
  104. }
  105. }
  106. </style>