修改bug
This commit is contained in:
parent
89046ea62f
commit
79fdb2578e
|
@ -1,7 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<a-spin :spinning="confirmLoading">
|
<a-spin :spinning="confirmLoading">
|
||||||
<a-card >
|
<a-card >
|
||||||
<div v-show="total==1">
|
<!-- <div v-show="total==1"> -->
|
||||||
|
<div>
|
||||||
<div style="font-size: 18px;font-weight: 600;">1.选择订阅类型</div>
|
<div style="font-size: 18px;font-weight: 600;">1.选择订阅类型</div>
|
||||||
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-row style="line-height: 50px;font-size: 16px;font-weight: 600;">
|
<a-row style="line-height: 50px;font-size: 16px;font-weight: 600;">
|
||||||
|
@ -27,12 +28,12 @@
|
||||||
|
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<div v-show="total==0" style="text-align: center;width:100%;">
|
<!-- <div v-show="total==0" style="text-align: center;width:100%;">
|
||||||
<div style="font-size: 600;">请先关注公众号后进行提醒设置!</div>
|
<div style="font-size: 600;">请先关注公众号后进行提醒设置!</div>
|
||||||
<div style="text-align: center;width:100%;">
|
<div style="text-align: center;width:100%;">
|
||||||
<img style="border-radius: 10px 10px 0 0;margin-bottom: 8px;width:200px;margin-left: 30%;" src="/resource/img/kc/dswjx.jpg" height="170px"/>
|
<img style="border-radius: 10px 10px 0 0;margin-bottom: 8px;width:200px;margin-left: 30%;" src="/resource/img/kc/dswjx.jpg" height="170px"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
|
|
||||||
</a-card>
|
</a-card>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
|
@ -73,21 +74,22 @@
|
||||||
* 新增
|
* 新增
|
||||||
*/
|
*/
|
||||||
function add() {
|
function add() {
|
||||||
getOpenId();
|
// getOpenId();
|
||||||
// edit({});
|
edit({});
|
||||||
}
|
}
|
||||||
function getOpenId(){
|
function getOpenId(){
|
||||||
|
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
|
||||||
|
if(total.value>0){
|
||||||
var STATE = window.location.search.replace('?', '');
|
var STATE = window.location.search.replace('?', '');
|
||||||
STATE = encodeURIComponent(STATE)
|
STATE = encodeURIComponent(STATE)
|
||||||
window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?'+
|
window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?'+
|
||||||
'appid=wxafdbb51ba3aa614d&redirect_uri=http://wxts.jlslxzn.com/jeecg-boot/wxpay/weixinoauth'+
|
'appid=wxafdbb51ba3aa614d&redirect_uri=http://wxts.jlslxzn.com/jeecg-boot/wxpay/weixinoauth'+
|
||||||
'&response_type=code&scope=snsapi_base&state='+ getUserId() +'&userid='+getUserId()+'#wechat_redirect'
|
'&response_type=code&scope=snsapi_base&state='+ getUserId() +'&userid='+getUserId()+'#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
|
|
||||||
// })
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 编辑
|
* 编辑
|
||||||
|
|
Loading…
Reference in New Issue