master
lion 3 years ago
parent 3caaa3ced3
commit 706e029ae2

@ -79,7 +79,7 @@
</view>
</view>
<view class="service-baseinfo-center-service u-skeleton-fillet" @click="showQR=true"
<view class="service-baseinfo-center-service u-skeleton-fillet" @click="showqr"
style="position: relative;">
<view class="service-baseinfo-center-service__pic">
<u-image src="/packages/packageCarecenter/static/wechat.png" height="43rpx" width="50rpx">
@ -223,7 +223,7 @@
</view>
<view class="bottom-btn">
<u-button :custom-style="btnStyle" style="width: 90%;" @click="showQR=true" shape="circle">联系优孕月子福利官</u-button>
<u-button :custom-style="btnStyle" style="width: 90%;" @click="showqr" shape="circle">联系优孕月子福利官</u-button>
</view>
@ -240,7 +240,7 @@
<text>分享</text>
</view>
</view>
<view class="buyBtn" @click="showQR=true" >联系优孕月子福利官</view>
<view class="buyBtn" @click="showqr" >联系优孕月子福利官</view>
</view>
</view>
@ -347,6 +347,9 @@
this.bar[i].height = res.top - (barHeight - 20)
}).exec();
}
},
showqr(){
this.showQR = true
},
toMap() {
this.$u.throttle(() => {

@ -114,7 +114,7 @@
<text v-for="(tag,index1) in featureLabelSplit(item.featured_label)"
:key="index1">{{tag}}</text>
</view>
<view class="subInfo flex_between"><text>{{addressComputed(item.service.name)}}</text></view>
<view class="subInfo flex_between"><text>{{addressComputed(item.service?item.service.name:"")}}</text></view>
<view class="price"><text class="smallIcon"></text><text>{{item.price}}</text>
</view>
</view>
@ -305,7 +305,8 @@
},
utilSuccess: (res) => {
if (res.rows.length > 0 && res.rows) {
this.productList.push(...res.rows)
this.productList.push(...res.rows)
console.log(this.productList)
this.status = 'loadmore'
} else {
this.status = 'nomore'

@ -6,7 +6,7 @@
play-btn-position="center"></video>
<swiper class="product-picture-swiper" :indicator-dots="true"
@change="e => swiperIndex = e.detail.current + 1" v-if="showFlag === 1">
<swiper-item v-for="(img,index) in detail.confinement_picture" :key="index">
<swiper-item v-for="(img,index) in detail.picture" :key="index">
<u-image height="100%" width="100%" :src="img.picture" mode="aspectFit">
</u-image>
</swiper-item>
@ -17,7 +17,7 @@
<view class="service-show-btn-img" @click="showFlag = 1">
<image src="../../static/pic.png">
</image>
<view class="service-show-btn-img__num">{{detail.confinement_picture.length}}</view>
<view class="service-show-btn-img__num">{{detail.picture.length}}</view>
</view>
<view class="service-show-btn-video" v-if="detail.video" @click="showFlag = 0">
<image src="../../static/video.png">
@ -52,7 +52,7 @@
</view>
<view class="product-info-shop-top-name">
<view>{{detail.service.name}}</view>
<view>{{detail.service.subheading}}</view>
<view v-if="detail.service.subheading">{{detail.service.subheading}}</view>
</view>
<view class="product-info-shop-top-more" @click="toService(detail.service.id)">
<text>更多</text>

@ -4,7 +4,7 @@
<view class="service-show u-skeleton-rect">
<video v-if="showFlag === 0" :src="detail.video_file" play-btn-position="center"></video>
<swiper class="service-show-swiper" :indicator-dots="true" v-if="showFlag === 1">
<swiper-item v-for="(img,index) in detail.confinement_picture" :key="index">
<swiper-item v-for="(img,index) in detail.picture" :key="index">
<u-image height="100%" width="100%" :src="img.picture" mode="aspectFit"
@load="$u.debounce(init,100)">
</u-image>
@ -15,7 +15,7 @@
<view class="service-show-btn-img" @click="showFlag = 1">
<image src="../../static/pic.png">
</image>
<view class="service-show-btn-img__num">{{detail.confinement_picture.length}}</view>
<view class="service-show-btn-img__num">{{detail.picture.length}}</view>
</view>
<view class="service-show-btn-video" v-if="detail.video_file" @click="showFlag = 0">
<image src="../../static/video.png">
@ -71,7 +71,7 @@
</view>
</view>
<view class="service-baseinfo-center-service u-skeleton-fillet" @click="showQR=true"
<view class="service-baseinfo-center-service u-skeleton-fillet" @click="showqr"
style="position: relative;">
<view class="service-baseinfo-center-service__pic">
<u-image src="/packages/packageCarecenter/static/wechat.png" height="43rpx" width="50rpx">
@ -176,20 +176,20 @@
</view>
</view> -->
<view class="service-info">
<view v-if="detail.online_customer" class="onlineService">
<view v-if="detail.online_customer_service" class="onlineService">
<view style="font-size: 36rpx;padding: 20rpx 0;">长按识别二维码</view>
<u-image width="100%" height="1300rpx" :src="detail.online_customer.wechat_code"
v-if="detail.online_customer.wechat_code"></u-image>
<u-image width="100%" height="1300rpx" :src="detail.online_customer_service.wechat_code"
v-if="detail.online_customer_service.wechat_code"></u-image>
</view>
</view>
<u-popup v-model="showQR" mode="center" width="90%">
<view style="padding: 10px;">
<u-image width="100%" height="600rpx" :src="detail.online_customer.company_wechat_code"
v-if="detail.online_customer.company_wechat_code"></u-image>
<u-image width="100%" height="600rpx" :src="detail.online_customer_service.company_wechat_code"
v-if="detail.online_customer_service.company_wechat_code"></u-image>
</view>
</u-popup>
@ -202,7 +202,7 @@
</view>
<view class="service-info-content">
<view v-for="(item,index) in detail.confinement_services_merchant_item" :key="index"
<view v-for="(item,index) in detail.merchant_item" :key="index"
class="service-info-content-item">
<view class="service-info-content-item-name">{{item.name}}</view>
<view class="service-info-content-item-content">{{item.content}}</view>
@ -215,7 +215,7 @@
</view>
<view class="bottom-btn">
<u-button :custom-style="btnStyle" @click="showQR=true" shape="circle">联系优孕月子福利官</u-button>
<u-button :custom-style="btnStyle" @click="showqr" shape="circle">联系优孕月子福利官</u-button>
</view>
</view>
@ -288,6 +288,9 @@
this.bar[i].height = res.top - (barHeight - 20)
}).exec();
}
},
showqr(){
this.showQR = true
},
toMap() {
this.$u.throttle(() => {

@ -39,7 +39,7 @@
</view>
</view>
</view>
<view class="shops">
<!-- <view class="shops">
<view class="shop">
<image class="pic" src="../../static/shop-logo.png"></image>
<view class="infos">
@ -48,10 +48,34 @@
<view class="txt" v-if="true">{{info.shop.address}}</view>
</view>
</view>
</view> -->
<view class="activeinfo">
<view class="active">
<u-row gutter="16" class="infos">
<u-col span="12">
<view>
活动关联方:
</view>
</u-col>
<view v-for="company in info.companyList">
<u-col span="4">
{{company.type_name}}
</u-col>
<u-col span="8">
{{company.name}}
</u-col>
</view>
</u-row>
</view>
</view>
<view class="activeinfo">
<view class="active">
<u-row gutter="16">
<u-col span="12">
<view>
活动信息:
</view>
</u-col>
<u-col span="4">
<view>
<image mode="heightFix" src="../../static/icon_shijian@2x.png"></image>
@ -88,6 +112,29 @@
<u-col span="8" v-if="info.member_sum">
{{info.member_sum}}
</u-col>
<u-col span="12">
<view>
报名信息:
</view>
</u-col>
<u-col span="4">
<view>
<image mode="heightFix" src="../../static/icon_shijian@2x.png"></image>
开始时间
</view>
</u-col>
<u-col span="8" v-if="info.apply_start">
<view>{{info.apply_start}}</view>
</u-col>
<u-col span="4">
<view>
<image mode="heightFix" src="../../static/icon_shijian@2x.png"></image>
截止时间
</view>
</u-col>
<u-col span="8" v-if="info.apply_end">
<view>{{info.apply_end}}</view>
</u-col>
</u-row>
</view>
</view>
@ -151,7 +198,7 @@
<text>客服</text>
</button>
</view>
<view class="buyBtn" @click="toBuy"></view>
<view :class="isOrder?'buyBtn':'noBtn buyBtn'" @click="toBuy">{{isOrderText}}</view>
</view>
<u-popup v-model="showPop" mode="bottom" closeable="true">
@ -279,6 +326,8 @@
budget_date: '',
address: ''
},
isOrder:false,
isOrderText:"",
rindex: 0,
hindex: 0,
openid: "",
@ -674,12 +723,31 @@
day = day > 9 ? day : '0' + day;
return `${year}-${month}-${day}`;
},
getNowTime(){
const date = new Date();
let year = date.getFullYear();
let month = date.getMonth() + 1;
let day = date.getDate();
let hours = date.getHours()
let minutes = date.getMinutes()
let seconds =date.getSeconds()
month = month > 9 ? month : '0' + month;
day = day > 9 ? day : '0' + day;
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
},
bindDateChange: function(e) {
this.form.budget_date = e.target.value
},
compareDate(d1, d2) {
let reg = new RegExp('-', 'g')
return ((new Date(d1.replace(reg, '/'))) > (new Date(d2.replace(reg, '/'))))
},
toBuy() {
if(!this.isOrder){
return
}
let user_info = weixin.getUserInfoCache();
if (weixin.isNull(user_info.user_info.phone)) {
this.showPhone = true;
return false;
@ -749,6 +817,7 @@
})
},
loadInfo: function() {
let that = this
weixin.request({
api: '/api/member/active-show/',
method: 'GET',
@ -757,7 +826,24 @@
},
utilSuccess: r => {
//r.data.poster = this.baseUrl + r.data.poster;
if(r.company_ids){
r.companyList = JSON.parse(r.company_ids)
}
this.info = r;
let apply_end = r.apply_end
let apply_start = r.apply_start
let startdate = r.start_date+" "+r.start_time
let nowtime = that.getNowTime()
if(that.compareDate(apply_start,nowtime)){
that.isOrder = false
that.isOrderText = "报名未开始"
}else if(that.compareDate(nowtime,apply_end)||that.compareDate(nowtime,startdate)){
that.isOrder = false
that.isOrderText = "报名截止"
}else{
that.isOrder = true
that.isOrderText = "立即参加"
}
},
utilFail: r => {
console.log(r);
@ -905,7 +991,7 @@
}
}
.buyBtn {
.buyBtn{
width: 220rpx;
height: 72rpx;
background: linear-gradient(90deg, #FF7E95 0%, #FF447B 100%);
@ -916,6 +1002,9 @@
line-height: 72rpx;
color: #fff;
}
.noBtn{
background: linear-gradient(90deg, #ddd 0%, #ddd 100%);
}
}

Loading…
Cancel
Save