123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260 |
- <template>
- <view class="">
- <view class="">
-
-
- <z-paging-swiper>
- <template #top>
- <z-tabs ref="tabs" :list="tabList" :current="current" @change="tabsChange" />
- </template>
-
- <swiper class="swiper" :current="current" @transition="swiperTransition" @animationfinish="swiperAnimationfinish">
- <swiper-item class="swiper-item" v-for="(item, index) in tabList" :key="index">
-
-
- <swiper-list-item ref="listItem" :tabIndex="index" :currentIndex="current">
- </swiper-list-item>
- </swiper-item>
- </swiper>
- </z-paging-swiper>
- </view>
- </view>
- <view class="">
- <uni-popup ref="wxpopup" type="bottom">
- <view class="tihuan_box" style="height: 650rpx;">
- <view class="" style="text-align: center; margin-bottom: 20rpx; font-size: 35rpx; font-weight: bold;margin-bottom: 30rpx;">
- 请长按识别二维码关注公众号
- <br />
- 方便信息及时通知
- </view>
- <view class="" style="width: 80%; margin: 0 auto;">
- <image :show-menu-by-longpress="true" src="../../static/img/erweima.jpg" mode="widthFix" style="width: 100%;"></image>
- </view>
- </view>
- </uni-popup>
- </view>
- <view class="yiqijie" @click="application">
- <image src="../../static/img/sqi.png" mode="widthFix" style="width: 50rpx;margin-bottom: -12rpx;"></image>
- 仪器借用
- </view>
- </template>
- <script setup>
- import { ref } from 'vue';
- import {
- requestApi
- } from '@/api/request.js'
-
- import {
- onShow,
- } from '@dcloudio/uni-app'
-
- let wxpopup = ref(null)
- let userInfo =wx.getStorageSync('userInfos')
- let stuts = ref(false)
- let current =ref(0);
-
-
-
- const data = ref([])
- onShow(async () => {
-
- const ress= await requestApi(
- 'api/xmwechat.Offiaccount/isBind?server=1',
- {
- id:userInfo.userInfo.id,
- },
- 'POST'
- )
-
- if(ress.data.isBind=='ture'){
-
- }else{
- wxpopup.value.open('top');
- }
- })
- const paging = ref(null);
- const dataList = ref([])
-
-
- const listItem = ref();
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- function detail(id) {
- wx.navigateTo({
- url: '/pages/index/detail?data=' + JSON.stringify(id)
- })
- }
-
- function application() {
- wx.navigateTo({
- url: '/pages/teacher/application'
- })
- }
-
- const tabs = ref(null);
- const tabList = ref(['待审批/待使用', '使用中/逾期', '已驳回/已归还']);
-
-
-
- const tabsChange = (index) => {
- current.value = index;
- }
-
- const swiperTransition = (e) => {
- tabs.value.setDx(e.detail.dx);
- }
-
- const swiperAnimationfinish = (e) => {
- current.value = e.detail.current;
- tabs.value.unlockDx();
- }
- const reloadCurrentList = () => {
- listItem.value[current.value].reload();
- }
- </script>
- <style lang="less">
- page {
- background-color: #fff;
- overflow: hidden;
- }
- .zp-swiper-super.data-v-bd8ff6a5 {
- background-color: rgb(244, 245, 249);
- }
- .search {
- margin: 20rpx 20rpx 0 20rpx;
- }
- .zp-swiper-container-fixed.data-v-bd8ff6a5 {
- // top: 100rpx !important;
- }
- swiper {
- min-height: 95vh;
- // overflow-y:auto;
- }
- .yiqijie{
- width: 280rpx;
- height: 90rpx;
- background-color: #2d8cf0;
- position: absolute;
- bottom: 80rpx;
- right: 50%;
- transform: translate(50%, 50%);
- border-radius: 50rpx;
- line-height: 90rpx;
- text-align: center;
- color: #fff;
- font-size: 35rpx;
- }
- .jie_card {
- width: 94%;
- margin: 30rpx auto;
- height: 270rpx;
- border-radius: 20rpx;
- background-color: #fff;
- // padding: 10rpx 0;
- }
- .tihuan_box {
- width: 84%;
- height: 500rpx;
- padding: 30rpx;
- background-color: #fff;
- margin: 30% auto;
- border-radius: 20rpx;
- }
- .jie_card_title {
- width: 100%;
- height: 84rpx;
- line-height: 84rpx;
- }
- .jie_swiper {
- // min-height: 1000rpx;
- background-color: rgb(244, 245, 249);
- }
- .jie_card_title_text {
- margin-left: 15rpx;
- line-height: center;
- // color: #606266;
- font-size: 28rpx;
- }
- .jie_tags {
- float: right;
- background-color: #E1F3D8;
- width: 104rpx;
- height: 42rpx;
- margin-top: 22rpx;
- border-radius: 23rpx 0 0 23rpx;
- font-size: 25rpx;
- padding-left: 10rpx;
- line-height: 40rpx;
- color: #529B2E;
- }
- .jie_tags2 {
- color: #B88230;
- background-color: #FAECD8;
- }
- .jie_contend {
- margin-left: 15rpx;
- margin-top: 15rpx;
- float: left;
- font-size: 31rpx;
- line-height: 42rpx;
- }
- .jie_contend_text {
- margin-bottom: 10rpx;
- }
- .jie_contend_text1 {
- color: #606266;
- }
- .jie_contend_text2 {
- color: #000;
- }
- .jie_card_ztai {
- width: 134rpx;
- height: 134rpx;
- background-color: #F89898;
- border-radius: 50%;
- line-height: 134rpx;
- float: right;
- color: #fff;
- font-size: 32rpx;
- text-align: center;
- margin-top: 25rpx;
- margin-right: 40rpx;
- }
- .jie_card_ztai2 {
- background-color: #A0CFFF;
- }
- </style>
|