Commit 3c0443b3 authored by 黄奎's avatar 黄奎

新增弹窗

parent ba3bb5ab
...@@ -316,7 +316,25 @@ ...@@ -316,7 +316,25 @@
<!-- 支付宝弹窗 --> <!-- 支付宝弹窗 -->
<!-- <Alipay v-if="AlipayMask" :AlipayMask='AlipayMask' :payInfo="payInfo" :isAlipay="isAlipay" :StuId='JJSWStuId' :TeacherIds='mrk' @closePay="closePay"> <!-- <Alipay v-if="AlipayMask" :AlipayMask='AlipayMask' :payInfo="payInfo" :isAlipay="isAlipay" :StuId='JJSWStuId' :TeacherIds='mrk' @closePay="closePay">
</Alipay> --> </Alipay> -->
<u-popup mode="center" v-model="showExame">
<view style="width: 577rpx;padding-top:129rpx;text-align:center;height: 509rpx;background: #FFFFFF;border-radius: 50rpx; position: relative;">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/exambg.png" mode="widthFix" style="width:220rpx;height:118px;position: absolute; top:-52rpx;right:27rpx;"></image>
<view style="font-size: 34rpx;font-weight: bold;color: #10100F;">
测验提醒
</view>
<view style="margin-top:32rpx; font-size: 28rpx;font-weight: 500;color: #959595;">
此课程需要学员完成测验<br/>通过后才能报名
</view>
<view style="margin-top:50rpx">
<view style="width:50%;margin:0 auto;">
<u-button type="error" shape="circle" @click="goExameHandler">立即测验</u-button>
</view>
</view>
<view style="margin-top:30rpx;color:#FA5B23;font-size:30rpx" @click="showExame=false">
取消报名
</view>
</view>
</u-popup>
</view> </view>
</template> </template>
...@@ -423,6 +441,8 @@ ...@@ -423,6 +441,8 @@
showcashcard: false, showcashcard: false,
onecoupon: true, //第一次进页面的时候选最优的优惠券 onecoupon: true, //第一次进页面的时候选最优的优惠券
IsDeposit: 0, //是否开启储蓄卡功能 IsDeposit: 0, //是否开启储蓄卡功能
showExame:false,
examInfo:''
}; };
}, },
onLoad(option) { onLoad(option) {
...@@ -535,6 +555,7 @@ ...@@ -535,6 +555,7 @@
} }
this.requestJJSWAdmin("/api/WeChatPublic/CheckStuSubmitOrder", postMsg, this.requestJJSWAdmin("/api/WeChatPublic/CheckStuSubmitOrder", postMsg,
(res) => { (res) => {
if (res.data.Code != 1) { if (res.data.Code != 1) {
that.limits = true that.limits = true
// this.$refs.uToast.show({ // this.$refs.uToast.show({
...@@ -549,11 +570,11 @@ ...@@ -549,11 +570,11 @@
obj.PaperId=res.data.Data.PaperId obj.PaperId=res.data.Data.PaperId
obj.PublishId=res.data.Data.PublishId obj.PublishId=res.data.Data.PublishId
obj.StuId=res.data.Data.StuId obj.StuId=res.data.Data.StuId
this.showExame=true
this.examInfo = JSON.stringify(obj)
// 跳转入学考试 // 跳转入学考试
uni.redirectTo({
url: `/pages/webbox/webbox?limit=${JSON.stringify(obj)}`
});
} }
} else { } else {
...@@ -565,6 +586,11 @@ ...@@ -565,6 +586,11 @@
); );
}, },
goExameHandler(){
uni.redirectTo({
url: `/pages/webbox/webbox?limit=${this.examInfo}`
});
},
// 提交订单接口 // 提交订单接口
OrderInterface() { OrderInterface() {
// that.adressInfo.Consignee = '测试' // that.adressInfo.Consignee = '测试'
......
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