simple.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <template>
  2. <v-page>
  3. <v-header>
  4. <template #title>
  5. <view>
  6. {{ $t("help.h0") }}
  7. <!-- <span class="color-theme-1">123</span> -->
  8. </view>
  9. </template>
  10. </v-header>
  11. <view class="layout-main p-x-lg">
  12. <view class="purchase-container">
  13. <view class="purchase__left">
  14. <text class="purchase--title">
  15. {{ $t("help.h1") }} <br />
  16. {{ $t("help.h2") }}
  17. </text>
  18. <view class="purchase--desc-container">
  19. <img
  20. class="purchase--desc-img"
  21. src="/static/img/articles/101.png"
  22. alt=""
  23. />
  24. {{ $t("help.h3") }}
  25. <img
  26. class="purchase--desc-img"
  27. src="/static/img/articles/101.png"
  28. alt=""
  29. />
  30. </view>
  31. <view class="purchase--version">
  32. {{ $t("help.h4") }} <text>4.1.1</text>
  33. <img src="/static/img/articles/102.png" alt="" />
  34. {{ $t("help.h5") }}
  35. </view>
  36. </view>
  37. <img
  38. class="purchase__right"
  39. src="/static/img/articles/100.png"
  40. alt=""
  41. />
  42. </view>
  43. <view class="m-b-lg layout-main-container bg-panel-3">
  44. <view
  45. class="moompys"
  46. block
  47. @click="jump('https://www.simplex.com/buy-crypto')"
  48. >{{ $t("help.a3") }}</view
  49. >
  50. <view class="txt" @click="links('/pages/help/moompy')"> {{ $t("help.h6") }} </view>
  51. <view
  52. class="chainbits"
  53. block
  54. @click="jump('https://changenow.io/?from=usd&to=btc&fiatMode=true')"
  55. >{{ $t("help.f0") }}</view
  56. >
  57. <view class="txt" @click="links('/pages/help/chainbits')"> {{ $t("help.h6") }} </view>
  58. </view>
  59. </view>
  60. <van-toast id="van-toast" />
  61. </v-page>
  62. </template>
  63. <script>
  64. export default {
  65. components: {},
  66. data() {
  67. return {};
  68. },
  69. onLoad() {},
  70. methods: {
  71. links(href) {
  72. // this.$router.push({ path: href });
  73. uni.navigateTo({
  74. url:href,
  75. fail() {
  76. uni.switchTab({
  77. url:href
  78. })
  79. }
  80. })
  81. },
  82. jump(href) {
  83. // #ifdef H5
  84. window.location.href = href;
  85. // #endif
  86. // #ifdef APP-PLUS
  87. plus.runtime.openURL(href)
  88. // #endif
  89. },
  90. },
  91. };
  92. </script>
  93. <style lang="scss" scoped>
  94. .moompys,
  95. .chainbits {
  96. background-size: 100% 100%;
  97. background-blend-mode: normal, normal;
  98. border-radius: 44px;
  99. text-align: center;
  100. height: 88rpx;
  101. line-height: 88rpx;
  102. color: #fff;
  103. /deep/ uni-button {
  104. background-color: rgba(0, 0, 0, 0);
  105. }
  106. &.moompys {
  107. background-image: $gradient-blue;
  108. }
  109. &.chainbits {
  110. margin-top: 60rpx;
  111. background-image: $gradient-red;
  112. }
  113. }
  114. .txt {
  115. font-size: 30rpx;
  116. font-weight: normal;
  117. font-stretch: normal;
  118. line-height: 24rpx;
  119. color: #ffffff;
  120. opacity: 0.7;
  121. text-align: center;
  122. padding: 48rpx 0 40rpx;
  123. position: relative;
  124. &::after {
  125. content: "";
  126. position: absolute;
  127. bottom: 0;
  128. left: 0;
  129. width: 100%;
  130. border-bottom: 1px solid rgba(#fff, 0.5);
  131. }
  132. }
  133. .purchase-container {
  134. position: relative;
  135. padding-top: 100rpx;
  136. .purchase__left {
  137. text-align: center;
  138. width: calc(100% - 150rpx);
  139. .purchase--title {
  140. font-size: 35rpx;
  141. color: #ffffff;
  142. line-height: 80rpx;
  143. }
  144. }
  145. .purchase__right {
  146. position: absolute;
  147. top: 100rpx;
  148. right: 0;
  149. width: 200rpx;
  150. }
  151. .purchase--desc-container {
  152. position: relative;
  153. text-align: center;
  154. display: inline-block;
  155. line-height: 100rpx;
  156. color: rgba(#fff, 0.5);
  157. font-size: 24rpx;
  158. .purchase--desc-img {
  159. position: absolute;
  160. width: 100%;
  161. height: 4rpx;
  162. left: 0;
  163. &:first-of-type {
  164. top: 0;
  165. }
  166. &:last-of-type {
  167. bottom: 0;
  168. }
  169. }
  170. }
  171. .purchase--version {
  172. margin-top: 60rpx;
  173. font-size: 20rpx;
  174. color: rgba(#fff, 0.5);
  175. display: flex;
  176. justify-content: center;
  177. align-items: center;
  178. img {
  179. width: 15rpx;
  180. height: 15rpx;
  181. display: inline-block;
  182. margin-right: 4rpx;
  183. }
  184. text {
  185. background-color: #00d875;
  186. display: inline-block;
  187. margin: 0 10rpx;
  188. padding: 0 4rpx;
  189. border-radius: 2rpx;
  190. }
  191. }
  192. }
  193. .layout-main {
  194. padding-bottom: 36rpx;
  195. }
  196. .layout-main-container {
  197. margin-top: 90rpx;
  198. border-radius: 20rpx;
  199. // padding: 36rpx;
  200. padding: 70rpx 100rpx;
  201. }
  202. </style>