作者 韩昌

j

@@ -28,7 +28,7 @@ @@ -28,7 +28,7 @@
28 <view v-else class="TUI-message-input-main"> 28 <view v-else class="TUI-message-input-main">
29 <AudioMessage></AudioMessage> 29 <AudioMessage></AudioMessage>
30 </view> 30 </view>
31 - <!-- <up-button 31 + <up-button
32 v-if="[10, '10', 21, '21'].includes(detailData.consultationWay)" 32 v-if="[10, '10', 21, '21'].includes(detailData.consultationWay)"
33 color="#05B8D2" 33 color="#05B8D2"
34 shape="circle" 34 shape="circle"
@@ -36,7 +36,7 @@ @@ -36,7 +36,7 @@
36 throttleTime="1500" 36 throttleTime="1500"
37 @click="handleSendTextMessage" 37 @click="handleSendTextMessage"
38 :customStyle="{ width: '122rpx', height: '74rpx', marginRight: '16rpx' }" 38 :customStyle="{ width: '122rpx', height: '74rpx', marginRight: '16rpx' }"
39 - ></up-button> --> 39 + ></up-button>
40 40
41 <view class="TUI-message-input-functions" hover-class="none"> 41 <view class="TUI-message-input-functions" hover-class="none">
42 <image class="TUI-icon" @tap="handleEmoji" src="../../../../assets/icon/emoji.svg"></image> 42 <image class="TUI-icon" @tap="handleEmoji" src="../../../../assets/icon/emoji.svg"></image>
@@ -184,7 +184,7 @@ const value = ref<number>(0) @@ -184,7 +184,7 @@ const value = ref<number>(0)
184 184
185 const isShowAuth = ref<boolean>(false) // 认证信息状态 185 const isShowAuth = ref<boolean>(false) // 认证信息状态
186 186
187 -const authState = ref(20) 187 +const authState = ref(0)
188 188
189 const LoginState = ref<boolean>(!uni.getStorageSync('token').length ? false : true) 189 const LoginState = ref<boolean>(!uni.getStorageSync('token').length ? false : true)
190 190
@@ -127,8 +127,8 @@ const oneClickLoginHandler = () => { @@ -127,8 +127,8 @@ const oneClickLoginHandler = () => {
127 }, 127 },
128 async success(res) { 128 async success(res) {
129 uni.getCheckBoxState({ 129 uni.getCheckBoxState({
130 - async success(res) {  
131 - if (res.state) { 130 + async success(re) {
  131 + if (re.state) {
132 // 登录成功 132 // 登录成功
133 console.log(res, '成功') 133 console.log(res, '成功')
134 try { 134 try {
@@ -45,7 +45,7 @@ @@ -45,7 +45,7 @@
45 <view class="mineCom-time">回复:</view> 45 <view class="mineCom-time">回复:</view>
46 <view class="mineCom-time">{{ _?.replyTime }}</view> 46 <view class="mineCom-time">{{ _?.replyTime }}</view>
47 </view> 47 </view>
48 - <view class="mineCom-text">{{ _?.replyContent }}</view> 48 + <view class="mineCom-text" style="margin-left: 16rpx;color: #666666;">{{ _?.replyContent }}</view>
49 </view> 49 </view>
50 </template> 50 </template>
51 </view> 51 </view>
@@ -43,8 +43,8 @@ import { ref, getCurrentInstance, ComponentPublicInstance } from 'vue' @@ -43,8 +43,8 @@ import { ref, getCurrentInstance, ComponentPublicInstance } from 'vue'
43 import { onShow, onLoad } from '@dcloudio/uni-app' 43 import { onShow, onLoad } from '@dcloudio/uni-app'
44 import { storeToRefs } from 'pinia' 44 import { storeToRefs } from 'pinia'
45 import { useSelectDataStore } from '../../store/selectData' 45 import { useSelectDataStore } from '../../store/selectData'
46 -import { getUserInfo, updateChange_userinfo, getDepartment } from '../../api'  
47 -import { sUserInfoType, ChangeUserInfoType, IndexListType } from '../../types' 46 +import { getUserInfo, updateChange_userinfo, getDepartment,getIndex } from '../../api'
  47 +import { sUserInfoType, ChangeUserInfoType, IndexListType,IndexType } from '../../types'
48 48
49 const { proxy } = getCurrentInstance() as { proxy: ComponentPublicInstance } 49 const { proxy } = getCurrentInstance() as { proxy: ComponentPublicInstance }
50 50
@@ -126,11 +126,20 @@ const confirmEditUserInfoHandler = async () => { @@ -126,11 +126,20 @@ const confirmEditUserInfoHandler = async () => {
126 proxy.$h.timeCallBack('修改成功') 126 proxy.$h.timeCallBack('修改成功')
127 } 127 }
128 128
  129 +const getIndexDataHandler = async () => {
  130 + const { result }: { result: IndexType } = await getIndex()
  131 +
  132 + if(![20,'20'].includes(result.examineState)) mineinfo.value[5].url = ''
  133 +
  134 + // authState.value = Number(result.examineState)
  135 +}
  136 +
129 onLoad(() => { 137 onLoad(() => {
130 getInfoHandler() 138 getInfoHandler()
131 }) 139 })
132 140
133 onShow(() => { 141 onShow(() => {
  142 + getIndexDataHandler()
134 if (SelectDepartmentList.value.length > 0) { 143 if (SelectDepartmentList.value.length > 0) {
135 mineinfo.value[5].text = SelectDepartmentList.value.map((_: { id: string; name: string }) => _.name).join() 144 mineinfo.value[5].text = SelectDepartmentList.value.map((_: { id: string; name: string }) => _.name).join()
136 145
1 -// export const baseURL = 'http://192.168.12.171:8881/jeecg-boot' 1 +// export const baseURL = 'http://192.168.10.167:8881/jeecg-boot'
2 // export const baseURL = 'http://t5qnpc.natappfree.cc/jeecg-boot' 2 // export const baseURL = 'http://t5qnpc.natappfree.cc/jeecg-boot'
3 export const baseURL = 'https://doctor.apple02.brofirst.cn/jeecg-boot' 3 export const baseURL = 'https://doctor.apple02.brofirst.cn/jeecg-boot'
4 // export const baseURL = 'http://114.115.178.175:8799/jeecg-boot' 4 // export const baseURL = 'http://114.115.178.175:8799/jeecg-boot'
@@ -300,7 +300,7 @@ function showViewDesc(permission) { @@ -300,7 +300,7 @@ function showViewDesc(permission) {
300 top: '30px', 300 top: '30px',
301 left: '5%', 301 left: '5%',
302 width: '90%', 302 width: '90%',
303 - height: "100px", 303 + height: "180px",
304 }) 304 })
305 view.drawText(permissionMap[plat][permission]["title"], { 305 view.drawText(permissionMap[plat][permission]["title"], {
306 top: '40px', 306 top: '40px',
@@ -316,7 +316,7 @@ function showViewDesc(permission) { @@ -316,7 +316,7 @@ function showViewDesc(permission) {
316 }) 316 })
317 view.drawText(permissionMap[plat][permission]["content"], { 317 view.drawText(permissionMap[plat][permission]["content"], {
318 top: '65px', 318 top: '65px',
319 - height: "60px", 319 + height: "135px",
320 left: "8%", 320 left: "8%",
321 width: "84%" 321 width: "84%"
322 }, { 322 }, {