first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<template lang="pug">
.info {{ id }}
</template>
<script>
export default {
data() {
return {
id: 0
}
},
onLoad(params) {
this.id = params.id
},
methods: {
}
}
</script>
<style>
</style>

View File

@@ -0,0 +1,35 @@
<template>
<view class="about">
<h2>关于我</h2>
<!--#ifdef APP-PLUS-->
<button type="default" @click="setLd()">点我设置亮度</button>
<!-- #endif -->
</view>
</template>
<script>
export default {
data() {
return {
title: 'Hello'
}
},
onLoad() {
},
methods: {
setLd() {
// #ifdef APP-PLUS
uni.setScreenBrightness({
value: 0.5
})
// #endif
}
}
}
</script>
<style>
</style>

View File

@@ -0,0 +1,61 @@
<template>
<view class="content">
<videoComponents src="https://d2zihajmogu5jn.cloudfront.net/sintel/rendition/rendition.m3u8?assetId=4034862675001&videoId=4034552795001"></videoComponents>
<image class="logo" src="/static/logo.png"></image>
<ul>
<li v-for="(item, index) in list" :key="index" @click="enterInfo(item)">
{{ item.title }}
</li>
</ul>
<uni-collapse accordion="true">
<uni-collapse-item title="标题文字">
<view style="padding: 30rpx"> 手风琴效果 </view>
</uni-collapse-item>
<uni-collapse-item title="标题文字">
<view style="padding: 30rpx"> 手风琴效果 </view>
</uni-collapse-item>
<uni-collapse-item title="标题文字">
<view style="padding: 30rpx"> 手风琴效果 </view>
</uni-collapse-item>
</uni-collapse>
</view>
</template>
<script>
import videoComponents from "../../components/video"
export default {
data() {
return {
list: [
{ id: 1, title: "测试1" },
{ id: 2, title: "测试2" },
{ id: 3, title: "测试3" },
],
};
},
created() {
this.getIndex();
},
onLoad() {},
methods: {
async getIndex() {
let res = await this.$http.index.getIndex({
id: 455,
});
console.log(res);
},
enterInfo(item) {
uni.navigateTo({
url: `/pages/Info/Info?id=${item.id}`,
});
},
},
components: {
videoComponents
}
};
</script>
<style scoped lang="less">
@import "../../common/less/page/index.less";
</style>