修改
This commit is contained in:
parent
68a856d500
commit
5078dda627
@ -8,7 +8,7 @@
|
||||
</view>
|
||||
<view class="topbar">
|
||||
<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 class="title">
|
||||
常用服务
|
||||
@ -16,12 +16,12 @@
|
||||
<view class="centerbar topbar">
|
||||
<image src="../../static/pages/yuyueshaicha.png" mode=""></image>
|
||||
<image src="../../static/pages/shaichajieguo.png" mode=""></image>
|
||||
<image src="../../static/pages/jiankangshangcheng.png" mode=""></image>
|
||||
<image src="../../static/pages/xinrenfuli.png" mode=""></image>
|
||||
<image src="../../static/pages/jiankangshangcheng.png" mode="" @tap="goshopping"></image>
|
||||
<image src="../../static/pages/xinrenfuli.png" mode="" @tap="gomaterialbenefits"></image>
|
||||
</view>
|
||||
<view class="title">
|
||||
<text>健康咨询</text>
|
||||
<view class="">
|
||||
<view class="" @tap='gohealth'>
|
||||
<text>
|
||||
查看更多
|
||||
</text>
|
||||
@ -29,24 +29,115 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="list">
|
||||
<view class="item">
|
||||
<view class="item" v-for="(item,index) in informationCategoryVOList" :key="index" @tap='gohealthitem(item)'>
|
||||
<view class="text">
|
||||
医疗资讯医疗资讯医疗 资讯医疗资讯
|
||||
{{item.informationTitle}}
|
||||
</view>
|
||||
<view class="author"></view>
|
||||
<image src="../../static/pagesB/yis.png" mode=""></image>
|
||||
<image :src="item.leadThumbnailUrl" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<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 {
|
||||
data() {
|
||||
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>
|
||||
|
||||
|
||||
@ -711,7 +711,7 @@
|
||||
this.$refs.uToast.show({
|
||||
title: '未登录,请先登录',
|
||||
type: 'error',
|
||||
url: '/pagesB/login/login'
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -835,4 +835,4 @@
|
||||
|
||||
<style lang="scss">
|
||||
@import "./CommodityDetailsstyle.scss";
|
||||
</style>
|
||||
</style>
|
||||
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<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="title">
|
||||
健康常识
|
||||
@ -179,4 +179,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<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>
|
||||
<view class="fenlei" @tap='toggleTab(1111111111111)' v-if="GoodsCategorychildrenlist.length>=2">
|
||||
<image src="../../static/pagesB/fenlei.png" mode=""></image>
|
||||
|
||||
@ -104,7 +104,7 @@
|
||||
const value3 = uni.getStorageSync('Refresh');
|
||||
if (value) {} else {
|
||||
uni.navigateTo({
|
||||
url: '/pagesB/login/login'
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
}
|
||||
if (value3) {
|
||||
|
||||
@ -480,7 +480,7 @@
|
||||
title: '请先登录',
|
||||
type: 'error',
|
||||
duration: '2000',
|
||||
url: '/pagesB/login/login'
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
}
|
||||
})
|
||||
@ -489,7 +489,7 @@
|
||||
title: '请先登录',
|
||||
type: 'error',
|
||||
duration: '2000',
|
||||
url: '/pagesB/login/login'
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
}
|
||||
},
|
||||
@ -510,7 +510,7 @@
|
||||
this.$refs.uToast.show({
|
||||
title: '未登录,请先登录',
|
||||
type: 'error',
|
||||
url: '/pagesB/login/login'
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -591,7 +591,7 @@
|
||||
title: '请先登录',
|
||||
type: 'error',
|
||||
duration: '2000',
|
||||
url: '/pagesB/login/login'
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
}
|
||||
})
|
||||
@ -600,7 +600,7 @@
|
||||
title: '请先登录',
|
||||
type: 'error',
|
||||
duration: '2000',
|
||||
url: '/pagesB/login/login'
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
@ -148,7 +148,7 @@
|
||||
title: '请先登录',
|
||||
type: 'error',
|
||||
duration: '2000',
|
||||
url: '/pagesB/login/login'
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
}
|
||||
})
|
||||
@ -157,7 +157,7 @@
|
||||
title: '请先登录',
|
||||
type: 'error',
|
||||
duration: '2000',
|
||||
url: '/pagesB/login/login'
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
@ -349,7 +349,7 @@
|
||||
that.$refs.uToast.show({
|
||||
title: res.msg,
|
||||
type: 'error',
|
||||
url: '/pagesB/login/login'
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user