This commit is contained in:
2023-09-26 15:39:25 +08:00
parent 68a856d500
commit 5078dda627
8 changed files with 114 additions and 23 deletions

View File

@ -8,7 +8,7 @@
</view> </view>
<view class="topbar"> <view class="topbar">
<image src="../../static/pages/wenzhenpingtai.png" mode=""></image> <image src="../../static/pages/wenzhenpingtai.png" mode=""></image>
<image src="../../static/pages/hulifuwu.png" mode=""></image> <image src="../../static/pages/hulifuwu.png" mode="" @tap="gosite"></image>
</view> </view>
<view class="title"> <view class="title">
常用服务 常用服务
@ -16,12 +16,12 @@
<view class="centerbar topbar"> <view class="centerbar topbar">
<image src="../../static/pages/yuyueshaicha.png" mode=""></image> <image src="../../static/pages/yuyueshaicha.png" mode=""></image>
<image src="../../static/pages/shaichajieguo.png" mode=""></image> <image src="../../static/pages/shaichajieguo.png" mode=""></image>
<image src="../../static/pages/jiankangshangcheng.png" mode=""></image> <image src="../../static/pages/jiankangshangcheng.png" mode="" @tap="goshopping"></image>
<image src="../../static/pages/xinrenfuli.png" mode=""></image> <image src="../../static/pages/xinrenfuli.png" mode="" @tap="gomaterialbenefits"></image>
</view> </view>
<view class="title"> <view class="title">
<text>健康咨询</text> <text>健康咨询</text>
<view class=""> <view class="" @tap='gohealth'>
<text> <text>
查看更多 查看更多
</text> </text>
@ -29,24 +29,115 @@
</view> </view>
</view> </view>
<view class="list"> <view class="list">
<view class="item"> <view class="item" v-for="(item,index) in informationCategoryVOList" :key="index" @tap='gohealthitem(item)'>
<view class="text"> <view class="text">
医疗资讯医疗资讯医疗 资讯医疗资讯 {{item.informationTitle}}
</view> </view>
<view class="author"></view> <view class="author"></view>
<image src="../../static/pagesB/yis.png" mode=""></image> <image :src="item.leadThumbnailUrl" mode=""></image>
</view> </view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import {
mapState,
mapActions
} from "vuex";
import {
getPoserInfoListByType
} from '@/api/pages/medicalservice/index.js'
import {
getHeathHousingList
} from '@/api/pagesB/Healthknowledge/index.js'
import baseurl from '../../api/baseurl';
export default { export default {
data() { data() {
return { return {
pageNum: 1,
pageSize: 5,
informationCategoryVOList: [], //
}; };
} },
onShow() {
this.pageNum = 1
this.getHeathHousing();
},
methods: {
//item
gohealthitem(item) {
uni.navigateTo({
url: `/pagesB/Healthitem/Healthitem?item=${encodeURIComponent(JSON.stringify(item))}`
})
},
//
getHeathHousing() {
getHeathHousingList(this.pageNum, this.pageSize).then(res => {
if (res.rows) {
res.rows.forEach(e => {
e.leadThumbnailUrl = baseurl + e.leadThumbnailUrl
})
}
this.informationCategoryVOList = res.rows
})
},
//
//
...mapActions(["openPopup"]),
gomaterialbenefits() {
//
// this.$store.dispatch("openPopup");
this.openPopup();
setTimeout(e => {
uni.navigateTo({
url: '/pagesB/materialbenefits/materialbenefits'
})
}, 0)
},
//
gosite() {
this.openPopup();
setTimeout(e => {
uni.navigateTo({
url: '/pagesB/site/site'
})
}, 0)
},
//
gohealth() {
uni.navigateTo({
url: '/pagesB/Healthknowledge/Healthknowledge'
})
},
//
goshopping() {
this.openPopup();
setTimeout(e => {
uni.navigateTo({
url: '/pagesB/shopping/shopping'
})
}, 0)
},
},
//1.
onShareAppMessage(res) {
let pages = getCurrentPages();
let url = pages[pages.length - 1].$page.fullPath
return {
title: '新医路健康服务平台',
path: url,
}
},
//2.
onShareTimeline(res) {
let pages = getCurrentPages();
let url = pages[pages.length - 1].$page.fullPath
return {
title: '新医路健康服务平台',
path: url,
}
},
} }
</script> </script>

View File

@ -711,7 +711,7 @@
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '未登录,请先登录', title: '未登录,请先登录',
type: 'error', type: 'error',
url: '/pagesB/login/login' url: '/pages/login/login'
}) })
} }
} }
@ -835,4 +835,4 @@
<style lang="scss"> <style lang="scss">
@import "./CommodityDetailsstyle.scss"; @import "./CommodityDetailsstyle.scss";
</style> </style>

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="app"> <view class="app">
<u-tabs :list="tabList" :current="tabcurrent" @change="change"></u-tabs> <u-tabs :list="tabList" :current="tabcurrent" @change="change" active-color='#26A888'></u-tabs>
<view class="Healthknowledge" v-if="informationCategoryVOList"> <view class="Healthknowledge" v-if="informationCategoryVOList">
<!-- <view class="title"> <!-- <view class="title">
健康常识 健康常识
@ -179,4 +179,4 @@
} }
} }
} }
</style> </style>

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="app"> <view class="app">
<u-tabs :list="GoodsCategorychildrenlist" :current="tabIndex" @change="toggleTab" <u-tabs :list="GoodsCategorychildrenlist" :current="tabIndex" @change="toggleTab" active-color='#26A888'
v-if="GoodsCategorychildrenlist.length>=2"></u-tabs> v-if="GoodsCategorychildrenlist.length>=2"></u-tabs>
<view class="fenlei" @tap='toggleTab(1111111111111)' v-if="GoodsCategorychildrenlist.length>=2"> <view class="fenlei" @tap='toggleTab(1111111111111)' v-if="GoodsCategorychildrenlist.length>=2">
<image src="../../static/pagesB/fenlei.png" mode=""></image> <image src="../../static/pagesB/fenlei.png" mode=""></image>

View File

@ -104,7 +104,7 @@
const value3 = uni.getStorageSync('Refresh'); const value3 = uni.getStorageSync('Refresh');
if (value) {} else { if (value) {} else {
uni.navigateTo({ uni.navigateTo({
url: '/pagesB/login/login' url: '/pages/login/login'
}) })
} }
if (value3) { if (value3) {

View File

@ -480,7 +480,7 @@
title: '请先登录', title: '请先登录',
type: 'error', type: 'error',
duration: '2000', duration: '2000',
url: '/pagesB/login/login' url: '/pages/login/login'
}) })
} }
}) })
@ -489,7 +489,7 @@
title: '请先登录', title: '请先登录',
type: 'error', type: 'error',
duration: '2000', duration: '2000',
url: '/pagesB/login/login' url: '/pages/login/login'
}) })
} }
}, },
@ -510,7 +510,7 @@
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '未登录,请先登录', title: '未登录,请先登录',
type: 'error', type: 'error',
url: '/pagesB/login/login' url: '/pages/login/login'
}) })
} }
} }
@ -591,7 +591,7 @@
title: '请先登录', title: '请先登录',
type: 'error', type: 'error',
duration: '2000', duration: '2000',
url: '/pagesB/login/login' url: '/pages/login/login'
}) })
} }
}) })
@ -600,7 +600,7 @@
title: '请先登录', title: '请先登录',
type: 'error', type: 'error',
duration: '2000', duration: '2000',
url: '/pagesB/login/login' url: '/pages/login/login'
}) })
} }
}, },

View File

@ -148,7 +148,7 @@
title: '请先登录', title: '请先登录',
type: 'error', type: 'error',
duration: '2000', duration: '2000',
url: '/pagesB/login/login' url: '/pages/login/login'
}) })
} }
}) })
@ -157,7 +157,7 @@
title: '请先登录', title: '请先登录',
type: 'error', type: 'error',
duration: '2000', duration: '2000',
url: '/pagesB/login/login' url: '/pages/login/login'
}) })
} }
}, },

View File

@ -349,7 +349,7 @@
that.$refs.uToast.show({ that.$refs.uToast.show({
title: res.msg, title: res.msg,
type: 'error', type: 'error',
url: '/pagesB/login/login' url: '/pages/login/login'
}) })
} }
}) })