diff --git a/src/views/site/renKeJiaoCheng/baseForm.vue b/src/views/site/renKeJiaoCheng/baseForm.vue
index 94edf10..19801b5 100644
--- a/src/views/site/renKeJiaoCheng/baseForm.vue
+++ b/src/views/site/renKeJiaoCheng/baseForm.vue
@@ -1,29 +1,39 @@
- 1.选择订阅类型
-
-
-
-
-
-
-
- 课前15分钟提醒
-
-
-
-
-
-
-
-
- 每天下午4点提醒明日课程
-
-
-
-
-
+
+
1.选择订阅类型
+
+
+
+
+
+
+
+ 课前15分钟提醒
+
+
+
+
+
+
+
+
+ 每天下午4点提醒明日课程
+
+
+
+
+
+
+
+
+
请先关注公众号后进行提醒设置!
+
+

+
+
+
@@ -53,6 +63,7 @@
const labelCol = ref({ xs: { span: 24 }, sm: { span: 5 } });
const wrapperCol = ref({ xs: { span: 24 }, sm: { span: 16 } });
const confirmLoading = ref(false);
+ const total = ref(0);
//表单验证
const validatorRules = {
};
@@ -66,11 +77,17 @@
edit({});
}
function getOpenId(){
- var STATE = window.location.search.replace('?', '');
- STATE = encodeURIComponent(STATE)
- window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?'+
- 'appid=214887356&redirect_uri=http://bylwcs.nenu.edu.cn/'+
- '&response_type=code&scope=snsapi_base&state='+ STATE +'#wechat_redirect'
+ // var STATE = window.location.search.replace('?', '');
+ // STATE = encodeURIComponent(STATE)
+ // window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?'+
+ // 'appid=214887356&redirect_uri=http://bylwcs.nenu.edu.cn/'+
+ // '&response_type=code&scope=snsapi_base&state='+ STATE +'#wechat_redirect'
+
+ let params = { userid: getUserId(), pageSize: 1 };//没有ID,用list查吧,,
+ defHttp.get({ url: '/KcBdgxbcopy/kcBdgxbcopy/list', params }).then(res => {
+ console.log(`🚀 ~ file: baseForm.vue:77 ~ defHttp.get ~ res:`, res)
+ total.value = res.total
+ })
}
/**
* 编辑
@@ -144,7 +161,11 @@
emit('ok');
} else {
- createMessage.warning(res.message);
+ if(total == 0){
+ emit('ok');
+ }else{
+ createMessage.warning(res.message);
+ }
}
})
.finally(() => {