problem.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <template>
  2. <view style="margin: 20rpx;">
  3. <u-navbar :border-bottom="false" :is-back="true" title="常见问题"></u-navbar>
  4. <u-collapse class="u-p-30">
  5. <u-collapse-item v-for="(item, index) in itemList" :key="index" :open="item.open" :title="item.head">
  6. {{ item.body }}
  7. </u-collapse-item>
  8. </u-collapse>
  9. <view class="u-m-t-20">
  10. <u-button class="u-m-20" plain type="default" @click="server">
  11. <u-icon color="#969799" name="level" size="38"></u-icon>
  12. 前往官网
  13. </u-button>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. appUrl: false,
  22. url: "https://sourcebyte.cn",
  23. itemList: [
  24. {
  25. head: "初始密码是什么?",
  26. body: "初始密码默认为手机号码,为了您的账户安全,请进入个人中心进行修改。",
  27. open: false,
  28. },
  29. {
  30. head: "技术支持电话是多少?",
  31. body: "联系电话:18720989281",
  32. open: false,
  33. },
  34. {
  35. head: "关于我们",
  36. body: "我们专注提供专业的软件产品和技术。为合作伙伴提供安全可靠的软件产品与解决方案,共同帮助终端用户实现业务创新、快速发展。",
  37. open: true,
  38. },
  39. {
  40. head: "加入我们",
  41. body: "邮箱:261648947@qq.com",
  42. open: false,
  43. },
  44. ],
  45. }
  46. },
  47. methods: {
  48. server() {
  49. let url = "https://sourcebyte.vip"
  50. // #ifdef H5
  51. window.open(url, '_blank');
  52. // #endif
  53. // #ifndef H5
  54. this.$u.route("/pages/webview/webview", {
  55. title: '关于我们',
  56. src: url
  57. });
  58. // #endif
  59. // if(this.isWeiXinLogin){
  60. // uni.showToast({
  61. // icon:'none',
  62. // title:'www.sourcebyte.cn',
  63. // duration:5000
  64. // })
  65. // }else{
  66. // window.open(this.url)
  67. // }
  68. },
  69. download() {
  70. this.DownLoadAndroid();
  71. },
  72. //判断是否微信登陆
  73. isWeiXinLogin() {
  74. // #ifdef H5
  75. let ua = window.navigator.userAgent.toLowerCase()
  76. if (ua.match(/MicroMessenger/i) == 'micromessenger') {
  77. return true;
  78. }
  79. // #endif
  80. return false;
  81. },
  82. //安卓下载
  83. DownLoadAndroid() {
  84. if (this.isWeiXinLogin()) {
  85. uni.showToast({
  86. icon: 'none',
  87. title: '请复制链接,在浏览器中打开下载',
  88. duration: 3000
  89. })
  90. this.appUrl = true;
  91. return;
  92. }
  93. var downloadUrl = 'http://8.136.213.245/profile/apk/yixin.apk'; // 下载地址
  94. var urlStr = encodeURI(downloadUrl)
  95. // #ifdef APP-PLUS
  96. plus.runtime.openURL(urlStr);
  97. return;
  98. // #endif
  99. // #ifdef H5
  100. window.open(urlStr);
  101. // #endif
  102. },
  103. }
  104. };
  105. </script>
  106. <style>
  107. page {
  108. background: #fff;
  109. }
  110. .appUrl {
  111. padding: 20 rpx;
  112. }
  113. </style>