人员列表

This commit is contained in:
徐哼唧L
2024-01-18 16:40:05 +08:00
parent 31ff846431
commit 9508a6b216
7 changed files with 222 additions and 169 deletions

View File

@@ -678,7 +678,7 @@ import { data } from 'jquery';
font-size: 26rpx; font-size: 26rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
margin-top:10rpx; margin-top:10rpx;
height: 172rpx; // height: 172rpx;
} }
// .btns{ // .btns{
// font-size: 24rpx; // font-size: 24rpx;

View File

@@ -40,8 +40,8 @@
<!-- 吴门之光-吴门之徽 --> <!-- 吴门之光-吴门之徽 -->
<view class="titleList" v-if="curOneCateIndex == 2&&curTwoCateIndex == 2"> <view class="titleList" v-if="curOneCateIndex == 2&&curTwoCateIndex == 2">
<u-grid :col="3" v-if="titleList.length > 0"> <u-grid :col="3" v-if="titleList.length > 0">
<u-grid-item v-for="(item, index) in titleList" :key="item.id" <u-grid-item v-for="(item, index) in titleList" :key="item.id" @click="previewImage(item.url)"
@click="previewImage(item.url)" style="align-items: flex-start;"> style="align-items: flex-start;">
<!-- <view :class="['titleItem']">{{item.name}}</view> --> <!-- <view :class="['titleItem']">{{item.name}}</view> -->
<img :src="item.url" alt="" class="wmzhimg" mode="aspectFit"> <img :src="item.url" alt="" class="wmzhimg" mode="aspectFit">
</u-grid-item> </u-grid-item>
@@ -50,13 +50,23 @@
</view> </view>
<!-- 其他 --> <!-- 其他 -->
<view class="titleList" v-else> <view class="titleList" v-else>
<u-grid :col="1" v-if="titleList.length > 0"> <u-grid :col="1" v-if="titleList.length > 0&&(curOneCateIndex==0||curOneCateIndex==2)">
<u-grid-item v-for="(item, index) in titleList" :key="item.id" <u-grid-item v-for="(item, index) in titleList" :key="item.id" @click="gotoDetail(item)"
@click="gotoDetail(item)" style="align-items: flex-start;border-bottom: 2px solid #fff;"> style="align-items: flex-start;border-bottom: 2px solid #fff;">
<view :class="['titleItem']">{{item.name}}</view> <view :class="['titleItem']">{{item.name}}</view>
</u-grid-item> </u-grid-item>
</u-grid> </u-grid>
<u-divider v-else text="暂无数据哦~"></u-divider> <view :col="1" v-if="titleList.length > 0&&curOneCateIndex==1">
<view v-for="(item, index) in titleList" :key="item.id" @click="gotoDetail(item)"
style="align-items: flex-start;border-bottom: 2px solid #fff;display: flex;padding: 20rpx 0;">
<view style="width: 280rpx;text-align: center;">
<img src="" v-if="item.imageslist&&item.imageslist.length==0" class="chImage">
<img :src="item.imageslist&&item.imageslist[0]" v-else class="chImage">
</view>
<view :class="['titleItem']">{{item.name}}</view>
</view>
</view>
<u-divider text="暂无数据哦~" v-if="titleList.length==0"></u-divider>
</view> </view>
</view> </view>
</view> </view>
@@ -236,6 +246,10 @@
console.log(res, '内容获取成功') console.log(res, '内容获取成功')
if (res.code == 0 && res.result.records.length > 0) { if (res.code == 0 && res.result.records.length > 0) {
this.titleList = res.result.records this.titleList = res.result.records
for (let i = 0; i < this.titleList.length; i++) {
this.titleList[i].imageslist = [];
this.titleList[i].imageslist = this.titleList[i].img.split(";");
}
} else { } else {
this.titleList = [] this.titleList = []
} }
@@ -324,7 +338,16 @@
if (res.code == 0 && res.result.length >= 0) { if (res.code == 0 && res.result.length >= 0) {
this.twoCateList = res.result this.twoCateList = res.result
if (this.curOneCateIndex == 2) { if (this.curOneCateIndex == 2) {
this.twoCateList = [{'dictType':"1","dictValue":"吴门之歌"},{'dictType':"2","dictValue":"巴山夜语"},{'dictType':"3","dictValue":"吴门之徽"}] this.twoCateList = [{
'dictType': "1",
"dictValue": "吴门之歌"
}, {
'dictType': "2",
"dictValue": "巴山夜语"
}, {
'dictType': "3",
"dictValue": "吴门之徽"
}]
} }
this.getTitles(this.twoCateList[0].dictType) this.getTitles(this.twoCateList[0].dictType)
} else { } else {
@@ -644,4 +667,8 @@
font-size: 28rpx; font-size: 28rpx;
line-height: 46rpx; line-height: 46rpx;
} }
.chImage {
height: 100rpx;
}
</style> </style>

View File

@@ -3,7 +3,8 @@
<!-- 公共组件-每个页面必须引入 --> <!-- 公共组件-每个页面必须引入 -->
<public-module></public-module> <public-module></public-module>
<z-nav-bar :title="prescriptDetail.name"></z-nav-bar> <z-nav-bar :title="prescriptDetail.name"></z-nav-bar>
<view class="uni-margin-wrap" v-if="prescriptDetail && prescriptDetail.images && prescriptDetail.images.length > 0"> <view class="uni-margin-wrap"
v-if="prescriptDetail && prescriptDetail.images && prescriptDetail.images.length > 0">
<swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval" <swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
:duration="duration"> :duration="duration">
<swiper-item v-for="(item, index) in prescriptDetail.images" :key="index"> <swiper-item v-for="(item, index) in prescriptDetail.images" :key="index">
@@ -20,7 +21,8 @@
{{prescriptDetail.name}} {{prescriptDetail.name}}
</view> </view>
</uni-section> </uni-section>
<uni-section class="mb-10" titleFontSize="18px" title="详细介绍" type="line" v-if="prescriptDetail.content && prescriptDetail.content != ''" > <uni-section class="mb-10" titleFontSize="18px" title="详细介绍" type="line"
v-if="prescriptDetail.content && prescriptDetail.content != ''">
<view class="item" v-html="prescriptDetail.content"> <view class="item" v-html="prescriptDetail.content">
</view> </view>
</uni-section> </uni-section>
@@ -62,7 +64,7 @@
indicatorDots: true, indicatorDots: true,
autoplay: true, autoplay: true,
interval: 5000, interval: 5000,
duration: 500 duration: 500,
} }
}, },
onLoad(e) { onLoad(e) {
@@ -109,7 +111,8 @@
// this.titleList = [] // this.titleList = []
console.log(e) console.log(e)
}) })
} },
}, },
components: { components: {
musicPlay musicPlay
@@ -118,25 +121,49 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.contentBox{padding-bottom: 20rpx;} .contentBox {
.mb-10{ margin-bottom: 10px;} padding-bottom: 20rpx;
.content{font-size: 28rpx;} }
.mb-10 {
margin-bottom: 10px;
}
.content {
font-size: 28rpx;
}
.swiper-item { .swiper-item {
image{margin: 0 auto; height:250rpx;} image {
margin: 0 auto;
height: 250rpx;
}
} }
.uni-margin-wrap{ margin-bottom: 20rpx; padding-top: 20rpx;
.uni-margin-wrap {
margin-bottom: 20rpx;
padding-top: 20rpx;
background-color: #fff; background-color: #fff;
} }
.container { .container {
padding: 10rpx; padding: 10rpx;
// background-color: #fff; // background-color: #fff;
.item{color: #666; padding:10rpx 20rpx; padding-bottom: 20rpx; line-height: 46rpx;} .item {
color: #666;
padding: 10rpx 20rpx;
padding-bottom: 20rpx;
line-height: 46rpx;
}
} }
.flexbox { .flexbox {
display: flex; display: flex;
} }
/deep/ .uni-section-header__decoration.line{background-color: #18bc37;} /deep/ .uni-section-header__decoration.line {
background-color: #18bc37;
}
</style> </style>

View File

@@ -51,7 +51,8 @@ export default {
progressDrag: false, progressDrag: false,
// 视频总长度 // 视频总长度
duration: 0, duration: 0,
videoCtx: null videoCtx: null,
objId:''
}; };
}, },
onLoad(e) { onLoad(e) {

View File

@@ -24,12 +24,10 @@
<image src="../../static/icon/five7.png" mode="aspectFit"></image> <image src="../../static/icon/five7.png" mode="aspectFit"></image>
<text>经典查阅</text> <text>经典查阅</text>
</div> </div>
<div class="item item1">
<div class="item item1" @click="onPageJump('../luck/luck')"> <div class="item item1" @click="onPageJump('../luck/luck')">
<image src="../../static/icon/five4.png" mode="aspectFit"></image> <image src="../../static/icon/five4.png" mode="aspectFit"></image>
<text>五运六气</text> <text>五运六气</text>
</div> </div>
</div>
<!-- <div class="item item1" @click="onPageJump('../peanut/searchFor')"> <!-- <div class="item item1" @click="onPageJump('../peanut/searchFor')">
<image src="../../static/icon/five3.png" mode="aspectFit"></image> <image src="../../static/icon/five3.png" mode="aspectFit"></image>
@@ -232,7 +230,6 @@
</view> </view>
<scroll-view class="scroll-view_H " scroll-x="true" scroll-left="0"> <scroll-view class="scroll-view_H " scroll-x="true" scroll-left="0">
<view class="ProTabs"> <view class="ProTabs">
<text v-for="item in tagList" :key="item.splId" :class="[tabsid == item.splId ? 'cur' :'']" <text v-for="item in tagList" :key="item.splId" :class="[tabsid == item.splId ? 'cur' :'']"
@@ -382,6 +379,7 @@
labelName: "中医临床" labelName: "中医临床"
}, },
], ],
tabsid: '',
wztabsid: '', wztabsid: '',
pageSize: 10, pageSize: 10,
page: 1, page: 1,

View File

@@ -213,7 +213,6 @@
this.userMes = res.user this.userMes = res.user
}); });
} }
@@ -226,6 +225,7 @@
this.totalPage = res.page.totalPage this.totalPage = res.page.totalPage
this.totalCount = res.page.totalCount this.totalCount = res.page.totalCount
}); });
}, },

View File

@@ -156,7 +156,7 @@
// if(this.productInfo.content.includes('cursor: nwse-resize')){ // if(this.productInfo.content.includes('cursor: nwse-resize')){
// // this.productInfo.content = this.productInfo.content.replaceAll('cursor: nwse-resize;', 'cursor: nwse-resize;max-width:100%;') // // this.productInfo.content = this.productInfo.content.replaceAll('cursor: nwse-resize;', 'cursor: nwse-resize;max-width:100%;')
// }else{ // }else{
this.productInfo.content = this.productInfo.content.replaceAll('img src', 'img style="max-width:100%;" src') this.productInfo.content = this.productInfo.content.replace(/img src/g, 'img style="max-width:100%;" src')
// } // }
// console.log(this.productInfo.content,'res') // console.log(this.productInfo.content,'res')