lion 2 years ago
parent 624cce262a
commit c8acc547f1

@ -4,7 +4,11 @@
<image class="banner" :src="info.poster"></image>
</view>
<view class="toptitle">
<view class="h3">{{info.name}}</view>
<view class="h3">{{info.name}}</view>
<view class='price'>
<text class="font_red" v-if="info.price > 0">{{info.price}}</text>
<text class="free" v-else></text>
</view>
<view class="dataGroup">
<view class="dataCol">
<image mode="heightFix" src="../../static/icon_liulan@2x.png"></image>
@ -51,7 +55,8 @@
<text @click="calltel"><text style="color:#bf617c">{{tel}}</text>
</text>
</view>
<view class="txt">{{info.merchant.address}}</view>
<view class="txt">{{info.merchant.address}}</view>
</view>
</view>
</view>
@ -737,8 +742,8 @@
this.showPop = true;
if (weixin.isNull(this.form.member_name)) {
this.alert('请输入宝妈姓名')
if (weixin.isNull(this.form.member_name)||this.form.member_name=='微信用户') {
this.alert('请输入真实宝妈姓名')
return
}
if (weixin.isNull(this.form.due_date)) {

@ -51,8 +51,14 @@
</image>
</view>
</view>
<view class="subInfo">{{item.merchant.address}}</view>
<view class="menu"><text class="hui"></text>{{item.merchant.username}}</view>
<view class="subInfo">{{item.merchant.address}}</view>
<view class='price'>
<text class="font_red" v-if="item.price > 0">{{item.price}}</text>
<text class="free" v-else></text>
</view>
<view class="menu">
<text class="hui"></text>{{item.merchant.username}}
</view>
</view>
</view>
</block>

@ -78,7 +78,8 @@
dataList: [],
currentPage: 1,
product_type_id: 0,
isLoading: false
isLoading: false,
activeTypeId:'',
}
},
@ -134,7 +135,9 @@
if (options.keyword) {
this.keyword = options.keyword;
}
if(options.activeTypeId){
this.activeTypeId = options.activeTypeId
}
this.loadPage(1);
},
onShow() {},
@ -175,7 +178,8 @@
page_size: 6,
keyword: that.keyword,
sort_name:'sort',
sort_type:"ASC"
sort_type:"ASC",
active_type_id:this.activeTypeId
},
utilSuccess: function(r) {
var res = r.data;

@ -70,7 +70,78 @@
</view>
<view class="activeinfo" v-if="info.active_tag == '上' || !info.active_tag">
<view class="active">
<u-row gutter="16">
<view>
活动信息:
</view>
<view class='viewchild'>
<view class="viewfirst">
<image mode="heightFix" src="../../static/icon_shijian@2x.png"></image>
开始时间
</view>
<view class="viewlast" v-if="info.start_date">
<view>{{$u.timeFormat(new Date(info.start_date.replace(/-/g,'/')), 'yyyy年mm月dd日')}} {{info.start_time}}</view>
</view>
</view>
<view class='viewchild'>
<view class="viewfirst">
<image mode="heightFix" src="../../static/icon_shijian@2x.png"></image>
结束时间
</view>
<view class="viewlast" v-if="info.end_date">
<view>{{$u.timeFormat(new Date(info.end_date), 'yyyy年mm月dd日')}} {{info.end_time}}</view>
</view>
</view>
<view class='viewchild'>
<view class="viewfirst">
<image mode="heightFix" src="../../static/icon_dizhi.png"></image>
活动地点:
</view>
<view class="viewlast" v-if="info.address">
{{info.address}}
</view>
</view>
<view class='viewchild'>
<view class="viewfirst">
<image mode="heightFix" src="../../static/icon_xingming@2x.png"></image>
活动人数:
</view>
<view class="viewlast" v-if="info.member_sum">
{{info.member_sum}}
</view>
</view>
<view class='viewchild'>
<view class="viewfirst">
<image mode="heightFix" src="../../static/icon_xingming@2x.png"></image>
已报名数:
</view>
<view class="viewlast" v-if="info.total">
{{info.start_member_sum+info.total}}
</view>
</view>
<block v-if="info.template!='新'">
<view>
报名信息:
</view>
<view class='viewchild'>
<view class="viewfirst">
<image mode="heightFix" src="../../static/icon_shijian@2x.png"></image>
开始时间
</view>
<view class="viewlast" v-if="info.apply_start">
<view>{{$u.timeFormat(new Date(info.apply_start.replace(/-/g,'/')), 'yyyy年mm月dd日 hh:MM:ss')}}</view>
</view>
</view>
<view class='viewchild'>
<view class="viewfirst">
<image mode="heightFix" src="../../static/icon_shijian@2x.png"></image>
截止时间
</view>
<view class="viewlast" v-if="info.apply_end">
<view>{{$u.timeFormat(new Date(info.apply_end.replace(/-/g,'/')), 'yyyy年mm月dd日 hh:MM:ss')}}</view>
</view>
</view>
</block>
<!-- <u-row gutter="16">
<u-col span="12">
<view>
活动信息:
@ -112,39 +183,45 @@
<u-col span="8" v-if="info.member_sum">
{{info.member_sum}}
</u-col>
<u-col span="4">
<view>
<image mode="heightFix" src="../../static/icon_xingming@2x.png"></image>
已报名数:
</view>
</u-col>
<u-col span="8" v-if="info.member_sum">
{{info.start_member_sum+info.total}}
</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>{{$u.timeFormat(new Date(info.apply_start.replace(/-/g,'/')), 'yyyy年mm月dd日 hh:MM:ss')}}</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>{{$u.timeFormat(new Date(info.apply_end.replace(/-/g,'/')), 'yyyy年mm月dd日 hh:MM:ss')}}</view>
</u-col>
</u-row>
<block style="display: flex;">
<u-col span="4">
<view>
<image mode="heightFix" src="../../static/icon_xingming@2x.png"></image>
已报名数:
</view>
</u-col>
<u-col span="8" v-if="info.total">
{{info.start_member_sum+info.total}}
</u-col>
</block>
<block v-if="info.template!='新'">
<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>{{$u.timeFormat(new Date(info.apply_start.replace(/-/g,'/')), 'yyyy年mm月dd日 hh:MM:ss')}}</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>{{$u.timeFormat(new Date(info.apply_end.replace(/-/g,'/')), 'yyyy年mm月dd日 hh:MM:ss')}}</view>
</u-col>
</block>
</u-row> -->
</view>
</view>
<view class="details">
@ -157,7 +234,79 @@
</view>
<view class="activeinfo" v-if="info.active_tag=='下'">
<view class="active">
<u-row gutter="16">
<view>
活动信息:
</view>
<view class='viewchild'>
<view class="viewfirst">
<image mode="heightFix" src="../../static/icon_shijian@2x.png"></image>
开始时间
</view>
<view class="viewlast" v-if="info.start_date">
<view>{{$u.timeFormat(new Date(info.start_date.replace(/-/g,'/')), 'yyyy年mm月dd日')}} {{info.start_time}}</view>
</view>
</view>
<view class='viewchild'>
<view class="viewfirst">
<image mode="heightFix" src="../../static/icon_shijian@2x.png"></image>
结束时间
</view>
<view class="viewlast" v-if="info.end_date">
<view>{{$u.timeFormat(new Date(info.end_date), 'yyyy年mm月dd日')}} {{info.end_time}}</view>
</view>
</view>
<view class='viewchild'>
<view class="viewfirst">
<image mode="heightFix" src="../../static/icon_dizhi.png"></image>
活动地点:
</view>
<view class="viewlast" v-if="info.address">
{{info.address}}
</view>
</view>
<view class='viewchild'>
<view class="viewfirst">
<image mode="heightFix" src="../../static/icon_xingming@2x.png"></image>
活动人数:
</view>
<view class="viewlast" v-if="info.member_sum">
{{info.member_sum}}
</view>
</view>
<view class='viewchild'>
<view class="viewfirst">
<image mode="heightFix" src="../../static/icon_xingming@2x.png"></image>
已报名数:
</view>
<view class="viewlast" v-if="info.total">
{{info.start_member_sum+info.total}}
</view>
</view>
<block v-if="info.template!='新'">
<view>
报名信息:
</view>
<view class='viewchild'>
<view class="viewfirst">
<image mode="heightFix" src="../../static/icon_shijian@2x.png"></image>
开始时间
</view>
<view class="viewlast" v-if="info.apply_start">
<view>{{$u.timeFormat(new Date(info.apply_start.replace(/-/g,'/')), 'yyyy年mm月dd日 hh:MM:ss')}}</view>
</view>
</view>
<view class='viewchild'>
<view class="viewfirst">
<image mode="heightFix" src="../../static/icon_shijian@2x.png"></image>
截止时间
</view>
<view class="viewlast" v-if="info.apply_end">
<view>{{$u.timeFormat(new Date(info.apply_end.replace(/-/g,'/')), 'yyyy年mm月dd日 hh:MM:ss')}}</view>
</view>
</view>
</block>
<!-- <u-row gutter="16">
<u-col span="12">
<view>
活动信息:
@ -205,33 +354,36 @@
已报名数:
</view>
</u-col>
<u-col span="8" v-if="info.member_sum">
<u-col span="8" v-if="info.total">
{{info.start_member_sum+info.total}}
</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>{{$u.timeFormat(new Date(info.apply_start.replace(/-/g,'/')), 'yyyy年mm月dd日 hh:MM:ss')}}</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>{{$u.timeFormat(new Date(info.apply_end.replace(/-/g,'/')), 'yyyy年mm月dd日 hh:MM:ss')}}</view>
</u-col>
</u-row>
<block v-if="info.template!='新'">
<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>{{$u.timeFormat(new Date(info.apply_start.replace(/-/g,'/')), 'yyyy年mm月dd日 hh:MM:ss')}}</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>{{$u.timeFormat(new Date(info.apply_end.replace(/-/g,'/')), 'yyyy年mm月dd日 hh:MM:ss')}}</view>
</u-col>
</block>
</u-row> -->
</view>
</view>
@ -740,36 +892,36 @@
var h = this.shareHeight * this.scare;
// ctx.fillStyle = '#fff';
// ctx.fillRect(0, 0, 214, 342);
console.log(1)
ctx.drawImage('../../static/bg_haibao@2x.jpg', 0, 0,
w, h
); //(SCREEN_HEIGHT - 50 - SCREEN_WIDTH * 0.8 * 1.65) /2, SCREEN_WIDTH * 0.8, SCREEN_WIDTH * 0.8 * 1.5);
ctx.drawImage('../../static/bg_haibao1.png', 20, 30 + 40,
ctx.drawImage('../../static/bg_haibao1.png', 20, 40,
w -
40, h - 100);
/* SCREEN_WIDTH *
0.15, (SCREEN_HEIGHT - SCREEN_WIDTH * 0.6 * 1.65) /
2, SCREEN_WIDTH * 0.695, SCREEN_WIDTH * 0.6 * 1.5); */
ctx.drawImage(this.poster, 20, 30 + 40,
ctx.drawImage(this.poster, 20, 40,
w -
40, (h - 60 - 60) * 0.5);
/* SCREEN_WIDTH * 0.15, (SCREEN_HEIGHT - SCREEN_WIDTH *
0.6 * 1.65) /
2, SCREEN_WIDTH * 0.695, SCREEN_WIDTH * 0.695 / 1.6); */
ctx.font = "22rpx bold";
//
ctx.fillStyle = "#fff";
// xy
ctx.fillText(this.info.active_name, 20, 50);
// ctx.font = "22rpx bold";
// //
// ctx.fillStyle = "#fff";
// // xy
// ctx.fillText(this.info.active_name, 20, 50);
ctx.font = "16rpx bold";
//
ctx.fillStyle = "#000";
// xy
ctx.fillText("相关活动", 40, (h + 50) * 0.5 + 20);
let active_title = this.info.template=='新'?'课程':'活动'
ctx.fillText(active_title, 40, (h + 50) * 0.5 -10);
ctx.font = "14rpx bold";
//
@ -777,43 +929,58 @@
// xy
let packagesFirst = this.info
ctx.fillText("" + this.info.active_name, 40, (h + 50) * 0.5 + 20 + 30);
ctx.fillText("报名开始:" + this.info.apply_start, 40, (h + 50) * 0.5 + 50 + 50);
ctx.fillText("报名截止:" + this.info.apply_end, 40, (h + 50) * 0.5 + 60 + 60);
let user_info = uni.getStorageSync("user_info_yunyubang");
let userProfile = uni.getStorageSync('user_profile');
var img = this.imgAvatar;
uni.getImageInfo({
src: userProfile.avatarUrl, //
success: rlogo => {
img = rlogo.path;
}
});
that.circleImg(ctx,
img,
40, h - 50 - w * 0.15,
w * 0.15 / 2);
ctx.font = "12rpx normal";
//
ctx.fillStyle = "#000";
// xy
if (!weixin.isNull(this.user_info.name))
ctx.fillText(this.user_info.name,
40, h - 40);
else
ctx.fillText("",
40, h - 40);
this.circleImg(ctx, res.path, w - 40 - w * 0.2, h - 40 -
let active_time = this.info.template=='新'?'上课时间:':'活动时间:'
let active_add = this.info.template=='新'?'上课地点:':'活动地点:'
let active_name = this.info.active_name.length>17?this.info.active_name.substring(0,17):this.info.active_name
let active_name1 = this.info.active_name.length>17?this.info.active_name.substring(17,this.info.active_name.length):''
ctx.fillText("" + active_name, 40, (h + 50) * 0.5 + 20 );
ctx.fillText("" + active_name1, 40, (h + 50) * 0.5 + 40 );
ctx.fillText(active_time + this.info.start_date+' '+this.info.start_time, 40, (h + 50) * 0.5 + 50 + 20);
// ctx.fillText(":" + this.info.end_date, 40, (h + 50) * 0.5 + 50 + 40);
let address = this.info.address.length>14?this.info.address.substring(0,14):this.info.address
let address1 = this.info.address.length>14?this.info.address.substring(14,this.info.address.length):''
ctx.fillText(active_add + address, 40, (h + 50) * 0.5 + 50 + 40);
ctx.fillText(address1, 40, (h + 50) * 0.5 + 50 + 60);
// ctx.fillText(active_add + this.info.apply_end, 40, (h + 50) * 0.5 + 60 + 60);
// let user_info = uni.getStorageSync("user_info_yunyubang");
// let userProfile = uni.getStorageSync('user_profile');
// var img = this.imgAvatar;
// uni.getImageInfo({
// src: userProfile.avatarUrl, //
// success: rlogo => {
// img = rlogo.path;
// }
// });
// that.circleImg(ctx,
// img,
// 40, h - 50 - w * 0.15,
// w * 0.15 / 2);
// ctx.font = "12rpx normal";
// //
// ctx.fillStyle = "#000";
// // xy
// // if(packagesFirst.template!=''){
// // }
// if (!weixin.isNull(this.user_info.name))
// ctx.fillText(this.user_info.name,
// 40, h - 40);
// else
// ctx.fillText("",
// 40, h - 40);
this.circleImg(ctx, res.path, w - 40 - w * 0.2, h - 65 -
w *
0.2, w * 0.2 / 2);
console.log(2)
ctx.draw(),
// r:
setTimeout(() => {
@ -821,8 +988,6 @@
canvasId: 'firstCanvas',
fileType: 'jpg',
success: (res) => {
console.log(3)
this.shareBtnDisplay =
'flex'
uni.hideLoading();
@ -938,8 +1103,8 @@
this.showPop = true;
if (weixin.isNull(this.form.name)) {
this.alert('请输入会员姓名')
if (weixin.isNull(this.form.name)||this.form.name=='微信用户') {
this.alert('请输入真实会员姓名')
return
}
if (weixin.isNull(this.form.area)) {
@ -1034,6 +1199,11 @@
let apply_start = r.apply_start
let enddate = r.end_date+" "+r.end_time
let nowtime = that.getNowTime()
if(r.audit_status==2){
that.isOrder = false
that.isOrderText = "不可报名"
return
}
if(that.compareDate(apply_start,nowtime)){
that.isOrder = false
that.isOrderText = "报名未开始"
@ -1696,13 +1866,28 @@
background: #fff;
width: 100%;
box-sizing: border-box;
.viewchild{
display: flex;
justify-content: space-between;
.viewfirst{
width:30%;
image{
width: 26rpx;
height: 26rpx;
display: inline-block;
margin-right: 12rpx;
}
}
.viewlast{
width:70%
}
}
u-col{
image{
width: 26rpx;
height: 26rpx;
display: inline-block;
margin-right: 12rpx;
width: 26rpx;
height: 26rpx;
display: inline-block;
margin-right: 12rpx;
}
}
}

Loading…
Cancel
Save