Commit 36ed0d31ba94f0cb5f46e22a87935880769e609b
1 parent
d441a60b
Exists in
master
feat: 支付宝支付完成后,sessionStorage存储有问题,sessionStorage改成localStorage
Showing
22 changed files
with
79 additions
and
79 deletions
Show diff stats
src/views/Home/Home.vue
| ... | ... | @@ -81,11 +81,11 @@ export default { |
| 81 | 81 | }, |
| 82 | 82 | |
| 83 | 83 | mounted () { |
| 84 | - const isElder = sessionStorage.getItem('isElder') | |
| 84 | + const isElder = localStorage.getItem('isElder') | |
| 85 | 85 | if (isElder) { |
| 86 | 86 | this.isElder = true |
| 87 | 87 | } |
| 88 | - this.centerNo = sessionStorage.getItem('centerNo'); | |
| 88 | + this.centerNo = localStorage.getItem('centerNo'); | |
| 89 | 89 | this.getUserInfo() |
| 90 | 90 | |
| 91 | 91 | }, |
| ... | ... | @@ -123,7 +123,7 @@ export default { |
| 123 | 123 | .then(() => { |
| 124 | 124 | // on confirm |
| 125 | 125 | this.isElder = false |
| 126 | - sessionStorage.removeItem('isElder') | |
| 126 | + localStorage.removeItem('isElder') | |
| 127 | 127 | this.$emit('setElder', false) |
| 128 | 128 | }) |
| 129 | 129 | .catch(() => { |
| ... | ... | @@ -139,7 +139,7 @@ export default { |
| 139 | 139 | .then(() => { |
| 140 | 140 | // on confirm |
| 141 | 141 | this.isElder = true |
| 142 | - sessionStorage.setItem('isElder', 1) | |
| 142 | + localStorage.setItem('isElder', 1) | |
| 143 | 143 | this.$emit('setElder', true) |
| 144 | 144 | }) |
| 145 | 145 | .catch(() => { | ... | ... |
src/views/Home/MyClassList.vue
| ... | ... | @@ -64,7 +64,7 @@ export default { |
| 64 | 64 | this.userInfo = JSON.parse(userInfo); |
| 65 | 65 | } |
| 66 | 66 | // 选择的出行人 |
| 67 | - let selectedContactArr = sessionStorage.getItem('selectedContactArr'); | |
| 67 | + let selectedContactArr = localStorage.getItem('selectedContactArr'); | |
| 68 | 68 | if (selectedContactArr) { |
| 69 | 69 | selectedContactArr = JSON.parse(selectedContactArr); |
| 70 | 70 | this.selectedContact = selectedContactArr[0] | ... | ... |
src/views/Home/StudentDetail.vue
| ... | ... | @@ -89,7 +89,7 @@ export default { |
| 89 | 89 | } |
| 90 | 90 | }, |
| 91 | 91 | mounted () { |
| 92 | - let studentInfo = sessionStorage.getItem('StudentDetialInfo') | |
| 92 | + let studentInfo = localStorage.getItem('StudentDetialInfo') | |
| 93 | 93 | this.studentInfo = JSON.parse(studentInfo) |
| 94 | 94 | this.$nextTick(() => { |
| 95 | 95 | if (!this.studentInfo?.travelerNum) { |
| ... | ... | @@ -225,7 +225,7 @@ export default { |
| 225 | 225 | evaluateCourse (item) { |
| 226 | 226 | let courseInfo = item; |
| 227 | 227 | courseInfo.id = courseInfo.orderId |
| 228 | - window.sessionStorage.setItem('courseInfo', JSON.stringify(courseInfo)) | |
| 228 | + window.localStorage.setItem('courseInfo', JSON.stringify(courseInfo)) | |
| 229 | 229 | this.$router.push({ name: 'evaluateCourse' }) |
| 230 | 230 | }, |
| 231 | 231 | // 基地评价详情 | ... | ... |
src/views/Home/YanxueCode.vue
src/views/Home/YanxueInfo.vue
| ... | ... | @@ -22,7 +22,7 @@ export default { |
| 22 | 22 | }, |
| 23 | 23 | created () { |
| 24 | 24 | |
| 25 | - let studentInfo = JSON.parse(sessionStorage.getItem('StudentDetialInfo')); | |
| 25 | + let studentInfo = JSON.parse(localStorage.getItem('StudentDetialInfo')); | |
| 26 | 26 | this.userNum = studentInfo.travelerNum |
| 27 | 27 | this.school = studentInfo.schoolName |
| 28 | 28 | this.name = studentInfo.travelerName | ... | ... |
src/views/Home/component/AddChildPopupGroup.vue
src/views/Home/component/HomeChildList.vue
| ... | ... | @@ -47,12 +47,12 @@ export default { |
| 47 | 47 | methods: { |
| 48 | 48 | // 研学码 |
| 49 | 49 | // handleYanxue (index) { |
| 50 | - // sessionStorage.setItem('bindYanxueCodeChildInfo',JSON.stringify(this.childList[index])) | |
| 50 | + // localStorage.setItem('bindYanxueCodeChildInfo',JSON.stringify(this.childList[index])) | |
| 51 | 51 | // this.$router.push({ name: 'YanxueCode' }) |
| 52 | 52 | // }, |
| 53 | 53 | // 进入学生详情页 |
| 54 | 54 | handleStudentDetail (index) { |
| 55 | - sessionStorage.setItem('StudentDetialInfo', JSON.stringify(this.childList[index])) | |
| 55 | + localStorage.setItem('StudentDetialInfo', JSON.stringify(this.childList[index])) | |
| 56 | 56 | this.$router.push({ name: 'StudentDetail' }) |
| 57 | 57 | }, |
| 58 | 58 | // 获取孩子列表 |
| ... | ... | @@ -72,7 +72,7 @@ export default { |
| 72 | 72 | // 'isTestUrl': '1' |
| 73 | 73 | }, |
| 74 | 74 | data: { |
| 75 | - "userNum": sessionStorage.getItem('centerNo') | |
| 75 | + "userNum": localStorage.getItem('centerNo') | |
| 76 | 76 | }, |
| 77 | 77 | onSuccess: res => { |
| 78 | 78 | console.log('getUserInfo', res) | ... | ... |
src/views/Service/AbroadDetail.vue
| ... | ... | @@ -235,9 +235,9 @@ export default { |
| 235 | 235 | }; |
| 236 | 236 | }, |
| 237 | 237 | mounted () { |
| 238 | - sessionStorage.removeItem('useCard') | |
| 238 | + localStorage.removeItem('useCard') | |
| 239 | 239 | this.courseId = this.$route.query.courseId; |
| 240 | - this.centerNo = sessionStorage.getItem('centerNo') | |
| 240 | + this.centerNo = localStorage.getItem('centerNo') | |
| 241 | 241 | this.GetCourseDetail(); |
| 242 | 242 | }, |
| 243 | 243 | methods: { |
| ... | ... | @@ -319,7 +319,7 @@ export default { |
| 319 | 319 | // console.log(detailData) |
| 320 | 320 | detailData.course_labels = detailData.course_labels?.split(","); |
| 321 | 321 | this.detailData = detailData; |
| 322 | - sessionStorage.setItem( | |
| 322 | + localStorage.setItem( | |
| 323 | 323 | "showCourseData", |
| 324 | 324 | JSON.stringify({ |
| 325 | 325 | course_name: detailData.course_name, |
| ... | ... | @@ -376,7 +376,7 @@ export default { |
| 376 | 376 | if (res.data.data) { |
| 377 | 377 | if (res.data.data.has.length > 0) { |
| 378 | 378 | this.proCoupon = res.data.data.has |
| 379 | - sessionStorage.setItem("proCoupon", JSON.stringify(this.proCoupon)) | |
| 379 | + localStorage.setItem("proCoupon", JSON.stringify(this.proCoupon)) | |
| 380 | 380 | this.chooseDefaultUseCard(res.data.data.has)//设置默认选中的优惠券 |
| 381 | 381 | this.proCouponHas = true; |
| 382 | 382 | } else if (res.data.data.get.length > 0) { |
| ... | ... | @@ -403,10 +403,10 @@ export default { |
| 403 | 403 | } |
| 404 | 404 | // console.log('useCard', useCard) |
| 405 | 405 | this.proCoupon = [useCard] |
| 406 | - sessionStorage.setItem('useCard', JSON.stringify(useCard)) | |
| 406 | + localStorage.setItem('useCard', JSON.stringify(useCard)) | |
| 407 | 407 | |
| 408 | 408 | } else { |
| 409 | - sessionStorage.setItem('useCard', JSON.stringify(this.proCoupon[0])) | |
| 409 | + localStorage.setItem('useCard', JSON.stringify(this.proCoupon[0])) | |
| 410 | 410 | } |
| 411 | 411 | }, |
| 412 | 412 | // 获取评价 |
| ... | ... | @@ -462,7 +462,7 @@ export default { |
| 462 | 462 | } |
| 463 | 463 | console.log(usefulPackage); |
| 464 | 464 | this.packageData = usefulPackage; |
| 465 | - sessionStorage.setItem( | |
| 465 | + localStorage.setItem( | |
| 466 | 466 | "packageData", |
| 467 | 467 | JSON.stringify(usefulPackage) |
| 468 | 468 | ); | ... | ... |
src/views/Service/CardBoxXST.vue
| ... | ... | @@ -93,7 +93,7 @@ export default { |
| 93 | 93 | if (active) { |
| 94 | 94 | this.active = Number(active) |
| 95 | 95 | } |
| 96 | - this.centerNo = sessionStorage.getItem('centerNo') | |
| 96 | + this.centerNo = localStorage.getItem('centerNo') | |
| 97 | 97 | this.getAllCard() |
| 98 | 98 | this.getReCard() |
| 99 | 99 | }, |
| ... | ... | @@ -253,13 +253,13 @@ export default { |
| 253 | 253 | this.$router.push({ name: 'ServiceAbroadDetail', query: { courseId: proIdArr[0] } }) |
| 254 | 254 | } else { |
| 255 | 255 | // 多个商品跳转优惠券详情页 |
| 256 | - sessionStorage.setItem('cardCousreCardId', item.id) | |
| 257 | - sessionStorage.setItem('cardCousreCardPrice', item.couponPrice) | |
| 258 | - sessionStorage.setItem('cardCousreCardTitle', item.title) | |
| 259 | - sessionStorage.setItem('cardCousreProId', item.proId) | |
| 260 | - sessionStorage.setItem('cardCousreProName', item.proName) | |
| 261 | - sessionStorage.setItem('cardCousrePics', item.pics) | |
| 262 | - sessionStorage.setItem('cardCousreGeted', true)//设置详情页优惠券状态为已领取 | |
| 256 | + localStorage.setItem('cardCousreCardId', item.id) | |
| 257 | + localStorage.setItem('cardCousreCardPrice', item.couponPrice) | |
| 258 | + localStorage.setItem('cardCousreCardTitle', item.title) | |
| 259 | + localStorage.setItem('cardCousreProId', item.proId) | |
| 260 | + localStorage.setItem('cardCousreProName', item.proName) | |
| 261 | + localStorage.setItem('cardCousrePics', item.pics) | |
| 262 | + localStorage.setItem('cardCousreGeted', true)//设置详情页优惠券状态为已领取 | |
| 263 | 263 | this.$router.push({ name: 'CardCourseList' }) |
| 264 | 264 | } |
| 265 | 265 | } |
| ... | ... | @@ -273,13 +273,13 @@ export default { |
| 273 | 273 | this.$router.push({ name: 'ServiceAbroadDetail', query: { courseId: proIdArr[0] } }) |
| 274 | 274 | } else { |
| 275 | 275 | // 多个商品跳转优惠券详情页 |
| 276 | - sessionStorage.setItem('cardCousreCardId', item.id) | |
| 277 | - sessionStorage.setItem('cardCousreCardPrice', item.couponPrice) | |
| 278 | - sessionStorage.setItem('cardCousreCardTitle', item.title) | |
| 279 | - sessionStorage.setItem('cardCousreProId', item.proId) | |
| 280 | - sessionStorage.setItem('cardCousreProName', item.proName) | |
| 281 | - sessionStorage.setItem('cardCousrePics', item.pics) | |
| 282 | - sessionStorage.setItem('cardCousreGeted', false)//设置详情页优惠券状态为待领取 | |
| 276 | + localStorage.setItem('cardCousreCardId', item.id) | |
| 277 | + localStorage.setItem('cardCousreCardPrice', item.couponPrice) | |
| 278 | + localStorage.setItem('cardCousreCardTitle', item.title) | |
| 279 | + localStorage.setItem('cardCousreProId', item.proId) | |
| 280 | + localStorage.setItem('cardCousreProName', item.proName) | |
| 281 | + localStorage.setItem('cardCousrePics', item.pics) | |
| 282 | + localStorage.setItem('cardCousreGeted', false)//设置详情页优惠券状态为待领取 | |
| 283 | 283 | this.$router.push({ name: 'CardCourseList' }) |
| 284 | 284 | } |
| 285 | 285 | ... | ... |
src/views/Service/CardCourseList.vue
| ... | ... | @@ -33,13 +33,13 @@ export default { |
| 33 | 33 | } |
| 34 | 34 | }, |
| 35 | 35 | mounted () { |
| 36 | - this.cardTitle = sessionStorage.getItem('cardCousreCardTitle'); | |
| 37 | - this.couponPrice = sessionStorage.getItem('cardCousreCardPrice'); | |
| 38 | - this.cardId = sessionStorage.getItem('cardCousreCardId'); | |
| 39 | - this.proId = sessionStorage.getItem('cardCousreProId'); | |
| 40 | - this.proName = sessionStorage.getItem('cardCousreProName'); | |
| 41 | - this.pics = sessionStorage.getItem('cardCousrePics'); | |
| 42 | - this.geted = sessionStorage.getItem('cardCousreGeted') == 'true' ? true : false | |
| 36 | + this.cardTitle = localStorage.getItem('cardCousreCardTitle'); | |
| 37 | + this.couponPrice = localStorage.getItem('cardCousreCardPrice'); | |
| 38 | + this.cardId = localStorage.getItem('cardCousreCardId'); | |
| 39 | + this.proId = localStorage.getItem('cardCousreProId'); | |
| 40 | + this.proName = localStorage.getItem('cardCousreProName'); | |
| 41 | + this.pics = localStorage.getItem('cardCousrePics'); | |
| 42 | + this.geted = localStorage.getItem('cardCousreGeted') == 'true' ? true : false | |
| 43 | 43 | this.getCourseList() |
| 44 | 44 | }, |
| 45 | 45 | methods: { |
| ... | ... | @@ -99,7 +99,7 @@ export default { |
| 99 | 99 | // 'isTestUrl': '1' |
| 100 | 100 | }, |
| 101 | 101 | data: { |
| 102 | - "unionId": sessionStorage.getItem('centerNo'), | |
| 102 | + "unionId": localStorage.getItem('centerNo'), | |
| 103 | 103 | "proId": this.proId, |
| 104 | 104 | "proName": this.proName, |
| 105 | 105 | "pic": this.pics, |
| ... | ... | @@ -107,7 +107,7 @@ export default { |
| 107 | 107 | }, |
| 108 | 108 | onSuccess: res => { |
| 109 | 109 | if (res.data.code == 200) { |
| 110 | - sessionStorage.setItem('cardCousreGeted', true) | |
| 110 | + localStorage.setItem('cardCousreGeted', true) | |
| 111 | 111 | this.geted = true; |
| 112 | 112 | this.$toast('领取成功!') |
| 113 | 113 | } else { | ... | ... |
src/views/Service/CardSelect.vue
| ... | ... | @@ -34,7 +34,7 @@ export default { |
| 34 | 34 | } |
| 35 | 35 | }, |
| 36 | 36 | mounted () { |
| 37 | - let cardList = sessionStorage.getItem('proCoupon') | |
| 37 | + let cardList = localStorage.getItem('proCoupon') | |
| 38 | 38 | if (cardList) { |
| 39 | 39 | this.cardList = JSON.parse(cardList) |
| 40 | 40 | } |
| ... | ... | @@ -51,7 +51,7 @@ export default { |
| 51 | 51 | // 确认使用优惠券 |
| 52 | 52 | confirmCard () { |
| 53 | 53 | if (this.selectIndex > -1) { |
| 54 | - sessionStorage.setItem('useCard', JSON.stringify(this.cardList[this.selectIndex])) | |
| 54 | + localStorage.setItem('useCard', JSON.stringify(this.cardList[this.selectIndex])) | |
| 55 | 55 | } |
| 56 | 56 | this.$router.back() |
| 57 | 57 | } | ... | ... |
src/views/Service/CheckOrder.vue
| ... | ... | @@ -73,7 +73,7 @@ export default { |
| 73 | 73 | this.userInfo = JSON.parse(userInfo); |
| 74 | 74 | } |
| 75 | 75 | // 选择的出行人 |
| 76 | - let selectedContactArr = sessionStorage.getItem('selectedContactArr'); | |
| 76 | + let selectedContactArr = localStorage.getItem('selectedContactArr'); | |
| 77 | 77 | if (selectedContactArr) { |
| 78 | 78 | selectedContactArr = JSON.parse(selectedContactArr); |
| 79 | 79 | this.selectedContactArr = selectedContactArr |
| ... | ... | @@ -89,14 +89,14 @@ export default { |
| 89 | 89 | this.period = this.$route.query.period; |
| 90 | 90 | |
| 91 | 91 | // 套餐 |
| 92 | - let selectCombo = sessionStorage.getItem('selectCombo') | |
| 92 | + let selectCombo = localStorage.getItem('selectCombo') | |
| 93 | 93 | if (selectCombo) { |
| 94 | 94 | this.selectCombo = JSON.parse(selectCombo) |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | // 如果有优惠券,就展示 |
| 98 | - let useCard = sessionStorage.getItem('useCard') | |
| 99 | - let showCourseData = sessionStorage.getItem('showCourseData') | |
| 98 | + let useCard = localStorage.getItem('useCard') | |
| 99 | + let showCourseData = localStorage.getItem('showCourseData') | |
| 100 | 100 | if (useCard) { |
| 101 | 101 | this.useCard = JSON.parse(useCard) |
| 102 | 102 | } |
| ... | ... | @@ -171,12 +171,12 @@ export default { |
| 171 | 171 | if (res.data.data) { |
| 172 | 172 | if (this.paymoney == 0) { |
| 173 | 173 | // 使用后移除优惠券,防止返回继续使用 |
| 174 | - sessionStorage.removeItem('useCard') | |
| 174 | + localStorage.removeItem('useCard') | |
| 175 | 175 | this.$router.push({ name: 'ServiceOrderXST', query: { active: 1, showChatGroupUrl: 1 } }) |
| 176 | 176 | |
| 177 | 177 | } else { |
| 178 | 178 | // 使用后移除优惠券,防止返回继续使用 |
| 179 | - sessionStorage.removeItem('useCard') | |
| 179 | + localStorage.removeItem('useCard') | |
| 180 | 180 | this.openPay(res.data.data); |
| 181 | 181 | this.orderId = res.data.data.orderId; |
| 182 | 182 | } |
| ... | ... | @@ -313,7 +313,7 @@ export default { |
| 313 | 313 | localStorage.removeItem('outTradeNo') |
| 314 | 314 | // 如果已支付就跳转 |
| 315 | 315 | if (res.data.data) { |
| 316 | - sessionStorage.removeItem('selectedContactArr') | |
| 316 | + localStorage.removeItem('selectedContactArr') | |
| 317 | 317 | this.$router.push({ name: 'ServiceOrderXST', query: { active: 1, showChatGroupUrl: 1 } }) |
| 318 | 318 | } |
| 319 | 319 | }, | ... | ... |
src/views/Service/DatePackage.vue
| ... | ... | @@ -67,7 +67,7 @@ export default { |
| 67 | 67 | } |
| 68 | 68 | }, |
| 69 | 69 | mounted () { |
| 70 | - sessionStorage.removeItem('selectedContactArr') | |
| 70 | + localStorage.removeItem('selectedContactArr') | |
| 71 | 71 | // date 日期 |
| 72 | 72 | const date = this.$route.query.date; |
| 73 | 73 | if (date) { |
| ... | ... | @@ -75,7 +75,7 @@ export default { |
| 75 | 75 | this.defaultDate = new Date(date) |
| 76 | 76 | } |
| 77 | 77 | // 缓存中读取排期 |
| 78 | - let packageData = sessionStorage.getItem('packageData') | |
| 78 | + let packageData = localStorage.getItem('packageData') | |
| 79 | 79 | if (packageData) { |
| 80 | 80 | this.packageData = JSON.parse(packageData) |
| 81 | 81 | |
| ... | ... | @@ -85,7 +85,7 @@ export default { |
| 85 | 85 | } |
| 86 | 86 | } |
| 87 | 87 | // 当前的商品信息 |
| 88 | - let showCourseData = sessionStorage.getItem('showCourseData') | |
| 88 | + let showCourseData = localStorage.getItem('showCourseData') | |
| 89 | 89 | if (showCourseData) { |
| 90 | 90 | this.showCourseData = JSON.parse(showCourseData) |
| 91 | 91 | } |
| ... | ... | @@ -94,7 +94,7 @@ export default { |
| 94 | 94 | methods: { |
| 95 | 95 | // 获取库存 |
| 96 | 96 | GetOrderPayCount () { |
| 97 | - let showCourseData = JSON.parse(sessionStorage.getItem('showCourseData')) | |
| 97 | + let showCourseData = JSON.parse(localStorage.getItem('showCourseData')) | |
| 98 | 98 | this.mgop({ |
| 99 | 99 | api: 'mgop.sz.hswsy.OrderPayCount', // 必须 |
| 100 | 100 | host: 'https://mapi.zjzwfw.gov.cn/', |
| ... | ... | @@ -120,7 +120,7 @@ export default { |
| 120 | 120 | }, |
| 121 | 121 | // 获取库存第二个参数 |
| 122 | 122 | getSurplusComboCount (bindId) { |
| 123 | - let showCourseData = JSON.parse(sessionStorage.getItem('showCourseData')) | |
| 123 | + let showCourseData = JSON.parse(localStorage.getItem('showCourseData')) | |
| 124 | 124 | this.mgop({ |
| 125 | 125 | api: 'mgop.sz.hswsy.SurplusComboCount', // 必须 |
| 126 | 126 | host: 'https://mapi.zjzwfw.gov.cn/', |
| ... | ... | @@ -216,7 +216,7 @@ export default { |
| 216 | 216 | date: this.date, |
| 217 | 217 | count: this.count |
| 218 | 218 | } |
| 219 | - sessionStorage.setItem('selectCombo', JSON.stringify(this.comboList[this.active])) | |
| 219 | + localStorage.setItem('selectCombo', JSON.stringify(this.comboList[this.active])) | |
| 220 | 220 | this.$router.push({ name: 'ServiceCheckOrder', query: query }) |
| 221 | 221 | } |
| 222 | 222 | }, | ... | ... |
src/views/Service/EditContact.vue
| ... | ... | @@ -35,7 +35,7 @@ export default { |
| 35 | 35 | } |
| 36 | 36 | }, |
| 37 | 37 | mounted () { |
| 38 | - let editContact = JSON.parse(sessionStorage.getItem('editContact')) | |
| 38 | + let editContact = JSON.parse(localStorage.getItem('editContact')) | |
| 39 | 39 | |
| 40 | 40 | this.userType = editContact?.userType |
| 41 | 41 | this.userTypeName = editContact?.userType == 1 ? '学生' : '家长' | ... | ... |
src/views/Service/SelectContact.vue
| ... | ... | @@ -59,7 +59,7 @@ export default { |
| 59 | 59 | // 'isTestUrl': '1' |
| 60 | 60 | }, |
| 61 | 61 | data: { |
| 62 | - "userNum": sessionStorage.getItem('centerNo') | |
| 62 | + "userNum": localStorage.getItem('centerNo') | |
| 63 | 63 | }, |
| 64 | 64 | onSuccess: res => { |
| 65 | 65 | console.log('联系人列表:', res) |
| ... | ... | @@ -94,7 +94,7 @@ export default { |
| 94 | 94 | travelerNum: contactItem.travelerNum, |
| 95 | 95 | travelerName: contactItem.travelerName |
| 96 | 96 | } |
| 97 | - sessionStorage.setItem('editContact', JSON.stringify(editContact)) | |
| 97 | + localStorage.setItem('editContact', JSON.stringify(editContact)) | |
| 98 | 98 | this.$router.push({ name: 'EditContact' }) |
| 99 | 99 | }, |
| 100 | 100 | complete () { |
| ... | ... | @@ -125,7 +125,7 @@ export default { |
| 125 | 125 | return; |
| 126 | 126 | } |
| 127 | 127 | // console.log(selectedArr) |
| 128 | - sessionStorage.setItem('selectedContactArr', JSON.stringify(selectedArr)) | |
| 128 | + localStorage.setItem('selectedContactArr', JSON.stringify(selectedArr)) | |
| 129 | 129 | this.$router.back() |
| 130 | 130 | }, |
| 131 | 131 | checkboxChange (e) { | ... | ... |
src/views/Service/ServiceKQ.vue
| ... | ... | @@ -23,11 +23,11 @@ export default { |
| 23 | 23 | }, |
| 24 | 24 | methods: { |
| 25 | 25 | checkAuth () { |
| 26 | - let centerNo = sessionStorage.getItem('centerNo'); | |
| 26 | + let centerNo = localStorage.getItem('centerNo'); | |
| 27 | 27 | let ticket = this.common.getUrlParam('ticket'); |
| 28 | 28 | if (centerNo) { |
| 29 | 29 | this.centerNo = centerNo |
| 30 | - sessionStorage.setItem('centerNo', centerNo); | |
| 30 | + localStorage.setItem('centerNo', centerNo); | |
| 31 | 31 | this.getUserInfo() |
| 32 | 32 | } else if (ticket) { |
| 33 | 33 | this.getCenterByTicket(ticket) |
| ... | ... | @@ -47,7 +47,7 @@ export default { |
| 47 | 47 | alert('非浙里办渠道访问,显示测试用户数据') |
| 48 | 48 | console.log('非浙里办渠道访问,显示测试用户数据') |
| 49 | 49 | this.centerNo = '20210930160466993660' |
| 50 | - sessionStorage.setItem('centerNo', '20210930160466993660'); | |
| 50 | + localStorage.setItem('centerNo', '20210930160466993660'); | |
| 51 | 51 | this.getUserInfo() |
| 52 | 52 | } |
| 53 | 53 | } |
| ... | ... | @@ -70,7 +70,7 @@ export default { |
| 70 | 70 | console.log('通过ticket获取centerNo成功', res) |
| 71 | 71 | if (res.data.code == 200) { |
| 72 | 72 | this.centerNo = res.data.message |
| 73 | - sessionStorage.setItem('centerNo', res.data.message); | |
| 73 | + localStorage.setItem('centerNo', res.data.message); | |
| 74 | 74 | } else { |
| 75 | 75 | this.reLoad() |
| 76 | 76 | } | ... | ... |
src/views/Service/ServiceOrderXST.vue
| ... | ... | @@ -223,7 +223,7 @@ export default { |
| 223 | 223 | }, |
| 224 | 224 | computed: { |
| 225 | 225 | nicknameUser () { |
| 226 | - return sessionStorage.getItem('nicknameUser') | |
| 226 | + return localStorage.getItem('nicknameUser') | |
| 227 | 227 | } |
| 228 | 228 | }, |
| 229 | 229 | mounted () { |
| ... | ... | @@ -270,7 +270,7 @@ export default { |
| 270 | 270 | // 'isTestUrl': '1' |
| 271 | 271 | }, |
| 272 | 272 | data: { |
| 273 | - "userId": sessionStorage.getItem('centerNo'), | |
| 273 | + "userId": localStorage.getItem('centerNo'), | |
| 274 | 274 | "type": 1, |
| 275 | 275 | "page": 1, |
| 276 | 276 | "pageSize": 999 |
| ... | ... | @@ -302,7 +302,7 @@ export default { |
| 302 | 302 | // 'isTestUrl': '1' |
| 303 | 303 | }, |
| 304 | 304 | data: { |
| 305 | - "userId": sessionStorage.getItem('centerNo'), | |
| 305 | + "userId": localStorage.getItem('centerNo'), | |
| 306 | 306 | "type": 2, |
| 307 | 307 | "page": 1, |
| 308 | 308 | "pageSize": 999 |
| ... | ... | @@ -334,7 +334,7 @@ export default { |
| 334 | 334 | // 'isTestUrl': '1' |
| 335 | 335 | }, |
| 336 | 336 | data: { |
| 337 | - "userId": sessionStorage.getItem('centerNo'), | |
| 337 | + "userId": localStorage.getItem('centerNo'), | |
| 338 | 338 | "type": 3, |
| 339 | 339 | "page": 1, |
| 340 | 340 | "pageSize": 999 |
| ... | ... | @@ -366,7 +366,7 @@ export default { |
| 366 | 366 | // 'isTestUrl': '1' |
| 367 | 367 | }, |
| 368 | 368 | data: { |
| 369 | - "userId": sessionStorage.getItem('centerNo'), | |
| 369 | + "userId": localStorage.getItem('centerNo'), | |
| 370 | 370 | "type": 4, |
| 371 | 371 | "page": 1, |
| 372 | 372 | "pageSize": 999 |
| ... | ... | @@ -401,7 +401,7 @@ export default { |
| 401 | 401 | }, |
| 402 | 402 | //评价 |
| 403 | 403 | evaluate (item) { |
| 404 | - window.sessionStorage.setItem('courseInfo', JSON.stringify(item)) | |
| 404 | + window.localStorage.setItem('courseInfo', JSON.stringify(item)) | |
| 405 | 405 | this.$router.push({ name: 'evaluateCourse' }) |
| 406 | 406 | }, |
| 407 | 407 | //核销码 | ... | ... |
src/views/Service/component/Screen.vue
| ... | ... | @@ -20,7 +20,7 @@ export default { |
| 20 | 20 | } |
| 21 | 21 | }, |
| 22 | 22 | mounted () { |
| 23 | - let timeAlreadyShown = sessionStorage.getItem('timeAlreadyShown'); | |
| 23 | + let timeAlreadyShown = localStorage.getItem('timeAlreadyShown'); | |
| 24 | 24 | if (timeAlreadyShown && !this.reload) { |
| 25 | 25 | this.showTime = false |
| 26 | 26 | return; |
| ... | ... | @@ -36,7 +36,7 @@ export default { |
| 36 | 36 | skip () { |
| 37 | 37 | this.showTime = false |
| 38 | 38 | clearInterval(this.timeInterval) |
| 39 | - sessionStorage.setItem('timeAlreadyShown', true) | |
| 39 | + localStorage.setItem('timeAlreadyShown', true) | |
| 40 | 40 | } |
| 41 | 41 | } |
| 42 | 42 | } | ... | ... |
src/views/Service/evaluateBase.vue
| ... | ... | @@ -67,7 +67,7 @@ export default { |
| 67 | 67 | if (userInfo) { |
| 68 | 68 | this.userInfo = JSON.parse(userInfo); |
| 69 | 69 | } |
| 70 | - let studentInfo = sessionStorage.getItem('StudentDetialInfo') | |
| 70 | + let studentInfo = localStorage.getItem('StudentDetialInfo') | |
| 71 | 71 | this.studentInfo = JSON.parse(studentInfo) |
| 72 | 72 | this.baseId = this.$route.query.baseId |
| 73 | 73 | this.signId = this.$route.query.signId | ... | ... |
src/views/Service/evaluateCourse.vue
| ... | ... | @@ -71,7 +71,7 @@ export default { |
| 71 | 71 | if (userInfo) { |
| 72 | 72 | this.userInfo = JSON.parse(userInfo); |
| 73 | 73 | } |
| 74 | - var courseInfo = sessionStorage.getItem('courseInfo'); | |
| 74 | + var courseInfo = localStorage.getItem('courseInfo'); | |
| 75 | 75 | if (courseInfo) { |
| 76 | 76 | this.courseInfo = JSON.parse(courseInfo); |
| 77 | 77 | } | ... | ... |
src/views/Service/evaluateDetail.vue
| ... | ... | @@ -80,7 +80,7 @@ export default { |
| 80 | 80 | } |
| 81 | 81 | this.getEvaluationDetail() |
| 82 | 82 | |
| 83 | - var courseInfo = window.sessionStorage.getItem('courseInfo'); | |
| 83 | + var courseInfo = window.localStorage.getItem('courseInfo'); | |
| 84 | 84 | if (courseInfo) { |
| 85 | 85 | this.courseInfo = JSON.parse(courseInfo); |
| 86 | 86 | } | ... | ... |
src/views/Service/evaluatePubilc.vue
| ... | ... | @@ -71,7 +71,7 @@ export default { |
| 71 | 71 | if (userInfo) { |
| 72 | 72 | this.userInfo = JSON.parse(userInfo); |
| 73 | 73 | } |
| 74 | - var courseInfo = sessionStorage.getItem('courseInfo'); | |
| 74 | + var courseInfo = localStorage.getItem('courseInfo'); | |
| 75 | 75 | if (courseInfo) { |
| 76 | 76 | this.courseInfo = JSON.parse(courseInfo); |
| 77 | 77 | } | ... | ... |