down.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <template>
  2. <view class="box">
  3. <!-- <image :src="bg" class="bgimg"></image> -->
  4. <view class="main">
  5. <image :src="top" class="topimg"></image>
  6. <view class="topa">
  7. <image :src="topa" ></image>
  8. </view>
  9. <image :src="abg" class="abg"></image>
  10. <view class="btns" @click="getDown('user')" style="margin-top: -28rpx;"><image :src="user" class="imga"></image>用户端下载</view>
  11. <view class="btns" @click="getDown('wuye')"><image :src="usera" class="imgb" ></image>物业端下载</view>
  12. <view class="tips">
  13. <view class="tipa">
  14. <view class="tit">产品介绍</view>
  15. <view class="tita">PRODUCT INTRODUCTION</view>
  16. <view class="line"><image :src="line"></image></view>
  17. <view class="txt">千栗智慧社区管理平台是一款集房产管理、车辆管理、社区服务于一体的综合型千栗智慧社区管理软件。</view>
  18. <view class="txt">通过该软件,业主可以轻松管理自己的房产和车辆信息,实时查看社区内车位和充电桩位情况,同时关注家人的健康状况,并享受便捷的社区商城服务。</view>
  19. <view class="txt">对于物业公司而言,千栗智慧社区管理平台则提供了全面的社区人员管理、房产管理、进出记录监控、门禁控制、车位及充电桩管理以及物业费收缴等功能,极大的提升了物业管理效率和服务质量。
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <!-- <view class="regbox pregbox flexdc pr" id="regbox" style="padding-top: 120rpx;">
  26. <image :src="headimg" class="headimg flex0"></image>
  27. <view class="rbtn btn2" @click="getDown">立即下载</view>
  28. </view> -->
  29. </template>
  30. <script>
  31. import config from '@/config'
  32. const baseUrl = config.baseUrl
  33. export default {
  34. data(){
  35. return{
  36. bg:require('@/static/images/down/bg.png'),
  37. abg:require('@/static/images/down/abg.png'),
  38. boxbg:require('@/static/images/down/boxbg.png'),
  39. line:require('@/static/images/down/line.png'),
  40. top:require('@/static/images/down/top.png'),
  41. topa:require('@/static/images/down/topa.png'),
  42. user:require('@/static/images/down/user.png'),
  43. usera:require('@/static/images/down/usera.png'),
  44. userurl:"/profile/upload/2025/04/07/__UNI__E57E235__20250401144753_20250407105540A002.apk",
  45. useraurl:"/profile/upload/2025/04/07/__UNI__35B39A9__20250401144647_20250407105511A001.apk",
  46. }
  47. },
  48. methods:{
  49. isWechat() {
  50. return String(navigator.userAgent.toLowerCase().match(/MicroMessenger/i)) === "micromessenger";
  51. },
  52. getDown(type){
  53. if (this.isWechat()) {
  54. uni.showToast({
  55. title: '点击右上角在浏览器中打开后下载',
  56. icon: 'none',
  57. duration: 3000
  58. })
  59. return
  60. }
  61. var url=''
  62. if(type=='user'){
  63. url=baseUrl+this.userurl;
  64. }else{
  65. url=baseUrl+this.useraurl;
  66. }
  67. let a = document.createElement('a');
  68. a.setAttribute('href', url);
  69. a.setAttribute('download', 'downapp');
  70. a.innerHTML = "立即下载";
  71. document.body.appendChild(a);
  72. a.click();
  73. a.remove()
  74. }
  75. },
  76. onLoad: function() {
  77. },
  78. }
  79. </script>
  80. <style lang="scss" scoped>
  81. .box{position: relative;height: 100vh;overflow: auto;background: url(../static/images/down/bg.png) no-repeat;background-size: 100% 100%;
  82. .bgimg{width: 100%;min-height: 100vh;position: absolute;left: 0;right: 0;bottom: 0;top: 0;z-index: 0;}
  83. .main{padding: 40rpx 0 76rpx;position: relative;
  84. .topimg{width: 240rpx;height: 32rpx;margin-left: 40rpx;margin-bottom: 44rpx;}
  85. .topa{margin:0 auto;padding-left: 28rpx;width: 734rpx;box-sizing: border-box;
  86. image{width: 706rpx;height: 388rpx;}
  87. }
  88. .abg{width: 620rpx;height: 664rpx;margin-top: -144rpx;}
  89. .btns{width: 392rpx;height: 68rpx;border: 2rpx solid #222222;display: flex;align-items: center;justify-content: center;font-size: 32rpx;color: #222222;border-radius: 68rpx;margin:0 auto 34rpx;
  90. .imga{width: 40rpx;height: 36rpx;margin-right: 24rpx;}
  91. .imgb{width: 38rpx;height: 40rpx;margin-right: 28rpx;}
  92. }
  93. .tips{padding:0 12rpx 0 40rpx; margin-top: 74rpx;}
  94. .tipa{background: url(../static/images/down/boxbg.png) no-repeat;background-size: 100% 100%;padding: 46rpx 66rpx 80rpx 38rpx;width: 698rpx;margin: 0 auto;box-sizing: border-box;
  95. .tit{font-weight: bold;font-size: 44rpx;color: #222222;text-align: center;margin-bottom: 4rpx;}
  96. .tita{color: #222222;font-size: 18rpx;
  97. line-height: 36rpx;text-align: center;}
  98. .line{width: 100%;box-sizing: border-box;margin-top: 26rpx;margin-bottom: 40rpx;
  99. image{width: 100%;height: 16rpx;}
  100. }
  101. .txt{font-size: 24rpx;text-indent: 2em;
  102. color: #434242;line-height: 40rpx;}
  103. }
  104. }
  105. }
  106. </style>