|
@@ -53,18 +53,17 @@
|
|
|
zhangName: '',
|
|
|
numberStr: '',
|
|
|
});
|
|
|
- onLoad(() => {
|
|
|
+ onLoad((options) => {
|
|
|
// 获取路由参数
|
|
|
|
|
|
- init()
|
|
|
+ init(options)
|
|
|
|
|
|
})
|
|
|
|
|
|
- function init(){
|
|
|
+ function init(options){
|
|
|
if (cacheManager.get('auth')) {
|
|
|
//会员 取auth
|
|
|
selectZhang.value = cacheManager.get('auth');
|
|
|
-
|
|
|
console.log(selectZhang.value);
|
|
|
// 已登录
|
|
|
// 选择年级进入调用此接口
|
|
@@ -72,9 +71,10 @@
|
|
|
getZhangInfo()
|
|
|
// 蛋
|
|
|
// eggDialogRef.value.eggShow();
|
|
|
- } else {
|
|
|
+ } else {
|
|
|
+ console.log(options);
|
|
|
// 未登录 游客
|
|
|
- getCommonZhang()
|
|
|
+ getCommonZhang(options)
|
|
|
|
|
|
}
|
|
|
}
|
|
@@ -107,11 +107,11 @@
|
|
|
}
|
|
|
|
|
|
function getCommonZhang(data) {
|
|
|
- const auth = cacheManager.get('auth');
|
|
|
+
|
|
|
let req = {
|
|
|
- nianji: auth.nianji,
|
|
|
- cardId: auth.cardId,
|
|
|
- zhangId: selectZhang.value? selectZhang.value.zhangId :0,
|
|
|
+ nianji: data.nianji,
|
|
|
+ cardId: data.cardId,
|
|
|
+ zhangId:data.zhangId,
|
|
|
}
|
|
|
getCommonZhangInfo(req).then(res => {
|
|
|
infoData.jieList = res.data.jieList
|