修改样式
This commit is contained in:
@@ -10,7 +10,10 @@
|
|||||||
<view style="height:50rpx"></view>
|
<view style="height:50rpx"></view>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
<!-- #ifdef APP-PLUS -->
|
<!-- #ifdef APP-PLUS -->
|
||||||
<button @click="handleDelete">删除缓存</button>
|
<!-- 删除设备ID--测试用 -->
|
||||||
|
<view class="del-cache" @click="handleDelete">
|
||||||
|
<uni-icons type="minus" size="30" color="#ffffff"></uni-icons>
|
||||||
|
</view>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
|
|
||||||
<!-- 搜索 @confirm="handleSearch" -->
|
<!-- 搜索 @confirm="handleSearch" -->
|
||||||
@@ -160,25 +163,26 @@ import {showLoading,hideLoading} from '@/utils/message.js'
|
|||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
// 获取 存储手机的module
|
// 获取 存储手机的module
|
||||||
const safeSave = uni.requireNativePlugin("Tm-TmSafeSaveFileModule");
|
const safeSave = uni.requireNativePlugin("Tm-TmSafeSaveFileModule");
|
||||||
|
|
||||||
const handleDelete=()=>{
|
const handleDelete=()=>{
|
||||||
safeSave.delSafeFile({
|
uni.showModal({
|
||||||
"key": "app_device_id"
|
title: '提示',
|
||||||
}, (res) => {
|
content: "是否确认删除设备ID?删除之后需重新绑定设备,谨慎操作!!!",
|
||||||
console.log(res);
|
cancelText: '取消',
|
||||||
if (res.code == 1) {
|
confirmText: '确定',
|
||||||
uni.showModal({
|
success: function (res) {
|
||||||
title: "删除成功",
|
if (res.confirm) {
|
||||||
content:"删除成功",
|
safeSave.delSafeFile({"key": "app_device_id"}, (res) => {
|
||||||
})
|
if (res.code == 1) {
|
||||||
} else {
|
uni.showModal({title: "提示",content:"删除成功"})
|
||||||
uni.showModal({
|
} else {
|
||||||
title: "读取失败",
|
uni.showModal({title: "删除失败",content: res.msg})
|
||||||
content: res.msg,
|
}
|
||||||
|
})
|
||||||
})
|
} else if (res.cancel) {
|
||||||
}
|
|
||||||
})
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
@@ -370,6 +374,22 @@ const formatDateStr =(times)=>{
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scope>
|
<style scope>
|
||||||
|
.del-cache{
|
||||||
|
position: fixed;
|
||||||
|
right:30rpx;
|
||||||
|
bottom:30%;
|
||||||
|
width:60rpx;
|
||||||
|
height: 60rpx;
|
||||||
|
line-height: 60rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
background:#579FF9;
|
||||||
|
font-size:12px;
|
||||||
|
padding:5rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
.scroll-h{
|
.scroll-h{
|
||||||
/* #ifdef APP-PLUS */
|
/* #ifdef APP-PLUS */
|
||||||
height:calc(100vh - 30px) !important;
|
height:calc(100vh - 30px) !important;
|
||||||
|
|||||||
@@ -273,6 +273,8 @@ const submitForm = () => {
|
|||||||
userStore.login(res);
|
userStore.login(res);
|
||||||
uni.switchTab({ url: '/pages/home/home' })
|
uni.switchTab({ url: '/pages/home/home' })
|
||||||
btnLoading.value = false;
|
btnLoading.value = false;
|
||||||
|
}).finally(()=>{
|
||||||
|
btnLoading.value = false;
|
||||||
})
|
})
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user