Browse Source

feat: 登陆接口补充id传参;

pull/1/head
Fox-33 2 weeks ago
parent
commit
b4c91e3df4
7 changed files with 29 additions and 1 deletions
  1. +4
    -0
      components/config/loginPopup.vue
  2. +5
    -1
      pages/index/index.vue
  3. +4
    -0
      pages_order/sharing/article.vue
  4. +4
    -0
      pages_order/sharing/group.vue
  5. +4
    -0
      pages_order/sharing/personal.vue
  6. +4
    -0
      pages_order/sharing/video.vue
  7. +4
    -0
      store/store.js

+ 4
- 0
components/config/loginPopup.vue View File

@ -51,6 +51,10 @@ export default {
data.shareId = uni.getStorageSync('shareId')
}
if (uni.getStorageSync('id')) {
data.id = uni.getStorageSync('id')
}
if (uni.getStorageSync('state')) {
data.state = uni.getStorageSync('state')
}


+ 5
- 1
pages/index/index.vue View File

@ -62,7 +62,7 @@
...mapState(['userInfo']),
},
onLoad(option) {
const { state, shareId } = option
const { id, state, shareId } = option
if (shareId) {
uni.setStorageSync('shareId', shareId)
@ -71,6 +71,10 @@
if (state) {
uni.setStorageSync('state', state)
}
if (id) {
uni.setStorageSync('id', id)
}
if (shareId && !uni.getStorageSync('token')) {


+ 4
- 0
pages_order/sharing/article.vue View File

@ -67,6 +67,10 @@
if (state) {
uni.setStorageSync('state', state)
}
if (id) {
uni.setStorageSync('id', id)
}
this.id = id


+ 4
- 0
pages_order/sharing/group.vue View File

@ -61,6 +61,10 @@
if (state) {
uni.setStorageSync('state', state)
}
if (id) {
uni.setStorageSync('id', id)
}
this.id = id


+ 4
- 0
pages_order/sharing/personal.vue View File

@ -60,6 +60,10 @@
if (state) {
uni.setStorageSync('state', state)
}
if (id) {
uni.setStorageSync('id', id)
}
this.id = id


+ 4
- 0
pages_order/sharing/video.vue View File

@ -71,6 +71,10 @@
if (state) {
uni.setStorageSync('state', state)
}
if (id) {
uni.setStorageSync('id', id)
}
this.id = id


+ 4
- 0
store/store.js View File

@ -63,6 +63,10 @@ const store = new Vuex.Store({
if (uni.getStorageSync('shareId')) {
data.shareId = uni.getStorageSync('shareId')
}
if (uni.getStorageSync('id')) {
data.id = uni.getStorageSync('id')
}
if (uni.getStorageSync('state')) {
data.state = uni.getStorageSync('state')


Loading…
Cancel
Save