2022-11-25 10:58:46 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<view class="app">
|
2023-02-21 17:47:08 +08:00
|
|
|
|
<view class="container">
|
|
|
|
|
|
<view>
|
|
|
|
|
|
<!-- 轮播图 -->
|
|
|
|
|
|
<swiper indicator-dots="true" indicator-color='#fff' indicator-active-color='#0086d6'
|
|
|
|
|
|
:autoplay="autoplay" interval="3000" duration="1500" show-center-play-btn="true" class="swiper-box"
|
|
|
|
|
|
circular='true' @change="swiperChange">
|
|
|
|
|
|
<swiper-item v-for="(item ,index) in Banners" :key="index">
|
|
|
|
|
|
<view class="swiper-item" v-show="!splits(item)" wx-if="{item}">
|
|
|
|
|
|
<image v-if="item" :src="item" mode="widthFix"></image>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="swiper-item" v-show="splits(item)" v-if="item">
|
|
|
|
|
|
<video :id="'myVideo'+index" :autoplay="false" :src="item" controls show-fullscreen-btn
|
|
|
|
|
|
object-fit="fill" @play="play" @pause="pause" @ended="ended" auto-pause-if-navigate
|
|
|
|
|
|
show-play-btn :enable-progress-gesture='true' :show-center-play-btn='true'
|
|
|
|
|
|
enable-play-gesture auto-pause-if-open-native show-mute-btn></video>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</swiper-item>
|
|
|
|
|
|
</swiper>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<!-- <swiper class="swiper" circular>
|
|
|
|
|
|
<swiper-item>
|
|
|
|
|
|
<view class="swiper-item ">A</view>
|
|
|
|
|
|
</swiper-item>
|
|
|
|
|
|
<swiper-item>
|
|
|
|
|
|
<view class="swiper-item">B</view>
|
|
|
|
|
|
</swiper-item>
|
|
|
|
|
|
<swiper-item>
|
|
|
|
|
|
<video @play = 'videoplay'
|
|
|
|
|
|
src="http://192.168.16.30:8088/profile/posterVideoUrl/2023/02/21/QQ录屏20221019175958_20230221170920A01781ba346416.mp4"></video>
|
|
|
|
|
|
</swiper-item>
|
|
|
|
|
|
</swiper> -->
|
|
|
|
|
|
<!-- <u-swiper v-if="lbinfo" :list="lbinfo" height="450" style='background-size: 100%;' mode='none'></u-swiper> -->
|
2022-11-25 10:58:46 +08:00
|
|
|
|
<view class="content">
|
|
|
|
|
|
<view class="righttext">
|
2022-12-27 09:22:42 +08:00
|
|
|
|
<view class="title" v-if="list.nurseStationName">
|
2022-11-25 10:58:46 +08:00
|
|
|
|
{{list.nurseStationName}}
|
|
|
|
|
|
</view>
|
2022-12-27 09:22:42 +08:00
|
|
|
|
<view class="title" v-else>
|
|
|
|
|
|
暂无
|
|
|
|
|
|
</view>
|
2023-02-16 10:44:21 +08:00
|
|
|
|
<view class="time">
|
|
|
|
|
|
<view class="text">
|
|
|
|
|
|
{{list.businessStatus}}
|
|
|
|
|
|
</view>
|
2023-02-20 17:09:41 +08:00
|
|
|
|
<view class="timeday" v-if="list.openingHoursDescribe">
|
2023-02-16 10:44:21 +08:00
|
|
|
|
{{list.openingHoursDescribe}}
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="texttime">
|
|
|
|
|
|
<view class="">
|
|
|
|
|
|
上午:{{list.morningOpenStartTime}}-{{list.morningOpenEndTime}}
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="">
|
|
|
|
|
|
下午:{{list.afternoonOpenStartTime}}-{{list.afternoonOpenEndTime}}
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
2022-12-27 09:22:42 +08:00
|
|
|
|
</view>
|
2023-02-16 10:44:21 +08:00
|
|
|
|
<view class="configuration">
|
|
|
|
|
|
<view class="text" v-for="(item,index) in nurseStationLabelList" :key="index">
|
|
|
|
|
|
{{item.labelDescription}}
|
2022-11-25 10:58:46 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
2023-02-16 10:44:21 +08:00
|
|
|
|
<view class="address" v-if="list.address">
|
|
|
|
|
|
<image src="../../static/locatinsmall.png" mode=""></image>
|
|
|
|
|
|
<view class="text">
|
|
|
|
|
|
{{list.address}}
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="distance">
|
|
|
|
|
|
{{distance}}KM
|
|
|
|
|
|
</view>
|
2022-11-25 10:58:46 +08:00
|
|
|
|
</view>
|
2023-02-16 10:44:21 +08:00
|
|
|
|
<view class="address" v-else>
|
2023-02-20 16:22:42 +08:00
|
|
|
|
<image src="../../static/locatinsmall.png" mode=""></image>
|
|
|
|
|
|
<view class="text">
|
|
|
|
|
|
暂无
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="distance">
|
|
|
|
|
|
{{distance}}KM
|
|
|
|
|
|
</view>
|
2023-02-16 10:44:21 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
<view class="address" v-if="list.dutyPhone" style="margin: 20rpx 0 0 33rpx;" @tap='gophone'>
|
|
|
|
|
|
<image src="../../static/phone.png" mode=""></image>
|
|
|
|
|
|
<view class="text">
|
|
|
|
|
|
{{list.dutyPhone}}
|
2022-11-25 10:58:46 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
2023-02-20 16:22:42 +08:00
|
|
|
|
<view class="address" v-else style="margin: 20rpx 0 0 33rpx">
|
|
|
|
|
|
<image src="../../static/phone.png" mode=""></image>
|
|
|
|
|
|
<view class="text">
|
|
|
|
|
|
暂无
|
|
|
|
|
|
</view>
|
2023-02-16 10:44:21 +08:00
|
|
|
|
</view>
|
2022-11-25 10:58:46 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
<view class="tive">
|
2023-02-20 16:22:42 +08:00
|
|
|
|
<view class="tab-box">
|
|
|
|
|
|
<view class="tab-item" @tap="testTabClick(item)" v-for="(item,index) in tabLists" :key="index"
|
2022-11-25 10:58:46 +08:00
|
|
|
|
:class="tabIndex == index?'active':''">
|
2023-02-20 16:22:42 +08:00
|
|
|
|
{{item.name}}
|
2022-11-25 10:58:46 +08:00
|
|
|
|
</view>
|
2023-02-20 16:22:42 +08:00
|
|
|
|
</view>
|
2023-02-21 17:47:08 +08:00
|
|
|
|
<u-tabs v-if="choicetab==false" :list="tabList" :current="classifycurrent" @change="change">
|
|
|
|
|
|
</u-tabs>
|
2023-02-20 16:22:42 +08:00
|
|
|
|
<view class="" v-if="servelist.length>0&&choicetab==false" style="margin:0">
|
2022-12-01 16:59:32 +08:00
|
|
|
|
<view class="item" v-for="item in servelist" :key="" v-show='choicetab==false'
|
|
|
|
|
|
@click.stop='goProjectDetails(item)'>
|
2022-11-25 10:58:46 +08:00
|
|
|
|
<image :src="item.itemPictureUrl"></image>
|
|
|
|
|
|
<view class="huanyao">{{item.nurseItemName}}
|
|
|
|
|
|
</view>
|
2023-02-21 15:13:23 +08:00
|
|
|
|
<view class="day">
|
2023-02-22 09:14:10 +08:00
|
|
|
|
{{item.advanceAppointDuration=='HALF_DAY'?'提前预约时长:半天':''}}
|
|
|
|
|
|
{{item.advanceAppointDuration=='ONE_DAY'?'提前预约时长:一天':''}}
|
2023-02-21 15:13:23 +08:00
|
|
|
|
</view>
|
2022-11-25 10:58:46 +08:00
|
|
|
|
<!-- <view class="pingfen">
|
|
|
|
|
|
<u-rate :count="5" value="2"></u-rate>
|
|
|
|
|
|
</view> -->
|
2023-02-16 10:44:21 +08:00
|
|
|
|
<!-- <view class="servicetime">服务时长:{{item.serveDurationUnit?item.serveDurationUnit:'0'}}</view> -->
|
2023-02-20 16:22:42 +08:00
|
|
|
|
<view class="appointment" @click.stop='goappointments(item)'>预约</view>
|
2022-11-25 10:58:46 +08:00
|
|
|
|
<view class="price">¥{{item.nurseItemPrice==null?'0':item.nurseItemPrice}}</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="noorder" v-if='servelist.length==0&&choicetab==false'>
|
|
|
|
|
|
<image src="../../static/noorder.png" mode=""></image>
|
|
|
|
|
|
<view class="">
|
|
|
|
|
|
暂无服务项目
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="" v-if="productlist.length>0&&choicetab">
|
|
|
|
|
|
<view class="item" v-show='choicetab' v-for="(item,index) in productlist" :key="index">
|
|
|
|
|
|
<image :src="item.goodsPictureUrl"></image>
|
|
|
|
|
|
<view class="product">{{item.goodsName}}</view>
|
2023-02-16 10:44:21 +08:00
|
|
|
|
<!-- <view class="product" style="top:38%;font-size: 24rpx;color: #999999;">
|
|
|
|
|
|
{{item.attributeDetailsName}}
|
|
|
|
|
|
</view> -->
|
2022-11-25 10:58:46 +08:00
|
|
|
|
<view class="buy appointment" @tap="goCommodityDetails(item)">购买</view>
|
2023-02-16 10:44:21 +08:00
|
|
|
|
<view class="price">¥{{item.goodsPrice==null?'0':item.goodsPrice}}</view>
|
2022-11-25 10:58:46 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="noorder" v-if="productlist.length==0&&choicetab">
|
|
|
|
|
|
<image src="../../static/noorder.png" mode=""></image>
|
|
|
|
|
|
<view class="">
|
|
|
|
|
|
暂无产品
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<u-mask :show="usershow" class='mask'>
|
|
|
|
|
|
<view class="information">
|
|
|
|
|
|
<image src="../../static/information.png" mode=""></image>
|
|
|
|
|
|
<view class="title">
|
|
|
|
|
|
请完善个人信息
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="cancel" @tap='usershow=false'>
|
|
|
|
|
|
取消
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="determine" @tap='goinformation'>
|
|
|
|
|
|
去完善
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</u-mask>
|
|
|
|
|
|
<u-toast ref="uToast" />
|
2023-02-20 16:22:42 +08:00
|
|
|
|
<u-back-top :scroll-top="scrollTop"></u-back-top>
|
2022-11-25 10:58:46 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
import {
|
|
|
|
|
|
AppIdentification
|
|
|
|
|
|
} from '@/api/AppIdentification/index.js'
|
|
|
|
|
|
import {
|
|
|
|
|
|
introductionList,
|
|
|
|
|
|
itemList,
|
|
|
|
|
|
productInformation,
|
|
|
|
|
|
} from '@/api/nursestation/nursestation.js';
|
|
|
|
|
|
import baseurl from '@/api/baseurl.js'
|
|
|
|
|
|
export default {
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2023-02-21 17:47:08 +08:00
|
|
|
|
Banners: [], //轮播图
|
|
|
|
|
|
autoplay: true, //自动切换轮播图
|
|
|
|
|
|
videoContext: '',
|
2023-02-20 16:22:42 +08:00
|
|
|
|
baseurl: '',
|
2022-11-25 10:58:46 +08:00
|
|
|
|
usershow: false, //完善信息开关
|
|
|
|
|
|
choicetab: false, //切换
|
|
|
|
|
|
list: [], //护理站list
|
|
|
|
|
|
servelist: [], //服务项目
|
|
|
|
|
|
productlist: [], //产品
|
|
|
|
|
|
servetotal: 0, //服务项目total
|
|
|
|
|
|
producttotal: 0, //产品total
|
|
|
|
|
|
stationid: '', //护理站id
|
|
|
|
|
|
nurseStationLabelList: [], //护理站配置
|
|
|
|
|
|
nearbyNursingStationItemList: [],
|
|
|
|
|
|
nurseStationId: '',
|
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
pageSize: 10,
|
2022-12-01 16:59:32 +08:00
|
|
|
|
timer: null,
|
2022-11-25 10:58:46 +08:00
|
|
|
|
tabList: [{
|
2023-02-16 10:44:21 +08:00
|
|
|
|
name: '全部',
|
|
|
|
|
|
id: ''
|
|
|
|
|
|
}], //分类标题
|
2023-02-20 16:22:42 +08:00
|
|
|
|
tabIndex: 0,
|
|
|
|
|
|
tabLists: [{
|
|
|
|
|
|
name: '服务项目',
|
|
|
|
|
|
id: 0,
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
name: '产品',
|
|
|
|
|
|
id: 1,
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-02-16 10:44:21 +08:00
|
|
|
|
classifycurrent: 0, //分类下标
|
|
|
|
|
|
distance: null, //距离
|
|
|
|
|
|
nurseClassifyInfoId: '', //分类id
|
2023-02-20 16:22:42 +08:00
|
|
|
|
scrollTop: 0,
|
2022-11-25 10:58:46 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
onShow() {
|
2023-02-17 09:36:17 +08:00
|
|
|
|
this.baseurl = baseurl
|
2022-11-25 10:58:46 +08:00
|
|
|
|
this.usershow = false
|
2022-12-27 09:22:42 +08:00
|
|
|
|
this.getInfo()
|
2022-11-25 10:58:46 +08:00
|
|
|
|
},
|
|
|
|
|
|
onLoad(options) {
|
2023-02-21 17:47:08 +08:00
|
|
|
|
let that = this
|
|
|
|
|
|
this.GetBanner()
|
2022-11-25 10:58:46 +08:00
|
|
|
|
this.nurseStationId = options.nurseStationId
|
2023-02-16 10:44:21 +08:00
|
|
|
|
this.distance = options.distance
|
2022-11-25 10:58:46 +08:00
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
2023-02-21 17:47:08 +08:00
|
|
|
|
swiperChange(e) {
|
|
|
|
|
|
let {
|
|
|
|
|
|
current,
|
|
|
|
|
|
source
|
|
|
|
|
|
} = e.detail
|
|
|
|
|
|
this.videoContext = uni.createVideoContext('myVideo' + (current - 1));
|
|
|
|
|
|
//只有手动切换时开始轮播,并且上一页视频暂停
|
|
|
|
|
|
if (source === 'touch') {
|
|
|
|
|
|
this.videoContext.pause(); //暂停
|
|
|
|
|
|
this.autoplay = true
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
// 获取数据
|
|
|
|
|
|
GetBanner() {},
|
|
|
|
|
|
// 处理banner返回的是是视频还是图片
|
|
|
|
|
|
splits(url) {
|
|
|
|
|
|
if (url.indexOf('.') != -1) {
|
|
|
|
|
|
var ext = url.substring(url.lastIndexOf('.') + 1);
|
|
|
|
|
|
return ['mp4', 'webm', 'mpeg4', 'ogg'].indexOf(ext) != -1
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
// 点击开始/继续播放
|
|
|
|
|
|
play() {
|
|
|
|
|
|
this.autoplay = false
|
|
|
|
|
|
// this.videoContext.requestFullScreen()
|
|
|
|
|
|
},
|
|
|
|
|
|
// 视频暂停
|
|
|
|
|
|
pause() {
|
|
|
|
|
|
this.autoplay = true
|
|
|
|
|
|
},
|
|
|
|
|
|
// 视频结束
|
|
|
|
|
|
ended() {
|
|
|
|
|
|
this.autoplay = true
|
|
|
|
|
|
},
|
|
|
|
|
|
|
2023-02-20 16:22:42 +08:00
|
|
|
|
testTabClick(item) {
|
|
|
|
|
|
this.tabIndex = item.id
|
|
|
|
|
|
if (item.id == 0) {
|
|
|
|
|
|
this.choicetab = false
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.choicetab = true
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2023-02-16 10:44:21 +08:00
|
|
|
|
//点击分类标题
|
|
|
|
|
|
change(index) {
|
|
|
|
|
|
this.classifycurrent = index;
|
|
|
|
|
|
this.nurseClassifyInfoId = this.tabList[index].id
|
|
|
|
|
|
this.serveinfo()
|
|
|
|
|
|
},
|
2023-02-20 16:22:42 +08:00
|
|
|
|
//预约
|
2022-11-25 10:58:46 +08:00
|
|
|
|
goappointments(item) {
|
|
|
|
|
|
let that = this
|
|
|
|
|
|
try {
|
|
|
|
|
|
const value = uni.getStorageSync('openid');
|
2022-12-27 09:22:42 +08:00
|
|
|
|
const value2 = uni.getStorageSync('patientId');
|
|
|
|
|
|
if (value && value2) {
|
|
|
|
|
|
AppIdentification(value2).then(res => {
|
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
|
if (res.data.loginFlag) {
|
|
|
|
|
|
that.usershow = false
|
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
|
url: `/pages/appointmenttime/appointmenttime?stationId=${item.stationId}&stationItemId=${item.stationItemId}&stationItemPriceId=${item.stationItemPriceId}`,
|
2022-11-25 10:58:46 +08:00
|
|
|
|
})
|
2022-12-27 09:22:42 +08:00
|
|
|
|
} else {
|
|
|
|
|
|
that.usershow = true
|
2022-11-25 10:58:46 +08:00
|
|
|
|
}
|
2022-12-27 09:22:42 +08:00
|
|
|
|
} else if (res.code == 9999) {} else {
|
|
|
|
|
|
that.$refs.uToast.show({
|
|
|
|
|
|
title: res.msg,
|
|
|
|
|
|
type: 'error'
|
2022-11-25 10:58:46 +08:00
|
|
|
|
})
|
2022-12-27 09:22:42 +08:00
|
|
|
|
if (that.timer) {
|
|
|
|
|
|
clearTimeout(that.timer)
|
|
|
|
|
|
}
|
|
|
|
|
|
that.timer = setTimeout(e => {
|
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
|
url: '/pages/login/login'
|
|
|
|
|
|
})
|
|
|
|
|
|
}, 1500)
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
2022-11-25 10:58:46 +08:00
|
|
|
|
} else {
|
|
|
|
|
|
that.$refs.uToast.show({
|
|
|
|
|
|
title: '未登录,请先登录',
|
|
|
|
|
|
type: 'error'
|
|
|
|
|
|
})
|
2022-12-01 16:59:32 +08:00
|
|
|
|
if (that.timer) {
|
|
|
|
|
|
clearTimeout(that.timer)
|
|
|
|
|
|
}
|
|
|
|
|
|
that.timer = setTimeout(e => {
|
2022-11-25 10:58:46 +08:00
|
|
|
|
uni.navigateTo({
|
|
|
|
|
|
url: '/pages/login/login'
|
|
|
|
|
|
})
|
|
|
|
|
|
}, 1500)
|
|
|
|
|
|
}
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
|
url: '/pages/login/login'
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
getInfo() {
|
|
|
|
|
|
introductionList(this.nurseStationId).then(res => {
|
2022-12-27 09:22:42 +08:00
|
|
|
|
if (res.code == 200) {
|
2023-02-21 17:47:08 +08:00
|
|
|
|
this.Banners = []
|
2022-12-27 09:22:42 +08:00
|
|
|
|
this.serveinfo()
|
|
|
|
|
|
this.productinfo()
|
2023-02-16 10:44:21 +08:00
|
|
|
|
res.data.morningOpenStartTime = res.data.morningOpenStartTime.slice(0, 5)
|
|
|
|
|
|
res.data.morningOpenEndTime = res.data.morningOpenEndTime.slice(0, 5)
|
|
|
|
|
|
res.data.afternoonOpenStartTime = res.data.afternoonOpenStartTime.slice(0, 5)
|
|
|
|
|
|
res.data.afternoonOpenEndTime = res.data.afternoonOpenEndTime.slice(0, 5)
|
2022-12-27 09:22:42 +08:00
|
|
|
|
res.data.stationIntroducePcitureUrl = baseurl + res.data.stationIntroducePcitureUrl
|
2023-02-17 09:36:17 +08:00
|
|
|
|
res.data.stationPictureUrl = baseurl + res.data.stationPictureUrl
|
2022-12-27 09:22:42 +08:00
|
|
|
|
if (res.data.agencyIntroduce) {
|
|
|
|
|
|
res.data.agencyIntroduce = res.data.agencyIntroduce.replace(/\<img/gi,
|
|
|
|
|
|
"<br/><img class='richPic'")
|
|
|
|
|
|
}
|
2023-02-16 10:44:21 +08:00
|
|
|
|
res.data.nurseClassifyInfoList.forEach(e => {
|
|
|
|
|
|
e.name = e.classifyName
|
|
|
|
|
|
this.tabList.push(e)
|
|
|
|
|
|
})
|
2022-12-27 09:22:42 +08:00
|
|
|
|
this.list = res.data
|
2023-02-17 09:36:17 +08:00
|
|
|
|
if (res.data.poserInfoList.length >= 1) {
|
|
|
|
|
|
res.data.poserInfoList.forEach(e => {
|
2023-02-20 16:22:42 +08:00
|
|
|
|
e.image = baseurl + e.posterPictureUrl
|
2023-02-21 17:47:08 +08:00
|
|
|
|
this.Banners.push(e.image)
|
2023-02-17 09:36:17 +08:00
|
|
|
|
})
|
2023-02-21 17:47:08 +08:00
|
|
|
|
res.data.poserInfoList[0].video = baseurl + res.data.poserInfoList[0].posterVideoUrl
|
|
|
|
|
|
this.Banners.push(res.data.poserInfoList[0].video)
|
2023-02-17 09:36:17 +08:00
|
|
|
|
} else {
|
2023-02-21 17:47:08 +08:00
|
|
|
|
this.Banners.push(res.data.stationPictureUrl)
|
|
|
|
|
|
this.Banners.push(res.data.stationIntroducePcitureUrl)
|
2023-02-17 09:36:17 +08:00
|
|
|
|
}
|
2022-12-27 09:22:42 +08:00
|
|
|
|
if (res.data.nurseStationLabelList) {
|
|
|
|
|
|
this.nurseStationLabelList = res.data.nurseStationLabelList
|
|
|
|
|
|
}
|
2022-11-25 10:58:46 +08:00
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
serveinfo() {
|
2022-12-27 09:22:42 +08:00
|
|
|
|
this.pageNum = 1
|
2023-02-16 10:44:21 +08:00
|
|
|
|
itemList(this.nurseStationId, this.pageSize, this.pageNum, this.nurseClassifyInfoId).then(res => {
|
2022-12-27 09:22:42 +08:00
|
|
|
|
uni.removeStorageSync('Refresh');
|
2022-11-25 10:58:46 +08:00
|
|
|
|
res.rows.forEach(e => {
|
|
|
|
|
|
e.itemPictureUrl = baseurl + e.itemPictureUrl
|
|
|
|
|
|
})
|
|
|
|
|
|
this.servelist = res.rows
|
|
|
|
|
|
this.servetotal = res.total
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
productinfo() {
|
2022-12-27 09:22:42 +08:00
|
|
|
|
this.pageNum = 1
|
2022-11-25 10:58:46 +08:00
|
|
|
|
productInformation(this.nurseStationId, this.pageNum, this.pageSize).then(res => {
|
2022-12-27 09:22:42 +08:00
|
|
|
|
uni.removeStorageSync('Refresh');
|
2022-11-25 10:58:46 +08:00
|
|
|
|
res.rows.forEach(e => {
|
|
|
|
|
|
e.goodsPictureUrl = baseurl + e.goodsPictureUrl
|
|
|
|
|
|
})
|
|
|
|
|
|
this.productlist = res.rows
|
|
|
|
|
|
this.producttotal = res.total
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
//跳转商品详情页
|
|
|
|
|
|
goCommodityDetails(item) {
|
|
|
|
|
|
uni.navigateTo({
|
2023-01-12 16:16:36 +08:00
|
|
|
|
url: `/pages/CommodityDetails/CommodityDetails?goodsPrice=${item.goodsPrice}&goodsInfoId=${item.goodsInfoId}&buySource=${'NURSE_STATION'}&goodsAttributeId=${item.goodsAttributeId}`
|
2022-11-25 10:58:46 +08:00
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
//跳转完善页面
|
|
|
|
|
|
goinformation() {
|
|
|
|
|
|
this.usershow = false
|
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
|
url: '/pages/information/information'
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
2022-12-01 16:59:32 +08:00
|
|
|
|
goProjectDetails(item) {
|
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
|
url: `/pages/ProjectDetails/ProjectDetails?stationId=${item.stationId}&stationItemId=${item.stationItemId}&stationItemPriceId=${item.stationItemPriceId}`,
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
2022-11-25 10:58:46 +08:00
|
|
|
|
gophone() {
|
|
|
|
|
|
var that = this
|
|
|
|
|
|
uni.getSystemInfo({
|
|
|
|
|
|
success: function(res) {
|
|
|
|
|
|
if (res.platform == 'ios') {
|
|
|
|
|
|
uni.makePhoneCall({
|
|
|
|
|
|
phoneNumber: that.list.phone //仅为示例
|
|
|
|
|
|
});
|
|
|
|
|
|
} else {
|
|
|
|
|
|
uni.showActionSheet({
|
|
|
|
|
|
itemList: ['呼叫', ],
|
|
|
|
|
|
success: function(res) {
|
|
|
|
|
|
if (res.tapIndex + 1 == 1) {
|
|
|
|
|
|
uni.makePhoneCall({
|
|
|
|
|
|
phoneNumber: that.list.phone //仅为示例
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
fail: function(res) {}
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2023-02-16 10:44:21 +08:00
|
|
|
|
onReachBottom() { //上滑加载
|
|
|
|
|
|
if (!this.choicetab) {
|
2022-11-25 10:58:46 +08:00
|
|
|
|
if (this.servelist.length >= this.servetotal) {} else {
|
|
|
|
|
|
this.pageNum++
|
2023-02-20 16:22:42 +08:00
|
|
|
|
itemList(this.nurseStationId, this.pageSize, this.pageNum, this.nurseClassifyInfoId).then(res => {
|
2022-11-25 10:58:46 +08:00
|
|
|
|
res.rows.forEach(e => {
|
|
|
|
|
|
e.itemPictureUrl = baseurl + e.itemPictureUrl
|
|
|
|
|
|
this.servelist.push(e)
|
|
|
|
|
|
})
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
|
|
|
if (this.productlist.length >= this.producttotal) {} else {
|
|
|
|
|
|
this.pageNum++
|
|
|
|
|
|
productInformation(this.nurseStationId, this.pageNum, this.pageSize).then(res => {
|
|
|
|
|
|
res.rows.forEach(e => {
|
|
|
|
|
|
e.goodsPictureUrl = baseurl + e.goodsPictureUrl
|
|
|
|
|
|
this.productlist.push(e)
|
|
|
|
|
|
})
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
onPullDownRefresh() { //下拉刷新
|
|
|
|
|
|
this.pageNum = 1;
|
2023-02-16 10:44:21 +08:00
|
|
|
|
if (!this.choicetab) {
|
2022-11-25 10:58:46 +08:00
|
|
|
|
itemList(this.nurseStationId, this.pageSize, this.pageNum).then(res => {
|
|
|
|
|
|
res.rows.forEach(e => {
|
|
|
|
|
|
e.itemPictureUrl = baseurl + e.itemPictureUrl
|
|
|
|
|
|
})
|
|
|
|
|
|
this.servelist = res.rows
|
|
|
|
|
|
})
|
|
|
|
|
|
} else {
|
|
|
|
|
|
productInformation(this.nurseStationId, this.pageNum, this.pageSize).then(res => {
|
|
|
|
|
|
res.rows.forEach(e => {
|
|
|
|
|
|
e.goodsPictureUrl = baseurl + e.goodsPictureUrl
|
|
|
|
|
|
})
|
|
|
|
|
|
this.productlist = res.rows
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
setTimeout(function() {
|
|
|
|
|
|
uni.stopPullDownRefresh();
|
|
|
|
|
|
}, 1000);
|
|
|
|
|
|
},
|
2022-12-28 12:08:50 +08:00
|
|
|
|
//1.分享给朋友
|
|
|
|
|
|
onShareAppMessage(res) {
|
2023-01-03 09:02:23 +08:00
|
|
|
|
let pages = getCurrentPages();
|
|
|
|
|
|
let url = pages[pages.length - 1].$page.fullPath
|
2022-12-28 12:08:50 +08:00
|
|
|
|
return {
|
|
|
|
|
|
title: '泉医到家',
|
2023-01-03 09:02:23 +08:00
|
|
|
|
path: url,
|
2022-12-28 12:08:50 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
//2.分享到朋友圈
|
|
|
|
|
|
onShareTimeline(res) {
|
2023-01-03 09:02:23 +08:00
|
|
|
|
let pages = getCurrentPages();
|
|
|
|
|
|
let url = pages[pages.length - 1].$page.fullPath
|
2022-12-28 12:08:50 +08:00
|
|
|
|
return {
|
|
|
|
|
|
title: '泉医到家',
|
2023-01-03 09:02:23 +08:00
|
|
|
|
path: url,
|
2022-12-28 12:08:50 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
2023-02-20 16:22:42 +08:00
|
|
|
|
onPageScroll(e) {
|
|
|
|
|
|
this.scrollTop = e.scrollTop;
|
|
|
|
|
|
},
|
2022-11-25 10:58:46 +08:00
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
|
@import './nursestation.scss';
|
|
|
|
|
|
</style>
|