Browse Source

feat: 页面调整;

pull/10/head
Fox-33 1 month ago
parent
commit
4c110d0a76
5 changed files with 22 additions and 35 deletions
  1. +3
    -8
      pages_order/auth/wxLogin.vue
  2. +1
    -3
      pages_order/sharing/article.vue
  3. +7
    -12
      pages_order/sharing/group.vue
  4. +7
    -9
      pages_order/sharing/personal.vue
  5. +4
    -3
      pages_order/sharing/video.vue

+ 3
- 8
pages_order/auth/wxLogin.vue View File

@ -93,14 +93,9 @@
} }
}, },
onCancel() { onCancel() {
uni.navigateBack({
delta: 1,
fail: () => {
uni.reLaunch({
url: '/pages/index/index'
})
}
});
uni.reLaunch({
url: '/pages/index/index'
})
}, },
} }
} }


+ 1
- 3
pages_order/sharing/article.vue View File

@ -55,7 +55,7 @@
}, },
onShow() { onShow() {
if (this.id && uni.getStorageSync('token')) { if (this.id && uni.getStorageSync('token')) {
this.initData()
this.detail.id ? this.refreshLockStatus() : this.initData()
} }
}, },
async onLoad(option) { async onLoad(option) {
@ -103,8 +103,6 @@
} }
this.$fetch('addLogShareInfo', params) this.$fetch('addLogShareInfo', params)
this.refreshLockStatus()
return o return o
}, },
methods: { methods: {


+ 7
- 12
pages_order/sharing/group.vue View File

@ -48,7 +48,7 @@
}, },
onShow() { onShow() {
if (this.id && uni.getStorageSync('token')) { if (this.id && uni.getStorageSync('token')) {
this.fetchDetails()
this.detail.id ? this.refreshLockStatus() : this.fetchDetails()
} }
}, },
onLoad(option) { onLoad(option) {
@ -88,17 +88,12 @@
query: `id=${this.id}&state=2&shareId=${this.userInfo.id}`, query: `id=${this.id}&state=2&shareId=${this.userInfo.id}`,
} }
//
const params = {
id:this.id,
state:"2",
}
this.$fetch('addLogShareInfo', params)
this.refreshLockStatus()
//
const params = {
id:this.id,
state:"2",
}
this.$fetch('addLogShareInfo', params)
return o return o
}, },


+ 7
- 9
pages_order/sharing/personal.vue View File

@ -49,7 +49,7 @@
}, },
onShow() { onShow() {
if (this.id && uni.getStorageSync('token')) { if (this.id && uni.getStorageSync('token')) {
this.fetchDetails()
this.detail.id ? this.refreshLockStatus() : this.fetchDetails()
} }
}, },
onLoad(option) { onLoad(option) {
@ -89,14 +89,12 @@
query: `id=${this.id}&state=0&shareId=${this.userInfo.id}`, query: `id=${this.id}&state=0&shareId=${this.userInfo.id}`,
} }
//
const params = {
id:this.id,
state:"0",
}
this.$fetch('addLogShareInfo', params)
this.refreshLockStatus()
//
const params = {
id:this.id,
state:"0",
}
this.$fetch('addLogShareInfo', params)
return o return o
}, },


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

@ -62,7 +62,7 @@
}, },
onShow() { onShow() {
if (this.id && uni.getStorageSync('token')) { if (this.id && uni.getStorageSync('token')) {
this.initData()
this.detail.id ? this.refreshLockStatus() : this.initData()
} }
}, },
async onLoad(option) { async onLoad(option) {
@ -110,8 +110,6 @@
} }
this.$fetch('addLogShareInfo', params) this.$fetch('addLogShareInfo', params)
this.refreshLockStatus()
return o return o
}, },
methods: { methods: {
@ -126,6 +124,8 @@
this.fetchCheckShare().then(result => { this.fetchCheckShare().then(result => {
const { open } = result const { open } = result
console.log('--open', open)
this.isLocked = !open this.isLocked = !open
}) })
await this.fetchDetails(this.id) await this.fetchDetails(this.id)
@ -175,6 +175,7 @@
this.isLocked = false this.isLocked = false
this.timeIsUp = false this.timeIsUp = false
this.videoContext.play() this.videoContext.play()
console.log('--play')
} else { } else {
this.videoContext.pause() this.videoContext.pause()
this.timeIsUp = true this.timeIsUp = true


Loading…
Cancel
Save