Commit f2b6bc8d authored by 罗超's avatar 罗超

2

parent 0bad2a46
<template>
<view class="wordPronItem">
<view class="num">
1/26
</view>
</view>
</template>
<script>
import {
ref,
reactive,
toRefs,
toRef,
getCurrentInstance,
watch,
computed,
onMounted,
provide,
} from "vue";
export default {
components: {
},
props:{
item:{
type:Object,
default:()=>{return {}}
}
},
setup(){
let data = reactive({
})
let methods = {
}
return {
...toRefs(data),
...methods,
};
}
}
</script>
<style scoped>
.wordPronItem {
width: 640rpx;
height: 990rpx;
}
.wordPronItem .num {
font-size: 26rpx;
font-family: PingFang SC;
font-weight: bold;
color: #999999;
}
</style>
...@@ -98,6 +98,12 @@ ...@@ -98,6 +98,12 @@
}, { }, {
"path": "learningGardenDetails" //学习园地详情 "path": "learningGardenDetails" //学习园地详情
}] }]
},
{
"root": "pages/word", //单词分包
"pages": [{
"path": "word" //
}]
} }
], ],
"tabBar": { "tabBar": {
......
<template> <template>
<view class="indexpage"> <view class="indexpage">
<navbar> <van-sticky >
<navbar class="navbarSticky">
<view class="navbarCon"> <view class="navbarCon">
<view class="pagetitle" @click="jumpPage('/pages/login/login')"> <view class="pagetitle" @click="jumpPage('/pages/login/login')">
首页 首页
...@@ -16,8 +17,9 @@ ...@@ -16,8 +17,9 @@
</indexassembly> </indexassembly>
</view> </view>
<view class="scanBox"> <view class="scanBox" @click="jumpPage('/pages/word/word')">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/scan2x.png" <image
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/scan2x.png"
mode="aspectFit" class="scanIcon"></image> mode="aspectFit" class="scanIcon"></image>
<view class="scanText"> <view class="scanText">
签到 签到
...@@ -25,6 +27,8 @@ ...@@ -25,6 +27,8 @@
</view> </view>
</view> </view>
</navbar> </navbar>
</van-sticky>
<view class="activeContent" v-if="ActivityList.length >= 0"> <view class="activeContent" v-if="ActivityList.length >= 0">
<swiper class="swiper" :indicator-dots="indicatorDots" :autoplay="autoplay" indicator-color="#CCCCCC" <swiper class="swiper" :indicator-dots="indicatorDots" :autoplay="autoplay" indicator-color="#CCCCCC"
indicator-active-color="#000000" :vertical="true" circular> indicator-active-color="#000000" :vertical="true" circular>
...@@ -188,6 +192,11 @@ ...@@ -188,6 +192,11 @@
const formatres = `rgba(${res.r},${res.g},${res.b})` const formatres = `rgba(${res.r},${res.g},${res.b})`
console.log(168, formatres) console.log(168, formatres)
return formatres return formatres
},
againdata(){
data.pageData = uni.getStorageSync("userInfo");
methods.getIndexData();
methods.getActivityData();
} }
}; };
...@@ -231,7 +240,11 @@ ...@@ -231,7 +240,11 @@
box-sizing: border-box; box-sizing: border-box;
padding-bottom: 40rpx; padding-bottom: 40rpx;
} }
.navbarSticky{
display: sticky;
top: 0;
z-index: 9;
}
.navbarCon { .navbarCon {
height: 100%; height: 100%;
box-sizing: border-box; box-sizing: border-box;
......
This diff is collapsed.
<template>
<view class="word">
<swiper class="swiper">
<swiper-item v-for="(item,index) in test" :key="index">
<view class="swiper-item uni-bg-green">index</view>
<Pronunciation></Pronunciation>
</swiper-item>
</swiper>
</view>
</template>
<script>
import {
ref,
reactive,
toRefs,
toRef,
getCurrentInstance,
watch,
computed,
onMounted,
provide,
} from "vue";
import Pronunciation from '../../components/word/Pronunciation.vue'
export default {
components: {
Pronunciation
},
setup(props) {
let data = reactive({
test: [1,2,3]
})
let methods = {
}
onMounted(() => {
})
let that = methods;
return {
...toRefs(data),
...methods,
};
},
onLoad(option) {
uni.setNavigationBarTitle({
title: '新的标题'
});
},
}
</script>
<style scoped>
.word {
min-height: 100vh;
background-color: #F5F5F5;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment