添加公众号的东西

This commit is contained in:
yangjun 2023-05-15 21:27:51 +08:00
parent d810f159ca
commit ab1038b709
2 changed files with 13 additions and 2 deletions

View File

@ -126,13 +126,17 @@ function rkbLoadData() {
queryParam.value.skxs = 1 queryParam.value.skxs = 1
queryParam.value.type = 1 queryParam.value.type = 1
console.log(`🚀 ~ file: index.vue:112 ~ rkbLoadData ~ newRow:`, queryParam) console.log(`🚀 ~ file: index.vue:112 ~ rkbLoadData ~ newRow:`, queryParam)
list(queryParam.value).then(res => {
if(queryParam.value.hh!=","){
list(queryParam.value).then(res => {
// console.log(`🚀 ~ file: index.vue:104 ~ list ~ res:`, res) // console.log(`🚀 ~ file: index.vue:104 ~ list ~ res:`, res)
listData.value.push(...res.records) listData.value.push(...res.records)
current = res.pages current = res.pages
// listData.value = res.records; // listData.value = res.records;
// console.log(`🚀 ~ file: kclbList.vue:113 ~ list ~ listData.value:`, listData.value) // console.log(`🚀 ~ file: kclbList.vue:113 ~ list ~ listData.value:`, listData.value)
}) })
}
} }
function funpingjia(record){ function funpingjia(record){

View File

@ -62,9 +62,16 @@
* 新增 * 新增
*/ */
function add() { function add() {
// getOpenId();
edit({}); 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'
}
/** /**
* 编辑 * 编辑
*/ */