刘翔宇-旅管家 3 years ago
parent ef8fa245f6
commit 9110b2ba12

BIN
.DS_Store vendored

Binary file not shown.

@ -1,11 +1,11 @@
export const appConfig = { export const appConfig = {
appId: 'wx9b4762770771d98a', //孕育 appId: 'wx9b4762770771d98a', //孕育
//appId:"wx3dc65ce9b588727a",//孕育咨询 //appId:"wx3dc65ce9b588727a",//孕育咨询
//baseUrl: 'http://yunyubang.localhost.com', //baseUrl: 'http://yunyubang.localhost.com',
baseUrl: 'https://yunyubang2021.langye.net', //孕育 baseUrl: 'https://yunyubang2021.langye.net', //孕育
//baseUrl: 'http://yybtest.ali251.langye.net', //baseUrl: 'http://yybtest.ali251.langye.net',
newBaseUrl: 'https://yunyubang.ali251.langye.net', newBaseUrl: 'https://yunyubang.ali251.langye.net',
//newBaseUrl: 'http://yybtest.ali251.langye.net', //newBaseUrl: 'http://yybtest.ali251.langye.net',
//baseUrl:'https://yybtest2021.langye.net',//孕育咨询 //baseUrl:'https://yybtest2021.langye.net',//孕育咨询
openidInfoKey: 'openid_info_yunyubang' openidInfoKey: 'openid_info_yunyubang'
} }

File diff suppressed because it is too large Load Diff

@ -1,401 +1,562 @@
<template> <template>
<view> <view>
<view class="u-skeleton"> <view class="u-skeleton">
<view class="product-picture u-skeleton-rect"> <view class="product-picture u-skeleton-rect">
<swiper class="product-picture-swiper" :indicator-dots="true" <video style="width: 100%;" v-if="showFlag === 0" :src="detail.video"
@change="e => swiperIndex = e.detail.current + 1"> play-btn-position="center"></video>
<swiper-item v-for="(img,index) in detail.confinement_picture" :key="index"> <swiper class="product-picture-swiper" :indicator-dots="true"
<u-image height="100%" width="100%" :src="img.picture" mode="aspectFit"> @change="e => swiperIndex = e.detail.current + 1" v-if="showFlag === 1">
</u-image> <swiper-item v-for="(img,index) in detail.confinement_picture" :key="index">
</swiper-item> <u-image height="100%" width="100%" :src="img.picture" mode="aspectFit">
</swiper> </u-image>
</swiper-item>
<view class="product-picture-num"> </swiper>
{{swiperIndex}} / {{detail.confinement_picture.length}}
</view>
</view> <view class="service-show-btn">
<view class="service-show-btn-img" @click="showFlag = 1">
<view class="product-price u-skeleton-rect"> <image src="../../static/pic.png">
<span style="font-size: 34rpx;">{{detail.price}}</span> </image>
</view> <view class="service-show-btn-img__num">{{detail.confinement_picture.length}}</view>
</view>
<view class="product-info"> <view class="service-show-btn-video" v-if="detail.video" @click="showFlag = 0">
<view class="product-info-name u-skeleton-rect"> <image src="../../static/video.png">
{{detail.name}} </image>
</view> <view class="service-show-btn-img__num">1</view>
</view>
<view class="product-info-label "> </view>
<view class="product-info-label-item" </view>
v-for="(item,index) in featuredLabelSplit(detail.featured_label)" :key="index">
{{item}} <view class="product-price u-skeleton-rect">
</view> <span style="font-size: 34rpx;">{{detail.price}}</span>
</view> </view>
<view class="product-info-shop u-skeleton-fillet">
<view class="product-info-shop-top"> <view class="product-info">
<view class="product-info-shop-top-img"> <view class="product-info-name u-skeleton-rect">
<u-image :src="detail.service.cover_picture" width="100" height="100" border-radius="100%"> {{detail.name}}
</u-image> </view>
</view>
<view class="product-info-shop-top-name"> <view class="product-info-label ">
<view>{{detail.service.name}}</view> <view class="product-info-label-item"
<view>{{detail.service.subheading}}</view> v-for="(item,index) in featuredLabelSplit(detail.featured_label)" :key="index">
</view> {{item}}
<view class="product-info-shop-top-more" @click="toService(detail.service.id)"> </view>
<text>更多</text> </view>
<u-icon name="arrow-right" size="25" color="#A0A0A0"></u-icon>
</view> <view class="product-info-shop u-skeleton-fillet">
</view> <view class="product-info-shop-top">
<view class="product-info-shop-top-img">
<view class="product-info-shop-bottom"> <u-image :src="detail.service.cover_picture" width="100" height="100" border-radius="100%">
<view class="product-info-shop-bottom-icon"> </u-image>
<u-image mode="asseptFit" src="/packages/packageCarecenter/static/position.png" height="26" </view>
width="22"> <view class="product-info-shop-top-name">
</u-image> <view>{{detail.service.name}}</view>
</view> <view>{{detail.service.subheading}}</view>
<view class="product-info-shop-bottom-text"> </view>
{{detail.service.address}} <view class="product-info-shop-top-more" @click="toService(detail.service.id)">
</view> <text>更多</text>
<view class="product-info-shop-bottom-arrow" @click="toMap"> <u-icon name="arrow-right" size="25" color="#A0A0A0"></u-icon>
<u-icon name="arrow-right" size="25" color="#A0A0A0"></u-icon> </view>
</view> </view>
</view>
</view> <view class="product-info-shop-bottom">
</view> <view class="product-info-shop-bottom-icon">
<u-image mode="asseptFit" src="/packages/packageCarecenter/static/position.png" height="26"
<view class="combo u-skeleton-rect"> width="22">
<view class="combo-title"> </u-image>
套餐介绍 </view>
</view> <view class="product-info-shop-bottom-text">
<view class="combo-content"> {{detail.service.address}}
<view class="combo-content-item" v-for="(item,index) in detail.set" :key="index"> </view>
<view class="combo-content-item-name">{{item.content}}</view> <view class="product-info-shop-bottom-arrow" @click="toMap">
<view class="combo-content-item-content">{{item.name}}</view> <u-icon name="arrow-right" size="25" color="#A0A0A0"></u-icon>
</view> </view>
</view> </view>
</view> </view>
</view>
<view class="facility u-skeleton-rect">
<view class="facility-title"> <view class="service-baseinfo-center-store u-skeleton-fillet">
设备详情
</view> <video :src="detail.video" v-if="detail.video" style="width: 100%;"
<view class="facility-content"> play-btn-position="center"></video>
<view class="facility-content-item" v-for="(item,index) in detail.facility" :key="index"> <u-image :src="detail.cover_picture" v-else mode="aspectFill" height="397" width="100%"
<view class="facility-content-item-icon iconfont" :class="'icon-'+item.remark"></view> border-radius="30" @load="$u.debounce(init,100)">
<view class="facility-content-item-name">{{item.value}}</view> </u-image>
</view>
</view> <view class="service-baseinfo-center-store-tag">
</view> <image src="/packages/packageCarecenter/static/huangguan.png"></image>
<view class="service-baseinfo-center-store-tag-text">
<view style="width: 100%;background: #fff;padding: 20rpx 28rpx;"> 孕育邦探店
<u-parse :html="detail.content"></u-parse> </view>
</view> </view>
</view> </view>
<view class="combo u-skeleton-rect">
<u-skeleton :loading="loading" :animation="true" bgColor="#FFF"></u-skeleton> <view class="combo-title">
</view> 套餐介绍
</template> </view>
<view class="combo-content">
<script> <view class="combo-content-item" v-for="(item,index) in detail.set" :key="index">
import { <view class="combo-content-item-name">{{item.content}}</view>
weixin <view class="combo-content-item-content">{{item.name}}</view>
} from '@/utils/weixin.js' </view>
export default { </view>
data() { </view>
return {
loading: true, <view class="facility u-skeleton-rect">
swiperIndex: 1, <view class="facility-title">
detail: {}, 设备详情
} </view>
}, <view class="facility-content">
methods: { <view class="facility-content-item" v-for="(item,index) in detail.facility" :key="index">
toMap() { <view class="facility-content-item-icon iconfont" :class="'icon-'+item.remark"></view>
this.$u.throttle(() => { <view class="facility-content-item-name">{{item.value}}</view>
uni.openLocation({ </view>
latitude: Number(this.detail.service.latitude), </view>
longitude: Number(this.detail.service.longitude), </view>
name: this.detail.name
}) <view style="width: 100%;background: #fff;padding: 20rpx 28rpx;">
}) <u-parse :html="detail.content"></u-parse>
}, </view>
toService(id) { </view>
this.$u.throttle(() => {
uni.navigateTo({ <u-skeleton :loading="loading" :animation="true" bgColor="#FFF"></u-skeleton>
url: `/packages/packageCarecenter/pages/careCenter/serviceDetail?id=${id}` </view>
}) </template>
})
}, <script>
featuredLabelSplit(res) { import {
if (res) { weixin
return res.split(",") } from '@/utils/weixin.js'
} export default {
return [] data() {
}, return {
getProductDetail(id) { showFlag: 1,
weixin.request({ loading: true,
newUrl: true, swiperIndex: 1,
api: '/api/member/get-confinement-product-item', detail: {},
data: { }
id },
}, methods: {
utilSuccess: (res) => { toMap() {
this.detail = res this.$u.throttle(() => {
this.loading = false uni.openLocation({
console.log(res); latitude: Number(this.detail.service.latitude),
} longitude: Number(this.detail.service.longitude),
}) name: this.detail.name
} })
}, })
computed: { },
toService(id) {
}, this.$u.throttle(() => {
onLoad(option) { uni.navigateTo({
this.getProductDetail(option.id) url: `/packages/packageCarecenter/pages/careCenter/serviceDetail?id=${id}`
} })
} })
</script> },
featuredLabelSplit(res) {
<style scoped lang="scss"> if (res) {
.product-picture { return res.split(",")
height: 417rpx; }
width: 100%; return []
},
position: relative; getProductDetail(id) {
weixin.request({
&-swiper { newUrl: true,
width: 100%; api: '/api/member/get-confinement-product-item',
height: 100%; data: {
} id
},
&-num { utilSuccess: (res) => {
color: #fff; this.detail = res
background: #252526; this.loading = false
border-radius: 16rpx; console.log(res);
opacity: 0.3; }
})
padding: 7rpx 20rpx; }
position: absolute; },
bottom: 20rpx; computed: {
right: 27rpx;
} },
} onLoad(option) {
this.getProductDetail(option.id)
.product-price { }
font-weight: 400; }
color: #FF578A; </script>
font-size: 24rpx;
background-color: #FFEFF4; <style scoped lang="scss">
.service-show {
padding: 55rpx 21rpx; width: 100%;
} height: 360rpx;
.product-info { position: relative;
background: #fff;
&>video {
padding-bottom: 41rpx; width: 100%;
height: 100%;
&-name { }
font-weight: 400;
color: #333333; &-swiper {
font-size: 34rpx; width: 100%;
height: 100%;
padding: 46rpx 34rpx 0 34rpx; }
}
&-btn {
&-label { display: flex;
display: flex;
flex-wrap: wrap; z-index: 3;
position: absolute;
margin-top: 21rpx; bottom: 30rpx;
padding: 0 32rpx; right: 33rpx;
&-item { &-img {
background: rgba(255, 87, 138, 0.1); color: #fff;
border-radius: 12rpx; height: 47rpx;
font-weight: 400; background: #252526;
color: #FF578A; border-radius: 16rpx;
font-size: 24rpx; opacity: 0.3;
display: flex;
padding: 10rpx 15rpx; align-items: center;
margin-right: 15rpx;
} margin-right: 14rpx;
}
&>image {
&-shop { width: 24rpx;
background: linear-gradient(180deg, #555455 0%, #1F1D1D 100%); height: 21rpx;
border-radius: 40rpx;
padding-left: 20rpx;
margin: 35rpx 30rpx 0 30rpx; padding-right: 10rpx;
padding: 0 30rpx 0 36rpx; }
&-top { &__num {
display: flex; font-size: 24rpx;
align-items: center; color: #FFFFF0;
font-weight: 400;
padding-top: 23rpx;
padding-right: 20rpx;
&-img {} }
}
&-name {
color: #fff; &-video {
flex: 1; color: #fff;
height: 47rpx;
margin-left: 20rpx; background: #252526;
border-radius: 16rpx;
&>view:nth-child(1) { opacity: 0.3;
font-weight: 400; display: flex;
color: #FFFFFF; align-items: center;
font-size: 30rpx;
} &>image {
width: 24rpx;
&>view:nth-child(2) { height: 21rpx;
display: inline-block;
text-align: center; padding-left: 20rpx;
border-radius: 12rpx; padding-right: 10rpx;
font-size: 24rpx; }
font-weight: 400;
color: #FFFFFF; &__num {
background-color: #FF578A; font-size: 24rpx;
color: #FFFFF0;
padding: 4rpx 11rpx; font-weight: 400;
margin-top: 10rpx;
} padding-right: 20rpx;
} }
}
&-more { }
font-size: 24rpx; }
color: #A0A0A0;
font-weight: 400; .product-picture {
align-self: flex-start; height: 417rpx;
width: 100%;
padding-right: 26rpx;
padding-top: 6rpx; position: relative;
}
} &-swiper {
width: 100%;
&-bottom { height: 100%;
display: flex; }
align-items: flex-start;
&-num {
padding-right: 26rpx; color: #fff;
padding-left: 8rpx; background: #252526;
padding-bottom: 42rpx; border-radius: 16rpx;
margin-top: 37rpx; opacity: 0.3;
&-text { padding: 7rpx 20rpx;
flex: 1; position: absolute;
font-weight: 400; bottom: 20rpx;
color: #FFFFFF; right: 27rpx;
font-size: 24rpx; }
}
padding: 0 23rpx 0 10rpx;
} .product-price {
} font-weight: 400;
} color: #FF578A;
} font-size: 24rpx;
background-color: #FFEFF4;
.combo {
padding: 55rpx 21rpx;
background-color: #fff; }
margin-top: 34rpx; .product-info {
padding: 0 28rpx; background: #fff;
&-title { padding-bottom: 41rpx;
font-size: 34rpx;
font-weight: 400; &-name {
color: #333333; font-weight: 400;
color: #333333;
padding-top: 51rpx; font-size: 34rpx;
padding-left: 6rpx;
padding-bottom: 55rpx; padding: 46rpx 34rpx 0 34rpx;
} }
&-content { &-label {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
&>view:nth-last-child(1) { margin-top: 21rpx;
margin-right: 0; padding: 0 32rpx;
}
&-item {
&-item { background: rgba(255, 87, 138, 0.1);
text-align: center; border-radius: 12rpx;
border: 1px solid #191B1A; font-weight: 400;
border-radius: 24rpx; color: #FF578A;
flex: 0; font-size: 24rpx;
height: 135rpx;
padding: 10rpx 15rpx;
margin-right: 14rpx; margin-right: 15rpx;
margin-bottom: 12rpx; }
}
&-name {
font-size: 30rpx; &-shop {
font-weight: 400; background: linear-gradient(180deg, #555455 0%, #1F1D1D 100%);
color: #333333; border-radius: 40rpx;
white-space: nowrap;
word-wrap: keep-all; margin: 35rpx 30rpx 0 30rpx;
padding: 0 30rpx 0 36rpx;
padding: 27rpx 24rpx 18rpx 24rpx;
} &-top {
display: flex;
&-content { align-items: center;
background-color: #191B1A;
color: #fff; padding-top: 23rpx;
border-radius: 0 0 24rpx 24rpx;
white-space: nowrap; &-img {}
word-wrap: keep-all;
&-name {
padding: 8rpx 24rpx; color: #fff;
} flex: 1;
}
} margin-left: 20rpx;
} &>view:nth-child(1) {
font-weight: 400;
.facility { color: #FFFFFF;
background-color: #fff; font-size: 30rpx;
}
&-title {
padding: 73rpx 0 44rpx 34rpx; &>view:nth-child(2) {
font-weight: 400; display: inline-block;
color: #333333; text-align: center;
font-size: 34rpx; border-radius: 12rpx;
} font-size: 24rpx;
font-weight: 400;
&-content { color: #FFFFFF;
display: flex; background-color: #FF578A;
flex-wrap: wrap;
padding: 4rpx 11rpx;
padding: 44rpx 64rpx 66rpx 64rpx; margin-top: 10rpx;
}
&-item { }
flex-basis: 25%;
font-size: 24rpx; &-more {
font-weight: 400; font-size: 24rpx;
color: #333333; color: #A0A0A0;
text-align: center; font-weight: 400;
align-self: flex-start;
margin-bottom: 24rpx;
padding-right: 26rpx;
&-icon { padding-top: 6rpx;
width: 55rpx; }
height: 55rpx; }
font-size: 55rpx;
&-bottom {
margin: auto; display: flex;
} align-items: flex-start;
&-name { padding-right: 26rpx;
padding-left: 8rpx;
padding-top: 13rpx; padding-bottom: 42rpx;
} margin-top: 37rpx;
}
} &-text {
flex: 1;
} font-weight: 400;
color: #FFFFFF;
::v-deep .u-image__image { font-size: 24rpx;
display: block !important;
} padding: 0 23rpx 0 10rpx;
}
}
}
}
.combo {
background-color: #fff;
margin-top: 34rpx;
padding: 0 28rpx;
&-title {
font-size: 34rpx;
font-weight: 400;
color: #333333;
padding-top: 51rpx;
padding-left: 6rpx;
padding-bottom: 55rpx;
}
&-content {
display: flex;
flex-wrap: wrap;
&>view:nth-last-child(1) {
margin-right: 0;
}
&-item {
text-align: center;
border: 1px solid #191B1A;
border-radius: 24rpx;
flex: 0;
height: 135rpx;
margin-right: 14rpx;
margin-bottom: 12rpx;
&-name {
font-size: 30rpx;
font-weight: 400;
color: #333333;
white-space: nowrap;
word-wrap: keep-all;
padding: 27rpx 24rpx 18rpx 24rpx;
}
&-content {
background-color: #191B1A;
color: #fff;
border-radius: 0 0 24rpx 24rpx;
white-space: nowrap;
word-wrap: keep-all;
padding: 8rpx 24rpx;
}
}
}
}
.service-baseinfo {
width: 100%;
background: linear-gradient(90deg, #555455 0%, #1F1D1D 100%);
padding-bottom: 38rpx;
&-center {
margin-top: 28rpx;
&-store {
position: relative;
margin-top: 30rpx;
padding: 0 33rpx;
&-tag {
display: flex;
align-items: center;
background: linear-gradient(90deg, #FFFFFF 0%, #FFF0F0 100%);
border-bottom-left-radius: 20rpx;
border-bottom-right-radius: 20rpx;
padding: 9rpx 18rpx;
position: absolute;
top: 0;
left: 76rpx;
&>image {
width: 25rpx;
height: 25rpx;
}
&-text {
font-size: 24rpx;
font-weight: 400;
color: #FF578A;
padding-left: 11rpx;
}
}
}
}
}
.facility {
background-color: #fff;
&-title {
padding: 73rpx 0 44rpx 34rpx;
font-weight: 400;
color: #333333;
font-size: 34rpx;
}
&-content {
display: flex;
flex-wrap: wrap;
padding: 44rpx 64rpx 66rpx 64rpx;
&-item {
flex-basis: 25%;
font-size: 24rpx;
font-weight: 400;
color: #333333;
text-align: center;
margin-bottom: 24rpx;
&-icon {
width: 55rpx;
height: 55rpx;
font-size: 55rpx;
margin: auto;
}
&-name {
padding-top: 13rpx;
}
}
}
}
::v-deep .u-image__image {
display: block !important;
}
</style> </style>

@ -12,38 +12,12 @@
</view> </view>
</view> </view>
<view class="menuBox"> <view class="menuBox">
<view class="menuCol" @click="toAction" data-id="-1"> <block v-for="item in indexNav" :key="item.id">
<image src="../../static/icon_home_youxuan@2x.png"></image> <view class="menuCol" @click="toAction(item)" data-id="-1">
<view>为您优选</view> <image :src="item.icon"></image>
</view> <view>{{item.name}}</view>
<view class="menuCol" @click="gotomember"> </view>
<image src="../../static/icon_home_women@2x.png"></image> </block>
<view>福利包</view>
</view>
<view class="menuCol" @click="toAction" data-id="10">
<image src="../../static/icon_home_huodong@2x.png"></image>
<view>产后康复</view>
</view>
<view class="menuCol" @click="toAction" data-id="28">
<image src="../../static/icon_home_fuwu@2x.png"></image>
<view>摄影</view>
</view>
<view class="menuCol" @click="toAction" data-id="13">
<image src="../../static/icon_home_youhui@2x.png"></image>
<view>宝宝护理</view>
</view>
<view class="menuCol" @click="toAction" data-id="23">
<image src="../../static/icon_home_shanghu@2x.png"></image>
<view>胎教</view>
</view>
<view class="menuCol" @click="toAction" data-id="25">
<image src="../../static/icon_home_shangcheng@2x.png"></image>
<view>其他</view>
</view>
<view class="menuCol" @tap="goCarecenter">
<image src="../../static/icon_home_yuezizhongxin.png"></image>
<view>月子中心</view>
</view>
</view> </view>
<!--为您精选活动--> <!--为您精选活动-->
<view class="introBox"> <view class="introBox">
@ -116,11 +90,12 @@
keyword: "", keyword: "",
currentPage: 1, currentPage: 1,
dataList: [], dataList: [],
dataActiveList: [] dataActiveList: [],
indexNav: []
} }
}, },
onLoad() { onLoad() {
this.getNav();
}, },
onShow() { onShow() {
this.getAdS(); this.getAdS();
@ -142,12 +117,26 @@
this.loadPage((this.currentPage + 1), '', 6, 1) this.loadPage((this.currentPage + 1), '', 6, 1)
}, },
methods: { methods: {
toAction: function(e) { async getNav(code) {
var id = e.currentTarget.dataset.id; await weixin.request({
if (!weixin.isNull(id) || id == "-1") { newUrl: true,
id = (id == "-1" ? "" : id); api: '/api/member/applet-menu-first/index',
data: {
page: 1,
page_size: 8,
sort_name: "sort_number",
sort_type: "asc"
},
utilSuccess: (res) => {
this.indexNav = res.data;
}
})
},
toAction: function(item) {
console.log(item)
if (item.link) {
uni.redirectTo({ uni.redirectTo({
url: "../../packages/packageBuy/pages/shopList/shopList?product_type_id=" + id url: item.link
}) })
} else { } else {
uni.showToast({ uni.showToast({
@ -155,7 +144,6 @@
title: "建设中" title: "建设中"
}) })
} }
console.log(e)
}, },
gotomember() { gotomember() {
uni.navigateTo({ uni.navigateTo({

Loading…
Cancel
Save