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

报名限制

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