Commit 633f55ba authored by 黄奎's avatar 黄奎

报名限制

parent 4df59302
......@@ -156,7 +156,7 @@
});
that.pay = false
}
console.log('状态',res.data.OrderStatus)
// console.log('状态',res.data.OrderStatus)
}
);
......
......@@ -344,6 +344,7 @@
IsQZJC: 0,
mrk: '',
mrk2: '',
mrk3: '',
isAlipay: 2, //1微信 2微信支付宝
JJSWStuId: "",
Thename2: '',
......@@ -525,6 +526,11 @@
ClassIds: this.mrk2
}
let that = this
let info={
PaperId:this.mrk,
PublishId:this.mrk2,
GuestId:this.JJSWStuId
}
this.requestJJSWAdmin("/api/WeChatPublic/CheckStuSubmitOrder", postMsg,
(res) => {
if (res.data.Code != 1) {
......@@ -533,12 +539,15 @@
title: '当前课程暂无法购买!',
type: 'warning'
});
uni.redirectTo({
url: `/pages/webbox/webbox?limit=${JSON.stringify(info)}`
});
} else {
that.limits = false
this.submitOrderHandler2()
}
console.log('llll',that.limits)
// console.log('llll',that.limits)
}
);
......@@ -554,7 +563,7 @@
uni.requestSubscribeMessage({
tmplIds: this.ds.template_message_list,
complete(res) {
console.log('44444444444444444')
// console.log('44444444444444444')
that.submitOrder = false;
let form = {};
// form.Consignee = that.adressInfo.Consignee;
......@@ -591,7 +600,7 @@
data: form
},
res => {
console.log('7777777777')
// console.log('7777777777')
if (res.resultCode == 1) {
that.payInfo.OrderId = res.data.OrderId;
that.payInfo.total_price = that.ds.total_price;
......@@ -801,6 +810,7 @@
init() {
let list = []
let list2 = []
let list3 = []
this.loading = true;
this.request2({
url: '/api/AppletOrder/GetAppletGoodsSettlementInfoForZY',
......@@ -817,10 +827,12 @@
j.marketingLogo = JSON.parse(j.marketingLogo)
list.push(j.EduTeacherId)
list2.push(j.EduData.ClassId)
list3.push(j.EduData.ClassPersion)
})
})
this.mrk = list.toString()
this.mrk2 = list2.toString()
this.mrk3 = list3.toString()
this.payInfo.GoodsName = this.mchs[0].goods_list[0].name.slice(0, 10);
this.formdata.DeliveryMethod = this.mchs[0].delivery.send_type;
this.ds = res.data;
......
......@@ -27,6 +27,7 @@
export default {
data() {
return {
info:{},
show:false,
showPhone:true,
showLogin: true, //多次点击
......@@ -45,8 +46,12 @@
},
onLoad: function(option) { //option为object类型,会序列化上个页面传递的参数
this.url = decodeURIComponent(option.u)
if(option.auth){
if(option.auth||option.limit){
this.showPhone =true
if(option.limit) {
this.info=option.limit
// console.log('参数',this.info)
}
} else {
this.showPhone =false
}
......@@ -133,8 +138,15 @@
(res) => {
if (res.resultCode == 1) {
that.obj.phoneNum =JSON.parse(res.data).phoneNumber
let urls =`https://jj.kookaku.com?phoneNum=${that.obj.phoneNum}`
that.url=decodeURIComponent(urls)
if(that.info) {
let limiturls =`https://jj.kookaku.com?phoneNum=${that.obj.phoneNum}&limit=${that.info}`
that.url=decodeURIComponent(limiturls)
} else {
let urls =`https://jj.kookaku.com?phoneNum=${that.obj.phoneNum}`
that.url=decodeURIComponent(urls)
}
that.showPhone =false
console.log('要跳转的链接',that.url)
// that.goUrl(`https://jj.kookaku.com?phoneNum=${that.obj.phoneNum}`)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment