down.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <template>
  2. <view>
  3. <!-- <navbar backColor="#fff" :config="config"></navbar> -->
  4. <view class="backBox">
  5. <image src="/static/down/download_pattern_left.png" mode=""></image>
  6. <image src="/static/down/download_pattern_right.png" mode=""></image>
  7. </view>
  8. <view>
  9. <view class="top-box">
  10. <!-- <image src="@/static/logo.png" mode="" class="logo"></image> -->
  11. <image src="/static/login/logo.png" mode="" class="logo"></image>
  12. </view>
  13. <view class="btn-row">
  14. <button class="btn" @click="downLoad(1)">
  15. <image src="/static/login/android.png" mode="" class="logo"></image>
  16. 安卓下载
  17. </button>
  18. <button class="btn" @click="downLoad(2)">
  19. <image src="/static/login/ios.png" mode="" class="logo"></image>
  20. IOS下载
  21. </button>
  22. </view>
  23. </view>
  24. <image class="bottomBg" mode="widthFix" src="/static/down/top_bg_mobile.png"></image>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. data() {
  30. return {
  31. config: {
  32. back: true, //false是tolbar页面 是则不写
  33. title: "下载",
  34. color: "#fff",
  35. //背景颜色;参数一:透明度(0-1);参数二:背景颜色(array则为线性渐变,string为单色背景)
  36. backgroundColor: [1, "#3775F6"],
  37. statusBarFontColor: "#ffffff",
  38. },
  39. appInfo: null,
  40. };
  41. },
  42. onLoad(options) {
  43. this.getData();
  44. },
  45. methods: {
  46. getData() {
  47. this.$http.get("/app/config/info").then((res) => {
  48. if (res && res.code == 200) {
  49. this.appInfo = res.data;
  50. }
  51. });
  52. },
  53. downLoad(type) {
  54. window.location.href = type == 1 ? this.appInfo.android_link : this.appInfo.ios_link;
  55. },
  56. },
  57. };
  58. </script>
  59. <style lang='scss' scopd>
  60. .backBox{
  61. display: flex;
  62. justify-content: space-between;
  63. >image{
  64. width: 21.66%;
  65. }
  66. }
  67. .top-box {
  68. display: flex;
  69. width: 100%;
  70. align-items: center;
  71. justify-content: center;
  72. position: relative;
  73. top: -80rpx;
  74. .logo {
  75. width: 186rpx;
  76. height: 186rpx;
  77. }
  78. }
  79. .btn-row {
  80. margin-top: 100rpx;
  81. display: flex;
  82. justify-content: space-around;
  83. flex-direction: column;
  84. align-items: center;
  85. .btn {
  86. border-radius: 60rpx;
  87. width: 80%;
  88. background: #3D93FC;
  89. color: #fff;
  90. margin-top: 30rpx;
  91. display: flex;
  92. align-items: center;
  93. justify-content: center;
  94. image{
  95. width: 40rpx;
  96. height: 40rpx;
  97. margin-right: 10rpx;
  98. }
  99. }
  100. }
  101. .bottomBg{
  102. width: 100%;
  103. position: absolute;
  104. bottom: 0;
  105. left: 0;
  106. transform: rotate(180deg);
  107. }
  108. </style>