作者 韩昌

j

... ... @@ -28,7 +28,7 @@
<view v-else class="TUI-message-input-main">
<AudioMessage></AudioMessage>
</view>
<!-- <up-button
<up-button
v-if="[10, '10', 21, '21'].includes(detailData.consultationWay)"
color="#05B8D2"
shape="circle"
... ... @@ -36,7 +36,7 @@
throttleTime="1500"
@click="handleSendTextMessage"
:customStyle="{ width: '122rpx', height: '74rpx', marginRight: '16rpx' }"
></up-button> -->
></up-button>
<view class="TUI-message-input-functions" hover-class="none">
<image class="TUI-icon" @tap="handleEmoji" src="../../../../assets/icon/emoji.svg"></image>
... ...
... ... @@ -184,7 +184,7 @@ const value = ref<number>(0)
const isShowAuth = ref<boolean>(false) // 认证信息状态
const authState = ref(20)
const authState = ref(0)
const LoginState = ref<boolean>(!uni.getStorageSync('token').length ? false : true)
... ...
... ... @@ -127,8 +127,8 @@ const oneClickLoginHandler = () => {
},
async success(res) {
uni.getCheckBoxState({
async success(res) {
if (res.state) {
async success(re) {
if (re.state) {
// 登录成功
console.log(res, '成功')
try {
... ...
... ... @@ -45,7 +45,7 @@
<view class="mineCom-time">回复:</view>
<view class="mineCom-time">{{ _?.replyTime }}</view>
</view>
<view class="mineCom-text">{{ _?.replyContent }}</view>
<view class="mineCom-text" style="margin-left: 16rpx;color: #666666;">{{ _?.replyContent }}</view>
</view>
</template>
</view>
... ...
... ... @@ -43,8 +43,8 @@ import { ref, getCurrentInstance, ComponentPublicInstance } from 'vue'
import { onShow, onLoad } from '@dcloudio/uni-app'
import { storeToRefs } from 'pinia'
import { useSelectDataStore } from '../../store/selectData'
import { getUserInfo, updateChange_userinfo, getDepartment } from '../../api'
import { sUserInfoType, ChangeUserInfoType, IndexListType } from '../../types'
import { getUserInfo, updateChange_userinfo, getDepartment,getIndex } from '../../api'
import { sUserInfoType, ChangeUserInfoType, IndexListType,IndexType } from '../../types'
const { proxy } = getCurrentInstance() as { proxy: ComponentPublicInstance }
... ... @@ -126,11 +126,20 @@ const confirmEditUserInfoHandler = async () => {
proxy.$h.timeCallBack('修改成功')
}
const getIndexDataHandler = async () => {
const { result }: { result: IndexType } = await getIndex()
if(![20,'20'].includes(result.examineState)) mineinfo.value[5].url = ''
// authState.value = Number(result.examineState)
}
onLoad(() => {
getInfoHandler()
})
onShow(() => {
getIndexDataHandler()
if (SelectDepartmentList.value.length > 0) {
mineinfo.value[5].text = SelectDepartmentList.value.map((_: { id: string; name: string }) => _.name).join()
... ...
// export const baseURL = 'http://192.168.12.171:8881/jeecg-boot'
// export const baseURL = 'http://192.168.10.167:8881/jeecg-boot'
// export const baseURL = 'http://t5qnpc.natappfree.cc/jeecg-boot'
export const baseURL = 'https://doctor.apple02.brofirst.cn/jeecg-boot'
// export const baseURL = 'http://114.115.178.175:8799/jeecg-boot'
// export const baseURL = 'http://127.0.0.1:4523/m1/3332971-0-default/jeecg-boot' // mock
interface optionsType {
url: string
method: "OPTIONS" | "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "TRACE" | "CONNECT"
... ... @@ -12,7 +12,7 @@ interface optionsType {
success?: (res: any) => void
fail?: (res: any) => void
}
export const request = (options: optionsType): Promise<any> => {
return new Promise((resolve, reject) => {
uni.request<optionsType>({
... ...
... ... @@ -300,7 +300,7 @@ function showViewDesc(permission) {
top: '30px',
left: '5%',
width: '90%',
height: "100px",
height: "180px",
})
view.drawText(permissionMap[plat][permission]["title"], {
top: '40px',
... ... @@ -316,7 +316,7 @@ function showViewDesc(permission) {
})
view.drawText(permissionMap[plat][permission]["content"], {
top: '65px',
height: "60px",
height: "135px",
left: "8%",
width: "84%"
}, {
... ...