123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- <template>
- <view style="margin: 20rpx;">
- <u-navbar :border-bottom="false" :is-back="true" title="常见问题"></u-navbar>
- <u-collapse class="u-p-30">
- <u-collapse-item v-for="(item, index) in itemList" :key="index" :open="item.open" :title="item.head">
- {{ item.body }}
- </u-collapse-item>
- </u-collapse>
- <view class="u-m-t-20">
- <u-button class="u-m-20" plain type="default" @click="server">
- <u-icon color="#969799" name="level" size="38"></u-icon>
- 前往官网
- </u-button>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- appUrl: false,
- url: "https://sourcebyte.cn",
- itemList: [
- {
- head: "初始密码是什么?",
- body: "初始密码默认为手机号码,为了您的账户安全,请进入个人中心进行修改。",
- open: false,
- },
- {
- head: "技术支持电话是多少?",
- body: "联系电话:18720989281",
- open: false,
- },
- {
- head: "关于我们",
- body: "我们专注提供专业的软件产品和技术。为合作伙伴提供安全可靠的软件产品与解决方案,共同帮助终端用户实现业务创新、快速发展。",
- open: true,
- },
- {
- head: "加入我们",
- body: "邮箱:261648947@qq.com",
- open: false,
- },
- ],
- }
- },
- methods: {
- server() {
- let url = "https://sourcebyte.vip"
- // #ifdef H5
- window.open(url, '_blank');
- // #endif
- // #ifndef H5
- this.$u.route("/pages/webview/webview", {
- title: '关于我们',
- src: url
- });
- // #endif
- // if(this.isWeiXinLogin){
- // uni.showToast({
- // icon:'none',
- // title:'www.sourcebyte.cn',
- // duration:5000
- // })
- // }else{
- // window.open(this.url)
- // }
- },
- download() {
- this.DownLoadAndroid();
- },
- //判断是否微信登陆
- isWeiXinLogin() {
- // #ifdef H5
- let ua = window.navigator.userAgent.toLowerCase()
- if (ua.match(/MicroMessenger/i) == 'micromessenger') {
- return true;
- }
- // #endif
- return false;
- },
- //安卓下载
- DownLoadAndroid() {
- if (this.isWeiXinLogin()) {
- uni.showToast({
- icon: 'none',
- title: '请复制链接,在浏览器中打开下载',
- duration: 3000
- })
- this.appUrl = true;
- return;
- }
- var downloadUrl = 'http://8.136.213.245/profile/apk/yixin.apk'; // 下载地址
- var urlStr = encodeURI(downloadUrl)
- // #ifdef APP-PLUS
- plus.runtime.openURL(urlStr);
- return;
- // #endif
- // #ifdef H5
- window.open(urlStr);
- // #endif
- },
- }
- };
- </script>
- <style>
- page {
- background: #fff;
- }
- .appUrl {
- padding: 20 rpx;
- }
- </style>
|