Commit 0713eff5b8efc04afc7fb16546d2cf699a9fe16a

Authored by 夏洋涛
1 parent 2aa50f8a
Exists in master

feat:适老化

Showing 64 changed files with 923 additions and 479 deletions   Show diff stats
public/index.html
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html lang="en"> 2 <html lang="en">
3 - <head>  
4 - <meta charset="utf-8">  
5 - <meta http-equiv="X-UA-Compatible" content="IE=edge">  
6 - <meta name="viewport" content="width=device-width,initial-scale=1.0">  
7 - <link rel="icon" href="<%= BASE_URL %>favicon.ico">  
8 - <title>浙里研学</title>  
9 - </head>  
10 - <body>  
11 - <noscript>  
12 - <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>  
13 - </noscript>  
14 - <div id="app"></div>  
15 - <!-- built files will be auto injected -->  
16 - <script src="https://webapi.amap.com/maps?v=1.4.15&key=61af1988b71a634a59a0de29409baeb8"></script>  
17 - </body>  
18 -</html> 3 +
  4 +<head>
  5 + <meta charset="utf-8">
  6 + <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7 + <meta name="viewport" content="width=device-width,initial-scale=1.0">
  8 + <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  9 + <title>绍兴研学</title>
  10 + <!-- 埋点 -->
  11 + <script>
  12 + (function (w, d, s, q, i) {
  13 + w[q] = w[q] || [];
  14 + var f = d.getElementsByTagName(s)[0],
  15 + j = d.createElement(s);
  16 + j.async = true;
  17 + j.id = 'beacon-aplus';
  18 + j.src = 'https://d.alicdn.com/alilog/mlog/aplus.js?id=202951085';
  19 + f.parentNode.insertBefore(j, f);
  20 + })(window, document, 'script', 'aplus_queue');
  21 +
  22 + aplus_queue.push({
  23 + action: 'aplus.setMetaInfo',
  24 + arguments: ['aplus-rhost-v', 'alog.zjzwfw.gov.cn']
  25 + });
  26 +
  27 +
  28 + aplus_queue.push({
  29 + action: 'aplus.setMetaInfo',
  30 + arguments: ['aplus-rhost-g', 'alog.zjzwfw.gov.cn']
  31 + });
  32 +
  33 + aplus_queue.push({
  34 + action: 'aplus.setMetaInfo',
  35 + arguments: ['appId', '60506758']
  36 + });
  37 + aplus_queue.push({
  38 + 'action': 'aplus.sendPV',
  39 + 'arguments': [{
  40 + is_auto: false
  41 + }, {
  42 + miniAppId: '2002281863',
  43 + }]
  44 + })
  45 + </script>
  46 +</head>
  47 +
  48 +<body>
  49 + <noscript>
  50 + <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
  51 + Please enable it to continue.</strong>
  52 + </noscript>
  53 + <div id="app"></div>
  54 + <!-- built files will be auto injected -->
  55 + <script src="https://webapi.amap.com/maps?v=1.4.15&key=61af1988b71a634a59a0de29409baeb8"></script>
  56 + <!-- 政务中台JSAPI -->
  57 + <script src="//assets.zjzwfw.gov.cn/assets/ZWJSBridge/1.0.1/zwjsbridge.js"></script>
  58 +</body>
  59 +
  60 +</html>
19 \ No newline at end of file 61 \ No newline at end of file
1 <template> 1 <template>
2 - <div id="app">  
3 - <!-- <err></err> -->  
4 - <router-view @openSchool="openSchool" />  
5 - <van-popup  
6 - style="background: transparent"  
7 - get-container="body"  
8 - v-model="showSchool"  
9 - @close="closeSchool"  
10 - > 2 + <div id="app" :class="isElder ? 'elder' : ''">
  3 + <router-view @openSchool="openSchool" @setElder="setElder" />
  4 + <van-popup style="background: transparent" get-container="body" v-model="showSchool" @close="closeSchool">
11 <school-add @closeAdd="closeAdd"></school-add> 5 <school-add @closeAdd="closeAdd"></school-add>
12 </van-popup> 6 </van-popup>
13 </div> 7 </div>
14 </template> 8 </template>
15 <script> 9 <script>
16 -import schoolAdd from "@/views/Travel/component/schoolAdd";  
17 -import err from "@/views/502";  
18 -import vConsole from "vconsole"; 10 +import schoolAdd from '@/views/Travel/component/schoolAdd'
  11 +import err from '@/views/502'
  12 +import vConsole from 'vconsole'
19 export default { 13 export default {
20 data() { 14 data() {
21 return { 15 return {
  16 + isElder: false,
22 showSchool: false, 17 showSchool: false,
23 - }; 18 + }
24 }, 19 },
25 mounted() { 20 mounted() {
26 - // if (this.$route.query.dev) {  
27 - // sessionStorage.setItem(  
28 - // "prePageQuery",  
29 - // JSON.stringify({ dev: this.$route.query.dev })  
30 - // );  
31 - // new vConsole();  
32 - // } 21 + // new vConsole()
  22 + ZWJSBridge.onReady(() => {
  23 + console.log('初始化完成后,执行bridge方法')
  24 + })
  25 + const isElder = localStorage.getItem('isElder')
  26 + if (isElder) {
  27 + this.isElder = true
  28 + } else {
  29 + ZWJSBridge.getUiStyle({})
  30 + .then((result) => {
  31 + console.log(result)
  32 + if (result.uiStyle == 'elder') {
  33 + this.isElder = true
  34 + localStorage.setItem('isElder', 1)
  35 + }
  36 + })
  37 + //浙里办APP 6.11.0 版本以下版本标准模式兼容
  38 + .catch((error) => {
  39 + console.log(error)
  40 + })
  41 + }
33 }, 42 },
34 methods: { 43 methods: {
  44 + setElder(e) {
  45 + this.isElder = e
  46 + },
35 openSchool() { 47 openSchool() {
36 - this.showSchool = true; 48 + this.showSchool = true
37 }, 49 },
38 closeSchool() { 50 closeSchool() {
39 - if (  
40 - sessionStorage.getItem("schoolNames") == "undefined" ||  
41 - !sessionStorage.getItem("schoolNames")  
42 - ) { 51 + if (localStorage.getItem('schoolNames') == 'undefined' || !localStorage.getItem('schoolNames')) {
43 // this.showSchool = true 52 // this.showSchool = true
44 } 53 }
45 }, 54 },
46 closeAdd() { 55 closeAdd() {
47 - this.showSchool = false; 56 + this.showSchool = false
48 }, 57 },
49 }, 58 },
50 components: { 59 components: {
51 schoolAdd, 60 schoolAdd,
52 - err 61 + err,
53 }, 62 },
54 -}; 63 +}
55 </script> 64 </script>
56 <style lang="stylus"> 65 <style lang="stylus">
57 html,body,#app { 66 html,body,#app {
src/components/AllLoveGo.vue
@@ -56,7 +56,7 @@ export default { @@ -56,7 +56,7 @@ export default {
56 // window.removeEventListener("scroll",this.handleScroll) 56 // window.removeEventListener("scroll",this.handleScroll)
57 // }, 57 // },
58 created() { 58 created() {
59 - var userInfo = sessionStorage.getItem('userInfo') 59 + var userInfo = localStorage.getItem('userInfo')
60 if (userInfo) { 60 if (userInfo) {
61 this.userInfo = JSON.parse(userInfo) 61 this.userInfo = JSON.parse(userInfo)
62 } 62 }
src/components/Background.vue
@@ -29,7 +29,7 @@ export default { @@ -29,7 +29,7 @@ export default {
29 } 29 }
30 }, 30 },
31 created() { 31 created() {
32 - var userInfo = sessionStorage.getItem('userInfo') 32 + var userInfo = localStorage.getItem('userInfo')
33 if (userInfo) { 33 if (userInfo) {
34 this.userInfo = JSON.parse(userInfo) 34 this.userInfo = JSON.parse(userInfo)
35 } 35 }
@@ -53,10 +53,10 @@ export default { @@ -53,10 +53,10 @@ export default {
53 // 判断是否已登录 53 // 判断是否已登录
54 checkLogin() { 54 checkLogin() {
55 if (process.env.NODE_ENV != 'production') return true 55 if (process.env.NODE_ENV != 'production') return true
56 - const userInfo = JSON.parse(sessionStorage.getItem('userInfo')) 56 + const userInfo = JSON.parse(localStorage.getItem('userInfo'))
57 if (!userInfo?.phone) { 57 if (!userInfo?.phone) {
58 - sessionStorage.setItem('prePage', 'HomeYX')  
59 - sessionStorage.setItem('prePageQuery', JSON.stringify({ showTab: this.$route.query.showTab })) 58 + localStorage.setItem('prePage', 'HomeYX')
  59 + localStorage.setItem('prePageQuery', JSON.stringify({ showTab: this.$route.query.showTab }))
60 this.$router.push({ name: 'LoginPublic' }) 60 this.$router.push({ name: 'LoginPublic' })
61 return false 61 return false
62 } 62 }
src/components/BottomNav.vue
@@ -45,7 +45,7 @@ @@ -45,7 +45,7 @@
45 }, 45 },
46 isLogin(){ 46 isLogin(){
47 var that = this; 47 var that = this;
48 - var userInfo = sessionStorage.getItem('userInfo'); 48 + var userInfo = localStorage.getItem('userInfo');
49 // if(!userInfo){ 49 // if(!userInfo){
50 // this.$toast('未登录'); 50 // this.$toast('未登录');
51 // setTimeout(function(){ 51 // setTimeout(function(){
src/components/c_Tabbar.vue
@@ -62,4 +62,21 @@ export default { @@ -62,4 +62,21 @@ export default {
62 } 62 }
63 } 63 }
64 } 64 }
  65 +</style>
  66 +<style lang="scss">
  67 +// 长辈版
  68 +.elder {
  69 + #tabbar {
  70 + padding-top: 30px;
  71 + .tab{
  72 + padding: 0;
  73 + img{
  74 + width: 44px;
  75 + }
  76 + p{
  77 + font-size: 34px;
  78 + }
  79 + }
  80 + }
  81 +}
65 </style> 82 </style>
66 \ No newline at end of file 83 \ No newline at end of file
src/views/Authorize.vue
@@ -14,7 +14,7 @@ export default { @@ -14,7 +14,7 @@ export default {
14 }, 14 },
15 mounted() { 15 mounted() {
16 let code = this.getQueryVariable('code') 16 let code = this.getQueryVariable('code')
17 - let openId = sessionStorage.getItem('openId') 17 + let openId = localStorage.getItem('openId')
18 if (!openId) { 18 if (!openId) {
19 if (!code) { 19 if (!code) {
20 // location.href = `https://proxy.shunzhi.net/prod/api/wx/wx1305e88d2bc74073/getCode/yx_zlyx` 20 // location.href = `https://proxy.shunzhi.net/prod/api/wx/wx1305e88d2bc74073/getCode/yx_zlyx`
@@ -32,14 +32,14 @@ export default { @@ -32,14 +32,14 @@ export default {
32 this.$toast.clear() 32 this.$toast.clear()
33 console.log(res) 33 console.log(res)
34 if (res.data.code == 200) { 34 if (res.data.code == 200) {
35 - sessionStorage.setItem('openId', res.data.data.openid)  
36 - sessionStorage.setItem('unionId', res.data.data.unionId)  
37 - sessionStorage.setItem('nicknameUser', res.data.data.nickname)  
38 - sessionStorage.setItem('headImgUrl', res.data.data.headImgUrl) 35 + localStorage.setItem('openId', res.data.data.openid)
  36 + localStorage.setItem('unionId', res.data.data.unionId)
  37 + localStorage.setItem('nicknameUser', res.data.data.nickname)
  38 + localStorage.setItem('headImgUrl', res.data.data.headImgUrl)
39 this.backPage() 39 this.backPage()
40 } else { 40 } else {
41 setTimeout(() => { 41 setTimeout(() => {
42 - sessionStorage.removeItem('openId') 42 + localStorage.removeItem('openId')
43 // location.href = `https://proxy.shunzhi.net/prod/api/wx/wx1305e88d2bc74073/getCode/yx_zlyx` 43 // location.href = `https://proxy.shunzhi.net/prod/api/wx/wx1305e88d2bc74073/getCode/yx_zlyx`
44 location.href = `https://proxy.shunzhi.net/prod/api/wx/wx1305e88d2bc74073/getCode/yx_test_auth` 44 location.href = `https://proxy.shunzhi.net/prod/api/wx/wx1305e88d2bc74073/getCode/yx_test_auth`
45 }, 2000) 45 }, 2000)
@@ -52,8 +52,8 @@ export default { @@ -52,8 +52,8 @@ export default {
52 }, 52 },
53 methods: { 53 methods: {
54 backPage() { 54 backPage() {
55 - let prePage = sessionStorage.getItem('prePage')  
56 - let prePageQuery = sessionStorage.getItem('prePageQuery') 55 + let prePage = localStorage.getItem('prePage')
  56 + let prePageQuery = localStorage.getItem('prePageQuery')
57 if (prePage) { 57 if (prePage) {
58 this.$router.push({ name: prePage, query: JSON.parse(prePageQuery) }) 58 this.$router.push({ name: prePage, query: JSON.parse(prePageQuery) })
59 } else { 59 } else {
src/views/BaseDetail.vue
@@ -150,19 +150,19 @@ export default { @@ -150,19 +150,19 @@ export default {
150 } 150 }
151 }, 151 },
152 mounted() { 152 mounted() {
153 - sessionStorage.setItem('prePage', 'BaseDetail') 153 + localStorage.setItem('prePage', 'BaseDetail')
154 var id = this.$route.query.id 154 var id = this.$route.query.id
155 if (id) { 155 if (id) {
156 this.id = id 156 this.id = id
157 - sessionStorage.setItem('prePageQuery', JSON.stringify({ id: this.$route.query.id })) 157 + localStorage.setItem('prePageQuery', JSON.stringify({ id: this.$route.query.id }))
158 } 158 }
159 - let openid = sessionStorage.getItem('openId')  
160 - let schoolNamesChoose = sessionStorage.getItem('schoolNamesChoose') 159 + let openid = localStorage.getItem('openId')
  160 + let schoolNamesChoose = localStorage.getItem('schoolNamesChoose')
161 if (schoolNamesChoose) { 161 if (schoolNamesChoose) {
162 this.schoolNamesChoose = JSON.parse(schoolNamesChoose) 162 this.schoolNamesChoose = JSON.parse(schoolNamesChoose)
163 } 163 }
164 - this.headImgUrl = sessionStorage.getItem('headImgUrl')  
165 - this.nicknameUser = sessionStorage.getItem('nicknameUser') 164 + this.headImgUrl = localStorage.getItem('headImgUrl')
  165 + this.nicknameUser = localStorage.getItem('nicknameUser')
166 if (process.env.NODE_ENV === 'production' && this.common.isWeiXin()) { 166 if (process.env.NODE_ENV === 'production' && this.common.isWeiXin()) {
167 if (!openid) { 167 if (!openid) {
168 this.$router.push({ name: 'Authorize' }) 168 this.$router.push({ name: 'Authorize' })
@@ -170,7 +170,7 @@ export default { @@ -170,7 +170,7 @@ export default {
170 this.getUserInfo() 170 this.getUserInfo()
171 } 171 }
172 } else { 172 } else {
173 - sessionStorage.setItem('unionId', this.DevUnionId) 173 + localStorage.setItem('unionId', this.DevUnionId)
174 this.getUserInfo() 174 this.getUserInfo()
175 } 175 }
176 window.addEventListener('scroll', this.handleScroll) 176 window.addEventListener('scroll', this.handleScroll)
@@ -225,10 +225,10 @@ export default { @@ -225,10 +225,10 @@ export default {
225 // 判断是否已登录 225 // 判断是否已登录
226 checkLogin() { 226 checkLogin() {
227 if (process.env.NODE_ENV != 'production') return true 227 if (process.env.NODE_ENV != 'production') return true
228 - const userInfo = JSON.parse(sessionStorage.getItem('userInfo')) 228 + const userInfo = JSON.parse(localStorage.getItem('userInfo'))
229 if (!userInfo?.phone) { 229 if (!userInfo?.phone) {
230 - sessionStorage.setItem('prePage', 'BaseDetail')  
231 - sessionStorage.setItem('prePageQuery', JSON.stringify({ id: this.$route.query.id })) 230 + localStorage.setItem('prePage', 'BaseDetail')
  231 + localStorage.setItem('prePageQuery', JSON.stringify({ id: this.$route.query.id }))
232 this.$router.push({ name: 'LoginPublic' }) 232 this.$router.push({ name: 'LoginPublic' })
233 return false 233 return false
234 } 234 }
@@ -297,23 +297,23 @@ export default { @@ -297,23 +297,23 @@ export default {
297 forbidClick: true, 297 forbidClick: true,
298 }) 298 })
299 this.yxAxios 299 this.yxAxios
300 - .get(`${this.baseUrl}/prod/api/wx/wx1305e88d2bc74073/getUserInfo?unionId=${sessionStorage.getItem('unionId')}`) 300 + .get(`${this.baseUrl}/prod/api/wx/wx1305e88d2bc74073/getUserInfo?unionId=${localStorage.getItem('unionId')}`)
301 .then((res) => { 301 .then((res) => {
302 this.$toast.clear() 302 this.$toast.clear()
303 if (res.data.code == 200) { 303 if (res.data.code == 200) {
304 let userInfo = res.data.data 304 let userInfo = res.data.data
305 this.userInfo = userInfo 305 this.userInfo = userInfo
306 - sessionStorage.setItem('userInfo', JSON.stringify(userInfo)) 306 + localStorage.setItem('userInfo', JSON.stringify(userInfo))
307 this.initPage() 307 this.initPage()
308 if (res.data.data.schoolNames || res.data.data.schoolNames == [] || res.data.data.schoolNames == 'null') { 308 if (res.data.data.schoolNames || res.data.data.schoolNames == [] || res.data.data.schoolNames == 'null') {
309 - sessionStorage.setItem('schoolNames', JSON.stringify(res.data.data.schoolNames)) 309 + localStorage.setItem('schoolNames', JSON.stringify(res.data.data.schoolNames))
310 this.$store.commit('changeSchool', res.data.data.schoolNames) 310 this.$store.commit('changeSchool', res.data.data.schoolNames)
311 - if (!sessionStorage.getItem('schoolNamesChoose')) {  
312 - sessionStorage.setItem('schoolNamesChoose', JSON.stringify(res.data.data.schoolNames[0])) 311 + if (!localStorage.getItem('schoolNamesChoose')) {
  312 + localStorage.setItem('schoolNamesChoose', JSON.stringify(res.data.data.schoolNames[0]))
313 this.schoolNamesChoose = res.data.data.schoolNames[0] 313 this.schoolNamesChoose = res.data.data.schoolNames[0]
314 } 314 }
315 } else { 315 } else {
316 - sessionStorage.setItem('schoolNames', []) 316 + localStorage.setItem('schoolNames', [])
317 this.$store.commit('changeSchool', []) 317 this.$store.commit('changeSchool', [])
318 } 318 }
319 }else{ 319 }else{
src/views/CourseDetail.vue
@@ -223,7 +223,7 @@ export default { @@ -223,7 +223,7 @@ export default {
223 if (window.innerWidth > 900) { 223 if (window.innerWidth > 900) {
224 this.isWeb = false 224 this.isWeb = false
225 } 225 }
226 - var userInfo = sessionStorage.getItem('userInfo') 226 + var userInfo = localStorage.getItem('userInfo')
227 if (userInfo) { 227 if (userInfo) {
228 this.userInfo = JSON.parse(userInfo) 228 this.userInfo = JSON.parse(userInfo)
229 } 229 }
src/views/EvaluateDetail.vue
@@ -48,7 +48,7 @@ export default { @@ -48,7 +48,7 @@ export default {
48 } 48 }
49 }, 49 },
50 created() { 50 created() {
51 - var userInfo = sessionStorage.getItem('userInfo') 51 + var userInfo = localStorage.getItem('userInfo')
52 if (userInfo) { 52 if (userInfo) {
53 this.userInfo = JSON.parse(userInfo) 53 this.userInfo = JSON.parse(userInfo)
54 } 54 }
src/views/FeedBack.vue
@@ -30,7 +30,7 @@ export default { @@ -30,7 +30,7 @@ export default {
30 }, 30 },
31 created() { 31 created() {
32 var that = this 32 var that = this
33 - var userInfo = sessionStorage.getItem('userInfo') 33 + var userInfo = localStorage.getItem('userInfo')
34 if (userInfo) { 34 if (userInfo) {
35 this.userInfo = JSON.parse(userInfo) 35 this.userInfo = JSON.parse(userInfo)
36 } 36 }
src/views/Feedbook/FeedbookEdit.vue
@@ -27,7 +27,7 @@ export default { @@ -27,7 +27,7 @@ export default {
27 } 27 }
28 }, 28 },
29 mounted() { 29 mounted() {
30 - let userInfo = sessionStorage.getItem('userInfo') 30 + let userInfo = localStorage.getItem('userInfo')
31 if (userInfo) { 31 if (userInfo) {
32 this.userInfo = JSON.parse(userInfo) 32 this.userInfo = JSON.parse(userInfo)
33 } 33 }
src/views/Feedbook/FeedbookList.vue
@@ -23,7 +23,7 @@ export default { @@ -23,7 +23,7 @@ export default {
23 } 23 }
24 }, 24 },
25 mounted() { 25 mounted() {
26 - let userInfo = sessionStorage.getItem('userInfo') 26 + let userInfo = localStorage.getItem('userInfo')
27 if (userInfo) { 27 if (userInfo) {
28 this.userInfo = JSON.parse(userInfo) 28 this.userInfo = JSON.parse(userInfo)
29 this.getList() 29 this.getList()
src/views/Foot.vue
@@ -127,19 +127,19 @@ export default { @@ -127,19 +127,19 @@ export default {
127 } 127 }
128 }, 128 },
129 mounted() { 129 mounted() {
130 - sessionStorage.setItem('prePage', 'BaseDetail') 130 + localStorage.setItem('prePage', 'BaseDetail')
131 var id = this.$route.query.tabId 131 var id = this.$route.query.tabId
132 if (id) { 132 if (id) {
133 this.tabValue = id 133 this.tabValue = id
134 - sessionStorage.setItem('prePageQuery', JSON.stringify({ id: this.$route.query.id })) 134 + localStorage.setItem('prePageQuery', JSON.stringify({ id: this.$route.query.id }))
135 } 135 }
136 - let openid = sessionStorage.getItem('openId')  
137 - let schoolNamesChoose = sessionStorage.getItem('schoolNamesChoose') 136 + let openid = localStorage.getItem('openId')
  137 + let schoolNamesChoose = localStorage.getItem('schoolNamesChoose')
138 if (schoolNamesChoose) { 138 if (schoolNamesChoose) {
139 this.schoolNamesChoose = JSON.parse(schoolNamesChoose) 139 this.schoolNamesChoose = JSON.parse(schoolNamesChoose)
140 } 140 }
141 - this.headImgUrl = sessionStorage.getItem('headImgUrl')  
142 - this.nicknameUser = sessionStorage.getItem('nicknameUser') 141 + this.headImgUrl = localStorage.getItem('headImgUrl')
  142 + this.nicknameUser = localStorage.getItem('nicknameUser')
143 if (process.env.NODE_ENV === 'production' && this.common.isWeiXin()) { 143 if (process.env.NODE_ENV === 'production' && this.common.isWeiXin()) {
144 if (!openid) { 144 if (!openid) {
145 this.$router.push({ name: 'Authorize' }) 145 this.$router.push({ name: 'Authorize' })
@@ -147,7 +147,7 @@ export default { @@ -147,7 +147,7 @@ export default {
147 this.getUserInfo() 147 this.getUserInfo()
148 } 148 }
149 } else { 149 } else {
150 - sessionStorage.setItem('unionId', this.DevUnionId) 150 + localStorage.setItem('unionId', this.DevUnionId)
151 this.getUserInfo() 151 this.getUserInfo()
152 } 152 }
153 }, 153 },
@@ -274,13 +274,13 @@ export default { @@ -274,13 +274,13 @@ export default {
274 }) 274 })
275 }, 275 },
276 ReleaseStory(data) { 276 ReleaseStory(data) {
277 - sessionStorage.setItem('YXNowCourse', JSON.stringify(data)) 277 + localStorage.setItem('YXNowCourse', JSON.stringify(data))
278 this.$router.push({ 278 this.$router.push({
279 path: '/ReleaseStory', 279 path: '/ReleaseStory',
280 }) 280 })
281 }, 281 },
282 ReleaseEvaluate(data) { 282 ReleaseEvaluate(data) {
283 - sessionStorage.setItem('YXNowCourse', JSON.stringify(data)) 283 + localStorage.setItem('YXNowCourse', JSON.stringify(data))
284 this.$router.push({ 284 this.$router.push({
285 path: '/ReleaseEvaluate', 285 path: '/ReleaseEvaluate',
286 }) 286 })
@@ -301,24 +301,24 @@ export default { @@ -301,24 +301,24 @@ export default {
301 forbidClick: true, 301 forbidClick: true,
302 }) 302 })
303 this.yxAxios 303 this.yxAxios
304 - .get(`${this.baseUrl}/prod/api/wx/wx1305e88d2bc74073/getUserInfo?unionId=${sessionStorage.getItem('unionId')}`) 304 + .get(`${this.baseUrl}/prod/api/wx/wx1305e88d2bc74073/getUserInfo?unionId=${localStorage.getItem('unionId')}`)
305 .then((res) => { 305 .then((res) => {
306 this.$toast.clear() 306 this.$toast.clear()
307 if (res.data.code == 200) { 307 if (res.data.code == 200) {
308 let userInfo = res.data.data 308 let userInfo = res.data.data
309 this.userInfo = userInfo 309 this.userInfo = userInfo
310 this.initPage() 310 this.initPage()
311 - sessionStorage.setItem('userInfo', JSON.stringify(userInfo)) 311 + localStorage.setItem('userInfo', JSON.stringify(userInfo))
312 312
313 if (res.data.data.schoolNames || res.data.data.schoolNames == [] || res.data.data.schoolNames == 'null') { 313 if (res.data.data.schoolNames || res.data.data.schoolNames == [] || res.data.data.schoolNames == 'null') {
314 - sessionStorage.setItem('schoolNames', JSON.stringify(res.data.data.schoolNames)) 314 + localStorage.setItem('schoolNames', JSON.stringify(res.data.data.schoolNames))
315 this.$store.commit('changeSchool', res.data.data.schoolNames) 315 this.$store.commit('changeSchool', res.data.data.schoolNames)
316 - if (!sessionStorage.getItem('schoolNamesChoose')) {  
317 - sessionStorage.setItem('schoolNamesChoose', JSON.stringify(res.data.data.schoolNames[0])) 316 + if (!localStorage.getItem('schoolNamesChoose')) {
  317 + localStorage.setItem('schoolNamesChoose', JSON.stringify(res.data.data.schoolNames[0]))
318 this.schoolNamesChoose = res.data.data.schoolNames[0] 318 this.schoolNamesChoose = res.data.data.schoolNames[0]
319 } 319 }
320 } else { 320 } else {
321 - sessionStorage.setItem('schoolNames', []) 321 + localStorage.setItem('schoolNames', [])
322 this.$store.commit('changeSchool', []) 322 this.$store.commit('changeSchool', [])
323 } 323 }
324 } 324 }
@@ -327,9 +327,9 @@ export default { @@ -327,9 +327,9 @@ export default {
327 // 判断是否已登录 327 // 判断是否已登录
328 checkLogin() { 328 checkLogin() {
329 if (process.env.NODE_ENV != "production") return true; 329 if (process.env.NODE_ENV != "production") return true;
330 - const userInfo = JSON.parse(sessionStorage.getItem("userInfo")); 330 + const userInfo = JSON.parse(localStorage.getItem("userInfo"));
331 if (!userInfo?.phone) { 331 if (!userInfo?.phone) {
332 - sessionStorage.setItem("prePage", "Foot"); 332 + localStorage.setItem("prePage", "Foot");
333 this.$router.push({ name: "LoginPublic" }); 333 this.$router.push({ name: "LoginPublic" });
334 return false; 334 return false;
335 } 335 }
src/views/GrowUp/GrowUp.vue
@@ -122,14 +122,14 @@ export default { @@ -122,14 +122,14 @@ export default {
122 duration: 0, 122 duration: 0,
123 forbidClick: true, 123 forbidClick: true,
124 }) 124 })
125 - sessionStorage.setItem('prePage', 'GrowUp') 125 + localStorage.setItem('prePage', 'GrowUp')
126 if (process.env.NODE_ENV === 'production' && this.common.isWeiXin()) { 126 if (process.env.NODE_ENV === 'production' && this.common.isWeiXin()) {
127 - let openId = sessionStorage.getItem('openId') 127 + let openId = localStorage.getItem('openId')
128 if (!openId) { 128 if (!openId) {
129 this.$router.push({ name: 'Authorize' }) 129 this.$router.push({ name: 'Authorize' })
130 return 130 return
131 } 131 }
132 - this.unionId = sessionStorage.getItem('unionId') 132 + this.unionId = localStorage.getItem('unionId')
133 this.getUserInfo() 133 this.getUserInfo()
134 } else { 134 } else {
135 this.unionId = this.TestUnionId 135 this.unionId = this.TestUnionId
@@ -138,7 +138,7 @@ export default { @@ -138,7 +138,7 @@ export default {
138 }) 138 })
139 } 139 }
140 // 获取并设置学校 140 // 获取并设置学校
141 - let schoolNames = sessionStorage.getItem('schoolNames') 141 + let schoolNames = localStorage.getItem('schoolNames')
142 if (schoolNames) { 142 if (schoolNames) {
143 let schoolNamesArr = JSON.parse(schoolNames) 143 let schoolNamesArr = JSON.parse(schoolNames)
144 let tabList = this.tabList 144 let tabList = this.tabList
@@ -152,7 +152,7 @@ export default { @@ -152,7 +152,7 @@ export default {
152 } 152 }
153 // this.getGrowthTagList()//获取并设置标签 153 // this.getGrowthTagList()//获取并设置标签
154 // // 设置当前选项卡默认位置 154 // // 设置当前选项卡默认位置
155 - // let growUpType = sessionStorage.getItem('growUpType'); 155 + // let growUpType = localStorage.getItem('growUpType');
156 // if (growUpType) { 156 // if (growUpType) {
157 // this.active = Number(growUpType) 157 // this.active = Number(growUpType)
158 // } 158 // }
@@ -178,7 +178,7 @@ export default { @@ -178,7 +178,7 @@ export default {
178 } 178 }
179 this.tabList = tabList 179 this.tabList = tabList
180 // 设置当前选项卡默认位置 180 // 设置当前选项卡默认位置
181 - let growUpType = sessionStorage.getItem('growUpType') 181 + let growUpType = localStorage.getItem('growUpType')
182 if (growUpType) { 182 if (growUpType) {
183 this.active = Number(growUpType) 183 this.active = Number(growUpType)
184 } 184 }
@@ -196,12 +196,12 @@ export default { @@ -196,12 +196,12 @@ export default {
196 this.dataList = [] 196 this.dataList = []
197 this.finished = false 197 this.finished = false
198 this.tabOpen = false 198 this.tabOpen = false
199 - sessionStorage.setItem('growUpType', this.active) 199 + localStorage.setItem('growUpType', this.active)
200 this.growthContentList() 200 this.growthContentList()
201 }, 201 },
202 // 获取列表 202 // 获取列表
203 growthContentList() { 203 growthContentList() {
204 - const userInfo = JSON.parse(sessionStorage.getItem('userInfo')) 204 + const userInfo = JSON.parse(localStorage.getItem('userInfo'))
205 if (!userInfo?.phone) { 205 if (!userInfo?.phone) {
206 // 请先登录 206 // 请先登录
207 this.$dialog 207 this.$dialog
@@ -371,7 +371,7 @@ export default { @@ -371,7 +371,7 @@ export default {
371 }, 371 },
372 // 获取用户信息 372 // 获取用户信息
373 getUserInfo() { 373 getUserInfo() {
374 - let userInfo = sessionStorage.getItem('userInfo') 374 + let userInfo = localStorage.getItem('userInfo')
375 if (userInfo) { 375 if (userInfo) {
376 userInfo = JSON.parse(userInfo) 376 userInfo = JSON.parse(userInfo)
377 this.userInfo = userInfo 377 this.userInfo = userInfo
@@ -389,16 +389,16 @@ export default { @@ -389,16 +389,16 @@ export default {
389 // this.showData = true 389 // this.showData = true
390 this.getGrowthTagList() //获取并设置标签 390 this.getGrowthTagList() //获取并设置标签
391 391
392 - sessionStorage.setItem('userInfo', JSON.stringify(res.data.data)) 392 + localStorage.setItem('userInfo', JSON.stringify(res.data.data))
393 393
394 if (res.data.data.schoolNames || res.data.data.schoolNames == [] || res.data.data.schoolNames == 'null') { 394 if (res.data.data.schoolNames || res.data.data.schoolNames == [] || res.data.data.schoolNames == 'null') {
395 - sessionStorage.setItem('schoolNames', JSON.stringify(res.data.data.schoolNames)) 395 + localStorage.setItem('schoolNames', JSON.stringify(res.data.data.schoolNames))
396 this.$store.commit('changeSchool', res.data.data.schoolNames) 396 this.$store.commit('changeSchool', res.data.data.schoolNames)
397 - if (!sessionStorage.getItem('schoolNamesChoose')) {  
398 - sessionStorage.setItem('schoolNamesChoose', JSON.stringify(res.data.data.schoolNames[0])) 397 + if (!localStorage.getItem('schoolNamesChoose')) {
  398 + localStorage.setItem('schoolNamesChoose', JSON.stringify(res.data.data.schoolNames[0]))
399 } 399 }
400 } else { 400 } else {
401 - sessionStorage.setItem('schoolNames', []) 401 + localStorage.setItem('schoolNames', [])
402 this.$store.commit('changeSchool', []) 402 this.$store.commit('changeSchool', [])
403 } 403 }
404 } else { 404 } else {
@@ -412,10 +412,10 @@ export default { @@ -412,10 +412,10 @@ export default {
412 // 判断是否已登录 412 // 判断是否已登录
413 checkLogin() { 413 checkLogin() {
414 if (process.env.NODE_ENV != 'production') return true 414 if (process.env.NODE_ENV != 'production') return true
415 - const userInfo = JSON.parse(sessionStorage.getItem('userInfo')) 415 + const userInfo = JSON.parse(localStorage.getItem('userInfo'))
416 if (!userInfo?.phone) { 416 if (!userInfo?.phone) {
417 - sessionStorage.setItem('prePage', 'GrowUp')  
418 - sessionStorage.setItem('prePageQuery', JSON.stringify({ showTab: this.$route.query.showTab })) 417 + localStorage.setItem('prePage', 'GrowUp')
  418 + localStorage.setItem('prePageQuery', JSON.stringify({ showTab: this.$route.query.showTab }))
419 this.$router.push({ name: 'LoginPublic' }) 419 this.$router.push({ name: 'LoginPublic' })
420 return false 420 return false
421 } 421 }
src/views/GrowUp/GrowUpAlbum.vue
@@ -45,13 +45,13 @@ export default { @@ -45,13 +45,13 @@ export default {
45 } 45 }
46 }, 46 },
47 mounted () { 47 mounted () {
48 - var userInfo = sessionStorage.getItem('userInfo'); 48 + var userInfo = localStorage.getItem('userInfo');
49 if (userInfo) { 49 if (userInfo) {
50 this.userInfo = JSON.parse(userInfo); 50 this.userInfo = JSON.parse(userInfo);
51 } 51 }
52 this.timeNo = this.$route.query.timeNo//档期编号 52 this.timeNo = this.$route.query.timeNo//档期编号
53 - this.albumTitle = sessionStorage.getItem('albumTitle');  
54 - this.albumTime = sessionStorage.getItem('albumTime'); 53 + this.albumTitle = localStorage.getItem('albumTitle');
  54 + this.albumTime = localStorage.getItem('albumTime');
55 55
56 // this.getPhotoBasePhotoList()//获取当前用户相关的商户相册 56 // this.getPhotoBasePhotoList()//获取当前用户相关的商户相册
57 }, 57 },
src/views/GrowUp/GrowUpDetail.vue
@@ -105,15 +105,15 @@ export default { @@ -105,15 +105,15 @@ export default {
105 mounted() { 105 mounted() {
106 this.id = this.$route.query.id 106 this.id = this.$route.query.id
107 this.type = this.$route.query.type //类别1-用户; 2-基地 107 this.type = this.$route.query.type //类别1-用户; 2-基地
108 - sessionStorage.setItem('prePage', 'GrowUpDetail') 108 + localStorage.setItem('prePage', 'GrowUpDetail')
109 if (process.env.NODE_ENV === 'production' && this.common.isWeiXin()) { 109 if (process.env.NODE_ENV === 'production' && this.common.isWeiXin()) {
110 - let openId = sessionStorage.getItem('openId') 110 + let openId = localStorage.getItem('openId')
111 if (!openId) { 111 if (!openId) {
112 - sessionStorage.setItem('prePageQuery', JSON.stringify({ id: this.$route.query.id, type: this.$route.query.type })) 112 + localStorage.setItem('prePageQuery', JSON.stringify({ id: this.$route.query.id, type: this.$route.query.type }))
113 this.$router.push({ name: 'Authorize' }) 113 this.$router.push({ name: 'Authorize' })
114 return 114 return
115 } 115 }
116 - this.unionId = sessionStorage.getItem('unionId') 116 + this.unionId = localStorage.getItem('unionId')
117 this.getUserInfo() 117 this.getUserInfo()
118 } else { 118 } else {
119 this.unionId = this.TestUnionId 119 this.unionId = this.TestUnionId
@@ -312,7 +312,7 @@ export default { @@ -312,7 +312,7 @@ export default {
312 }, 312 },
313 // 获取用户信息 313 // 获取用户信息
314 getUserInfo() { 314 getUserInfo() {
315 - let userInfo = sessionStorage.getItem('userInfo') 315 + let userInfo = localStorage.getItem('userInfo')
316 if (userInfo) { 316 if (userInfo) {
317 userInfo = JSON.parse(userInfo) 317 userInfo = JSON.parse(userInfo)
318 this.userInfo = userInfo 318 this.userInfo = userInfo
@@ -330,16 +330,16 @@ export default { @@ -330,16 +330,16 @@ export default {
330 // this.showData = true 330 // this.showData = true
331 this.initPage() 331 this.initPage()
332 332
333 - sessionStorage.setItem('userInfo', JSON.stringify(res.data.data)) 333 + localStorage.setItem('userInfo', JSON.stringify(res.data.data))
334 334
335 if (res.data.data.schoolNames || res.data.data.schoolNames == [] || res.data.data.schoolNames == 'null') { 335 if (res.data.data.schoolNames || res.data.data.schoolNames == [] || res.data.data.schoolNames == 'null') {
336 - sessionStorage.setItem('schoolNames', JSON.stringify(res.data.data.schoolNames)) 336 + localStorage.setItem('schoolNames', JSON.stringify(res.data.data.schoolNames))
337 this.$store.commit('changeSchool', res.data.data.schoolNames) 337 this.$store.commit('changeSchool', res.data.data.schoolNames)
338 - if (!sessionStorage.getItem('schoolNamesChoose')) {  
339 - sessionStorage.setItem('schoolNamesChoose', JSON.stringify(res.data.data.schoolNames[0])) 338 + if (!localStorage.getItem('schoolNamesChoose')) {
  339 + localStorage.setItem('schoolNamesChoose', JSON.stringify(res.data.data.schoolNames[0]))
340 } 340 }
341 } else { 341 } else {
342 - sessionStorage.setItem('schoolNames', []) 342 + localStorage.setItem('schoolNames', [])
343 this.$store.commit('changeSchool', []) 343 this.$store.commit('changeSchool', [])
344 } 344 }
345 } else { 345 } else {
@@ -351,9 +351,9 @@ export default { @@ -351,9 +351,9 @@ export default {
351 // 判断是否已登录 351 // 判断是否已登录
352 checkLogin() { 352 checkLogin() {
353 if (process.env.NODE_ENV != 'production') return true 353 if (process.env.NODE_ENV != 'production') return true
354 - const userInfo = JSON.parse(sessionStorage.getItem('userInfo')) 354 + const userInfo = JSON.parse(localStorage.getItem('userInfo'))
355 if (!userInfo?.phone) { 355 if (!userInfo?.phone) {
356 - sessionStorage.setItem('prePage', 'GrowUpDetail') 356 + localStorage.setItem('prePage', 'GrowUpDetail')
357 this.$router.push({ name: 'LoginPublic' }) 357 this.$router.push({ name: 'LoginPublic' })
358 return false 358 return false
359 } 359 }
src/views/GrowUp/GrowUpRecord.vue
@@ -122,19 +122,19 @@ export default { @@ -122,19 +122,19 @@ export default {
122 step: '', 122 step: '',
123 editInfo: '', 123 editInfo: '',
124 unionId: '', 124 unionId: '',
125 - appId:'wx1305e88d2bc74073' 125 + appId: 'wx1305e88d2bc74073',
126 } 126 }
127 }, 127 },
128 mounted() { 128 mounted() {
129 - sessionStorage.setItem('prePage', 'GrowUpRecord')  
130 - sessionStorage.setItem('prePageQuery', '{}') 129 + localStorage.setItem('prePage', 'GrowUpRecord')
  130 + localStorage.setItem('prePageQuery', '{}')
131 if (process.env.NODE_ENV === 'production' && this.common.isWeiXin()) { 131 if (process.env.NODE_ENV === 'production' && this.common.isWeiXin()) {
132 - let openId = sessionStorage.getItem('openId') 132 + let openId = localStorage.getItem('openId')
133 if (!openId) { 133 if (!openId) {
134 - this.$router.push({ name: 'Authorize'}) 134 + this.$router.push({ name: 'Authorize' })
135 return 135 return
136 } 136 }
137 - this.unionId = sessionStorage.getItem('unionId') 137 + this.unionId = localStorage.getItem('unionId')
138 this.getUserInfo() 138 this.getUserInfo()
139 } else { 139 } else {
140 this.unionId = this.TestUnionId 140 this.unionId = this.TestUnionId
@@ -144,9 +144,9 @@ export default { @@ -144,9 +144,9 @@ export default {
144 }, 144 },
145 methods: { 145 methods: {
146 getStudentInfo() { 146 getStudentInfo() {
147 - let studentInfo = sessionStorage.getItem('StudentDetialInfo')  
148 - let userInfo = sessionStorage.getItem('userInfo')  
149 - let schoolNamesChoose = sessionStorage.getItem('schoolNamesChoose') ? JSON.parse(sessionStorage.getItem('schoolNamesChoose')) : '' 147 + let studentInfo = localStorage.getItem('StudentDetialInfo')
  148 + let userInfo = localStorage.getItem('userInfo')
  149 + let schoolNamesChoose = localStorage.getItem('schoolNamesChoose') ? JSON.parse(localStorage.getItem('schoolNamesChoose')) : ''
150 if (!userInfo) { 150 if (!userInfo) {
151 this.$toast.fail('学生信息缺失,请返回首页重试') 151 this.$toast.fail('学生信息缺失,请返回首页重试')
152 return 152 return
@@ -165,18 +165,18 @@ export default { @@ -165,18 +165,18 @@ export default {
165 console.log(subUsers[i].schoolName, schoolNamesChoose) 165 console.log(subUsers[i].schoolName, schoolNamesChoose)
166 if (schoolNamesChoose.schoolName == subUsers[i].schoolName) { 166 if (schoolNamesChoose.schoolName == subUsers[i].schoolName) {
167 this.studentInfo = subUsers[i] 167 this.studentInfo = subUsers[i]
168 - sessionStorage.setItem('StudentDetialInfo', JSON.stringify(this.studentInfo)) 168 + localStorage.setItem('StudentDetialInfo', JSON.stringify(this.studentInfo))
169 break 169 break
170 } 170 }
171 } 171 }
172 // 如果还是没有对应学校,默认选中第一个 172 // 如果还是没有对应学校,默认选中第一个
173 if (!this.studentInfo) { 173 if (!this.studentInfo) {
174 this.studentInfo = subUsers[0] 174 this.studentInfo = subUsers[0]
175 - sessionStorage.setItem('StudentDetialInfo', JSON.stringify(subUsers[0])) 175 + localStorage.setItem('StudentDetialInfo', JSON.stringify(subUsers[0]))
176 } 176 }
177 } else { 177 } else {
178 this.studentInfo = subUsers[0] 178 this.studentInfo = subUsers[0]
179 - sessionStorage.setItem('StudentDetialInfo', JSON.stringify(this.studentInfo)) 179 + localStorage.setItem('StudentDetialInfo', JSON.stringify(this.studentInfo))
180 } 180 }
181 console.log(this.studentInfo) 181 console.log(this.studentInfo)
182 this.$nextTick(() => { 182 this.$nextTick(() => {
@@ -240,7 +240,7 @@ export default { @@ -240,7 +240,7 @@ export default {
240 this.finished = false 240 this.finished = false
241 this.studentInfo = item 241 this.studentInfo = item
242 this.showPicker = false 242 this.showPicker = false
243 - sessionStorage.setItem('StudentDetialInfo', JSON.stringify(item)) 243 + localStorage.setItem('StudentDetialInfo', JSON.stringify(item))
244 this.$nextTick(() => { 244 this.$nextTick(() => {
245 this.initPage() 245 this.initPage()
246 }) 246 })
@@ -269,14 +269,14 @@ export default { @@ -269,14 +269,14 @@ export default {
269 duration: 0, 269 duration: 0,
270 forbidClick: true, 270 forbidClick: true,
271 }) 271 })
272 - let userInfo = sessionStorage.getItem('userInfo') 272 + let userInfo = localStorage.getItem('userInfo')
273 userInfo = JSON.parse(userInfo) 273 userInfo = JSON.parse(userInfo)
274 this.yxAxios.get(`${this.proxyUrl}/user/info/getPortalUserByNum?userNum=${userInfo?.centerNo}`).then((res) => { 274 this.yxAxios.get(`${this.proxyUrl}/user/info/getPortalUserByNum?userNum=${userInfo?.centerNo}`).then((res) => {
275 this.$toast.clear() 275 this.$toast.clear()
276 if (res.data.code == 200) { 276 if (res.data.code == 200) {
277 const userInfo = res.data.data.userInfo 277 const userInfo = res.data.data.userInfo
278 this.userInfo = userInfo 278 this.userInfo = userInfo
279 - sessionStorage.setItem('userInfo', JSON.stringify(userInfo)) 279 + localStorage.setItem('userInfo', JSON.stringify(userInfo))
280 this.childList = userInfo.subUsers 280 this.childList = userInfo.subUsers
281 } 281 }
282 }) 282 })
@@ -288,7 +288,7 @@ export default { @@ -288,7 +288,7 @@ export default {
288 }, 288 },
289 // 获取用户信息 289 // 获取用户信息
290 getUserInfo() { 290 getUserInfo() {
291 - let userInfo = sessionStorage.getItem('userInfo') 291 + let userInfo = localStorage.getItem('userInfo')
292 if (userInfo) { 292 if (userInfo) {
293 userInfo = JSON.parse(userInfo) 293 userInfo = JSON.parse(userInfo)
294 this.getStudentInfo() 294 this.getStudentInfo()
@@ -301,18 +301,18 @@ export default { @@ -301,18 +301,18 @@ export default {
301 this.yxAxios.get(`${this.proxyUrl}/api/wx/${this.appId}/getUserInfo?unionId=${this.unionId}`).then((res) => { 301 this.yxAxios.get(`${this.proxyUrl}/api/wx/${this.appId}/getUserInfo?unionId=${this.unionId}`).then((res) => {
302 this.$toast.clear() 302 this.$toast.clear()
303 if (res.data.data) { 303 if (res.data.data) {
304 - sessionStorage.setItem('userInfo', JSON.stringify(res.data.data)) 304 + localStorage.setItem('userInfo', JSON.stringify(res.data.data))
305 this.userInfo = res.data.data 305 this.userInfo = res.data.data
306 this.getStudentInfo() 306 this.getStudentInfo()
307 307
308 if (res.data.data.schoolNames || res.data.data.schoolNames == [] || res.data.data.schoolNames == 'null') { 308 if (res.data.data.schoolNames || res.data.data.schoolNames == [] || res.data.data.schoolNames == 'null') {
309 - sessionStorage.setItem('schoolNames', JSON.stringify(res.data.data.schoolNames)) 309 + localStorage.setItem('schoolNames', JSON.stringify(res.data.data.schoolNames))
310 this.$store.commit('changeSchool', res.data.data.schoolNames) 310 this.$store.commit('changeSchool', res.data.data.schoolNames)
311 - if (!sessionStorage.getItem('schoolNamesChoose')) {  
312 - sessionStorage.setItem('schoolNamesChoose', JSON.stringify(res.data.data.schoolNames[0])) 311 + if (!localStorage.getItem('schoolNamesChoose')) {
  312 + localStorage.setItem('schoolNamesChoose', JSON.stringify(res.data.data.schoolNames[0]))
313 } 313 }
314 } else { 314 } else {
315 - sessionStorage.setItem('schoolNames', []) 315 + localStorage.setItem('schoolNames', [])
316 this.$store.commit('changeSchool', []) 316 this.$store.commit('changeSchool', [])
317 } 317 }
318 } else { 318 } else {
@@ -324,9 +324,9 @@ export default { @@ -324,9 +324,9 @@ export default {
324 // 判断是否已登录 324 // 判断是否已登录
325 checkLogin() { 325 checkLogin() {
326 if (process.env.NODE_ENV != 'production') return true 326 if (process.env.NODE_ENV != 'production') return true
327 - const userInfo = JSON.parse(sessionStorage.getItem('userInfo')) 327 + const userInfo = JSON.parse(localStorage.getItem('userInfo'))
328 if (!userInfo?.phone) { 328 if (!userInfo?.phone) {
329 - sessionStorage.setItem('prePage', 'GrowUpRecord') 329 + localStorage.setItem('prePage', 'GrowUpRecord')
330 this.$router.push({ name: 'LoginPublic' }) 330 this.$router.push({ name: 'LoginPublic' })
331 return false 331 return false
332 } 332 }
@@ -533,3 +533,37 @@ export default { @@ -533,3 +533,37 @@ export default {
533 } 533 }
534 } 534 }
535 </style> 535 </style>
  536 +<style lang="scss">
  537 +// 长辈版
  538 +.elder {
  539 + .student_detail {
  540 + .infomation {
  541 + .top .right {
  542 + .name {
  543 + font-size: 40px;
  544 + span {
  545 + font-size: 34px;
  546 + }
  547 + }
  548 + .school_name {
  549 + font-size: 34px;
  550 + }
  551 + }
  552 + .count_box .count_item {
  553 + .count {
  554 + font-size: 34px;
  555 + span {
  556 + font-size: 40px;
  557 + }
  558 + }
  559 + .des {
  560 + font-size: 38px;
  561 + }
  562 + }
  563 + .icon_box .icon_item p {
  564 + font-size: 34px;
  565 + }
  566 + }
  567 + }
  568 +}
  569 +</style>
src/views/GrowUp/GrowUpTrip.vue
@@ -29,7 +29,7 @@ export default { @@ -29,7 +29,7 @@ export default {
29 } 29 }
30 }, 30 },
31 mounted () { 31 mounted () {
32 - var userInfo = sessionStorage.getItem('userInfo'); 32 + var userInfo = localStorage.getItem('userInfo');
33 if (userInfo) { 33 if (userInfo) {
34 this.userInfo = JSON.parse(userInfo); 34 this.userInfo = JSON.parse(userInfo);
35 } 35 }
@@ -38,8 +38,8 @@ export default { @@ -38,8 +38,8 @@ export default {
38 methods: { 38 methods: {
39 // 点击查看相册,进入相册详情页 39 // 点击查看相册,进入相册详情页
40 handleAlbum (item) { 40 handleAlbum (item) {
41 - sessionStorage.setItem('albumTitle', item.className)  
42 - sessionStorage.setItem('albumTime', this.Moment(item.timeName).format(('YYYY-MM-DD'))) 41 + localStorage.setItem('albumTitle', item.className)
  42 + localStorage.setItem('albumTime', this.Moment(item.timeName).format(('YYYY-MM-DD')))
43 this.$router.push({ name: "GrowUpAlbum", query: { timeNo: item.timeNo } }) 43 this.$router.push({ name: "GrowUpAlbum", query: { timeNo: item.timeNo } })
44 }, 44 },
45 //获取当前用户相关的商户相册 45 //获取当前用户相关的商户相册
src/views/GrowUp/MyAlbum.vue
@@ -57,7 +57,7 @@ export default { @@ -57,7 +57,7 @@ export default {
57 } 57 }
58 }, 58 },
59 mounted () { 59 mounted () {
60 - var userInfo = sessionStorage.getItem('userInfo'); 60 + var userInfo = localStorage.getItem('userInfo');
61 if (userInfo) { 61 if (userInfo) {
62 this.userInfo = JSON.parse(userInfo); 62 this.userInfo = JSON.parse(userInfo);
63 } 63 }
src/views/GrowUp/MyStory.vue
@@ -44,11 +44,11 @@ export default { @@ -44,11 +44,11 @@ export default {
44 } 44 }
45 }, 45 },
46 created() { 46 created() {
47 - var userInfo = sessionStorage.getItem('userInfo') 47 + var userInfo = localStorage.getItem('userInfo')
48 if (userInfo) { 48 if (userInfo) {
49 this.userInfo = JSON.parse(userInfo) 49 this.userInfo = JSON.parse(userInfo)
50 } 50 }
51 - let StudentDetialInfo = sessionStorage.getItem('StudentDetialInfo') 51 + let StudentDetialInfo = localStorage.getItem('StudentDetialInfo')
52 if (StudentDetialInfo) { 52 if (StudentDetialInfo) {
53 this.StudentDetialInfo = JSON.parse(StudentDetialInfo) 53 this.StudentDetialInfo = JSON.parse(StudentDetialInfo)
54 } 54 }
src/views/GrowUp/StoryDetail.vue
@@ -34,7 +34,7 @@ export default { @@ -34,7 +34,7 @@ export default {
34 } 34 }
35 }, 35 },
36 created() { 36 created() {
37 - var userInfo = sessionStorage.getItem('userInfo') 37 + var userInfo = localStorage.getItem('userInfo')
38 if (userInfo) { 38 if (userInfo) {
39 this.userInfo = JSON.parse(userInfo) 39 this.userInfo = JSON.parse(userInfo)
40 } 40 }
src/views/GrowUp/StoryList.vue
@@ -33,7 +33,7 @@ export default { @@ -33,7 +33,7 @@ export default {
33 } 33 }
34 }, 34 },
35 mounted() { 35 mounted() {
36 - let userInfo = sessionStorage.getItem('userInfo') 36 + let userInfo = localStorage.getItem('userInfo')
37 if (userInfo) { 37 if (userInfo) {
38 this.userInfo = JSON.parse(userInfo) 38 this.userInfo = JSON.parse(userInfo)
39 this.GetStoryList() 39 this.GetStoryList()
src/views/GrowUp/StoryRelease.vue
@@ -38,7 +38,7 @@ export default { @@ -38,7 +38,7 @@ export default {
38 } 38 }
39 }, 39 },
40 mounted() { 40 mounted() {
41 - let userInfo = sessionStorage.getItem('userInfo') 41 + let userInfo = localStorage.getItem('userInfo')
42 if (userInfo) { 42 if (userInfo) {
43 this.userInfo = JSON.parse(userInfo) 43 this.userInfo = JSON.parse(userInfo)
44 this.tripArr = this.userInfo.subUsers 44 this.tripArr = this.userInfo.subUsers
src/views/Home.vue
@@ -100,6 +100,7 @@ import Tabbar from &#39;@/components/c_Tabbar.vue&#39; @@ -100,6 +100,7 @@ import Tabbar from &#39;@/components/c_Tabbar.vue&#39;
100 import Background from '../components/Background.vue' 100 import Background from '../components/Background.vue'
101 import AllLoveGo from '../components/AllLoveGo.vue' 101 import AllLoveGo from '../components/AllLoveGo.vue'
102 import './home.scss' 102 import './home.scss'
  103 +const userData = require('@/views/data.json')
103 export default { 104 export default {
104 components: { 105 components: {
105 CourseList, 106 CourseList,
@@ -151,27 +152,140 @@ export default { @@ -151,27 +152,140 @@ export default {
151 } 152 }
152 }, 153 },
153 mounted() { 154 mounted() {
154 - sessionStorage.setItem('prePage', 'Home')  
155 - let openId = sessionStorage.getItem('openId')  
156 - if (process.env.NODE_ENV === 'production' && this.common.isWeiXin()) {  
157 - if (!openId) {  
158 - this.$router.push({ name: 'Authorize' })  
159 - return  
160 - }  
161 - this.unionId = sessionStorage.getItem('unionId')  
162 - this.getUserInfo() 155 + console.log('xst mounted')
  156 + this.checkAuth()
  157 + //二次回退
  158 + const sUserAgent = window.navigator.userAgent.toLowerCase()
  159 + const bIsAlipayMini = sUserAgent.indexOf('miniprogram') > -1 && sUserAgent.indexOf('alipay') > -1
  160 + if (bIsAlipayMini) {
  161 + console.log('我来自支付宝,popstate')
  162 + window.addEventListener('popstate', this.listenerPopstate, true)
163 } else { 163 } else {
164 - this.unionId = this.TestUnionId  
165 - this.$nextTick(() => {  
166 - this.getUserInfo()  
167 - }) 164 + console.log('我来自浙里办,popstate')
  165 + window.addEventListener('popstate', this.listenerPopstate, true)
168 } 166 }
169 this.GetNewList() 167 this.GetNewList()
170 this.GetBannerList() 168 this.GetBannerList()
171 this.getCustomerCourseList() //精选活动 169 this.getCustomerCourseList() //精选活动
172 this.GetBaseList() 170 this.GetBaseList()
173 }, 171 },
  172 + //销毁监听
  173 + destroyed() {
  174 + console.log('销毁支付宝监听')
  175 + window.removeEventListener('popstate', this.listenerPopstate, true)
  176 + },
174 methods: { 177 methods: {
  178 + //支付宝二次回退方法,addEventListener和removeEventListener一定要调用方法,不然无效
  179 + listenerPopstate() {
  180 + ZWJSBridge.close()
  181 + },
  182 + checkAuth() {
  183 + let centerNo = localStorage.getItem('centerNo')
  184 + let ticket = this.common.getUrlParam('ticket') //浙里办app访问
  185 + let ticketId = this.common.getUrlParam('ticketId') //浙里办微信小程序访问
  186 + // alert(location.href)
  187 + // alert(ticketId)
  188 + if (centerNo) {
  189 + // alert('有中台编号:' + centerNo)
  190 + this.centerNo = centerNo
  191 + localStorage.setItem('centerNo', centerNo)
  192 + this.getUserInfo()
  193 + } else if (ticket) {
  194 + this.getCenterByTicket(ticket)
  195 + } else if (ticketId) {
  196 + // alert('getCenterByTicketId')
  197 + this.getCenterByTicketId(ticketId)
  198 + localStorage.setItem('isWechat', 1)
  199 + } else {
  200 + const sUserAgent = window.navigator.userAgent.toLowerCase()
  201 + const dtdreamweb = sUserAgent.indexOf('dtdreamweb') > -1
  202 + const miniprogram = sUserAgent.indexOf('miniprogram') > -1 && sUserAgent.indexOf('alipay') > -1
  203 + if (dtdreamweb) {
  204 + // alert('浙里办')
  205 + window.location.href = `https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=8301b7fe71594245b97560ff841db1f2`
  206 + } else if (miniprogram) {
  207 + // alert('支付宝')
  208 + window.location.href = `https://puser.zjzwfw.gov.cn/sso/alipay.do?action=ssoLogin&servicecode=8301b7fe71594245b97560ff841db1f2`
  209 + } else {
  210 + alert('非浙里办渠道访问,显示测试用户数据')
  211 + console.log('非浙里办渠道访问,显示测试用户数据', userData)
  212 + this.centerNo = '2022031508525674030748540013076'
  213 + localStorage.setItem('centerNo', '2022031508525674030748540013076')
  214 + let userInfo = JSON.stringify(userData)
  215 + localStorage.setItem('userInfo', userInfo)
  216 + this.getUserInfo()
  217 + }
  218 + }
  219 + },
  220 + // 通过ticket获取centerNo
  221 + getCenterByTicket(ticket) {
  222 + this.yxAxios.get(`${this.proxyUrl}/api/third/getCenterNoSxPrivate?ticket=${ticket}`).then((res) => {
  223 + console.log('通过ticket获取centerNo成功:', res)
  224 + if (res.data.code == 200) {
  225 + this.centerNo = res.data.message
  226 + localStorage.setItem('centerNo', res.data.message)
  227 + this.getUserInfo()
  228 + } else {
  229 + this.reLoad()
  230 + }
  231 + })
  232 + },
  233 + // 通过ticketId获取centerNo
  234 + getCenterByTicketId(ticketId) {
  235 + this.yxAxios.get(`${this.proxyUrl}/api/third/getCenterNoSxPrivate?ticket=${ticketId}`).then((res) => {
  236 + console.log('通过ticket获取centerNo成功:', res)
  237 + if (res.data.code == 200) {
  238 + this.centerNo = res.data.message
  239 + localStorage.setItem('centerNo', res.data.message)
  240 + this.getUserInfo()
  241 + } else {
  242 + this.reLoad()
  243 + }
  244 + })
  245 + },
  246 + reLoad() {
  247 + console.log('reload')
  248 + const sUserAgent = window.navigator.userAgent.toLowerCase()
  249 + const dtdreamweb = sUserAgent.indexOf('dtdreamweb') > -1
  250 + const miniprogram = sUserAgent.indexOf('miniprogram') > -1 && sUserAgent.indexOf('alipay') > -1
  251 + if (localStorage.getItem('reloadCount') == 2) {
  252 + localStorage.setItem('reloadCount', 1)
  253 + ZWJSBridge.confirm({
  254 + title: '警告',
  255 + buttonLabels: ['重新载入'],
  256 + message: '用户身份验证失败,请重新加载',
  257 + }).then((res) => {
  258 + if (dtdreamweb) {
  259 + // alert('浙里办')
  260 + window.location.href = `https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=8301b7fe71594245b97560ff841db1f2`
  261 + } else if (miniprogram) {
  262 + // alert('支付宝')
  263 + window.location.href = `https://puser.zjzwfw.gov.cn/sso/alipay.do?action=ssoLogin&servicecode=8301b7fe71594245b97560ff841db1f2`
  264 + }
  265 + })
  266 + } else {
  267 + localStorage.setItem('reloadCount', 2)
  268 + if (dtdreamweb) {
  269 + // alert('浙里办')
  270 + window.location.href = `https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=8301b7fe71594245b97560ff841db1f2`
  271 + } else if (miniprogram) {
  272 + // alert('支付宝')
  273 + window.location.href = `https://puser.zjzwfw.gov.cn/sso/alipay.do?action=ssoLogin&servicecode=8301b7fe71594245b97560ff841db1f2`
  274 + }
  275 + }
  276 + },
  277 + // 获取用户信息
  278 + getUserInfo() {
  279 + this.centerNo = localStorage.getItem('centerNo')
  280 + // alert('getUserInfo:' + this.centerNo)
  281 + this.yxAxios.get(`${this.proxyUrl}/user/info/getPortalUserByNum?userNum=${localStorage.getItem('centerNo')}`).then((res) => {
  282 + console.log('获取用户信息getPortalUserByNum:', res)
  283 + if (res.data.code == 200) {
  284 + localStorage.setItem('userInfo', JSON.stringify(res.data.data.userInfo))
  285 + this.userInfo = res.data.data.userInfo
  286 + }
  287 + })
  288 + },
175 // 获取资讯 289 // 获取资讯
176 GetNewList() { 290 GetNewList() {
177 this.yxAxios.post(`${this.proxyUrl}/manage/info/content/listWithNoContent`, { pageNum: 1, pageSize: 5 }).then((res) => { 291 this.yxAxios.post(`${this.proxyUrl}/manage/info/content/listWithNoContent`, { pageNum: 1, pageSize: 5 }).then((res) => {
@@ -306,14 +420,13 @@ export default { @@ -306,14 +420,13 @@ export default {
306 }, 420 },
307 421
308 GetBannerList() { 422 GetBannerList() {
309 - var that = this  
310 this.http 423 this.http
311 .GetBannerList({ 424 .GetBannerList({
312 city: this.projectCity, 425 city: this.projectCity,
313 }) 426 })
314 - .then(function (res) { 427 + .then((res) => {
315 if (res.status == 1) { 428 if (res.status == 1) {
316 - that.swipeImgs = res.data 429 + this.swipeImgs = res.data
317 } 430 }
318 }) 431 })
319 }, 432 },
@@ -324,34 +437,35 @@ export default { @@ -324,34 +437,35 @@ export default {
324 this.$toast('请输入搜索内容') 437 this.$toast('请输入搜索内容')
325 } 438 }
326 }, 439 },
  440 +
327 // 获取用户信息 441 // 获取用户信息
328 - getUserInfo() {  
329 - let userInfo = sessionStorage.getItem('userInfo')  
330 - if (userInfo) {  
331 - this.userInfo = JSON.parse(userInfo) 442 + // getUserInfo() {
  443 + // let userInfo = sessionStorage.getItem('userInfo')
  444 + // if (userInfo) {
  445 + // this.userInfo = JSON.parse(userInfo)
332 446
333 - this.showData = true  
334 - this.GetStoryList()  
335 - } else {  
336 - this.$toast.loading({  
337 - message: '加载中...',  
338 - duration: 0,  
339 - forbidClick: true,  
340 - })  
341 - this.yxAxios.get(`${this.proxyUrl}/api/wx/wx1305e88d2bc74073/getUserInfo?unionId=${this.unionId}`).then((res) => {  
342 - this.$toast.clear()  
343 - if (res.data.data) {  
344 - this.showData = true  
345 - this.userInfo = res.data.data  
346 - this.GetStoryList()  
347 - sessionStorage.setItem('userInfo', JSON.stringify(res.data.data))  
348 - } else {  
349 - console.log('getUserInfo失败')  
350 - this.showData = true  
351 - }  
352 - })  
353 - }  
354 - }, 447 + // this.showData = true
  448 + // this.GetStoryList()
  449 + // } else {
  450 + // this.$toast.loading({
  451 + // message: '加载中...',
  452 + // duration: 0,
  453 + // forbidClick: true,
  454 + // })
  455 + // this.yxAxios.get(`${this.proxyUrl}/api/wx/wx1305e88d2bc74073/getUserInfo?unionId=${this.unionId}`).then((res) => {
  456 + // this.$toast.clear()
  457 + // if (res.data.data) {
  458 + // this.showData = true
  459 + // this.userInfo = res.data.data
  460 + // this.GetStoryList()
  461 + // sessionStorage.setItem('userInfo', JSON.stringify(res.data.data))
  462 + // } else {
  463 + // console.log('getUserInfo失败')
  464 + // this.showData = true
  465 + // }
  466 + // })
  467 + // }
  468 + // },
355 formatWeek(week) { 469 formatWeek(week) {
356 return week == 1 470 return week == 1
357 ? '周一' 471 ? '周一'
@@ -437,3 +551,32 @@ export default { @@ -437,3 +551,32 @@ export default {
437 551
438 } 552 }
439 </style> 553 </style>
  554 +<style lang="scss">
  555 +// 长辈版
  556 +.elder {
  557 + .home .type_box p {
  558 + font-size: 34px;
  559 + }
  560 + .home .qxy_box .qyx_title {
  561 + .title {
  562 + font-size: 44px;
  563 + }
  564 + .more {
  565 + font-size: 38px;
  566 + }
  567 + }
  568 + .abroad .uni_item_mini {
  569 + .course_content {
  570 + .title {
  571 + font-size: 36px;
  572 + }
  573 + .des {
  574 + font-size: 34px;
  575 + }
  576 + }
  577 + .img_box .bottom {
  578 + font-size: 32px;
  579 + }
  580 + }
  581 +}
  582 +</style>
src/views/Home/EditContact.vue
@@ -35,7 +35,7 @@ export default { @@ -35,7 +35,7 @@ export default {
35 } 35 }
36 }, 36 },
37 mounted () { 37 mounted () {
38 - let editContact = JSON.parse(sessionStorage.getItem('editContact')) 38 + let editContact = JSON.parse(localStorage.getItem('editContact'))
39 39
40 this.userType = editContact?.userType 40 this.userType = editContact?.userType
41 this.userTypeName = editContact?.userType == 1 ? '学生' : '家长' 41 this.userTypeName = editContact?.userType == 1 ? '学生' : '家长'
@@ -74,7 +74,7 @@ export default { @@ -74,7 +74,7 @@ export default {
74 this.$toast('请输入正确的身份证号') 74 this.$toast('请输入正确的身份证号')
75 return; 75 return;
76 } 76 }
77 - let userInfo = sessionStorage.getItem('userInfo') 77 + let userInfo = localStorage.getItem('userInfo')
78 userInfo = userInfo ? JSON.parse(userInfo) : userInfo; 78 userInfo = userInfo ? JSON.parse(userInfo) : userInfo;
79 let postData = { 79 let postData = {
80 userNum: this.travelerNum, 80 userNum: this.travelerNum,
src/views/Home/HomeYX.vue
@@ -12,15 +12,15 @@ @@ -12,15 +12,15 @@
12 {{ schoolNamesChoose.schoolName }}<img src="@/assets/yxCode/change.png" /> 12 {{ schoolNamesChoose.schoolName }}<img src="@/assets/yxCode/change.png" />
13 </div> 13 </div>
14 </div> 14 </div>
15 - <p class="phone">{{ userInfo ? userInfo.phone : '-' }}</p> 15 + <p class="phone">{{ phoneDesensitization(userInfo.phone, '*') }}</p>
16 </div> 16 </div>
17 </div> 17 </div>
18 - <HomeScan></HomeScan> 18 + <HomeScan v-if="!isWechat"></HomeScan>
19 </div> 19 </div>
20 </div> 20 </div>
21 <HomeOrder></HomeOrder> 21 <HomeOrder></HomeOrder>
22 <div class="function"> 22 <div class="function">
23 - <div class="item" @click="handleGroup"> 23 + <!-- <div class="item" @click="handleGroup">
24 <div class="left"> 24 <div class="left">
25 <van-icon class="icon" name="orders-o" /> 25 <van-icon class="icon" name="orders-o" />
26 <span>集团权限</span> 26 <span>集团权限</span>
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 <span>已认证</span> 30 <span>已认证</span>
31 <van-icon name="arrow" /> 31 <van-icon name="arrow" />
32 </div> 32 </div>
33 - </div> 33 + </div> -->
34 <div class="item" @click="handleMyCollect"> 34 <div class="item" @click="handleMyCollect">
35 <div class="left"> 35 <div class="left">
36 <van-icon class="icon" name="star-o" /> 36 <van-icon class="icon" name="star-o" />
@@ -45,13 +45,30 @@ @@ -45,13 +45,30 @@
45 </div> 45 </div>
46 <van-icon name="arrow" /> 46 <van-icon name="arrow" />
47 </div> 47 </div>
  48 + <div class="item" @click="handleClearCache">
  49 + <div class="left">
  50 + <van-icon class="icon" name="user-circle-o" />
  51 + <span>清除缓存</span>
  52 + </div>
  53 + <van-icon name="arrow" />
  54 + </div>
  55 + <div class="item" @click="handelElder">
  56 + <div class="left">
  57 + <van-icon class="icon" name="friends-o" />
  58 + <span>长辈版</span>
  59 + </div>
  60 + <p>
  61 + {{ isElder ? '已开启' : '未开启' }}
  62 + <van-icon name="arrow" />
  63 + </p>
  64 + </div>
48 </div> 65 </div>
49 <HomeChildList v-if="showChildList"></HomeChildList> 66 <HomeChildList v-if="showChildList"></HomeChildList>
50 - <Tabbar active="home"></Tabbar>  
51 67
52 - <van-popup style="background: transparent" get-container="body" v-model="showSchool"> 68 + <!-- <van-popup style="background: transparent" get-container="body" v-model="showSchool">
53 <group-penson @closeJT="closeJT"></group-penson> 69 <group-penson @closeJT="closeJT"></group-penson>
54 - </van-popup> 70 + </van-popup> -->
  71 + <tabbar active="home"></tabbar>
55 </div> 72 </div>
56 </template> 73 </template>
57 74
@@ -64,109 +81,133 @@ import groupPenson from &#39;@/views/Travel/component/groupPenson&#39; @@ -64,109 +81,133 @@ import groupPenson from &#39;@/views/Travel/component/groupPenson&#39;
64 export default { 81 export default {
65 data() { 82 data() {
66 return { 83 return {
67 - navActive: 5,  
68 - userInfo: '', 84 + centerNo: '',
  85 + userInfo: {
  86 + openId: '',
  87 + headImg: '',
  88 + nickName: '',
  89 + phone: '',
  90 + roleType: '',
  91 + time: '',
  92 + year: '',
  93 + studentName: '',
  94 + school: '',
  95 + },
69 nicknameUser: '', 96 nicknameUser: '',
70 headImgUrl: '', 97 headImgUrl: '',
71 defaultHead: require('@/assets/home/head.png'), 98 defaultHead: require('@/assets/home/head.png'),
72 isShow: false, 99 isShow: false,
73 - appId: 'wx1305e88d2bc74073', //绍兴研学 100 + isElder: false,
74 showChildList: false, 101 showChildList: false,
75 showSchool: false, 102 showSchool: false,
76 schoolNamesChoose: '', 103 schoolNamesChoose: '',
77 - //集团认证  
78 - auth: false, 104 + isWechat: false,
79 } 105 }
80 }, 106 },
81 107
82 mounted() { 108 mounted() {
83 - let code = this.getQueryVariable('code')  
84 - sessionStorage.setItem('prePage', 'HomeYX')  
85 - let openid = sessionStorage.getItem('openId')  
86 - let schoolNamesChoose = sessionStorage.getItem('schoolNamesChoose') 109 + const isElder = localStorage.getItem('isElder')
  110 + if (isElder) {
  111 + this.isElder = true
  112 + }
  113 +
  114 + let schoolNamesChoose = localStorage.getItem('schoolNamesChoose')
87 if (schoolNamesChoose) { 115 if (schoolNamesChoose) {
88 this.schoolNamesChoose = JSON.parse(schoolNamesChoose) 116 this.schoolNamesChoose = JSON.parse(schoolNamesChoose)
89 } 117 }
90 - this.headImgUrl = sessionStorage.getItem('headImgUrl')  
91 - this.nicknameUser = sessionStorage.getItem('nicknameUser')  
92 - if (process.env.NODE_ENV === 'production' && this.common.isWeiXin()) {  
93 - if (!openid) {  
94 - this.$router.push({ name: 'Authorize' })  
95 - } else {  
96 - this.getUserInfo()  
97 - }  
98 - } else {  
99 - sessionStorage.setItem('unionId', this.DevUnionId)  
100 - this.getUserInfo() 118 + let isWechat = localStorage.getItem('isWechat')
  119 + if (isWechat == 1) {
  120 + this.isWechat = true
101 } 121 }
  122 + this.centerNo = localStorage.getItem('centerNo')
  123 + this.getUserInfo()
102 this.againRZ() 124 this.againRZ()
103 }, 125 },
  126 + computed: {
  127 + schoolNames() {
  128 + return this.$store.state.schoolName
  129 + },
  130 + },
104 methods: { 131 methods: {
105 // 集团认证 132 // 集团认证
106 handleGroup() { 133 handleGroup() {
107 - let isLogin = this.checkLogin()  
108 - if (!isLogin) return  
109 - this.getRZ()  
110 - // this.$toast('暂未开放,敬请期待!'); 134 + this.$toast('暂未开放,敬请期待!')
111 }, 135 },
112 - // 子组件调用  
113 - complete() {  
114 - this.getUserInfo()  
115 - },  
116 - // 获取用户信息  
117 - getUserInfo() {  
118 - let userInfo = sessionStorage.getItem('userInfo')  
119 - if (userInfo) {  
120 - this.userInfo = JSON.parse(userInfo)  
121 - this.auth = this.userInfo.auth  
122 -  
123 - this.showChildList = true 136 + // 点击长辈版
  137 + handelElder() {
  138 + if (this.isElder) {
  139 + this.$dialog
  140 + .confirm({
  141 + title: '长辈版',
  142 + message: '超大字号,看的更清楚,长辈版,专为长辈设计',
  143 + confirmButtonColor: '#ee0a24',
  144 + confirmButtonText: '关闭长辈版模式',
  145 + })
  146 + .then(() => {
  147 + // on confirm
  148 + this.isElder = false
  149 + localStorage.removeItem('isElder')
  150 + this.$emit('setElder', false)
  151 + })
  152 + .catch(() => {
  153 + // on cancel
  154 + })
124 } else { 155 } else {
125 - this.$toast.loading({  
126 - message: '加载中...',  
127 - duration: 0,  
128 - forbidClick: true,  
129 - })  
130 - this.yxAxios  
131 - .get(`${this.baseUrl}/prod/api/wx/${this.appId}/getUserInfo?unionId=${sessionStorage.getItem('unionId')}`)  
132 - .then((res) => {  
133 - this.$toast.clear()  
134 - if (res.data.code == 200) {  
135 - let userInfo = res.data.data  
136 - this.userInfo = userInfo  
137 - sessionStorage.setItem('userInfo', JSON.stringify(userInfo))  
138 -  
139 - if (res.data.data.schoolNames || res.data.data.schoolNames == [] || res.data.data.schoolNames == 'null') {  
140 - sessionStorage.setItem('schoolNames', JSON.stringify(res.data.data.schoolNames))  
141 - this.$store.commit('changeSchool', res.data.data.schoolNames)  
142 - if (!sessionStorage.getItem('schoolNamesChoose')) {  
143 - sessionStorage.setItem('schoolNamesChoose', JSON.stringify(res.data.data.schoolNames[0]))  
144 - this.schoolNamesChoose = res.data.data.schoolNames[0]  
145 - }  
146 - } else {  
147 - sessionStorage.setItem('schoolNames', [])  
148 - this.$store.commit('changeSchool', [])  
149 - }  
150 - this.auth = userInfo.auth  
151 - }  
152 - this.showChildList = true 156 + this.$dialog
  157 + .confirm({
  158 + title: '长辈版',
  159 + message: '超大字号,看的更清楚,长辈版,专为长辈设计',
  160 + confirmButtonColor: '#3385FF',
  161 + confirmButtonText: '开启长辈版模式',
  162 + })
  163 + .then(() => {
  164 + // on confirm
  165 + this.isElder = true
  166 + localStorage.setItem('isElder', 1)
  167 + this.$emit('setElder', true)
  168 + })
  169 + .catch(() => {
  170 + // on cancel
153 }) 171 })
154 } 172 }
155 }, 173 },
156 - // 判断是否已登录  
157 - checkLogin() {  
158 - if (process.env.NODE_ENV != 'production') return true  
159 - const userInfo = JSON.parse(sessionStorage.getItem('userInfo'))  
160 - if (!userInfo?.phone) {  
161 - sessionStorage.setItem('prePage', 'HomeYX')  
162 - sessionStorage.setItem('prePageQuery', JSON.stringify({ showTab: this.$route.query.showTab }))  
163 - this.$router.push({ name: 'LoginPublic' })  
164 - return false  
165 - } else if (sessionStorage.getItem('schoolNames') == 'undefined' || !sessionStorage.getItem('schoolNames')) {  
166 - this.$emit('openSchool')  
167 - return false  
168 - }  
169 - return true 174 + // 清除缓存
  175 + handleClearCache() {
  176 + this.$toast.loading({
  177 + message: '清除成功,正在重新登录',
  178 + duration: 1000,
  179 + forbidClick: true,
  180 + })
  181 + localStorage.removeItem('schoolNamesChoose')
  182 + localStorage.removeItem('schoolNames')
  183 + localStorage.removeItem('centerNo')
  184 + setTimeout(() => {
  185 + this.$router.replace({ path: '/' })
  186 + }, 1000)
  187 + },
  188 + // 获取用户信息
  189 + getUserInfo() {
  190 + this.yxAxios.get(`${this.proxyUrl}/user/info/getPortalUserByNum?userNum=${this.centerNo}`).then((res) => {
  191 + console.log('获取用户信息getPortalUserByNum:', res)
  192 + if (res.data.code == 200) {
  193 + let userInfo = res.data.data.userInfo
  194 + this.userInfo = userInfo
  195 + localStorage.setItem('userInfo', JSON.stringify(userInfo))
  196 + if (userInfo.schoolNames || userInfo.schoolNames == [] || userInfo.schoolNames == 'null') {
  197 + userInfo.schoolNames = userInfo.schoolNames.filter((n) => n)
  198 + localStorage.setItem('schoolNames', JSON.stringify(userInfo.schoolNames))
  199 + this.$store.commit('changeSchool', userInfo.schoolNames)
  200 + if (!localStorage.getItem('schoolNamesChoose') || localStorage.getItem('schoolNamesChoose') == 'null') {
  201 + localStorage.setItem('schoolNamesChoose', JSON.stringify(userInfo.schoolNames[0]))
  202 + this.schoolNamesChoose = userInfo.schoolNames[0]
  203 + }
  204 + } else {
  205 + localStorage.setItem('schoolNames', [])
  206 + this.$store.commit('changeSchool', [])
  207 + }
  208 + }
  209 + this.showChildList = true
  210 + })
170 }, 211 },
171 formatterTime(time) { 212 formatterTime(time) {
172 if (time) { 213 if (time) {
@@ -175,21 +216,8 @@ export default { @@ -175,21 +216,8 @@ export default {
175 return '' 216 return ''
176 } 217 }
177 }, 218 },
178 - // 获取链接参数  
179 - getQueryVariable(variable) {  
180 - // 取地址栏参数  
181 - var query = window.location.search.substr(1)  
182 - if (!query && window.location.hash.indexOf('?') > -1) {  
183 - query = window.location.hash.split('?')[1]  
184 - }  
185 - var vars = query.split('&')  
186 - for (var i = 0; i < vars.length; i++) {  
187 - var pair = vars[i].split('=')  
188 - if (pair[0] === variable) {  
189 - return pair[1]  
190 - }  
191 - }  
192 - return false 219 + complete() {
  220 + this.getUserInfo()
193 }, 221 },
194 //切换学校 222 //切换学校
195 changeSchool() { 223 changeSchool() {
@@ -202,39 +230,44 @@ export default { @@ -202,39 +230,44 @@ export default {
202 }, 230 },
203 //查看是否有集团认证 231 //查看是否有集团认证
204 getRZ() { 232 getRZ() {
205 - if (this.auth) {  
206 - //已认证  
207 - this.$router.push({ name: 'schoolAttestation' })  
208 - } else {  
209 - this.showSchool = true  
210 - } 233 + // this.showSchool = true
  234 + this.$router.push({ name: 'schoolAttestation' })
211 }, 235 },
212 //回跳重新认证 236 //回跳重新认证
213 againRZ() { 237 againRZ() {
214 - let backRZ = sessionStorage.getItem('backRZ') 238 + let backRZ = localStorage.getItem('backRZ')
215 if (backRZ == 'true') { 239 if (backRZ == 'true') {
216 this.showSchool = true 240 this.showSchool = true
217 - sessionStorage.setItem('backRZ', false) 241 + localStorage.setItem('backRZ', false)
  242 + }
  243 + },
  244 + /**手机号码脱敏处理
  245 + * @method phoneDesensitization
  246 + * @param {String} phone 需要处理的手机号码
  247 + * @param {String} char 脱敏替换的字符
  248 + * @return {String} 脱敏处理后的手机号码
  249 + */
  250 + phoneDesensitization(phone, char) {
  251 + if (phone) {
  252 + return phone.replace(/(\d{3})\d*(\d{4})/, `$1${new Array(5).join(char)}$2`)
  253 + } else {
  254 + return ''
218 } 255 }
219 }, 256 },
220 // 我的收藏 257 // 我的收藏
221 handleMyCollect() { 258 handleMyCollect() {
222 - let isLogin = this.checkLogin()  
223 - if (!isLogin) return  
224 this.$router.push({ name: 'MyCollect' }) 259 this.$router.push({ name: 'MyCollect' })
225 }, 260 },
226 // 意见反馈 261 // 意见反馈
227 handleFeedbook() { 262 handleFeedbook() {
228 // this.$toast('暂未开放,敬请期待!'); 263 // this.$toast('暂未开放,敬请期待!');
229 - let isLogin = this.checkLogin()  
230 - if (!isLogin) return  
231 this.$router.push({ name: 'FeedbookList' }) 264 this.$router.push({ name: 'FeedbookList' })
232 }, 265 },
233 }, 266 },
234 components: { 267 components: {
  268 + Tabbar,
235 HomeChildList, 269 HomeChildList,
236 HomeOrder, 270 HomeOrder,
237 - Tabbar,  
238 HomeScan, 271 HomeScan,
239 groupPenson, 272 groupPenson,
240 }, 273 },
@@ -372,3 +405,39 @@ p { @@ -372,3 +405,39 @@ p {
372 z-index: 99; 405 z-index: 99;
373 } 406 }
374 </style> 407 </style>
  408 +<style lang="scss">
  409 +.elder {
  410 + .home {
  411 + .infomation .top .right {
  412 + .name {
  413 + font-size: 44px;
  414 + .school {
  415 + font-size: 34px;
  416 + }
  417 + }
  418 + .phone {
  419 + font-size: 44px;
  420 + }
  421 + }
  422 + .function .item .left span {
  423 + font-size: 40px;
  424 + }
  425 + }
  426 + .home_order {
  427 + .top p {
  428 + font-size: 40px;
  429 + }
  430 + .icon_box p {
  431 + font-size: 40px;
  432 + }
  433 + }
  434 + .home_child_list .stu_info {
  435 + .title p {
  436 + font-size: 40px;
  437 + }
  438 + .item {
  439 + font-size: 34px;
  440 + }
  441 + }
  442 +}
  443 +</style>
src/views/Home/LoginPublic.vue
@@ -53,8 +53,8 @@ export default { @@ -53,8 +53,8 @@ export default {
53 } 53 }
54 }, 54 },
55 mounted () { 55 mounted () {
56 - this.openId = sessionStorage.getItem('openId');  
57 - this.unionId = sessionStorage.getItem('unionId'); 56 + this.openId = localStorage.getItem('openId');
  57 + this.unionId = localStorage.getItem('unionId');
58 if (process.env.NODE_ENV === "production"&&this.common.isWeiXin()) { 58 if (process.env.NODE_ENV === "production"&&this.common.isWeiXin()) {
59 if (!this.openId) { 59 if (!this.openId) {
60 this.$router.push({ name: 'Authorize' }) 60 this.$router.push({ name: 'Authorize' })
@@ -168,20 +168,20 @@ export default { @@ -168,20 +168,20 @@ export default {
168 this.yxAxios.get(`${this.baseUrl}/prod/api/wx/${this.appId}/getUserInfo?unionId=${this.unionId}`).then((res) => { 168 this.yxAxios.get(`${this.baseUrl}/prod/api/wx/${this.appId}/getUserInfo?unionId=${this.unionId}`).then((res) => {
169 this.$toast.clear() 169 this.$toast.clear()
170 if (res.data.code == 200) { 170 if (res.data.code == 200) {
171 - sessionStorage.setItem('userInfo', JSON.stringify(res.data.data)) 171 + localStorage.setItem('userInfo', JSON.stringify(res.data.data))
172 172
173 if(res.data.data.schoolNames || res.data.data.schoolNames == [] || res.data.data.schoolNames == 'null') { 173 if(res.data.data.schoolNames || res.data.data.schoolNames == [] || res.data.data.schoolNames == 'null') {
174 - sessionStorage.setItem('schoolNames',JSON.stringify(res.data.data.schoolNames)) 174 + localStorage.setItem('schoolNames',JSON.stringify(res.data.data.schoolNames))
175 this.$store.commit('changeSchool', res.data.data.schoolNames) 175 this.$store.commit('changeSchool', res.data.data.schoolNames)
176 - if(!sessionStorage.getItem('schoolNamesChoose')) {  
177 - sessionStorage.setItem('schoolNamesChoose',res.data.data.schoolNames[0]) 176 + if(!localStorage.getItem('schoolNamesChoose')) {
  177 + localStorage.setItem('schoolNamesChoose',res.data.data.schoolNames[0])
178 } 178 }
179 }else { 179 }else {
180 - sessionStorage.setItem('schoolNames',[]) 180 + localStorage.setItem('schoolNames',[])
181 this.$store.commit('changeSchool', []) 181 this.$store.commit('changeSchool', [])
182 } 182 }
183 - let prePage = sessionStorage.getItem('prePage');  
184 - let prePageQuery = sessionStorage.getItem('prePageQuery'); 183 + let prePage = localStorage.getItem('prePage');
  184 + let prePageQuery = localStorage.getItem('prePageQuery');
185 if (prePage) { 185 if (prePage) {
186 this.$router.push({ name: prePage, query: JSON.parse(prePageQuery) }) 186 this.$router.push({ name: prePage, query: JSON.parse(prePageQuery) })
187 } 187 }
src/views/Home/MyCollect.vue
@@ -30,7 +30,7 @@ export default { @@ -30,7 +30,7 @@ export default {
30 }, 30 },
31 methods: { 31 methods: {
32 getMyCollect() { 32 getMyCollect() {
33 - const userInfo = JSON.parse(sessionStorage.getItem('userInfo')) 33 + const userInfo = JSON.parse(localStorage.getItem('userInfo'))
34 this.yxAxios 34 this.yxAxios
35 .post(`${this.proxyUrl}/api/product/getMyCollect`, { 35 .post(`${this.proxyUrl}/api/product/getMyCollect`, {
36 centerNo: userInfo.centerNo, 36 centerNo: userInfo.centerNo,
@@ -62,7 +62,7 @@ export default { @@ -62,7 +62,7 @@ export default {
62 } 62 }
63 }, 63 },
64 handleCourse(item) { 64 handleCourse(item) {
65 - this.$router.push({ name: 'ServiceAbroadDetail', query: { courseId: item.productId, publicName: sessionStorage.getItem('publicName') } }) 65 + this.$router.push({ name: 'ServiceAbroadDetail', query: { courseId: item.productId, publicName: localStorage.getItem('publicName') } })
66 }, 66 },
67 // 点击按钮取消收藏 67 // 点击按钮取消收藏
68 deleteCollect(index) { 68 deleteCollect(index) {
@@ -76,7 +76,7 @@ export default { @@ -76,7 +76,7 @@ export default {
76 }, 76 },
77 // 取消收藏 77 // 取消收藏
78 cancelCollect(index) { 78 cancelCollect(index) {
79 - const userInfo = JSON.parse(sessionStorage.getItem('userInfo')) 79 + const userInfo = JSON.parse(localStorage.getItem('userInfo'))
80 this.yxAxios 80 this.yxAxios
81 .post(`${this.proxyUrl}//api/product/cancelCollect`, { 81 .post(`${this.proxyUrl}//api/product/cancelCollect`, {
82 centerNo: userInfo.centerNo, 82 centerNo: userInfo.centerNo,
src/views/Home/SelectContact.vue
@@ -54,7 +54,7 @@ export default { @@ -54,7 +54,7 @@ export default {
54 duration: 0, 54 duration: 0,
55 forbidClick: true 55 forbidClick: true
56 }) 56 })
57 - const userInfo = JSON.parse(sessionStorage.getItem('userInfo')) 57 + const userInfo = JSON.parse(localStorage.getItem('userInfo'))
58 this.yxAxios.get(`${this.baseUrl}/prod/user/info/getPortalUserByNum?userNum=${userInfo.centerNo}`).then((res) => { 58 this.yxAxios.get(`${this.baseUrl}/prod/user/info/getPortalUserByNum?userNum=${userInfo.centerNo}`).then((res) => {
59 this.$toast.clear() 59 this.$toast.clear()
60 if (res.data.code == 200) { 60 if (res.data.code == 200) {
@@ -84,7 +84,7 @@ export default { @@ -84,7 +84,7 @@ export default {
84 travelerName: contactItem.travelerName, 84 travelerName: contactItem.travelerName,
85 gender: contactItem.gender, 85 gender: contactItem.gender,
86 } 86 }
87 - sessionStorage.setItem('editContact', JSON.stringify(editContact)) 87 + localStorage.setItem('editContact', JSON.stringify(editContact))
88 this.$router.push({ name: 'EditContact' }) 88 this.$router.push({ name: 'EditContact' })
89 }, 89 },
90 // 添加家长 90 // 添加家长
@@ -135,7 +135,7 @@ export default { @@ -135,7 +135,7 @@ export default {
135 return; 135 return;
136 } 136 }
137 // console.log(selectedArr) 137 // console.log(selectedArr)
138 - sessionStorage.setItem('selectedContactArr', JSON.stringify(selectedArr)) 138 + localStorage.setItem('selectedContactArr', JSON.stringify(selectedArr))
139 this.$router.back() 139 this.$router.back()
140 } 140 }
141 }, 141 },
src/views/Home/ServiceOrder.vue
@@ -313,11 +313,11 @@ export default { @@ -313,11 +313,11 @@ export default {
313 }, 313 },
314 computed: { 314 computed: {
315 nicknameUser() { 315 nicknameUser() {
316 - return sessionStorage.getItem('nicknameUser') 316 + return localStorage.getItem('nicknameUser')
317 }, 317 },
318 }, 318 },
319 mounted() { 319 mounted() {
320 - let userInfo = sessionStorage.getItem('userInfo') 320 + let userInfo = localStorage.getItem('userInfo')
321 if (userInfo) { 321 if (userInfo) {
322 this.userInfo = JSON.parse(userInfo) 322 this.userInfo = JSON.parse(userInfo)
323 } 323 }
@@ -484,7 +484,7 @@ export default { @@ -484,7 +484,7 @@ export default {
484 }, 484 },
485 //评价 485 //评价
486 evaluate(item) { 486 evaluate(item) {
487 - window.sessionStorage.setItem('courseInfo', JSON.stringify(item)) 487 + window.localStorage.setItem('courseInfo', JSON.stringify(item))
488 this.$router.push({ name: 'evaluatePubilc' }) 488 this.$router.push({ name: 'evaluatePubilc' })
489 }, 489 },
490 //核销码 490 //核销码
src/views/Home/StudentDetail.vue
@@ -89,7 +89,7 @@ export default { @@ -89,7 +89,7 @@ export default {
89 } 89 }
90 }, 90 },
91 mounted () { 91 mounted () {
92 - let studentInfo = sessionStorage.getItem('StudentDetialInfo') 92 + let studentInfo = localStorage.getItem('StudentDetialInfo')
93 this.studentInfo = JSON.parse(studentInfo) 93 this.studentInfo = JSON.parse(studentInfo)
94 this.$nextTick(() => { 94 this.$nextTick(() => {
95 if (!this.studentInfo?.travelerNum) { 95 if (!this.studentInfo?.travelerNum) {
@@ -182,7 +182,7 @@ export default { @@ -182,7 +182,7 @@ export default {
182 evaluateCourse(item){ 182 evaluateCourse(item){
183 let courseInfo = item; 183 let courseInfo = item;
184 courseInfo.id = courseInfo.orderId 184 courseInfo.id = courseInfo.orderId
185 - window.sessionStorage.setItem('courseInfo', JSON.stringify(courseInfo)) 185 + window.localStorage.setItem('courseInfo', JSON.stringify(courseInfo))
186 this.$router.push({ name: 'evaluateCourse'}) 186 this.$router.push({ name: 'evaluateCourse'})
187 }, 187 },
188 // 基地评价详情 188 // 基地评价详情
src/views/Home/YanxueCode.vue
@@ -38,7 +38,7 @@ export default { @@ -38,7 +38,7 @@ export default {
38 } 38 }
39 }, 39 },
40 mounted () { 40 mounted () {
41 - this.studentInfo = JSON.parse(sessionStorage.getItem('bindYanxueCodeChildInfo')); 41 + this.studentInfo = JSON.parse(localStorage.getItem('bindYanxueCodeChildInfo'));
42 this.creatQrCode() 42 this.creatQrCode()
43 }, 43 },
44 methods: { 44 methods: {
src/views/Home/YanxueInfo.vue
@@ -22,7 +22,7 @@ export default { @@ -22,7 +22,7 @@ export default {
22 }, 22 },
23 created () { 23 created () {
24 24
25 - let studentInfo = JSON.parse(sessionStorage.getItem('bindYanxueCodeChildInfo')); 25 + let studentInfo = JSON.parse(localStorage.getItem('bindYanxueCodeChildInfo'));
26 this.userNum = studentInfo.travelerNum 26 this.userNum = studentInfo.travelerNum
27 this.school = studentInfo.schoolName 27 this.school = studentInfo.schoolName
28 this.name = studentInfo.travelerName 28 this.name = studentInfo.travelerName
src/views/Home/component/AddChildPopupGroup.vue
@@ -282,7 +282,7 @@ export default { @@ -282,7 +282,7 @@ export default {
282 }, 282 },
283 283
284 mounted () { 284 mounted () {
285 - let userInfo = sessionStorage.getItem('userInfo') 285 + let userInfo = localStorage.getItem('userInfo')
286 this.userInfo = JSON.parse(userInfo); 286 this.userInfo = JSON.parse(userInfo);
287 this.initYearArr() 287 this.initYearArr()
288 this.GetSysAreaList() 288 this.GetSysAreaList()
src/views/Home/component/HomeChildList.vue
@@ -55,7 +55,7 @@ export default { @@ -55,7 +55,7 @@ export default {
55 }, 55 },
56 // 进入学生详情页 56 // 进入学生详情页
57 handleStudentDetail (index) { 57 handleStudentDetail (index) {
58 - sessionStorage.setItem('StudentDetialInfo', JSON.stringify(this.childList[index])) 58 + localStorage.setItem('StudentDetialInfo', JSON.stringify(this.childList[index]))
59 this.$router.push({ name: 'GrowUpRecord' }) 59 this.$router.push({ name: 'GrowUpRecord' })
60 }, 60 },
61 // 获取孩子列表 61 // 获取孩子列表
@@ -65,7 +65,7 @@ export default { @@ -65,7 +65,7 @@ export default {
65 duration: 0, 65 duration: 0,
66 forbidClick: true 66 forbidClick: true
67 }) 67 })
68 - let userInfo = sessionStorage.getItem('userInfo'); 68 + let userInfo = localStorage.getItem('userInfo');
69 userInfo = JSON.parse(userInfo) 69 userInfo = JSON.parse(userInfo)
70 this.yxAxios.get(`${this.baseUrl}/prod/user/info/getPortalUserByNum?userNum=${userInfo?.centerNo}`).then((res) => { 70 this.yxAxios.get(`${this.baseUrl}/prod/user/info/getPortalUserByNum?userNum=${userInfo?.centerNo}`).then((res) => {
71 this.$toast.clear() 71 this.$toast.clear()
@@ -73,14 +73,14 @@ export default { @@ -73,14 +73,14 @@ export default {
73 const userInfo = res.data.data.userInfo 73 const userInfo = res.data.data.userInfo
74 this.childList = userInfo.subUsers 74 this.childList = userInfo.subUsers
75 if (userInfo.schoolNames || userInfo.schoolNames == [] || userInfo.schoolNames == 'null') { 75 if (userInfo.schoolNames || userInfo.schoolNames == [] || userInfo.schoolNames == 'null') {
76 - sessionStorage.setItem('schoolNames', JSON.stringify(userInfo.schoolNames)) 76 + localStorage.setItem('schoolNames', JSON.stringify(userInfo.schoolNames))
77 this.$store.commit('changeSchool', userInfo.schoolNames) 77 this.$store.commit('changeSchool', userInfo.schoolNames)
78 console.log('555',userInfo.schoolNames) 78 console.log('555',userInfo.schoolNames)
79 - if (!sessionStorage.getItem('schoolNamesChoose')) {  
80 - sessionStorage.setItem('schoolNamesChoose', JSON.stringify(userInfo.schoolNames[0])) 79 + if (!localStorage.getItem('schoolNamesChoose')) {
  80 + localStorage.setItem('schoolNamesChoose', JSON.stringify(userInfo.schoolNames[0]))
81 } 81 }
82 } else { 82 } else {
83 - sessionStorage.setItem('schoolNames', []) 83 + localStorage.setItem('schoolNames', [])
84 this.$store.commit('changeSchool', []) 84 this.$store.commit('changeSchool', [])
85 } 85 }
86 } 86 }
@@ -99,10 +99,10 @@ export default { @@ -99,10 +99,10 @@ export default {
99 // 判断是否已登录 99 // 判断是否已登录
100 checkLogin () { 100 checkLogin () {
101 if (process.env.NODE_ENV != "production") return true; 101 if (process.env.NODE_ENV != "production") return true;
102 - const userInfo = JSON.parse(sessionStorage.getItem('userInfo')) 102 + const userInfo = JSON.parse(localStorage.getItem('userInfo'))
103 if (!userInfo?.phone) { 103 if (!userInfo?.phone) {
104 - sessionStorage.setItem('prePage', 'Home');  
105 - sessionStorage.setItem('prePageQuery', JSON.stringify({ showTab: this.$route.query.showTab })); 104 + localStorage.setItem('prePage', 'Home');
  105 + localStorage.setItem('prePageQuery', JSON.stringify({ showTab: this.$route.query.showTab }));
106 this.$router.push({ name: 'LoginPublic' }) 106 this.$router.push({ name: 'LoginPublic' })
107 return false; 107 return false;
108 } 108 }
src/views/Home/component/HomeScan.vue
@@ -25,10 +25,10 @@ export default { @@ -25,10 +25,10 @@ export default {
25 // 判断是否已登录 25 // 判断是否已登录
26 checkLogin () { 26 checkLogin () {
27 if (process.env.NODE_ENV != "production") return true; 27 if (process.env.NODE_ENV != "production") return true;
28 - const userInfo = JSON.parse(sessionStorage.getItem('userInfo')) 28 + const userInfo = JSON.parse(localStorage.getItem('userInfo'))
29 if (!userInfo?.phone) { 29 if (!userInfo?.phone) {
30 - sessionStorage.setItem('prePage', 'Home');  
31 - sessionStorage.setItem('prePageQuery', JSON.stringify({ showTab: this.$route.query.showTab })); 30 + localStorage.setItem('prePage', 'Home');
  31 + localStorage.setItem('prePageQuery', JSON.stringify({ showTab: this.$route.query.showTab }));
32 this.$router.push({ name: 'LoginPublic' }) 32 this.$router.push({ name: 'LoginPublic' })
33 return false; 33 return false;
34 } 34 }
src/views/Home/evaluateBase.vue
@@ -63,11 +63,11 @@ export default { @@ -63,11 +63,11 @@ export default {
63 imgCut 63 imgCut
64 }, 64 },
65 mounted () { 65 mounted () {
66 - var userInfo = window.sessionStorage.getItem('userInfo'); 66 + var userInfo = window.localStorage.getItem('userInfo');
67 if (userInfo) { 67 if (userInfo) {
68 this.userInfo = JSON.parse(userInfo); 68 this.userInfo = JSON.parse(userInfo);
69 } 69 }
70 - let studentInfo = sessionStorage.getItem('StudentDetialInfo') 70 + let studentInfo = localStorage.getItem('StudentDetialInfo')
71 this.studentInfo = JSON.parse(studentInfo) 71 this.studentInfo = JSON.parse(studentInfo)
72 this.baseId = this.$route.query.baseId 72 this.baseId = this.$route.query.baseId
73 this.signId = this.$route.query.signId 73 this.signId = this.$route.query.signId
src/views/Home/evaluateCourse.vue
@@ -67,11 +67,11 @@ export default { @@ -67,11 +67,11 @@ export default {
67 imgCut 67 imgCut
68 }, 68 },
69 mounted () { 69 mounted () {
70 - var userInfo = window.sessionStorage.getItem('userInfo'); 70 + var userInfo = window.localStorage.getItem('userInfo');
71 if (userInfo) { 71 if (userInfo) {
72 this.userInfo = JSON.parse(userInfo); 72 this.userInfo = JSON.parse(userInfo);
73 } 73 }
74 - var courseInfo = window.sessionStorage.getItem('courseInfo'); 74 + var courseInfo = window.localStorage.getItem('courseInfo');
75 if (courseInfo) { 75 if (courseInfo) {
76 this.courseInfo = JSON.parse(courseInfo); 76 this.courseInfo = JSON.parse(courseInfo);
77 } 77 }
src/views/Home/evaluateDetail.vue
@@ -80,7 +80,7 @@ export default { @@ -80,7 +80,7 @@ export default {
80 } 80 }
81 this.getEvaluationDetail() 81 this.getEvaluationDetail()
82 82
83 - var courseInfo = window.sessionStorage.getItem('courseInfo'); 83 + var courseInfo = window.localStorage.getItem('courseInfo');
84 if (courseInfo) { 84 if (courseInfo) {
85 this.courseInfo = JSON.parse(courseInfo); 85 this.courseInfo = JSON.parse(courseInfo);
86 } 86 }
src/views/MyClassList.vue
@@ -72,12 +72,12 @@ export default { @@ -72,12 +72,12 @@ export default {
72 } 72 }
73 }, 73 },
74 mounted() { 74 mounted() {
75 - var userInfo = sessionStorage.getItem('userInfo') 75 + var userInfo = localStorage.getItem('userInfo')
76 if (userInfo) { 76 if (userInfo) {
77 this.userInfo = JSON.parse(userInfo) 77 this.userInfo = JSON.parse(userInfo)
78 } 78 }
79 // 选择的出行人 79 // 选择的出行人
80 - let selectedContactArr = sessionStorage.getItem('selectedContactArr') 80 + let selectedContactArr = localStorage.getItem('selectedContactArr')
81 if (selectedContactArr) { 81 if (selectedContactArr) {
82 selectedContactArr = JSON.parse(selectedContactArr) 82 selectedContactArr = JSON.parse(selectedContactArr)
83 this.selectedContact = selectedContactArr[0] 83 this.selectedContact = selectedContactArr[0]
src/views/MyCollection.vue
@@ -42,7 +42,7 @@ export default { @@ -42,7 +42,7 @@ export default {
42 } 42 }
43 }, 43 },
44 created() { 44 created() {
45 - var userInfo = sessionStorage.getItem('userInfo') 45 + var userInfo = localStorage.getItem('userInfo')
46 if (userInfo) { 46 if (userInfo) {
47 this.userInfo = JSON.parse(userInfo) 47 this.userInfo = JSON.parse(userInfo)
48 } 48 }
src/views/ReleaseEvaluate.vue
@@ -53,11 +53,11 @@ export default { @@ -53,11 +53,11 @@ export default {
53 imgCut, 53 imgCut,
54 }, 54 },
55 created() { 55 created() {
56 - var userInfo = sessionStorage.getItem('userInfo') 56 + var userInfo = localStorage.getItem('userInfo')
57 if (userInfo) { 57 if (userInfo) {
58 this.userInfo = JSON.parse(userInfo) 58 this.userInfo = JSON.parse(userInfo)
59 } 59 }
60 - var courseInfo = sessionStorage.getItem('YXNowCourse') 60 + var courseInfo = localStorage.getItem('YXNowCourse')
61 if (courseInfo) { 61 if (courseInfo) {
62 this.courseInfo = JSON.parse(courseInfo) 62 this.courseInfo = JSON.parse(courseInfo)
63 } 63 }
src/views/ReleaseStory.vue
@@ -46,11 +46,11 @@ export default { @@ -46,11 +46,11 @@ export default {
46 }, 46 },
47 created() { 47 created() {
48 var that = this 48 var that = this
49 - var userInfo = sessionStorage.getItem('userInfo') 49 + var userInfo = localStorage.getItem('userInfo')
50 if (userInfo) { 50 if (userInfo) {
51 this.userInfo = JSON.parse(userInfo) 51 this.userInfo = JSON.parse(userInfo)
52 } 52 }
53 - var courseInfo = sessionStorage.getItem('YXNowCourse') 53 + var courseInfo = localStorage.getItem('YXNowCourse')
54 if (courseInfo) { 54 if (courseInfo) {
55 this.courseInfo = JSON.parse(courseInfo) 55 this.courseInfo = JSON.parse(courseInfo)
56 } 56 }
src/views/SearchDetail.vue
@@ -97,7 +97,7 @@ export default { @@ -97,7 +97,7 @@ export default {
97 } 97 }
98 }, 98 },
99 created() { 99 created() {
100 - var userInfo = sessionStorage.getItem('userInfo') 100 + var userInfo = localStorage.getItem('userInfo')
101 if (userInfo) { 101 if (userInfo) {
102 this.userInfo = JSON.parse(userInfo) 102 this.userInfo = JSON.parse(userInfo)
103 } 103 }
src/views/Service/AbroadDetail/AbroadDetail.vue
@@ -94,7 +94,7 @@ export default { @@ -94,7 +94,7 @@ export default {
94 mounted() { 94 mounted() {
95 this.nowDate = this.Moment().format('YYYY-MM-DD HH:mm:ss') 95 this.nowDate = this.Moment().format('YYYY-MM-DD HH:mm:ss')
96 // console.log(this.nowDate) 96 // console.log(this.nowDate)
97 - sessionStorage.removeItem('useCard') 97 + localStorage.removeItem('useCard')
98 98
99 this.courseId = this.$route.query.courseId 99 this.courseId = this.$route.query.courseId
100 this.bindId = this.$route.query.bindId 100 this.bindId = this.$route.query.bindId
@@ -111,8 +111,8 @@ export default { @@ -111,8 +111,8 @@ export default {
111 this.codeStep = 1 111 this.codeStep = 1
112 } 112 }
113 113
114 - sessionStorage.setItem('prePage', 'ServiceAbroadDetail')  
115 - sessionStorage.setItem( 114 + localStorage.setItem('prePage', 'ServiceAbroadDetail')
  115 + localStorage.setItem(
116 'prePageQuery', 116 'prePageQuery',
117 JSON.stringify({ 117 JSON.stringify({
118 courseId: this.courseId, 118 courseId: this.courseId,
@@ -129,12 +129,12 @@ export default { @@ -129,12 +129,12 @@ export default {
129 }) 129 })
130 ) 130 )
131 if (process.env.NODE_ENV === 'production' && this.common.isWeiXin()) { 131 if (process.env.NODE_ENV === 'production' && this.common.isWeiXin()) {
132 - let openId = sessionStorage.getItem('openId' ) 132 + let openId = localStorage.getItem('openId' )
133 if (!openId) { 133 if (!openId) {
134 this.$router.push({ name: 'Authorize' }) 134 this.$router.push({ name: 'Authorize' })
135 return 135 return
136 } 136 }
137 - this.unionId = sessionStorage.getItem('unionId') 137 + this.unionId = localStorage.getItem('unionId')
138 this.getUserInfo() 138 this.getUserInfo()
139 } else { 139 } else {
140 this.unionId = this.TestUnionId 140 this.unionId = this.TestUnionId
@@ -149,7 +149,7 @@ export default { @@ -149,7 +149,7 @@ export default {
149 }, 149 },
150 // 获取用户信息 150 // 获取用户信息
151 getUserInfo() { 151 getUserInfo() {
152 - let userInfo = sessionStorage.getItem('userInfo') 152 + let userInfo = localStorage.getItem('userInfo')
153 if (userInfo) { 153 if (userInfo) {
154 userInfo = JSON.parse(userInfo) 154 userInfo = JSON.parse(userInfo)
155 this.centerNo = userInfo.centerNo 155 this.centerNo = userInfo.centerNo
@@ -163,16 +163,16 @@ export default { @@ -163,16 +163,16 @@ export default {
163 this.$toast.clear() 163 this.$toast.clear()
164 if (res.data.data) { 164 if (res.data.data) {
165 this.centerNo = res.data.data.centerNo 165 this.centerNo = res.data.data.centerNo
166 - sessionStorage.setItem('userInfo', JSON.stringify(res.data.data)) 166 + localStorage.setItem('userInfo', JSON.stringify(res.data.data))
167 167
168 if (res.data.data.schoolNames || res.data.data.schoolNames == [] || res.data.data.schoolNames == 'null') { 168 if (res.data.data.schoolNames || res.data.data.schoolNames == [] || res.data.data.schoolNames == 'null') {
169 - sessionStorage.setItem('schoolNames', JSON.stringify(res.data.data.schoolNames)) 169 + localStorage.setItem('schoolNames', JSON.stringify(res.data.data.schoolNames))
170 this.$store.commit('changeSchool', res.data.data.schoolNames) 170 this.$store.commit('changeSchool', res.data.data.schoolNames)
171 - if (!sessionStorage.getItem('schoolNamesChoose')) {  
172 - sessionStorage.setItem('schoolNamesChoose', JSON.stringify(res.data.data.schoolNames[0])) 171 + if (!localStorage.getItem('schoolNamesChoose')) {
  172 + localStorage.setItem('schoolNamesChoose', JSON.stringify(res.data.data.schoolNames[0]))
173 } 173 }
174 } else { 174 } else {
175 - sessionStorage.setItem('schoolNames', []) 175 + localStorage.setItem('schoolNames', [])
176 this.$store.commit('changeSchool', []) 176 this.$store.commit('changeSchool', [])
177 } 177 }
178 } 178 }
@@ -202,7 +202,7 @@ export default { @@ -202,7 +202,7 @@ export default {
202 console.log('产品详情:', detailData) 202 console.log('产品详情:', detailData)
203 detailData.course_labels = detailData.course_labels?.split(',') 203 detailData.course_labels = detailData.course_labels?.split(',')
204 this.detailData = detailData 204 this.detailData = detailData
205 - sessionStorage.setItem( 205 + localStorage.setItem(
206 'showCourseData', 206 'showCourseData',
207 JSON.stringify({ 207 JSON.stringify({
208 course_name: detailData.course_name, 208 course_name: detailData.course_name,
@@ -215,7 +215,7 @@ export default { @@ -215,7 +215,7 @@ export default {
215 }) 215 })
216 ) 216 )
217 if (this.orderId) { 217 if (this.orderId) {
218 - sessionStorage.setItem( 218 + localStorage.setItem(
219 'customizedOrder', 219 'customizedOrder',
220 JSON.stringify({ 220 JSON.stringify({
221 courseId: detailData.id, 221 courseId: detailData.id,
@@ -331,7 +331,7 @@ export default { @@ -331,7 +331,7 @@ export default {
331 } 331 }
332 this.packageData = packageData 332 this.packageData = packageData
333 console.log('格式处理后的套餐列表:', packageData) 333 console.log('格式处理后的套餐列表:', packageData)
334 - sessionStorage.setItem('packageData', JSON.stringify(packageData)) 334 + localStorage.setItem('packageData', JSON.stringify(packageData))
335 }, 335 },
336 }, 336 },
337 } 337 }
src/views/Service/AbroadDetail/AbroadDetailYL.vue
@@ -229,7 +229,7 @@ export default { @@ -229,7 +229,7 @@ export default {
229 // console.log(detailData) 229 // console.log(detailData)
230 detailData.course_labels = detailData.course_labels?.split(',') 230 detailData.course_labels = detailData.course_labels?.split(',')
231 this.detailData = detailData 231 this.detailData = detailData
232 - sessionStorage.setItem( 232 + localStorage.setItem(
233 'showCourseData', 233 'showCourseData',
234 JSON.stringify({ 234 JSON.stringify({
235 course_name: detailData.course_name, 235 course_name: detailData.course_name,
@@ -271,7 +271,7 @@ export default { @@ -271,7 +271,7 @@ export default {
271 } 271 }
272 } 272 }
273 this.packageData = usefulPackage 273 this.packageData = usefulPackage
274 - sessionStorage.setItem('packageData', JSON.stringify(usefulPackage)) 274 + localStorage.setItem('packageData', JSON.stringify(usefulPackage))
275 this.setPackageArr() 275 this.setPackageArr()
276 } 276 }
277 }) 277 })
src/views/Service/AbroadDetailNext/AbroadCoupon.vue
@@ -52,10 +52,10 @@ export default { @@ -52,10 +52,10 @@ export default {
52 } 52 }
53 // console.log('useCard', useCard) 53 // console.log('useCard', useCard)
54 this.proCoupon = [useCard] 54 this.proCoupon = [useCard]
55 - sessionStorage.setItem('useCard', JSON.stringify(useCard)) 55 + localStorage.setItem('useCard', JSON.stringify(useCard))
56 56
57 } else { 57 } else {
58 - sessionStorage.setItem('useCard', JSON.stringify(this.proCoupon[0])) 58 + localStorage.setItem('useCard', JSON.stringify(this.proCoupon[0]))
59 } 59 }
60 }, 60 },
61 //领券 61 //领券
src/views/Service/AbroadDetailNext/AbroadDetailNext.vue
@@ -178,7 +178,7 @@ export default { @@ -178,7 +178,7 @@ export default {
178 mounted() { 178 mounted() {
179 this.nowDate = this.Moment().format('YYYY-MM-DD HH:mm:ss') 179 this.nowDate = this.Moment().format('YYYY-MM-DD HH:mm:ss')
180 console.log(this.nowDate) 180 console.log(this.nowDate)
181 - sessionStorage.removeItem('useCard') 181 + localStorage.removeItem('useCard')
182 182
183 this.courseId = this.$route.query.courseId 183 this.courseId = this.$route.query.courseId
184 this.bindId = this.$route.query.bindId 184 this.bindId = this.$route.query.bindId
@@ -195,8 +195,8 @@ export default { @@ -195,8 +195,8 @@ export default {
195 this.codeStep = 1 195 this.codeStep = 1
196 } 196 }
197 197
198 - sessionStorage.setItem('prePage', 'ServiceAbroadDetailNext')  
199 - sessionStorage.setItem( 198 + localStorage.setItem('prePage', 'ServiceAbroadDetailNext')
  199 + localStorage.setItem(
200 'prePageQuery', 200 'prePageQuery',
201 JSON.stringify({ 201 JSON.stringify({
202 courseId: this.courseId, 202 courseId: this.courseId,
@@ -212,12 +212,12 @@ export default { @@ -212,12 +212,12 @@ export default {
212 }) 212 })
213 ) 213 )
214 if (process.env.NODE_ENV === 'production' && this.common.isWeiXin()) { 214 if (process.env.NODE_ENV === 'production' && this.common.isWeiXin()) {
215 - let openId = sessionStorage.getItem('openId') 215 + let openId = localStorage.getItem('openId')
216 if (!openId) { 216 if (!openId) {
217 this.$router.push({ name: 'Authorize' }) 217 this.$router.push({ name: 'Authorize' })
218 return 218 return
219 } 219 }
220 - this.unionId = sessionStorage.getItem('unionId') 220 + this.unionId = localStorage.getItem('unionId')
221 this.getUserInfo() 221 this.getUserInfo()
222 } else { 222 } else {
223 this.unionId = this.TestUnionId 223 this.unionId = this.TestUnionId
@@ -246,7 +246,7 @@ export default { @@ -246,7 +246,7 @@ export default {
246 }, 246 },
247 // 获取用户信息 247 // 获取用户信息
248 getUserInfo() { 248 getUserInfo() {
249 - let userInfo = sessionStorage.getItem('userInfo') 249 + let userInfo = localStorage.getItem('userInfo')
250 if (userInfo) { 250 if (userInfo) {
251 userInfo = JSON.parse(userInfo) 251 userInfo = JSON.parse(userInfo)
252 this.centerNo = userInfo.centerNo 252 this.centerNo = userInfo.centerNo
@@ -260,16 +260,16 @@ export default { @@ -260,16 +260,16 @@ export default {
260 this.$toast.clear() 260 this.$toast.clear()
261 if (res.data.data) { 261 if (res.data.data) {
262 this.centerNo = res.data.data.centerNo 262 this.centerNo = res.data.data.centerNo
263 - sessionStorage.setItem('userInfo', JSON.stringify(res.data.data)) 263 + localStorage.setItem('userInfo', JSON.stringify(res.data.data))
264 264
265 if (res.data.data.schoolNames || res.data.data.schoolNames == [] || res.data.data.schoolNames == 'null') { 265 if (res.data.data.schoolNames || res.data.data.schoolNames == [] || res.data.data.schoolNames == 'null') {
266 - sessionStorage.setItem('schoolNames', JSON.stringify(res.data.data.schoolNames)) 266 + localStorage.setItem('schoolNames', JSON.stringify(res.data.data.schoolNames))
267 this.$store.commit('changeSchool', res.data.data.schoolNames) 267 this.$store.commit('changeSchool', res.data.data.schoolNames)
268 - if (!sessionStorage.getItem('schoolNamesChoose')) {  
269 - sessionStorage.setItem('schoolNamesChoose', JSON.stringify(res.data.data.schoolNames[0])) 268 + if (!localStorage.getItem('schoolNamesChoose')) {
  269 + localStorage.setItem('schoolNamesChoose', JSON.stringify(res.data.data.schoolNames[0]))
270 } 270 }
271 } else { 271 } else {
272 - sessionStorage.setItem('schoolNames', []) 272 + localStorage.setItem('schoolNames', [])
273 this.$store.commit('changeSchool', []) 273 this.$store.commit('changeSchool', [])
274 } 274 }
275 } 275 }
@@ -308,7 +308,7 @@ export default { @@ -308,7 +308,7 @@ export default {
308 console.log('产品详情:', detailData) 308 console.log('产品详情:', detailData)
309 detailData.course_labels = detailData.course_labels?.split(',') 309 detailData.course_labels = detailData.course_labels?.split(',')
310 this.detailData = detailData 310 this.detailData = detailData
311 - sessionStorage.setItem( 311 + localStorage.setItem(
312 'showCourseData', 312 'showCourseData',
313 JSON.stringify({ 313 JSON.stringify({
314 course_name: detailData.course_name, 314 course_name: detailData.course_name,
@@ -321,7 +321,7 @@ export default { @@ -321,7 +321,7 @@ export default {
321 }) 321 })
322 ) 322 )
323 if (this.orderId) { 323 if (this.orderId) {
324 - sessionStorage.setItem( 324 + localStorage.setItem(
325 'customizedOrder', 325 'customizedOrder',
326 JSON.stringify({ 326 JSON.stringify({
327 courseId: detailData.id, 327 courseId: detailData.id,
@@ -388,7 +388,7 @@ export default { @@ -388,7 +388,7 @@ export default {
388 }, 388 },
389 setShare() { 389 setShare() {
390 // 设置分享 390 // 设置分享
391 - const userInfo = JSON.parse(sessionStorage.getItem('userInfo')) 391 + const userInfo = JSON.parse(localStorage.getItem('userInfo'))
392 this.$emit('getWxConfig', { 392 this.$emit('getWxConfig', {
393 title: `${this.detailData?.course_name}`, // 分享标题 393 title: `${this.detailData?.course_name}`, // 分享标题
394 desc: '', // 分享描述 394 desc: '', // 分享描述
@@ -427,7 +427,7 @@ export default { @@ -427,7 +427,7 @@ export default {
427 } 427 }
428 } 428 }
429 this.packageData = usefulPackage 429 this.packageData = usefulPackage
430 - sessionStorage.setItem('packageData', JSON.stringify(usefulPackage)) 430 + localStorage.setItem('packageData', JSON.stringify(usefulPackage))
431 this.setPackageArr() 431 this.setPackageArr()
432 } 432 }
433 }) 433 })
@@ -489,9 +489,9 @@ export default { @@ -489,9 +489,9 @@ export default {
489 }, 489 },
490 // 获取代理人联系方式 490 // 获取代理人联系方式
491 getAagentUser() { 491 getAagentUser() {
492 - let schoolName = sessionStorage.getItem('schoolNamesChoose') ? JSON.parse(sessionStorage.getItem('schoolNamesChoose')) : '' 492 + let schoolName = localStorage.getItem('schoolNamesChoose') ? JSON.parse(localStorage.getItem('schoolNamesChoose')) : ''
493 if (!schoolName) { 493 if (!schoolName) {
494 - schoolName = JSON.parse(sessionStorage.getItem('userInfo'))?.schoolNames[0] 494 + schoolName = JSON.parse(localStorage.getItem('userInfo'))?.schoolNames[0]
495 } 495 }
496 this.yxAxios 496 this.yxAxios
497 .post(`${this.proxyUrl}/manage/agentUser/list`, { 497 .post(`${this.proxyUrl}/manage/agentUser/list`, {
@@ -514,8 +514,8 @@ export default { @@ -514,8 +514,8 @@ export default {
514 }, 514 },
515 // 获取校代联系方式(通过我的学校栏目进入) 515 // 获取校代联系方式(通过我的学校栏目进入)
516 getAgentInfoBySchool() { 516 getAgentInfoBySchool() {
517 - let schoolRecommendShowStudent = sessionStorage.getItem('schoolRecommendShowStudent')  
518 - ? JSON.parse(sessionStorage.getItem('schoolRecommendShowStudent')) 517 + let schoolRecommendShowStudent = localStorage.getItem('schoolRecommendShowStudent')
  518 + ? JSON.parse(localStorage.getItem('schoolRecommendShowStudent'))
519 : '' 519 : ''
520 let schoolName = schoolRecommendShowStudent.schoolName 520 let schoolName = schoolRecommendShowStudent.schoolName
521 this.yxAxios.get(`${this.proxyUrl}/api/agent/getAgentInfoBySchool?schoolName=${schoolName}`).then((res) => { 521 this.yxAxios.get(`${this.proxyUrl}/api/agent/getAgentInfoBySchool?schoolName=${schoolName}`).then((res) => {
@@ -547,7 +547,7 @@ export default { @@ -547,7 +547,7 @@ export default {
547 let weekOfday = this.Moment().format('E') // 计算今天是这周第几天 547 let weekOfday = this.Moment().format('E') // 计算今天是这周第几天
548 // 如果为限时团购,就传星期三的日期 548 // 如果为限时团购,就传星期三的日期
549 if (this.$route.query.ProgramType == 1) { 549 if (this.$route.query.ProgramType == 1) {
550 - let TGMSTabActive = sessionStorage.getItem('TGMSTabActive') 550 + let TGMSTabActive = localStorage.getItem('TGMSTabActive')
551 if (TGMSTabActive == 1) { 551 if (TGMSTabActive == 1) {
552 date = this.Moment() 552 date = this.Moment()
553 .add(weekOfday == 7 ? 3 : 10 - weekOfday, 'days') 553 .add(weekOfday == 7 ? 3 : 10 - weekOfday, 'days')
@@ -597,13 +597,13 @@ export default { @@ -597,13 +597,13 @@ export default {
597 }, 597 },
598 //获取达人推广 预计赚钱 598 //获取达人推广 预计赚钱
599 getExpectMoney() { 599 getExpectMoney() {
600 - if (!sessionStorage.getItem('talentData')) { 600 + if (!localStorage.getItem('talentData')) {
601 return 601 return
602 } 602 }
603 - const expertLevel = JSON.parse(sessionStorage.getItem('talentData')).expertLevel  
604 - this.feeFlag = JSON.parse(sessionStorage.getItem('talentData')).feeFlag 603 + const expertLevel = JSON.parse(localStorage.getItem('talentData')).expertLevel
  604 + this.feeFlag = JSON.parse(localStorage.getItem('talentData')).feeFlag
605 if(this.feeFlag == 1) { return } //0达人(显示),1志愿者(不显示) 605 if(this.feeFlag == 1) { return } //0达人(显示),1志愿者(不显示)
606 - const userInfo = JSON.parse(sessionStorage.getItem('userInfo')) 606 + const userInfo = JSON.parse(localStorage.getItem('userInfo'))
607 let query = { 607 let query = {
608 courseId: this.courseId, 608 courseId: this.courseId,
609 loginPhone: userInfo.phone, 609 loginPhone: userInfo.phone,
src/views/Service/AbroadDetailNext/c_Package.vue
@@ -119,7 +119,7 @@ export default { @@ -119,7 +119,7 @@ export default {
119 let weekOfday = this.Moment().format('E') // 计算今天是这周第几天 119 let weekOfday = this.Moment().format('E') // 计算今天是这周第几天
120 // 如果为限时团购,就传星期三的日期 120 // 如果为限时团购,就传星期三的日期
121 if (this.$route.query.ProgramType == 1) { 121 if (this.$route.query.ProgramType == 1) {
122 - let TGMSTabActive = sessionStorage.getItem('TGMSTabActive') 122 + let TGMSTabActive = localStorage.getItem('TGMSTabActive')
123 if (TGMSTabActive == 1) { 123 if (TGMSTabActive == 1) {
124 date = this.Moment() 124 date = this.Moment()
125 .add(weekOfday == 7 ? 3 : 10 - weekOfday, 'days') 125 .add(weekOfday == 7 ? 3 : 10 - weekOfday, 'days')
@@ -172,7 +172,7 @@ export default { @@ -172,7 +172,7 @@ export default {
172 this.$toast('未到预约时间,请稍后再试') 172 this.$toast('未到预约时间,请稍后再试')
173 return 173 return
174 } 174 }
175 - sessionStorage.setItem('TalentReserveGroupData', JSON.stringify(item)) 175 + localStorage.setItem('TalentReserveGroupData', JSON.stringify(item))
176 this.$router.push({ 176 this.$router.push({
177 path: '/talent_reserve', 177 path: '/talent_reserve',
178 query: { 178 query: {
src/views/Service/AbroadDetailNext/c_ShareBox.vue
@@ -68,7 +68,7 @@ export default { @@ -68,7 +68,7 @@ export default {
68 } 68 }
69 }, 69 },
70 mounted() { 70 mounted() {
71 - let userInfo = sessionStorage.getItem('userInfo') 71 + let userInfo = localStorage.getItem('userInfo')
72 if (userInfo) { 72 if (userInfo) {
73 this.nickName = JSON.parse(userInfo).nickName 73 this.nickName = JSON.parse(userInfo).nickName
74 } 74 }
@@ -88,9 +88,9 @@ export default { @@ -88,9 +88,9 @@ export default {
88 if (res.data.data) { 88 if (res.data.data) {
89 this.sizeType = res.data.data.sizeType 89 this.sizeType = res.data.data.sizeType
90 this.posterBody = res.data.data.posterBody 90 this.posterBody = res.data.data.posterBody
91 - sessionStorage.setItem('posterBody', res.data.data.posterBody) 91 + localStorage.setItem('posterBody', res.data.data.posterBody)
92 this.posterLabel = res.data.data.posterLabel 92 this.posterLabel = res.data.data.posterLabel
93 - sessionStorage.setItem('posterLabel', res.data.data.posterLabel) 93 + localStorage.setItem('posterLabel', res.data.data.posterLabel)
94 if (this.sizeType == 1 || !res.data.data.imageUrl) { 94 if (this.sizeType == 1 || !res.data.data.imageUrl) {
95 this.getImage(this.detailData.coverList ? this.detailData.coverList[0].cover_url : this.detailData.converUrl) 95 this.getImage(this.detailData.coverList ? this.detailData.coverList[0].cover_url : this.detailData.converUrl)
96 } else { 96 } else {
@@ -110,7 +110,7 @@ export default { @@ -110,7 +110,7 @@ export default {
110 let weekOfday = this.Moment().format('E') // 计算今天是这周第几天 110 let weekOfday = this.Moment().format('E') // 计算今天是这周第几天
111 // 如果为限时团购,就传星期三的日期 111 // 如果为限时团购,就传星期三的日期
112 if (this.$route.query.ProgramType == 1) { 112 if (this.$route.query.ProgramType == 1) {
113 - let TGMSTabActive = sessionStorage.getItem('TGMSTabActive') 113 + let TGMSTabActive = localStorage.getItem('TGMSTabActive')
114 if (TGMSTabActive == 1) { 114 if (TGMSTabActive == 1) {
115 date = this.Moment() 115 date = this.Moment()
116 .add(weekOfday == 7 ? 3 : 10 - weekOfday, 'days') 116 .add(weekOfday == 7 ? 3 : 10 - weekOfday, 'days')
@@ -204,8 +204,8 @@ export default { @@ -204,8 +204,8 @@ export default {
204 if (this.detailData.bindId || this.detailData.dateComboBindId || this.$route.query.bindId) { 204 if (this.detailData.bindId || this.detailData.dateComboBindId || this.$route.query.bindId) {
205 link = link + '&bindId=' + (this.detailData.bindId || this.detailData.dateComboBindId || this.$route.query.bindId) 205 link = link + '&bindId=' + (this.detailData.bindId || this.detailData.dateComboBindId || this.$route.query.bindId)
206 } 206 }
207 - if (sessionStorage.getItem('talentData')) {  
208 - const talentData = JSON.parse(sessionStorage.getItem('talentData')) 207 + if (localStorage.getItem('talentData')) {
  208 + const talentData = JSON.parse(localStorage.getItem('talentData'))
209 link = link + '&inviteCode=' + talentData.inviteCode 209 link = link + '&inviteCode=' + talentData.inviteCode
210 } 210 }
211 if (this.$route.query.ProgramType) { 211 if (this.$route.query.ProgramType) {
src/views/Service/BaseDetail/BaseDetail.vue
@@ -78,15 +78,15 @@ export default { @@ -78,15 +78,15 @@ export default {
78 }, 78 },
79 mounted() { 79 mounted() {
80 this.baseId = this.$route.query.baseId 80 this.baseId = this.$route.query.baseId
81 - sessionStorage.setItem('prePage', 'ServiceBaseDetail')  
82 - sessionStorage.setItem('prePageQuery', JSON.stringify({ baseId: this.baseId })) 81 + localStorage.setItem('prePage', 'ServiceBaseDetail')
  82 + localStorage.setItem('prePageQuery', JSON.stringify({ baseId: this.baseId }))
83 if (process.env.NODE_ENV === 'production' && this.common.isWeiXin()) { 83 if (process.env.NODE_ENV === 'production' && this.common.isWeiXin()) {
84 - let openId = sessionStorage.getItem('openId') 84 + let openId = localStorage.getItem('openId')
85 if (!openId) { 85 if (!openId) {
86 this.$router.push({ name: 'Authorize'}) 86 this.$router.push({ name: 'Authorize'})
87 return 87 return
88 } 88 }
89 - this.unionId = sessionStorage.getItem('unionId') 89 + this.unionId = localStorage.getItem('unionId')
90 this.getUserInfo() 90 this.getUserInfo()
91 } else { 91 } else {
92 this.unionId = this.TestUnionId 92 this.unionId = this.TestUnionId
@@ -97,7 +97,7 @@ export default { @@ -97,7 +97,7 @@ export default {
97 methods: { 97 methods: {
98 // 获取用户信息 98 // 获取用户信息
99 getUserInfo() { 99 getUserInfo() {
100 - let userInfo = sessionStorage.getItem('userInfo') 100 + let userInfo = localStorage.getItem('userInfo')
101 if (userInfo) { 101 if (userInfo) {
102 userInfo = JSON.parse(userInfo) 102 userInfo = JSON.parse(userInfo)
103 this.centerNo = userInfo.centerNo 103 this.centerNo = userInfo.centerNo
@@ -111,16 +111,16 @@ export default { @@ -111,16 +111,16 @@ export default {
111 this.$toast.clear() 111 this.$toast.clear()
112 if (res.data.data) { 112 if (res.data.data) {
113 this.centerNo = res.data.data.centerNo 113 this.centerNo = res.data.data.centerNo
114 - sessionStorage.setItem('userInfo', JSON.stringify(res.data.data)) 114 + localStorage.setItem('userInfo', JSON.stringify(res.data.data))
115 115
116 if (res.data.data.schoolNames || res.data.data.schoolNames == [] || res.data.data.schoolNames == 'null') { 116 if (res.data.data.schoolNames || res.data.data.schoolNames == [] || res.data.data.schoolNames == 'null') {
117 - sessionStorage.setItem('schoolNames', JSON.stringify(res.data.data.schoolNames)) 117 + localStorage.setItem('schoolNames', JSON.stringify(res.data.data.schoolNames))
118 this.$store.commit('changeSchool', res.data.data.schoolNames) 118 this.$store.commit('changeSchool', res.data.data.schoolNames)
119 - if (!sessionStorage.getItem('schoolNamesChoose')) {  
120 - sessionStorage.setItem('schoolNamesChoose', JSON.stringify(res.data.data.schoolNames[0])) 119 + if (!localStorage.getItem('schoolNamesChoose')) {
  120 + localStorage.setItem('schoolNamesChoose', JSON.stringify(res.data.data.schoolNames[0]))
121 } 121 }
122 } else { 122 } else {
123 - sessionStorage.setItem('schoolNames', []) 123 + localStorage.setItem('schoolNames', [])
124 this.$store.commit('changeSchool', []) 124 this.$store.commit('changeSchool', [])
125 } 125 }
126 } 126 }
src/views/Service/CheckOrderReserve.vue
@@ -89,11 +89,11 @@ export default { @@ -89,11 +89,11 @@ export default {
89 } 89 }
90 }, 90 },
91 mounted() { 91 mounted() {
92 - let openId = sessionStorage.getItem('openId') 92 + let openId = localStorage.getItem('openId')
93 93
94 if (process.env.NODE_ENV === 'production' && this.common.isWeiXin()) { 94 if (process.env.NODE_ENV === 'production' && this.common.isWeiXin()) {
95 if (!openId) { 95 if (!openId) {
96 - sessionStorage.setItem('prePage', 'ServiceCheckOrder') 96 + localStorage.setItem('prePage', 'ServiceCheckOrder')
97 this.$router.push({ name: 'Authorize' }) 97 this.$router.push({ name: 'Authorize' })
98 return 98 return
99 } else { 99 } else {
@@ -101,7 +101,7 @@ export default { @@ -101,7 +101,7 @@ export default {
101 } 101 }
102 } 102 }
103 103
104 - let userInfo = sessionStorage.getItem('userInfo') 104 + let userInfo = localStorage.getItem('userInfo')
105 if (userInfo) { 105 if (userInfo) {
106 this.userInfo = JSON.parse(userInfo) 106 this.userInfo = JSON.parse(userInfo)
107 } 107 }
@@ -110,18 +110,18 @@ export default { @@ -110,18 +110,18 @@ export default {
110 this.period = this.$route.query.period 110 this.period = this.$route.query.period
111 111
112 // 套餐 112 // 套餐
113 - let TalentReserveGroupData = sessionStorage.getItem('TalentReserveGroupData') 113 + let TalentReserveGroupData = localStorage.getItem('TalentReserveGroupData')
114 if (TalentReserveGroupData) { 114 if (TalentReserveGroupData) {
115 this.TalentReserveGroupData = JSON.parse(TalentReserveGroupData) 115 this.TalentReserveGroupData = JSON.parse(TalentReserveGroupData)
116 } 116 }
117 - let TalentReserveData = sessionStorage.getItem('TalentReserveData') 117 + let TalentReserveData = localStorage.getItem('TalentReserveData')
118 if (TalentReserveData) { 118 if (TalentReserveData) {
119 this.TalentReserveData = JSON.parse(TalentReserveData) 119 this.TalentReserveData = JSON.parse(TalentReserveData)
120 } 120 }
121 121
122 // 如果有优惠券,就展示 122 // 如果有优惠券,就展示
123 - let useCard = sessionStorage.getItem('useCard')  
124 - let showCourseData = sessionStorage.getItem('showCourseData') 123 + let useCard = localStorage.getItem('useCard')
  124 + let showCourseData = localStorage.getItem('showCourseData')
125 if (useCard) { 125 if (useCard) {
126 this.useCard = JSON.parse(useCard) 126 this.useCard = JSON.parse(useCard)
127 } 127 }
@@ -129,30 +129,30 @@ export default { @@ -129,30 +129,30 @@ export default {
129 this.showCourseData = JSON.parse(showCourseData) 129 this.showCourseData = JSON.parse(showCourseData)
130 } 130 }
131 // 留言恢复(防止跳转选择联系人后留言丢失) 131 // 留言恢复(防止跳转选择联系人后留言丢失)
132 - let remark = sessionStorage.getItem('checkOrderRemark') 132 + let remark = localStorage.getItem('checkOrderRemark')
133 if (remark) { 133 if (remark) {
134 this.remark = remark 134 this.remark = remark
135 } 135 }
136 // 协议同意状态恢复(防止跳转选择联系人后选中状态丢失) 136 // 协议同意状态恢复(防止跳转选择联系人后选中状态丢失)
137 - let checked = sessionStorage.getItem('checkOrderProtocolChecked') 137 + let checked = localStorage.getItem('checkOrderProtocolChecked')
138 if (checked == 'true') { 138 if (checked == 'true') {
139 this.checked = true 139 this.checked = true
140 } 140 }
141 // 集体定制参数 141 // 集体定制参数
142 // orderId 集体定制订单 isSkipPay 是否跳过支付 dateComboBindId 档期id 142 // orderId 集体定制订单 isSkipPay 是否跳过支付 dateComboBindId 档期id
143 - let customizedOrder = sessionStorage.getItem('customizedOrder') 143 + let customizedOrder = localStorage.getItem('customizedOrder')
144 if (customizedOrder) { 144 if (customizedOrder) {
145 this.customizedOrder = JSON.parse(customizedOrder) 145 this.customizedOrder = JSON.parse(customizedOrder)
146 this.isSkipPay = this.customizedOrder.isSkipPay 146 this.isSkipPay = this.customizedOrder.isSkipPay
147 if (this.isSkipPay) { 147 if (this.isSkipPay) {
148 - sessionStorage.removeItem('useCard') 148 + localStorage.removeItem('useCard')
149 this.useCard = '' 149 this.useCard = ''
150 } 150 }
151 } 151 }
152 152
153 // 学习中心途径购买课程 153 // 学习中心途径购买课程
154 - this.CourseParentId = sessionStorage.getItem('CourseParentId')  
155 - this.CourseParentIdBindCourseId = sessionStorage.getItem('CourseParentIdBindCourseId') 154 + this.CourseParentId = localStorage.getItem('CourseParentId')
  155 + this.CourseParentIdBindCourseId = localStorage.getItem('CourseParentIdBindCourseId')
156 }, 156 },
157 computed: { 157 computed: {
158 paymoney() { 158 paymoney() {
@@ -176,18 +176,18 @@ export default { @@ -176,18 +176,18 @@ export default {
176 }, 176 },
177 // 协议点击同意 177 // 协议点击同意
178 protocolChange(checked) { 178 protocolChange(checked) {
179 - sessionStorage.setItem('checkOrderProtocolChecked', checked) 179 + localStorage.setItem('checkOrderProtocolChecked', checked)
180 }, 180 },
181 // 留言点击完成 181 // 留言点击完成
182 EditRemarkConfirm() { 182 EditRemarkConfirm() {
183 this.remark = this.editRemark 183 this.remark = this.editRemark
184 - sessionStorage.setItem('checkOrderRemark', this.editRemark) 184 + localStorage.setItem('checkOrderRemark', this.editRemark)
185 this.showRemark = false 185 this.showRemark = false
186 }, 186 },
187 // 创建订单 187 // 创建订单
188 createOrder() { 188 createOrder() {
189 // 出行人数量判断 189 // 出行人数量判断
190 - let selectedContactArr = sessionStorage.getItem('selectedContactArr') 190 + let selectedContactArr = localStorage.getItem('selectedContactArr')
191 selectedContactArr = JSON.parse(selectedContactArr) 191 selectedContactArr = JSON.parse(selectedContactArr)
192 let selAdult = 0 192 let selAdult = 0
193 let selChild = 0 193 let selChild = 0
@@ -232,7 +232,7 @@ export default { @@ -232,7 +232,7 @@ export default {
232 userId: this.userInfo?.centerNo, //升学汇和其他端接口字段不同 232 userId: this.userInfo?.centerNo, //升学汇和其他端接口字段不同
233 orderCount: this.count, //人数 233 orderCount: this.count, //人数
234 // comboId: this.TalentReserveGroupData.id, 234 // comboId: this.TalentReserveGroupData.id,
235 - // dateBindComboId: sessionStorage.getItem('selectComboBindId'), 235 + // dateBindComboId: localStorage.getItem('selectComboBindId'),
236 // orderTime: this.Moment(this.TalentReserveData.date).format('YYYY-MM-DD'), //时段集合 2018-10-15 236 // orderTime: this.Moment(this.TalentReserveData.date).format('YYYY-MM-DD'), //时段集合 2018-10-15
237 couponId: couponId, 237 couponId: couponId,
238 unionId: this.userInfo?.centerNo, 238 unionId: this.userInfo?.centerNo,
@@ -249,11 +249,11 @@ export default { @@ -249,11 +249,11 @@ export default {
249 orderBuyType: this.TalentReserveData.orderBuyType, //1独享2共享 249 orderBuyType: this.TalentReserveData.orderBuyType, //1独享2共享
250 baseId: this.showCourseData.baseId, 250 baseId: this.showCourseData.baseId,
251 } 251 }
252 - let schoolNamesChoose = sessionStorage.getItem('schoolNamesChoose') 252 + let schoolNamesChoose = localStorage.getItem('schoolNamesChoose')
253 if (schoolNamesChoose) { 253 if (schoolNamesChoose) {
254 params.schoolShopName = JSON.parse(schoolNamesChoose).schoolName 254 params.schoolShopName = JSON.parse(schoolNamesChoose).schoolName
255 } 255 }
256 - let inviteCode = sessionStorage.getItem('orderInviteCode') 256 + let inviteCode = localStorage.getItem('orderInviteCode')
257 if (inviteCode) { 257 if (inviteCode) {
258 params.RecommendUserNum = inviteCode 258 params.RecommendUserNum = inviteCode
259 } 259 }
src/views/Service/CourseBaseList/SelectionBase.vue
@@ -66,7 +66,7 @@ export default { @@ -66,7 +66,7 @@ export default {
66 } 66 }
67 }, 67 },
68 mounted() { 68 mounted() {
69 - let userInfo = sessionStorage.getItem('userInfo') 69 + let userInfo = localStorage.getItem('userInfo')
70 if (userInfo) { 70 if (userInfo) {
71 userInfo = JSON.parse(userInfo) 71 userInfo = JSON.parse(userInfo)
72 this.centerNo = userInfo.centerNo 72 this.centerNo = userInfo.centerNo
src/views/Service/CourseBaseList/SelectionCourse.vue
@@ -38,7 +38,7 @@ export default { @@ -38,7 +38,7 @@ export default {
38 } 38 }
39 }, 39 },
40 mounted() { 40 mounted() {
41 - let userInfo = sessionStorage.getItem('userInfo') 41 + let userInfo = localStorage.getItem('userInfo')
42 if (userInfo) { 42 if (userInfo) {
43 userInfo = JSON.parse(userInfo) 43 userInfo = JSON.parse(userInfo)
44 this.centerNo = userInfo.centerNo 44 this.centerNo = userInfo.centerNo
src/views/Service/TalentReserve.vue
@@ -93,11 +93,11 @@ export default { @@ -93,11 +93,11 @@ export default {
93 .format('YYYY-MM-DD') 93 .format('YYYY-MM-DD')
94 ) 94 )
95 95
96 - let showCourseData = sessionStorage.getItem('showCourseData') 96 + let showCourseData = localStorage.getItem('showCourseData')
97 if (showCourseData) { 97 if (showCourseData) {
98 this.showCourseData = JSON.parse(showCourseData) 98 this.showCourseData = JSON.parse(showCourseData)
99 } 99 }
100 - let TalentReserveGroupData = sessionStorage.getItem('TalentReserveGroupData') 100 + let TalentReserveGroupData = localStorage.getItem('TalentReserveGroupData')
101 if (TalentReserveGroupData) { 101 if (TalentReserveGroupData) {
102 TalentReserveGroupData = JSON.parse(TalentReserveGroupData) 102 TalentReserveGroupData = JSON.parse(TalentReserveGroupData)
103 if (TalentReserveGroupData.dateBindTypeName == '常规拼团') { 103 if (TalentReserveGroupData.dateBindTypeName == '常规拼团') {
@@ -167,7 +167,7 @@ export default { @@ -167,7 +167,7 @@ export default {
167 date: this.date, 167 date: this.date,
168 count: this.count, 168 count: this.count,
169 } 169 }
170 - sessionStorage.setItem( 170 + localStorage.setItem(
171 'TalentReserveData', 171 'TalentReserveData',
172 JSON.stringify({ 172 JSON.stringify({
173 ...this.selectedDate, 173 ...this.selectedDate,
@@ -180,16 +180,16 @@ export default { @@ -180,16 +180,16 @@ export default {
180 checkLogin() { 180 checkLogin() {
181 // if (process.env.NODE_ENV != "production") return true; 181 // if (process.env.NODE_ENV != "production") return true;
182 182
183 - const userInfo = JSON.parse(sessionStorage.getItem('userInfo'))  
184 - const publicName = sessionStorage.getItem('publicName') 183 + const userInfo = JSON.parse(localStorage.getItem('userInfo'))
  184 + const publicName = localStorage.getItem('publicName')
185 if (!userInfo?.phone) { 185 if (!userInfo?.phone) {
186 - sessionStorage.setItem('prePage', 'TalentReserve')  
187 - sessionStorage.setItem('prePageQuery', JSON.stringify({ ProgramType: this.$route.query.ProgramType, 186 + localStorage.setItem('prePage', 'TalentReserve')
  187 + localStorage.setItem('prePageQuery', JSON.stringify({ ProgramType: this.$route.query.ProgramType,
188 productSceneId: this.$route.query.ProgramType })) 188 productSceneId: this.$route.query.ProgramType }))
189 this.$router.push({ name: 'LoginQYX', query: { publicName: publicName } }) 189 this.$router.push({ name: 'LoginQYX', query: { publicName: publicName } })
190 return false 190 return false
191 } 191 }
192 - // else if (sessionStorage.getItem('schoolNames') == 'undefined' || !sessionStorage.getItem('schoolNames')) { 192 + // else if (localStorage.getItem('schoolNames') == 'undefined' || !localStorage.getItem('schoolNames')) {
193 // this.showSchool = true 193 // this.showSchool = true
194 // return false; 194 // return false;
195 // } 195 // }
src/views/Service/component/c_BottomBtn.vue
@@ -39,11 +39,11 @@ export default { @@ -39,11 +39,11 @@ export default {
39 .format('YYYY-MM-DD') 39 .format('YYYY-MM-DD')
40 ) 40 )
41 41
42 - let showCourseData = sessionStorage.getItem('showCourseData') 42 + let showCourseData = localStorage.getItem('showCourseData')
43 if (showCourseData) { 43 if (showCourseData) {
44 this.showCourseData = JSON.parse(showCourseData) 44 this.showCourseData = JSON.parse(showCourseData)
45 } 45 }
46 - let talentData = sessionStorage.getItem('talentData') 46 + let talentData = localStorage.getItem('talentData')
47 if (talentData) { 47 if (talentData) {
48 this.isTalent = true 48 this.isTalent = true
49 this.active = 0 49 this.active = 0
@@ -57,9 +57,9 @@ export default { @@ -57,9 +57,9 @@ export default {
57 methods: { 57 methods: {
58 // 获取代理人联系方式 58 // 获取代理人联系方式
59 getAagentUser() { 59 getAagentUser() {
60 - let schoolName = sessionStorage.getItem('schoolNamesChoose') ? JSON.parse(sessionStorage.getItem('schoolNamesChoose')) : '' 60 + let schoolName = localStorage.getItem('schoolNamesChoose') ? JSON.parse(localStorage.getItem('schoolNamesChoose')) : ''
61 if (schoolName) { 61 if (schoolName) {
62 - schoolName = JSON.parse(sessionStorage.getItem('userInfo')).schoolNames[0] 62 + schoolName = JSON.parse(localStorage.getItem('userInfo')).schoolNames[0]
63 } 63 }
64 this.yxAxios 64 this.yxAxios
65 .post(`${this.proxyUrl}/manage/agentUser/list`, { 65 .post(`${this.proxyUrl}/manage/agentUser/list`, {
@@ -82,8 +82,8 @@ export default { @@ -82,8 +82,8 @@ export default {
82 }, 82 },
83 // 获取校代联系方式(通过我的学校栏目进入) 83 // 获取校代联系方式(通过我的学校栏目进入)
84 getAgentInfoBySchool() { 84 getAgentInfoBySchool() {
85 - let schoolRecommendShowStudent = sessionStorage.getItem('schoolRecommendShowStudent')  
86 - ? JSON.parse(sessionStorage.getItem('schoolRecommendShowStudent')) 85 + let schoolRecommendShowStudent = localStorage.getItem('schoolRecommendShowStudent')
  86 + ? JSON.parse(localStorage.getItem('schoolRecommendShowStudent'))
87 : '' 87 : ''
88 let schoolName = schoolRecommendShowStudent.schoolName 88 let schoolName = schoolRecommendShowStudent.schoolName
89 this.yxAxios.get(`${this.proxyUrl}/api/agent/getAgentInfoBySchool?schoolName=${schoolName}`).then((res) => { 89 this.yxAxios.get(`${this.proxyUrl}/api/agent/getAgentInfoBySchool?schoolName=${schoolName}`).then((res) => {
src/views/Service/component/c_ContactBox.vue
@@ -29,7 +29,7 @@ export default { @@ -29,7 +29,7 @@ export default {
29 }, 29 },
30 mounted () { 30 mounted () {
31 // 选择的出行人 31 // 选择的出行人
32 - let selectedContactArr = sessionStorage.getItem('selectedContactArr'); 32 + let selectedContactArr = localStorage.getItem('selectedContactArr');
33 if (selectedContactArr) { 33 if (selectedContactArr) {
34 selectedContactArr = JSON.parse(selectedContactArr); 34 selectedContactArr = JSON.parse(selectedContactArr);
35 this.selectedContactArr = selectedContactArr 35 this.selectedContactArr = selectedContactArr
@@ -44,7 +44,7 @@ export default { @@ -44,7 +44,7 @@ export default {
44 // 删除联系人 44 // 删除联系人
45 delContact (index) { 45 delContact (index) {
46 this.selectedContactArr.splice(index, 1) 46 this.selectedContactArr.splice(index, 1)
47 - sessionStorage.setItem('selectedContactArr', JSON.stringify(this.selectedContactArr)) 47 + localStorage.setItem('selectedContactArr', JSON.stringify(this.selectedContactArr))
48 } 48 }
49 } 49 }
50 } 50 }
src/views/Travel/classAttestation.vue
@@ -52,7 +52,7 @@ export default { @@ -52,7 +52,7 @@ export default {
52 methods: { 52 methods: {
53 //认领 53 //认领
54 toClaim(val,state) { 54 toClaim(val,state) {
55 - let phone = JSON.parse(sessionStorage.getItem('userInfo')).phone 55 + let phone = JSON.parse(localStorage.getItem('userInfo')).phone
56 let schoolName = this.$route.query.schoolNamequery ? this.$route.query.schoolNamequery : '' 56 let schoolName = this.$route.query.schoolNamequery ? this.$route.query.schoolNamequery : ''
57 let classNames = val.className 57 let classNames = val.className
58 this.yxAxios.post(`${this.baseUrl}/prod/user/info/claimClass?loginMobile=${phone}&schoolName=${schoolName}&classNames=${classNames}&operateFlag=${state}`).then((res) => { 58 this.yxAxios.post(`${this.baseUrl}/prod/user/info/claimClass?loginMobile=${phone}&schoolName=${schoolName}&classNames=${classNames}&operateFlag=${state}`).then((res) => {
@@ -71,7 +71,7 @@ export default { @@ -71,7 +71,7 @@ export default {
71 }, 71 },
72 //获取年级 72 //获取年级
73 getClass() { 73 getClass() {
74 - let phone = JSON.parse(sessionStorage.getItem('userInfo')).phone 74 + let phone = JSON.parse(localStorage.getItem('userInfo')).phone
75 let schoolName = this.$route.query.schoolNamequery ? this.$route.query.schoolNamequery : '' 75 let schoolName = this.$route.query.schoolNamequery ? this.$route.query.schoolNamequery : ''
76 this.yxAxios.post(`${this.baseUrl}/prod/user/info/getClassAuth?loginMobile=${phone}&schoolName=${schoolName}`).then((res) => { 76 this.yxAxios.post(`${this.baseUrl}/prod/user/info/getClassAuth?loginMobile=${phone}&schoolName=${schoolName}`).then((res) => {
77 this.$toast.clear() 77 this.$toast.clear()
src/views/Travel/component/groupPenson.vue
@@ -89,7 +89,7 @@ export default { @@ -89,7 +89,7 @@ export default {
89 }, 89 },
90 90
91 mounted () { 91 mounted () {
92 - let userInfo = sessionStorage.getItem('userInfo') 92 + let userInfo = localStorage.getItem('userInfo')
93 this.userInfo = JSON.parse(userInfo); 93 this.userInfo = JSON.parse(userInfo);
94 }, 94 },
95 methods: { 95 methods: {
@@ -148,7 +148,7 @@ export default { @@ -148,7 +148,7 @@ export default {
148 duration: 0, 148 duration: 0,
149 forbidClick: true 149 forbidClick: true
150 }) 150 })
151 - const userInfo = JSON.parse(sessionStorage.getItem('userInfo')) 151 + const userInfo = JSON.parse(localStorage.getItem('userInfo'))
152 152
153 this.yxAxios.post(`${this.baseUrl}/prod/user/info/checkPhoneAndCode`, { 153 this.yxAxios.post(`${this.baseUrl}/prod/user/info/checkPhoneAndCode`, {
154 "code": this.code, 154 "code": this.code,
src/views/Travel/component/schoolAdd.vue
@@ -45,7 +45,7 @@ export default { @@ -45,7 +45,7 @@ export default {
45 }, 45 },
46 46
47 mounted () { 47 mounted () {
48 - let userInfo = sessionStorage.getItem('userInfo') 48 + let userInfo = localStorage.getItem('userInfo')
49 this.userInfo = JSON.parse(userInfo); 49 this.userInfo = JSON.parse(userInfo);
50 }, 50 },
51 methods: { 51 methods: {
@@ -96,19 +96,19 @@ export default { @@ -96,19 +96,19 @@ export default {
96 forbidClick: true 96 forbidClick: true
97 }) 97 })
98 98
99 - this.yxAxios.get(`${this.baseUrl}/prod/api/wx/${this.appid}/getUserInfo?unionId=${sessionStorage.getItem('unionId')}`).then((res) => { 99 + this.yxAxios.get(`${this.baseUrl}/prod/api/wx/${this.appid}/getUserInfo?unionId=${localStorage.getItem('unionId')}`).then((res) => {
100 this.$toast.clear() 100 this.$toast.clear()
101 if (res.data.code == 200) { 101 if (res.data.code == 200) {
102 - sessionStorage.setItem('userInfo', JSON.stringify(res.data.data)) 102 + localStorage.setItem('userInfo', JSON.stringify(res.data.data))
103 103
104 if(res.data.data.schoolNames || res.data.data.schoolNames == [] || res.data.data.schoolNames == 'null') { 104 if(res.data.data.schoolNames || res.data.data.schoolNames == [] || res.data.data.schoolNames == 'null') {
105 - sessionStorage.setItem('schoolNames',JSON.stringify(res.data.data.schoolNames)) 105 + localStorage.setItem('schoolNames',JSON.stringify(res.data.data.schoolNames))
106 this.$store.commit('changeSchool', res.data.data.schoolNames) 106 this.$store.commit('changeSchool', res.data.data.schoolNames)
107 - if(!sessionStorage.getItem('schoolNamesChoose')) {  
108 - sessionStorage.setItem('schoolNamesChoose',res.data.data.schoolNames[0]) 107 + if(!localStorage.getItem('schoolNamesChoose')) {
  108 + localStorage.setItem('schoolNamesChoose',res.data.data.schoolNames[0])
109 } 109 }
110 }else { 110 }else {
111 - sessionStorage.setItem('schoolNames',[]) 111 + localStorage.setItem('schoolNames',[])
112 this.$store.commit('changeSchool', []) 112 this.$store.commit('changeSchool', [])
113 } 113 }
114 } 114 }
src/views/Travel/schoolAttestation.vue
@@ -31,7 +31,7 @@ export default { @@ -31,7 +31,7 @@ export default {
31 methods: { 31 methods: {
32 //获取学校 32 //获取学校
33 getSchool() { 33 getSchool() {
34 - let userNum = JSON.parse(sessionStorage.getItem('userInfo')).centerNo 34 + let userNum = JSON.parse(localStorage.getItem('userInfo')).centerNo
35 this.yxAxios.get(`${this.baseUrl}/prod/user/info/getSchool?userNum=${userNum}`).then((res) => { 35 this.yxAxios.get(`${this.baseUrl}/prod/user/info/getSchool?userNum=${userNum}`).then((res) => {
36 if(res.data.code == 200) { 36 if(res.data.code == 200) {
37 this.schoolList = res.data.data 37 this.schoolList = res.data.data
@@ -42,8 +42,8 @@ export default { @@ -42,8 +42,8 @@ export default {
42 }, 42 },
43 //切换学校 43 //切换学校
44 switchSchool() { 44 switchSchool() {
45 - sessionStorage.setItem('backRZ',true)  
46 - this.$router.push({name: sessionStorage.getItem('prePage') }) 45 + localStorage.setItem('backRZ',true)
  46 + this.$router.push({name: localStorage.getItem('prePage') })
47 }, 47 },
48 //选择班级 48 //选择班级
49 switchClass(v) { 49 switchClass(v) {
src/views/Travel/schoolFollow.vue
@@ -33,11 +33,11 @@ export default { @@ -33,11 +33,11 @@ export default {
33 methods: { 33 methods: {
34 //切换学校 34 //切换学校
35 switchSchool(v) { 35 switchSchool(v) {
36 - sessionStorage.setItem('schoolNamesChoose',JSON.stringify(v))  
37 - this.$router.push({name : sessionStorage.getItem('prePage')}) 36 + localStorage.setItem('schoolNamesChoose',JSON.stringify(v))
  37 + this.$router.push({name : localStorage.getItem('prePage')})
38 }, 38 },
39 getList() { 39 getList() {
40 - this.schoolList = JSON.parse(sessionStorage.getItem('schoolNames')) 40 + this.schoolList = JSON.parse(localStorage.getItem('schoolNames'))
41 } 41 }
42 } 42 }
43 } 43 }
src/views/data.json 0 → 100644
@@ -0,0 +1,130 @@ @@ -0,0 +1,130 @@
  1 +{
  2 + "nickName": null,
  3 + "travelerName": "夏洋涛",
  4 + "phone": "17858500169",
  5 + "centerNo": "2022031508525674030748540013076",
  6 + "idCard": "330881199606054935",
  7 + "thirdSource": 1,
  8 + "unionId": "oJPmPuLaAx2x2DaRGfCFeYuLWzLU",
  9 + "userState": null,
  10 + "userType": 2,
  11 + "gender": 1,
  12 + "isMember": 2,
  13 + "subUsers": [{
  14 + "id": 49238,
  15 + "travelerName": "xia",
  16 + "travelerIdCard": "330881199606054935",
  17 + "travelerNum": "2022042515320607668704830046683",
  18 + "travelerMobile": "17858500169",
  19 + "travelerType": 0,
  20 + "enrollYear": "2016",
  21 + "age": null,
  22 + "gender": 1,
  23 + "channelCode": null,
  24 + "unionId": null,
  25 + "province": "浙江省",
  26 + "city": "温州市",
  27 + "area": "瓯海区",
  28 + "schoolName": "温州市第二十一中学",
  29 + "gradeName": "1班",
  30 + "className": "1班",
  31 + "whiteFlag": 1,
  32 + "studyCode": null,
  33 + "userState": 1,
  34 + "userType": 1,
  35 + "memberId": null,
  36 + "bingMobile": "17858500169",
  37 + "isBing": 1,
  38 + "ssoId": null,
  39 + "sex": null,
  40 + "pass": null,
  41 + "syncTime": "2022-04-25T15:32:06.250+08:00",
  42 + "updateTime": "2022-04-28T11:09:57.667+08:00"
  43 + }, {
  44 + "id": 52229,
  45 + "travelerName": "林淡",
  46 + "travelerIdCard": "331081198803306735",
  47 + "travelerNum": "2022050615163709304353550045179",
  48 + "travelerMobile": "15168313607",
  49 + "travelerType": null,
  50 + "enrollYear": null,
  51 + "age": null,
  52 + "gender": 1,
  53 + "channelCode": null,
  54 + "unionId": null,
  55 + "province": null,
  56 + "city": null,
  57 + "area": null,
  58 + "schoolName": null,
  59 + "gradeName": null,
  60 + "className": null,
  61 + "whiteFlag": null,
  62 + "studyCode": null,
  63 + "userState": 1,
  64 + "userType": 2,
  65 + "memberId": null,
  66 + "bingMobile": "13989547857,17858500169",
  67 + "isBing": 1,
  68 + "ssoId": null,
  69 + "sex": null,
  70 + "pass": null,
  71 + "syncTime": "2022-05-06T15:16:37.933+08:00",
  72 + "updateTime": "2022-05-06T15:23:51.297+08:00"
  73 + }, {
  74 + "id": 52230,
  75 + "travelerName": "林珈逸",
  76 + "travelerIdCard": "330602201507040021",
  77 + "travelerNum": "2022050615244927688271930045180",
  78 + "travelerMobile": "15168313607",
  79 + "travelerType": 1,
  80 + "enrollYear": "2021",
  81 + "age": null,
  82 + "gender": 2,
  83 + "channelCode": null,
  84 + "unionId": null,
  85 + "province": "浙江省",
  86 + "city": "绍兴市",
  87 + "area": "越城区",
  88 + "schoolName": "绍兴市塔山中心小学",
  89 + "gradeName": "3班",
  90 + "className": "3班",
  91 + "whiteFlag": null,
  92 + "studyCode": null,
  93 + "userState": 1,
  94 + "userType": 1,
  95 + "memberId": null,
  96 + "bingMobile": "17858500169,13989547857",
  97 + "isBing": 1,
  98 + "ssoId": null,
  99 + "sex": null,
  100 + "pass": null,
  101 + "syncTime": "2022-05-06T15:24:49.563+08:00",
  102 + "updateTime": "2022-07-09T12:20:29.790+08:00"
  103 + }],
  104 + "schoolNames": [{
  105 + "schoolId": 7,
  106 + "schoolName": "绍兴市塔山中心小学",
  107 + "province": null,
  108 + "city": null,
  109 + "area": null
  110 + }, {
  111 + "schoolId": 4804,
  112 + "schoolName": "绍兴市建功中学",
  113 + "province": null,
  114 + "city": null,
  115 + "area": null
  116 + }, {
  117 + "schoolId": 355,
  118 + "schoolName": "绍兴蕺山外国语学校",
  119 + "province": null,
  120 + "city": null,
  121 + "area": null
  122 + }, {
  123 + "schoolId": 188,
  124 + "schoolName": "温州市第二十一中学",
  125 + "province": null,
  126 + "city": null,
  127 + "area": null
  128 + }],
  129 + "auth": false
  130 +}
0 \ No newline at end of file 131 \ No newline at end of file