master
lion 2 years ago
parent 6984f5b175
commit 02bb51af02

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

@ -457,7 +457,7 @@
<view class="formCol"> <view class="formCol">
<view>性别<text style="color:red">*</text></view> <view>性别<text style="color:red">*</text></view>
<view class="formRight"> <view class="formRight">
<radio-group @change="e => form.sex = ['男','女'][e]" <radio-group @change="changeSex"
style="display: flex;align-items: center;"> style="display: flex;align-items: center;">
<label v-for="(item, index) in ['','']" :key="index" <label v-for="(item, index) in ['','']" :key="index"
style="display: flex;align-items: center;margin-right: 30rpx;"> 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"); 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 ( openWeChatCustomerService (
weiXinCustomerServiceUrl = "", weiXinCustomerServiceUrl = "",
@ -1085,9 +1088,11 @@
return ((new Date(d1.replace(reg, '/'))) > (new Date(d2.replace(reg, '/')))) return ((new Date(d1.replace(reg, '/'))) > (new Date(d2.replace(reg, '/'))))
}, },
toBuy() { toBuy() {
if(!this.isOrder){ if(!this.isOrder){
return return
} }
let user_info = weixin.getUserInfoCache(); let user_info = weixin.getUserInfoCache();
if (weixin.isNull(user_info.user_info.phone)) { if (weixin.isNull(user_info.user_info.phone)) {
@ -1096,13 +1101,10 @@
//this.getUserProfile(); //this.getUserProfile();
} }
if (weixin.isNull(this.form.name) || weixin.isNull(this.form.budget_date)
if (weixin.isNull(this.form.name) || weixin.isNull(this.form.address) || weixin.isNull(this.form || weixin.isNull(this.form.phone) || weixin.isNull(this.form.sex)
.budget_date) || weixin.isNull(this.form || weixin.isNull(this.form.area) || weixin.isNull(this.form.hospital)) {
.phone)) {
this.showPop = true; this.showPop = true;
if (weixin.isNull(this.form.name)||this.form.name=='微信用户') { if (weixin.isNull(this.form.name)||this.form.name=='微信用户') {
this.alert('请输入真实会员姓名') this.alert('请输入真实会员姓名')
return return
@ -1111,18 +1113,19 @@
this.alert('请选择性别') this.alert('请选择性别')
return return
} }
if (weixin.isNull(this.form.area)) { if (weixin.isNull(this.form.budget_date)) {
this.alert('请选择区域') this.alert('请选择预产日期')
return return
} }
if (weixin.isNull(this.form.hospital)) { if (weixin.isNull(this.form.area) || this.form.area=='请选择区域') {
this.alert('请选择建卡医院') this.alert('请选择区域')
return return
} }
if (weixin.isNull(this.form.budget_date)) { if (weixin.isNull(this.form.hospital) || this.form.hospital=='请选择建卡医院') {
this.alert('请选择预产日期') this.alert('请选择建卡医院')
return return
} }
if (weixin.isNull(this.form.phone)) { if (weixin.isNull(this.form.phone)) {
this.alert('请填写手机号') this.alert('请填写手机号')
@ -1135,7 +1138,6 @@
return false; return false;
} }
// jsuni.$u.throttle() // jsuni.$u.throttle()
uni.$u.throttle(this.joinActive, 1000); 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 class="infoCol"><view class="address"><image mode="heightFix" src="../../static/icon_dizhi.png"></image>苏州·园区星海街188号苏州万怡大酒店南栋大酒店南栋</view></view>-->
</view> </view>
<view class="btn"> <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 @click.stop="goDetail(item.id)"> 查看 </text>
<!-- <text v-if="item.state=='unpaid'" class="pay" @click.stop="goPay(item.id)"> </text> --> <!-- <text v-if="item.state=='unpaid'" class="pay" @click.stop="goPay(item.id)"> </text> -->
</view> </view>
@ -74,7 +74,10 @@
<u-popup class="codepop" v-model="showCodes" mode="center" closeable="true"> <u-popup class="codepop" v-model="showCodes" mode="center" closeable="true">
<view class="userBox" style="padding:0 120rpx 60rpx 120rpx;"> <view class="userBox" style="padding:0 120rpx 60rpx 120rpx;">
<view class="userInfoContent" style="padding: 40rpx;font-size: 28rpx;"> <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>
<view class="qrcode"> <view class="qrcode">
<canvas canvas-id='qrcode' style="width: 170px;height:170px;margin: 0 auto;"> <canvas canvas-id='qrcode' style="width: 170px;height:170px;margin: 0 auto;">
@ -137,7 +140,10 @@
is_used:"", is_used:"",
showview:false, showview:false,
showCodes:false, showCodes:false,
codetext:"", codetext:"",
activeName:'',
applyName:'',
applyMobile:"",
statusLabels: [{ statusLabels: [{
state: "", state: "",
txt: "全部", txt: "全部",
@ -201,13 +207,16 @@
url: "/pages/active/detail?id=" + id url: "/pages/active/detail?id=" + id
}) })
}, },
showCode(apply){ showCode(item,apply){
if(apply.length<1){ if(apply.length<1){
return return
} }
let text = "1234" this.activeName = item.active_name
let text = ""
for(var k of apply){ for(var k of apply){
text = k.code text = k.code
this.applyName = k.name
this.applyMobile = k.phone
} }
if(!text){ if(!text){
uni.showModal({ uni.showModal({
@ -218,6 +227,8 @@
return return
} }
this.codetext = text this.codetext = text
console.log("text",text) console.log("text",text)
var id = "qrcode"; var id = "qrcode";
// if (qrcode) { // if (qrcode) {

Loading…
Cancel
Save