This commit is contained in:
xyc 2025-08-25 10:04:53 +08:00
parent ee07d0a26a
commit bcfcca966b
4 changed files with 348 additions and 325 deletions

View File

@ -34,7 +34,8 @@
<script> <script>
import request from '../../utils/request'; import request from '../../utils/request';
import { import {
getToken,getUserInfo getToken,
getUserInfo
} from '@/utils/auth' } from '@/utils/auth'
let innerAudioContext = ''; let innerAudioContext = '';
// #ifdef APP || H5 // #ifdef APP || H5
@ -169,7 +170,10 @@
this.msgSocket.onMessage(res => { this.msgSocket.onMessage(res => {
console.log("发出提示音", res); console.log("发出提示音", res);
// this.getbottom(); // this.getbottom();
const ifHint = uni.getStorageSync("ifHint")
if (ifHint) {
this.dianyidain() this.dianyidain()
}
this.$emit('socketSuccess') this.$emit('socketSuccess')
}) })
} }

View File

@ -25,7 +25,7 @@
汇报内容 汇报内容
</view> </view>
<!-- <u--textarea v-if="type != 'look'" v-model="report.reportContent" placeholder="请输入内容"></u--textarea> --> <!-- <u--textarea v-if="type != 'look'" v-model="report.reportContent" placeholder="请输入内容"></u--textarea> -->
<textarea auto-height v-model="report.reportContent" placeholder="请输入内容" disabled></textarea> <textarea auto-height v-model="report.reportContent" placeholder="请输入内容"></textarea>
<view class="x_"></view> <view class="x_"></view>
<view class="d_b" @click="handleUpload" v-if="type != 'look'"> <view class="d_b" @click="handleUpload" v-if="type != 'look'">
<view class="">附件</view> <view class="">附件</view>

View File

@ -263,7 +263,7 @@
:localdata="insuranceTypeList"></uni-data-checkbox> :localdata="insuranceTypeList"></uni-data-checkbox>
</view> </view>
</view> </view>
<view style="display: flex;align-items: center"> <!-- <view style="display: flex;align-items: center">
<view class="infoItem" style="flex: 1"> <view class="infoItem" style="flex: 1">
<text class="label">上年保费</text> <text class="label">上年保费</text>
<view style="display: flex"> <view style="display: flex">
@ -273,7 +273,7 @@
placeholder="请输入商业险保费" /> placeholder="请输入商业险保费" />
</view> </view>
</view> </view>
</view> </view> -->
<view style="display: flex;align-items: center"> <view style="display: flex;align-items: center">
<view class="infoItem" style="flex: 1"> <view class="infoItem" style="flex: 1">
<text class="label">救援费</text> <text class="label">救援费</text>

View File

@ -6,8 +6,8 @@
<image class="formIcon" mode="aspectFit" src="/static/icons/userInfo_1.png"></image> <image class="formIcon" mode="aspectFit" src="/static/icons/userInfo_1.png"></image>
<text class="formLabel">头像</text> <text class="formLabel">头像</text>
<view class="formValue"> <view class="formValue">
<image v-if="''==customInfo.avatar || null == customInfo.avatar" :src="defaultAvatar" class="avatar" mode="scaleToFill" <image v-if="''==customInfo.avatar || null == customInfo.avatar" :src="defaultAvatar" class="avatar"
style="width: 64rpx;height: 64rpx;border-radius: 50%;"></image> mode="scaleToFill" style="width: 64rpx;height: 64rpx;border-radius: 50%;"></image>
<image v-else :src="imgUrlPrex+customInfo.avatar" class="avatar" mode="scaleToFill" <image v-else :src="imgUrlPrex+customInfo.avatar" class="avatar" mode="scaleToFill"
style="width: 64rpx;height: 64rpx;border-radius: 50%;"></image> style="width: 64rpx;height: 64rpx;border-radius: 50%;"></image>
</view> </view>
@ -25,6 +25,14 @@
<text class="formValue">{{ customInfo.mobile }}</text> <text class="formValue">{{ customInfo.mobile }}</text>
<!-- <u-icon color="#999" name="arrow-right" size="12"></u-icon>--> <!-- <u-icon color="#999" name="arrow-right" size="12"></u-icon>-->
</view> </view>
<view class="formItem">
<image class="formIcon" mode="aspectFit" src="/static/icons/userInfo_3.png"></image>
<text class="formLabel">声音提醒</text>
<text class="formValue">
<switch :checked="checked" @change="switch1Change" />
</text>
<!-- <u-icon color="#999" name="arrow-right" size="12"></u-icon>-->
</view>
<view class="formItem" v-if="showUniCode"> <view class="formItem" v-if="showUniCode">
<image class="formIcon" mode="aspectFit" src="/static/icons/userInfo_3.png"></image> <image class="formIcon" mode="aspectFit" src="/static/icons/userInfo_3.png"></image>
<text class="formLabel">我的邀请码</text> <text class="formLabel">我的邀请码</text>
@ -51,7 +59,10 @@ import {
getUserInfo, getUserInfo,
getJSONData, getJSONData,
removeTenantId, removeTenantId,
removeToken,removeUserInfo,removeJSONData,removeStrData removeToken,
removeUserInfo,
removeJSONData,
removeStrData
} from '@/utils/auth' } from '@/utils/auth'
import { import {
closeMsgSocket, closeMsgSocket,
@ -70,7 +81,8 @@ export default {
staff: {}, staff: {},
// //
showUniCode: false, showUniCode: false,
defaultAvatar: require('@/static/icons/avatar.png') defaultAvatar: require('@/static/icons/avatar.png'),
checked: uni.getStorageSync('ifHint')
}; };
}, },
onShow() { onShow() {
@ -138,6 +150,13 @@ export default {
}) })
} }
}) })
},
switch1Change(e) {
console.log('开关选择', e);
this.checked = e.detail.value
uni.setStorageSync('ifHint', e.detail.value)
const res = uni.getStorageSync('ifHint')
console.log(res);
} }
} }
} }