|
|
@@ -77,18 +77,36 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<instructions v-if="flag" @parent_cancel="cancel" @parent_noshow='noshow'></instructions>
|
|
|
+ <view class="call">
|
|
|
+ <button class="default-btn floating-button-call" @tap="makeCall"></button>
|
|
|
+ </view>
|
|
|
+ <view class="operation-manual">
|
|
|
+ <button class="default-btn floating-button-manual" @tap="showPopup = true"></button>
|
|
|
+ </view>
|
|
|
+ <Popup :showPopup="showPopup" @close="showPopup = false">
|
|
|
+ <scroll-view class="article" scroll-y>
|
|
|
+ <view class="desc-title">{{ article.title }}</view>
|
|
|
+ <view v-for="(section, index) in article.sections" :key="index" class="section">
|
|
|
+ <view v-if="section.red == true" class="section-title-red">{{ section.title }}</view>
|
|
|
+ <view v-else class="section-title">{{ section.title }}</view>
|
|
|
+ <view class="section-content">{{ section.content }}</view>
|
|
|
+ </view>
|
|
|
+ <view class="desc-footer"></view>
|
|
|
+ </scroll-view>
|
|
|
+ </Popup>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import instructions from '../../components/instructions.vue'
|
|
|
-
|
|
|
+ import Popup from '@/components/Popup.vue';
|
|
|
export default {
|
|
|
/**
|
|
|
* 声明组件
|
|
|
*/
|
|
|
components: {
|
|
|
- instructions
|
|
|
+ instructions,
|
|
|
+ Popup
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -138,7 +156,79 @@
|
|
|
changeDate: false, // 是否是手动选择日期
|
|
|
get_Bluetooth_Bevice: false, // 自动获取蓝牙设备,并列表
|
|
|
timer: -1,
|
|
|
- test: this.$store.state.test
|
|
|
+ test: this.$store.state.test,
|
|
|
+ showPopup: false,
|
|
|
+ article: {
|
|
|
+ title: "蓝牙卡控操作说明",
|
|
|
+ sections: [{
|
|
|
+ title: "蓝牙卡控使用方式为:",
|
|
|
+ content: " 用微信【扫一扫】功能,扫描热水表上的二维码。",
|
|
|
+ red: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "如遇连接热水表问题,请先检查:",
|
|
|
+ content: " 1.蓝牙本身无故障,且手机蓝牙和GPS定位要开启,并要授权。\n" +
|
|
|
+ " 2.手机系统要求出厂自带的,系统版本低于安卓4.3或刷过机的,可能搜索不到热水表。\n" +
|
|
|
+ " 3.之前已经连接过热水表需正常退出,否则再次连接可能搜索不到热水表,需关闭蓝牙5秒钟后再尝试。\n" +
|
|
|
+ " 4.热水表有人在使用,热水表肯定连接不了。\n" +
|
|
|
+ " 5.用微信分身,连接热水表会存在意想不到的问题。\n" +
|
|
|
+ " 6.在连接热水表前,请断开如蓝牙耳机、蓝牙音像等其他蓝牙设备。",
|
|
|
+ red: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "如以上检查没问题,部分手机请检查以下权限是否打开(以下路径不能保证绝对正确,不同手机品牌和版本号会有区别,可自行百度或联系客服):",
|
|
|
+ content: "",
|
|
|
+ red: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "华为手机:",
|
|
|
+ content: " 设置→安全和隐私→定位服务→打开“访问我的位置信息”。\n" +
|
|
|
+ " 设置→应用和通知→权限管理→微信→打开“您的位置”。",
|
|
|
+ red: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "小米手机:",
|
|
|
+ content: " 设置→更多设置→系统安全→位置信息→开启“位置服务”。\n" +
|
|
|
+ " 设置→授权管理→应用授权管理→微信→开启“定位”。",
|
|
|
+ red: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "苹果手机:",
|
|
|
+ content: " 设置→隐私→打开“定位服务”。\n" +
|
|
|
+ " 设置→微信→位置→使用应用期间。",
|
|
|
+ red: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "OPPO手机:",
|
|
|
+ content: " 设置→GPS定位→开启“允许访问我的位置信息。\n" +
|
|
|
+ " 设置→权限隐私→按应用管理权限→微信→授权。",
|
|
|
+ red: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "VIVO手机:",
|
|
|
+ content: " 设置→定位服务→开启。\n" +
|
|
|
+ " 设置→更多设置→权限管理→微信→定位手机选择“允许”。",
|
|
|
+ red: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "三星手机:",
|
|
|
+ content: " 设置→连接→打开定位服务。\n" +
|
|
|
+ " 设置→应用程序→微信→权限→开启位置信息。",
|
|
|
+ red: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "魅族手机:",
|
|
|
+ content: " 设置→定位服务→开启:\n" +
|
|
|
+ " 设置→应用管理→选择已安装→微信→权限管理→获取定位(允许)。",
|
|
|
+ red: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "多卡号(一个人有2个以上微信身份卡号)扣款问题:",
|
|
|
+ content: " 遇到多卡,扣款会从第1次绑定的卡中扣款,如想从指定的卡中扣款,请先删除微信小程序(微信界面下拉,长按本小程序并拖动删除),再用指定的卡进入即可。",
|
|
|
+ red: true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
@@ -254,6 +344,14 @@
|
|
|
},
|
|
|
methods: {
|
|
|
/**
|
|
|
+ * 拨号
|
|
|
+ */
|
|
|
+ makeCall() {
|
|
|
+ uni.makePhoneCall({
|
|
|
+ phoneNumber: '18312075670' // 替换为您想要拨打的电话号码
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /**
|
|
|
* 单击连接热水表
|
|
|
*/
|
|
|
clickRoom(e) {
|
|
|
@@ -365,7 +463,7 @@
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 获取code
|
|
|
this.getCode(options, param);
|
|
|
},
|
|
|
@@ -410,7 +508,7 @@
|
|
|
if (res.data.mess == '返回成功') {
|
|
|
// stu_number是否存在
|
|
|
let cardNumber = res.data.info[0].card_number
|
|
|
- if (typeof(cardNumber) != 'undefined' && cardNumber != '' && JSON.stringify(cardNumber) != '{}') {
|
|
|
+ if (typeof cardNumber != 'undefined' && cardNumber != '' && JSON.stringify(cardNumber) != '{}') {
|
|
|
// 学号 和 姓名
|
|
|
_this.stu_number = res.data.info[0].stu_number
|
|
|
_this.user_name = res.data.info[0].user_name
|
|
|
@@ -423,7 +521,7 @@
|
|
|
// 校区
|
|
|
// _this.compus = res.data.info[0].campus
|
|
|
|
|
|
- if (param == 'onLoad' && typeof(options.from) != 'undefined' && options.from != 0) {
|
|
|
+ if (param == 'onLoad' && typeof options.from != 'undefined' && options.from != 0) {
|
|
|
// 初始化蓝牙
|
|
|
_this.openBluetoothAdapter()
|
|
|
}
|
|
|
@@ -447,7 +545,7 @@
|
|
|
title: '获取用户信息失败!'
|
|
|
})
|
|
|
|
|
|
- if (options && typeof(options.from) != 'undefined' && typeof(options.from) != '') {
|
|
|
+ if (options && typeof options.from != 'undefined' && typeof options.from != '') {
|
|
|
uni.navigateTo({
|
|
|
url: '../../pages/index/index?from=' + options.from
|
|
|
})
|
|
|
@@ -1786,5 +1884,85 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .call {
|
|
|
+ position: fixed;
|
|
|
+ right: 40rpx;
|
|
|
+ bottom: 80rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .default-btn {
|
|
|
+ background-color: transparent;
|
|
|
+ border: none;
|
|
|
+ outline: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .floating-button-call {
|
|
|
+ position: relative;
|
|
|
+ font-size: 28rpx;
|
|
|
+ width: 80rpx;
|
|
|
+ height: 80rpx;
|
|
|
+ border: 1px solid #ccc;
|
|
|
+ border-radius: 50%;
|
|
|
+ opacity: 0.5;
|
|
|
+ background: url('images/kefu.png') center center no-repeat;
|
|
|
+ }
|
|
|
+
|
|
|
+ .operation-manual {
|
|
|
+ position: fixed;
|
|
|
+ right: 40rpx;
|
|
|
+ bottom: 180rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .floating-button-manual {
|
|
|
+ position: relative;
|
|
|
+ font-size: 28rpx;
|
|
|
+ width: 80rpx;
|
|
|
+ height: 80rpx;
|
|
|
+ border: 1px solid #ccc;
|
|
|
+ border-radius: 50%;
|
|
|
+ opacity: 0.5;
|
|
|
+ background: url('images/yhsc.png') center center no-repeat;
|
|
|
+ }
|
|
|
+
|
|
|
+ .article {
|
|
|
+ padding: 20rpx;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .desc-title {
|
|
|
+ height: 50rpx;
|
|
|
+ line-height: 50rpx;
|
|
|
+ font-size: 36rpx;
|
|
|
+ font-weight: bold;
|
|
|
+ margin-bottom: 50rpx;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .section {
|
|
|
+ margin-bottom: 40rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .section-title-red,
|
|
|
+ .section-title {
|
|
|
+ font-size: 30rpx;
|
|
|
+ font-weight: bold;
|
|
|
+ margin-bottom: 10rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .section-title-red {
|
|
|
+ color: #ca0000;
|
|
|
+ }
|
|
|
+
|
|
|
+ .section-content {
|
|
|
+ font-size: 28rpx;
|
|
|
+ line-height: 1.5;
|
|
|
+ white-space: pre-wrap;
|
|
|
+ }
|
|
|
+
|
|
|
+ .desc-footer {
|
|
|
+ height: 50rpx;
|
|
|
+ line-height: 50rpx;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|