Procházet zdrojové kódy

'2023年6月1日10:53:25'

yxb
wq před 2 roky
rodič
revize
c1d506da30
2 změnil soubory, kde provedl 27 přidání a 1 odebrání
  1. 25
    0
      pages/index/index.vue
  2. 2
    1
      stores/user.js

+ 25
- 0
pages/index/index.vue Zobrazit soubor

@@ -252,6 +252,7 @@
const bgOrange = `url(${fileURL}image/index/bg-orange.png) center center no-repeat`;
const bgBlue = `url(${fileURL}image/index/bg-blue.png) center center no-repeat`;
const list = reactive(["您有一条待办事项,还未办理完成"])

const swiper = reactive({
indicatorDots: true,
autoplay: true,
@@ -330,6 +331,29 @@
}
});
onLoad(() => {

wx.login({
success: function(res){
console.log('输出内容========',res)
}
})
//调用方式
request('eeb51c66bcda48dc9dbb5997323a11ed', {}).then((res) => {
console.log("====", stringToJson(res.bizContent));
wx.requestSubscribeMessage({
tmplIds: [''],
success: function(res){
console.log('输出内容========',res)
},
fail: function(res){
console.log('内容========',res)
}
})
})
.catch((err) => {});
getInfo()
quanKeyAction().then((val: any) => {
setItem('key', val.dictTypeAndItem)
@@ -345,6 +369,7 @@
}
})
getSwiper()

// console.log(credentialType);

//参数说明

+ 2
- 1
stores/user.js Zobrazit soubor

@@ -65,6 +65,7 @@ export const useUserStore = defineStore("userStore", {
const data = stringToJson(res.bizContent);
this.saveToken(data.accessToken);
this.saveOpenId(data.openId);
console.log('输出内容', data.openId)
resolve(data);
}).catch((error) => {
reject(error);
@@ -84,7 +85,7 @@ export const useUserStore = defineStore("userStore", {
url: "/login/login"
});
},
/*退出登录*/
loginOut() {
confirm(

Načítá se…
Zrušit
Uložit