Browse Source

提交

dev
douzhuo 2 years ago
parent
commit
33cae95f96
2 changed files with 15 additions and 9 deletions
  1. +4
    -4
      pages/mine/details.vue
  2. +11
    -5
      pages/mine/details2.vue

+ 4
- 4
pages/mine/details.vue View File

@@ -304,18 +304,18 @@
this.init(info) this.init(info)
}, },
// 在组件实例被从页面节点树移除时执行 // 在组件实例被从页面节点树移除时执行
destroyed: function() {
async destroyed() {
//暂停 //暂停
// this.innerAudioContext.pause() // this.innerAudioContext.pause()
// 销毁 // 销毁
this.innerAudioContext.destroy();
await this.innerAudioContext.destroy();
}, },
// 销毁实例 // 销毁实例
onUnload: function() {
async onHide() {
//暂停 //暂停
// this.innerAudioContext.pause() // this.innerAudioContext.pause()
// 销毁 // 销毁
this.innerAudioContext.destroy();
await this.innerAudioContext.destroy();
}, },
methods: { methods: {
effectiveAdd(){ effectiveAdd(){


+ 11
- 5
pages/mine/details2.vue View File

@@ -104,7 +104,7 @@
</view> </view>
<view class="content"> <view class="content">
<view @longpress="changanxiaoguo(item,index,i)" v-html="item.onebest"></view> <view @longpress="changanxiaoguo(item,index,i)" v-html="item.onebest"></view>
<view class="tankuangcss" v-if="item.isshow">
<view class="tankuangcss" :class="{bottoms:index == 0}" v-if="item.isshow">
<view @click="clickcopy()" <view @click="clickcopy()"
style="width: 60rpx;font-size: 24rpx;text-align: center;margin-left: 24rpx;">复制 style="width: 60rpx;font-size: 24rpx;text-align: center;margin-left: 24rpx;">复制
</view> </view>
@@ -580,18 +580,18 @@
}, },
// 在组件实例被从页面节点树移除时执行 // 在组件实例被从页面节点树移除时执行
destroyed: function() {
async beforeDestroy() {
//暂停 //暂停
// this.innerAudioContext.pause() // this.innerAudioContext.pause()
// 销毁 // 销毁
this.innerAudioContext.destroy();
await this.innerAudioContext.destroy();
}, },
// 销毁实例 // 销毁实例
onUnload: function() {
async onHide() {
//暂停 //暂停
// this.innerAudioContext.pause() // this.innerAudioContext.pause()
// 销毁 // 销毁
this.innerAudioContext.destroy();
await this.innerAudioContext.destroy();
}, },
methods: { methods: {
rolexuanze(index){ rolexuanze(index){
@@ -2316,6 +2316,7 @@
max-width: 442rpx; max-width: 442rpx;
color: #FFFFFF; color: #FFFFFF;
position: relative; position: relative;
.tankuangcss { .tankuangcss {
position: absolute; position: absolute;
top: -140rpx; top: -140rpx;
@@ -2332,6 +2333,11 @@
border-radius: 15rpx; border-radius: 15rpx;
z-index: 1000; z-index: 1000;
} }
.bottoms {
top: unset;
bottom: -140rpx;
}
} }
.scroll-Y .text.active .content { .scroll-Y .text.active .content {
color: #38FFF1; color: #38FFF1;


Loading…
Cancel
Save