This commit is contained in:
zmj 2024-04-27 18:16:11 +08:00
parent cc568d9124
commit 6555449109
6 changed files with 107 additions and 1 deletions

BIN
components/aaa.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

@ -47,7 +47,38 @@
"enablePullDownRefresh": true,
// #endif
"app-plus": {
"scrollIndicator": false //
"scrollIndicator": false, //
"subNVues": [{
"id": "concat", //
"path": "pages/index/subnvue/concat", //
"type": "popup",
"style": {
"position": "absolute",
"dock": "right",
"width": "750rpx",
"height": "1500rpx",
"background": "rgba(0,0,0,0.2)"
}
}]
}
}
},
{
"path": "pages/test/index", //
"style": {
"app-plus": {
"subNVues": [{
"id": "concat", //
"path": "pages/test/subnvue/concat", //
/*"type": "popup", */
"style": {
"position": "absolute",
"dock": "right",
"width": "100rpx",
"height": "150rpx",
"background": "transparent"
}
}]
}
}
},

View File

@ -1,5 +1,6 @@
<template>
<view class="content">
<button @click="test">叫我按钮></button>
<view class="content-top">
<view class="content-tops">
<view class="content-top_img" v-if="Object.keys(userInfoData).length>0">
@ -846,6 +847,16 @@
},
async onLoad() {
setTimeout(() => {
console.log("执行了")
const subNVue = uni.getSubNVueById('concat')
subNVue.show('slide-in-left', 200, () => {
console.log('subNVue 原生子窗体显示成功');
})
}, 500)
this.Fheight = uni.getSystemInfoSync().windowHeight + 'px';
await this.$onLaunched;
this.list1();
@ -877,6 +888,11 @@
this.$bus.$off('value-updated')
},
methods: {
test() {
uni.navigateTo({
url: '/pages/test/index'
})
},
//
handleToWithDraw(item, index) {
if (index == 4) return;

View File

@ -0,0 +1,17 @@
<template>
<view class="" style="width: 750rpx;height: 2000rpx;">
<view class="" style="top: 500rpx;left: 100rpx;">
<image src="/static/images/adds.png" style="width: 50rpx;height: 50rpx" alt="" />
</view>
</view>
</template>
<script>
export default {
}
</script>
<style>
</style>

27
pages/test/index.vue Normal file
View File

@ -0,0 +1,27 @@
<template>
<view class="" style="width: 750rpx;height: 100vh;background-color: pink;">
我已经吐了傻逼是的
<button @click="tests">anniu1</button>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
tests() {
const subNVue = uni.getSubNVueById('concat')
subNVue.show('slide-in-left', 200, () => {
console.log('subNVue 原生子窗体显示成功');
})
}
}
}
</script>
<style>
</style>

View File

@ -0,0 +1,15 @@
<template>
<view class="" style="padding: 200rpx;background-color: red; width: 500rpx;height: 500rpx;">
<image src="/static/images/f.png" alt="" />
</view>
</template>
<script>
export default {
}
</script>
<style>
</style>