103 lines
2.3 KiB
Vue
103 lines
2.3 KiB
Vue
|
<script setup>
|
||
|
// 引入依赖
|
||
|
import { onLoad } from "@dcloudio/uni-app"
|
||
|
import mySwiper from "@/components/mySwiper.vue"
|
||
|
import {ref,onMounted,nextTick} from "vue"
|
||
|
import {useStore} from '@/store/index.js'
|
||
|
const store = useStore()
|
||
|
onLoad((e) => {
|
||
|
if(!store.userInfo?.has_operation) { // 未填写手术信息
|
||
|
operation_flag.value = true
|
||
|
setTimeout(()=>{
|
||
|
console.log(inputDialog.value)
|
||
|
inputDialog.value.open()
|
||
|
},0)
|
||
|
|
||
|
}
|
||
|
})
|
||
|
// 变量
|
||
|
const inputDialog = ref()
|
||
|
const inputClose = ref()
|
||
|
const operation_flag = ref(false)
|
||
|
const lbt_list = ref([
|
||
|
{
|
||
|
banner_name: "首页轮播2",
|
||
|
createtime: 1694851490,
|
||
|
deletetime: null,
|
||
|
id: 6,
|
||
|
image: "http://niunai.zhitou1688.com/uploads/20230922/ea3b3348df5d2b41eb49ddbf86b83516.png",
|
||
|
is_show: 1,
|
||
|
type: "index",
|
||
|
url: "",
|
||
|
weigh: 6,
|
||
|
},{
|
||
|
banner_name: "首页轮播2",
|
||
|
createtime: 1694851490,
|
||
|
deletetime: null,
|
||
|
id: 6,
|
||
|
image: "/static/vip2.png",
|
||
|
is_show: 1,
|
||
|
type: "index",
|
||
|
url: "",
|
||
|
weigh: 6,
|
||
|
}
|
||
|
])
|
||
|
</script>
|
||
|
<template>
|
||
|
<view class="content page-box">
|
||
|
<!-- 轮播图 -->
|
||
|
<mySwiper :indicatorDots="true" :isRadius="true" height="160" class="index-siwper margin-b-card" :lbt_list="lbt_list" style="width: 100%;" />
|
||
|
<!-- <uni-popup ref="inputDialog" >
|
||
|
<view class="">
|
||
|
dasdsdd
|
||
|
</view>
|
||
|
</uni-popup> -->
|
||
|
<uni-popup ref="inputDialog" :is-mask-click='false'>
|
||
|
<view class="pop-box">
|
||
|
<view class="pb-title">手术信息</view>
|
||
|
</view>
|
||
|
<view class="pop-close">
|
||
|
关闭
|
||
|
</view>
|
||
|
<!-- <uni-popup-dialog ref="inputClose" mode="input" title="输入内容" value="对话框预置提示内容!"
|
||
|
placeholder="请输入内容" @confirm="dialogInputConfirm"></uni-popup-dialog> -->
|
||
|
</uni-popup>
|
||
|
</view>
|
||
|
</template>
|
||
|
<style>
|
||
|
.pop-box{
|
||
|
background-color: white;
|
||
|
padding: 20rpx;
|
||
|
}
|
||
|
.page-box{
|
||
|
padding: 20rpx;
|
||
|
}
|
||
|
.content {
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
|
}
|
||
|
|
||
|
.logo {
|
||
|
height: 200rpx;
|
||
|
width: 200rpx;
|
||
|
margin-top: 200rpx;
|
||
|
margin-left: auto;
|
||
|
margin-right: auto;
|
||
|
margin-bottom: 50rpx;
|
||
|
}
|
||
|
|
||
|
.text-area {
|
||
|
display: flex;
|
||
|
justify-content: center;
|
||
|
}
|
||
|
|
||
|
.title {
|
||
|
font-size: 36rpx;
|
||
|
color: #8f8f94;
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
|