master
lion 2 years ago
parent 6984f5b175
commit 02bb51af02

@ -9,10 +9,10 @@
<u-tr>
<u-th>时间</u-th>
<u-th>
<p style="width:180rpx!important">地址</p>
<p style="width:180rpx!important">上课地址</p>
</u-th>
<u-th>
<p style="width:180rpx!important">名称</p>
<p style="width:180rpx!important">主题</p>
</u-th>
<u-th>主讲</u-th>
<u-th>报名</u-th>
@ -64,14 +64,21 @@
infolist: []
}
},
// onShareAppMessage() {
// return {
// title: this.info.name,
// path: "pages/active/detail?id=" + this.info.id + "&promotion_id=" + this
// .user_info.id,
// imageUrl: this.img
// }
// },
onShareAppMessage() {
return {
title: this.info.title,
path: "pages/active/course?id=" + this.info.id,
imageUrl: this.img
}
},
onShareTimeline() {
var url = "pages/active/course?id=" + this.info.id;
var title = this.info.title;
return {
title: title,
path: url,
}
},
onShow() {
},

@ -457,7 +457,7 @@
<view class="formCol">
<view>性别<text style="color:red">*</text></view>
<view class="formRight">
<radio-group @change="e => form.sex = ['男','女'][e]"
<radio-group @change="changeSex"
style="display: flex;align-items: center;">
<label v-for="(item, index) in ['','']" :key="index"
style="display: flex;align-items: center;margin-right: 30rpx;">
@ -694,7 +694,10 @@
this.openWeChatCustomerService("https://work.weixin.qq.com/kfid/kfccc6609d51a87324d?enc_scene=ENC5n1b6XBY2paqReUMjwNmTGay8jwTZQuyn17jL8n5xK9T7ZwfJx36T5EHqVbFWTzP8s", "wwe480a61872b54394");
},
changeSex(e){
// console.log("e",e)
this.form.sex = e.detail.value
},
//
openWeChatCustomerService (
weiXinCustomerServiceUrl = "",
@ -1085,9 +1088,11 @@
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)) {
@ -1096,13 +1101,10 @@
//this.getUserProfile();
}
if (weixin.isNull(this.form.name) || weixin.isNull(this.form.address) || weixin.isNull(this.form
.budget_date) || weixin.isNull(this.form
.phone)) {
if (weixin.isNull(this.form.name) || weixin.isNull(this.form.budget_date)
|| weixin.isNull(this.form.phone) || weixin.isNull(this.form.sex)
|| weixin.isNull(this.form.area) || weixin.isNull(this.form.hospital)) {
this.showPop = true;
if (weixin.isNull(this.form.name)||this.form.name=='微信用户') {
this.alert('请输入真实会员姓名')
return
@ -1111,19 +1113,20 @@
this.alert('请选择性别')
return
}
if (weixin.isNull(this.form.area)) {
this.alert('请选择区域')
if (weixin.isNull(this.form.budget_date)) {
this.alert('请选择预产日期')
return
}
if (weixin.isNull(this.form.hospital)) {
this.alert('请选择建卡医院')
if (weixin.isNull(this.form.area) || this.form.area=='请选择区域') {
this.alert('请选择区域')
return
}
if (weixin.isNull(this.form.budget_date)) {
this.alert('请选择预产日期')
if (weixin.isNull(this.form.hospital) || this.form.hospital=='请选择建卡医院') {
this.alert('请选择建卡医院')
return
}
if (weixin.isNull(this.form.phone)) {
this.alert('请填写手机号')
return
@ -1135,7 +1138,6 @@
return false;
}
// jsuni.$u.throttle()
uni.$u.throttle(this.joinActive, 1000);

@ -58,7 +58,7 @@
<!--<view class="infoCol"><view class="address"><image mode="heightFix" src="../../static/icon_dizhi.png"></image>苏州·园区星海街188号苏州万怡大酒店南栋大酒店南栋</view></view>-->
</view>
<view class="btn">
<text v-if="item.statusName=='待参加'" @click.stop="showCode(item.apply)"> </text>
<text v-if="item.statusName=='待参加'" @click.stop="showCode(item,item.apply)"> </text>
<text @click.stop="goDetail(item.id)"> 查看 </text>
<!-- <text v-if="item.state=='unpaid'" class="pay" @click.stop="goPay(item.id)"> </text> -->
</view>
@ -74,7 +74,10 @@
<u-popup class="codepop" v-model="showCodes" mode="center" closeable="true">
<view class="userBox" style="padding:0 120rpx 60rpx 120rpx;">
<view class="userInfoContent" style="padding: 40rpx;font-size: 28rpx;">
<text class="">核销码{{codetext}}</text>
<view class="">活动{{activeName}}</view>
<view class="">报名人{{applyName}}</view>
<view class="">手机号{{applyMobile}}</view>
<view class="">核销码{{codetext}}</view>
</view>
<view class="qrcode">
<canvas canvas-id='qrcode' style="width: 170px;height:170px;margin: 0 auto;">
@ -138,6 +141,9 @@
showview:false,
showCodes:false,
codetext:"",
activeName:'',
applyName:'',
applyMobile:"",
statusLabels: [{
state: "",
txt: "全部",
@ -201,13 +207,16 @@
url: "/pages/active/detail?id=" + id
})
},
showCode(apply){
showCode(item,apply){
if(apply.length<1){
return
}
let text = "1234"
this.activeName = item.active_name
let text = ""
for(var k of apply){
text = k.code
this.applyName = k.name
this.applyMobile = k.phone
}
if(!text){
uni.showModal({
@ -218,6 +227,8 @@
return
}
this.codetext = text
console.log("text",text)
var id = "qrcode";
// if (qrcode) {

Loading…
Cancel
Save