45
chenyc
2022-10-25 79654f772392e3444798cd9a1c71cce42a95b7a0
45
3个文件已修改
7407 ■■■■■ 已修改文件
package-lock.json 7376 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/myMine/index.vue 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package-lock.json
Diff too large
src/main.ts
@@ -16,6 +16,7 @@
const app = createApp(App as any)
app.use(router)
app.use(createPinia())
app.use(Button).use(Form).use(Field).use(CellGroup).use(Tab).use(Tabs).use(Popup).use(Col).use(Row).use(Loading).use(List ).use(Switch)
    .use(TreeSelect).use(CollapseItem).use(Collapse).use(Calendar).use(Icon).use(Tabbar).use(TabbarItem).use(Picker).use(DropdownMenu).use(DropdownItem).use(Tag).use(DatetimePicker).use(Dialog).
    use(VanImage).use(Rate ).use(NavBar).use(Search).use(DatetimePicker).use(RadioGroup).use(Radio).use(Checkbox).use(CheckboxGroup).use(Uploader).use(Sidebar).use(SidebarItem).use(Stepper).use(Toast)
src/views/myMine/index.vue
@@ -32,11 +32,12 @@
                    <div class="div3">{{patientInfo.patientInfo.patientCardNo}} </div>
                </van-col>
                <van-col span="8" class="info8">
                    <div class="img">
                    <div class="img" @click="imgShow">
                        <img
                            preview="1"
                            style=" width: 55px;height: 55px;margin-left: 8%; margin-top: 15px;"
                            referrerpolicy="no-referrer"
                            src="./imgs/erwm.png"
                            :src="erweima"
                        />
                        <div class="devcc">出示称重码</div>
                    </div>
@@ -103,6 +104,16 @@
        <div class="ButtonBody">
            <van-button type="primary" @click="logOUT" round block>退出登录</van-button>
        </div>
        <van-popup v-model:show="show">
            <div class="imgcla">
                <img
                    preview="1"
                    style=" width: 350px;height: 350px;"
                    referrerpolicy="no-referrer"
                    :src="erweiImg"
                />
            </div>
        </van-popup>
        <van-tabbar v-model="active" @change="tabChang">
            <van-tabbar-item name="home" icon="like">首页</van-tabbar-item>
            <van-tabbar-item name="my" icon="manager">我的</van-tabbar-item>
@@ -115,17 +126,27 @@
    import { Session } from '@/utils/storage'
    import { userInfoStore } from '@/stores/userInfo'
    import serve1 from './imgs/serve1.png'
    import erweima from './imgs/erwm.png'
    import { Image as VanImage,Tabbar as VanTabbar , TabbarItem as VanTabbarItem} from 'vant'
    import {useRouter} from 'vue-router'
    const router=useRouter()
    const userInfo = userInfoStore()
    const active=ref('my')
    const show=ref(false)
    const erweiImg=ref('')
    const tabChang=(index:any)=>{
        if (index==='home'){
            router.push('/')
        } else {
            router.push('my')
        }
    }
    const imgShow=()=>{
        show.value=true
        ajaxPost('/patient/info/showQRCode',`patientCode=${patientInfo.value.patientInfo.code}&isForceLoad=1`).then((res:any)=>{
            show.value=true
            erweiImg.value=res
        })
    }
    const patientInfo=computed(()=>{
        return userInfo.patient
@@ -143,6 +164,11 @@
        background-color:#166bd3;
    }
.page{
    .imgcla{
        width: 350px;
        min-height: 350px;
        border: #777777 1px solid;
    }
    background-color:#F6FAFF;
    position:relative;
    min-width: 375px;