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