列表展示,懒加载,登录页面
This commit is contained in:
parent
4e0b37ffb0
commit
88bd41128b
|
@ -0,0 +1,219 @@
|
||||||
|
<template>
|
||||||
|
<view class="cardbox">
|
||||||
|
<view class="cardbox-top">
|
||||||
|
<view class="cardbox-img">
|
||||||
|
<img :src="info.cover" style="width: 100%;" alt="加载" @error="errorImg"/>
|
||||||
|
</view>
|
||||||
|
<view class="cardbox-text">
|
||||||
|
<up-text :lines="1" :text="info.title" bold="true" size="30rpx" ></up-text>
|
||||||
|
<up-text :lines="3" :text="info.text"></up-text>
|
||||||
|
<up-text :lines="1" :text="info.data" bold="true"></up-text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="cardbox-bttom">
|
||||||
|
<view class="">
|
||||||
|
<view class="cardbox-bttom-img">
|
||||||
|
<up-avatar :src="info.userImage"></up-avatar>
|
||||||
|
<up-text :lines="1" :text="info.userName" ></up-text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="cardbox-icon">
|
||||||
|
<up-icon v-if="info.isLike" @click="toLike" name="heart-fill" color="#ff0004" size="28"></up-icon>
|
||||||
|
<up-icon v-else name="heart" @click="toLike" color="#ff0004" size="28"></up-icon>
|
||||||
|
{{info.likeNumber==0?'':info.likeNumber}}
|
||||||
|
<up-icon v-if="info.isComments" @click="toComments" name="chat-fill" color="#ff0004" size="28"></up-icon>
|
||||||
|
<up-icon v-else name="chat" @click="toComments" color="#ff0004" size="28"></up-icon>
|
||||||
|
{{info.commentsNumber==0?'':info.commentsNumber}}
|
||||||
|
<up-icon v-if="info.isCollection" @click="toCollection" name="star-fill" color="#ff0004" size="28"></up-icon>
|
||||||
|
<up-icon v-else name="star" @click="toCollection" color="#ff0004" size="28"></up-icon>
|
||||||
|
{{info.collectionNumber==0?'':info.collectionNumber}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import {onMounted, reactive, ref,defineProps} from "vue"
|
||||||
|
const ab="/static/image/imgerr.png";
|
||||||
|
const errorImg=()=>{
|
||||||
|
info.cover="/static/image/imgerr.png"
|
||||||
|
};
|
||||||
|
const aaa=ref("name");
|
||||||
|
const props=defineProps({
|
||||||
|
id:{
|
||||||
|
type:String,
|
||||||
|
default:""
|
||||||
|
},
|
||||||
|
title:{
|
||||||
|
type:String,
|
||||||
|
default:"标题"
|
||||||
|
},
|
||||||
|
text:{
|
||||||
|
type:String,
|
||||||
|
default:"正文嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻徐"
|
||||||
|
},
|
||||||
|
data:{
|
||||||
|
type:String,
|
||||||
|
default:"日期"
|
||||||
|
},
|
||||||
|
cover:{
|
||||||
|
type:String,
|
||||||
|
default:"/static/image/imgerr.png"
|
||||||
|
},
|
||||||
|
userImage:{
|
||||||
|
type:String,
|
||||||
|
default:"地址"
|
||||||
|
},
|
||||||
|
userName:{
|
||||||
|
type:String,
|
||||||
|
default:"作者"
|
||||||
|
},
|
||||||
|
userId:{
|
||||||
|
type:String,
|
||||||
|
default:""
|
||||||
|
},
|
||||||
|
isLike:{
|
||||||
|
type:Boolean,
|
||||||
|
default:false
|
||||||
|
},
|
||||||
|
likeNumber:{
|
||||||
|
type:Number,
|
||||||
|
default:0
|
||||||
|
},
|
||||||
|
isComments:{
|
||||||
|
type:Boolean,
|
||||||
|
default:false
|
||||||
|
},
|
||||||
|
commentsNumber:{
|
||||||
|
type:Number,
|
||||||
|
default:0
|
||||||
|
},
|
||||||
|
isCollection:{
|
||||||
|
type:Boolean,
|
||||||
|
default:false
|
||||||
|
},
|
||||||
|
collectionNumber:{
|
||||||
|
type:Number,
|
||||||
|
default:0
|
||||||
|
},
|
||||||
|
})
|
||||||
|
const info=reactive({
|
||||||
|
id:"文章id",
|
||||||
|
title:"标题",
|
||||||
|
cover:"封面地址",
|
||||||
|
text:"正文嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻徐",
|
||||||
|
data:"2024-11-11",
|
||||||
|
userImage:"",
|
||||||
|
userName:"作者",
|
||||||
|
userId:"作者id",
|
||||||
|
isLike:false,
|
||||||
|
likeNumber:0,
|
||||||
|
isComments:false,
|
||||||
|
commentsNumber:0,
|
||||||
|
isCollection:false,
|
||||||
|
collectionNumber:0,
|
||||||
|
});
|
||||||
|
const toLike=()=>{
|
||||||
|
info.isLike=!info.isLike;
|
||||||
|
if(info.isLike){
|
||||||
|
info.likeNumber++;
|
||||||
|
}else{
|
||||||
|
info.likeNumber--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const toComments=()=>{
|
||||||
|
info.isComments=!info.isComments;
|
||||||
|
if(info.isComments){
|
||||||
|
info.commentsNumber++;
|
||||||
|
}else{
|
||||||
|
info.commentsNumber--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const toCollection=()=>{
|
||||||
|
info.isCollection=!info.isCollection;
|
||||||
|
if(info.isCollection){
|
||||||
|
info.collectionNumber++;
|
||||||
|
}else{
|
||||||
|
info.collectionNumber--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const ggg=()=>{
|
||||||
|
info.id = props.id;
|
||||||
|
info.title = props.title;
|
||||||
|
info.cover=props.cover;
|
||||||
|
info.text = props.text;
|
||||||
|
info.userImage = props.userImage;
|
||||||
|
info.userName = props.userName;
|
||||||
|
info.userId = props.userId;
|
||||||
|
info.isLike = props.isLike;
|
||||||
|
info.likeNumber = props.likeNumber;
|
||||||
|
info.isComments = props.isComments;
|
||||||
|
info.commentsNumber = props.commentsNumber;
|
||||||
|
info.isCollection = props.isCollection;
|
||||||
|
info.collectionNumber = props.collectionNumber;
|
||||||
|
}
|
||||||
|
onMounted(()=>{
|
||||||
|
ggg();
|
||||||
|
console.log("属性",props);
|
||||||
|
console.log("属性2",info);
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
<style lang="scss">
|
||||||
|
.cardbox-top{
|
||||||
|
height: 60%;
|
||||||
|
width: 100%;
|
||||||
|
margin: 0 auto;
|
||||||
|
display: flex;
|
||||||
|
// flex-flow: column;
|
||||||
|
justify-content: space-around;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.cardbox{
|
||||||
|
height: 100%;
|
||||||
|
color: #000;
|
||||||
|
background-color: #fff;
|
||||||
|
display: flex;
|
||||||
|
flex-flow: column;
|
||||||
|
justify-content: space-around;
|
||||||
|
align-items: center;
|
||||||
|
// padding: 20rpx;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
}
|
||||||
|
.cardbox-img{
|
||||||
|
height: 90%;
|
||||||
|
width: 47%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
// background-color: #000;
|
||||||
|
}
|
||||||
|
.cardbox-text{
|
||||||
|
width: 47%;
|
||||||
|
height: 90%;
|
||||||
|
display: flex;
|
||||||
|
flex-flow: column;
|
||||||
|
justify-content: space-around;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.cardbox-bttom {
|
||||||
|
width: 90%;
|
||||||
|
height: 30%;
|
||||||
|
overflow: hidden;
|
||||||
|
// flex: 1;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
.cardbox-bttom-img{
|
||||||
|
display: flex;
|
||||||
|
flex: 1;
|
||||||
|
justify-content: space-around;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.cardbox-icon{
|
||||||
|
display: flex;
|
||||||
|
// flex: 1;
|
||||||
|
justify-content: space-around;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -22,10 +22,23 @@
|
||||||
</up-grid>
|
</up-grid>
|
||||||
</view>
|
</view>
|
||||||
<view class="newlist" >
|
<view class="newlist" >
|
||||||
|
<view class="newList-t" @click="toTop">
|
||||||
<up-text margin="1em" type="primary" text="新闻"></up-text>
|
<up-text margin="1em" type="primary" text="新闻"></up-text>
|
||||||
<view class="">
|
|
||||||
<news-card :info="i" v-for="i in newsList"></news-card>
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- <news-card :info="i" v-for="i in newsList"></news-card> -->
|
||||||
|
<scroll-view
|
||||||
|
scroll-y
|
||||||
|
@scrolltolower="loadMore"
|
||||||
|
class="case-list"
|
||||||
|
>
|
||||||
|
<view class="list-itme" v-for="(item, index) in caseList" :key="index">
|
||||||
|
<CaseBox ></CaseBox>
|
||||||
|
</view>
|
||||||
|
<view v-if="isLoading" class="loading">
|
||||||
|
<up-loadmore :status="status" />
|
||||||
|
</view>
|
||||||
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
@ -38,14 +51,51 @@
|
||||||
"/static/stu.png"
|
"/static/stu.png"
|
||||||
]);
|
]);
|
||||||
import newsCard from '@/components/newsCard.vue';
|
import newsCard from '@/components/newsCard.vue';
|
||||||
const newsList = reactive([{
|
const caseList=ref([
|
||||||
title:"测试",
|
{},{},{},
|
||||||
image:'/static/stu.png',
|
])
|
||||||
detile:"这是一个测试",
|
const isLoading=ref(false);
|
||||||
time:"2024-6-1"
|
const status=ref("more");
|
||||||
}])
|
|
||||||
|
|
||||||
|
|
||||||
|
// const caseList = reactive([{
|
||||||
|
// title:"测试",
|
||||||
|
// image:'/static/stu.png',
|
||||||
|
// detile:"这是一个测试",
|
||||||
|
// time:"2024-6-1"
|
||||||
|
// }])
|
||||||
|
// 加载更多数据
|
||||||
|
const loadMore=async()=>{
|
||||||
|
console.log("加载更多...");
|
||||||
|
status.value="loading";
|
||||||
|
if (isLoading.value) return;
|
||||||
|
isLoading.value = true;
|
||||||
|
const newCases = await fetchCases();
|
||||||
|
caseList.value.push({});
|
||||||
|
caseList.value.push({});
|
||||||
|
caseList.value.push({});
|
||||||
|
caseList.value.push({});
|
||||||
|
console.log("加载更多2...");
|
||||||
|
isLoading.value = false;
|
||||||
|
status.value = "nomore";
|
||||||
|
console.log("加载更多2...");
|
||||||
|
}
|
||||||
|
const fetchCases=()=>{
|
||||||
|
return new Promise((resolve) => {
|
||||||
|
setTimeout(() => {
|
||||||
|
const newCases = [
|
||||||
|
{ id: 1, title: "Case 1" },
|
||||||
|
{ id: 2, title: "Case 2" }
|
||||||
|
];
|
||||||
|
resolve(newCases);
|
||||||
|
}, 1000);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
const toTop=()=>{
|
||||||
|
uni.pageScrollTo({
|
||||||
|
scrollTop: 0,
|
||||||
|
duration: 300
|
||||||
|
});
|
||||||
|
}
|
||||||
const baseList = ref([
|
const baseList = ref([
|
||||||
{
|
{
|
||||||
src:'/static/icon/video.png',
|
src:'/static/icon/video.png',
|
||||||
|
@ -113,7 +163,20 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
.newlist{
|
||||||
|
// flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-flow: column;
|
||||||
|
// overflow: hidden;
|
||||||
|
}
|
||||||
|
.newList-t{
|
||||||
|
position: sticky;
|
||||||
|
top: 60rpx;
|
||||||
|
height: 60rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
z-index: 2;
|
||||||
|
// background-color: #000;
|
||||||
|
}
|
||||||
.content {
|
.content {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
background-color: #F7F8FA;
|
background-color: #F7F8FA;
|
||||||
|
@ -137,4 +200,19 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
.case-list{
|
||||||
|
scrollbar-width: none;
|
||||||
|
// height: 40vh;
|
||||||
|
// overflow: auto;
|
||||||
|
height: 100vh;
|
||||||
|
display: flexbox;
|
||||||
|
flex-flow: column;
|
||||||
|
background-color: #e2e2e2;
|
||||||
|
}
|
||||||
|
.list-itme{
|
||||||
|
width: 98%;
|
||||||
|
height: 350rpx;
|
||||||
|
margin: 10rpx auto;
|
||||||
|
// background-color: #000;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
|
@ -1,24 +1,80 @@
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import {reactive} from "vue"
|
import {ref} from "vue"
|
||||||
import newsCard from '@/components/newsCard.vue';
|
import newsCard from '@/components/newsCard.vue';
|
||||||
const newsList = reactive([{
|
const caseList=ref([
|
||||||
title:"测试",
|
{},{},{},
|
||||||
image:'/static/stu.png',
|
])
|
||||||
detile:"这是一个测试",
|
const isLoading=ref(false);
|
||||||
time:"2024-6-1"
|
const status=ref("more");
|
||||||
}])
|
|
||||||
|
// const caseList = reactive([{
|
||||||
|
// title:"测试",
|
||||||
|
// image:'/static/stu.png',
|
||||||
|
// detile:"这是一个测试",
|
||||||
|
// time:"2024-6-1"
|
||||||
|
// }])
|
||||||
|
// 加载更多数据
|
||||||
|
const loadMore=async()=>{
|
||||||
|
console.log("加载更多...");
|
||||||
|
status.value="loading";
|
||||||
|
if (isLoading.value) return;
|
||||||
|
isLoading.value = true;
|
||||||
|
const newCases = await fetchCases();
|
||||||
|
caseList.value.push({});
|
||||||
|
caseList.value.push({});
|
||||||
|
caseList.value.push({});
|
||||||
|
caseList.value.push({});
|
||||||
|
console.log("加载更多2...");
|
||||||
|
isLoading.value = false;
|
||||||
|
status.value = "nomore";
|
||||||
|
console.log("加载更多2...");
|
||||||
|
}
|
||||||
|
const fetchCases=()=>{
|
||||||
|
return new Promise((resolve) => {
|
||||||
|
setTimeout(() => {
|
||||||
|
const newCases = [
|
||||||
|
{ id: 1, title: "Case 1" },
|
||||||
|
{ id: 2, title: "Case 2" }
|
||||||
|
];
|
||||||
|
resolve(newCases);
|
||||||
|
}, 1000);
|
||||||
|
});
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<view style="margin-top: 20rpx;">
|
<view class="">
|
||||||
<news-card :info="i" v-for="i in newsList"></news-card>
|
<scroll-view
|
||||||
|
scroll-y
|
||||||
|
@scrolltolower="loadMore"
|
||||||
|
class="case-list"
|
||||||
|
>
|
||||||
|
<view class="list-itme" v-for="(item, index) in caseList" :key="index">
|
||||||
|
<CaseBox ></CaseBox>
|
||||||
|
</view>
|
||||||
|
<view v-if="isLoading" class="loading">
|
||||||
|
<up-loadmore :status="status" />
|
||||||
|
</view>
|
||||||
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
page{
|
.case-list{
|
||||||
background-color: #F7F8FA;
|
scrollbar-width: none;
|
||||||
|
// height: 40vh;
|
||||||
|
// overflow: auto;
|
||||||
|
height: 100vh;
|
||||||
|
display: flexbox;
|
||||||
|
flex-flow: column;
|
||||||
|
background-color: #e2e2e2;
|
||||||
|
}
|
||||||
|
.list-itme{
|
||||||
|
width: 98%;
|
||||||
|
height: 350rpx;
|
||||||
|
margin: 10rpx auto;
|
||||||
|
// background-color: #000;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -1,60 +1,146 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="main">
|
<view class="main">
|
||||||
<view class="" style="width: 80%;margin: 0 auto;">
|
<view class="login-container">
|
||||||
<up-button type="primary" @click="login" text="登录"></up-button>
|
<view class="">
|
||||||
|
<up-text :lines="1" text="登录" bold="true" size=" 60rpx" align="cente" ></up-text>
|
||||||
|
</view>
|
||||||
|
<view class="log-input">
|
||||||
|
<up-input
|
||||||
|
placeholder="请输入账号"
|
||||||
|
border="surround"
|
||||||
|
v-model="username"
|
||||||
|
@change="validateUsername"
|
||||||
|
:error="usernameError"
|
||||||
|
:fontSize="15"
|
||||||
|
error-message="账号不能为空"
|
||||||
|
:customStyle="style"
|
||||||
|
></up-input>
|
||||||
|
</view>
|
||||||
|
<view class="log-input">
|
||||||
|
<up-input
|
||||||
|
placeholder="请输入密码"
|
||||||
|
border="surround"
|
||||||
|
type="password"
|
||||||
|
v-model="password"
|
||||||
|
@change="validatePassword"
|
||||||
|
:error="passwordError"
|
||||||
|
:fontSize="15"
|
||||||
|
:customStyle="style"
|
||||||
|
error-message="密码不能为空"
|
||||||
|
></up-input>
|
||||||
|
</view>
|
||||||
|
<view class="log-input">
|
||||||
|
<up-button
|
||||||
|
type="primary"
|
||||||
|
@click="login"
|
||||||
|
text="登录"
|
||||||
|
:disabled="isButtonDisabled"
|
||||||
|
></up-button>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import {
|
import { reactive, ref } from 'vue';
|
||||||
loginByCode
|
// import { loginByCredentials } from "@/comm/api.js";
|
||||||
} from "@/comm/api.js"
|
import { setToken } from "@/utils/Auth.js";
|
||||||
import {
|
|
||||||
setToken,
|
// 输入框数据绑定
|
||||||
getToken
|
const username = ref('');
|
||||||
} from "@/utils/Auth.js"
|
const password = ref('');
|
||||||
|
const style=reactive({
|
||||||
|
height:"70rpx",
|
||||||
|
margin: "10rpx",
|
||||||
|
textAlign: "center",
|
||||||
|
backgroundColor: "#fff",
|
||||||
|
boxShadow: "0 4px 8px rgba(0, 0, 0, 0.1)"
|
||||||
|
})
|
||||||
|
|
||||||
|
// 校验错误状态
|
||||||
|
const usernameError = ref(false);
|
||||||
|
const passwordError = ref(false);
|
||||||
|
|
||||||
|
// 按钮禁用状态
|
||||||
|
const isButtonDisabled = ref(true);
|
||||||
|
|
||||||
|
// 校验账号
|
||||||
|
function validateUsername() {
|
||||||
|
usernameError.value = username.value.trim() === '';
|
||||||
|
checkFormValidity();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 校验密码
|
||||||
|
function validatePassword() {
|
||||||
|
passwordError.value = password.value.trim() === '';
|
||||||
|
checkFormValidity();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 检查表单是否有效
|
||||||
|
function checkFormValidity() {
|
||||||
|
isButtonDisabled.value = usernameError.value || passwordError.value || username.value.trim() === '' || password.value.trim() === '';
|
||||||
|
}
|
||||||
|
|
||||||
|
// 登录函数
|
||||||
async function login() {
|
async function login() {
|
||||||
const __this = this
|
if (isButtonDisabled.value) return;
|
||||||
uni.login({
|
// try {
|
||||||
provider: "weixin",
|
// const resp = await loginByCredentials({
|
||||||
async success(e) {
|
// username: username.value,
|
||||||
console.log(e.code)
|
// password: password.value,
|
||||||
try {
|
// });
|
||||||
const resp = await loginByCode({
|
// uni.showToast({
|
||||||
code: e.code
|
// icon: "none",
|
||||||
})
|
// title: "登录成功"
|
||||||
console.log(resp, "resp")
|
// });
|
||||||
uni.showToast({
|
// setToken(resp.token);
|
||||||
icon: "none",
|
// setTimeout(() => {
|
||||||
title: "登录成功"
|
// uni.switchTab({
|
||||||
})
|
// url: "/pages/user/user"
|
||||||
setToken(resp.token)
|
// });
|
||||||
setTimeout(() => {
|
// }, 800);
|
||||||
uni.switchTab({
|
// } catch (err) {
|
||||||
url: "/pages/user/user"
|
// console.log(err, "errorCatch");
|
||||||
})
|
// uni.showToast({
|
||||||
}, 800)
|
// icon: "none",
|
||||||
} catch (err) {
|
// title: "登录失败"
|
||||||
console.log(err,"errorCatch")
|
// });
|
||||||
uni.showToast({
|
// }
|
||||||
icon: "none",
|
|
||||||
title: "登录失败"
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
,
|
|
||||||
fail(err) {
|
|
||||||
console.log(err,"error")
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<style scoped>
|
||||||
<style>
|
|
||||||
.main {
|
.main {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
background-color: #efefef;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-container {
|
||||||
|
width: 80%;
|
||||||
|
display: flex;
|
||||||
|
flex-flow: column;
|
||||||
|
height: 90vh;
|
||||||
|
align-items: center;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 20px;
|
||||||
|
/* background: #ffffff; */
|
||||||
|
/* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
|
||||||
|
/* border-radius: 8px; */
|
||||||
|
}
|
||||||
|
.login-container up-input {
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-container up-button {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.log-input{
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 40rpx;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
|
@ -21,7 +21,7 @@ const _sfc_main = {
|
||||||
console.log("App Hide");
|
console.log("App Hide");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const App = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/App.vue"]]);
|
const App = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/uniapp1/gree_leran/App.vue"]]);
|
||||||
function createApp() {
|
function createApp() {
|
||||||
const app = common_vendor.createSSRApp(App);
|
const app = common_vendor.createSSRApp(App);
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -1,17 +1,9 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
const utils_http = require("../utils/http.js");
|
const utils_http = require("../utils/http.js");
|
||||||
function loginByCode(data) {
|
|
||||||
return utils_http.http({
|
|
||||||
url: "/api/wxLogin",
|
|
||||||
data,
|
|
||||||
method: "post"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function userInfo() {
|
function userInfo() {
|
||||||
return utils_http.http({
|
return utils_http.http({
|
||||||
url: "/api/getUserInfo",
|
url: "/api/getUserInfo",
|
||||||
method: "get"
|
method: "get"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.loginByCode = loginByCode;
|
|
||||||
exports.userInfo = userInfo;
|
exports.userInfo = userInfo;
|
||||||
|
|
|
@ -1292,8 +1292,8 @@ function populateParameters(fromRes, toRes) {
|
||||||
appVersion: "1.0.0",
|
appVersion: "1.0.0",
|
||||||
appVersionCode: "100",
|
appVersionCode: "100",
|
||||||
appLanguage: getAppLanguage(hostLanguage),
|
appLanguage: getAppLanguage(hostLanguage),
|
||||||
uniCompileVersion: "4.07",
|
uniCompileVersion: "4.08",
|
||||||
uniRuntimeVersion: "4.07",
|
uniRuntimeVersion: "4.08",
|
||||||
uniPlatform: "mp-weixin",
|
uniPlatform: "mp-weixin",
|
||||||
deviceBrand,
|
deviceBrand,
|
||||||
deviceModel: model,
|
deviceModel: model,
|
||||||
|
@ -8417,7 +8417,7 @@ const defProps = {
|
||||||
...Transition,
|
...Transition,
|
||||||
...Upload
|
...Upload
|
||||||
};
|
};
|
||||||
const props$g = {
|
const props$i = {
|
||||||
props: {
|
props: {
|
||||||
// 搜索框形状,round-圆形,square-方形
|
// 搜索框形状,round-圆形,square-方形
|
||||||
shape: {
|
shape: {
|
||||||
|
@ -9045,6 +9045,14 @@ function priceFormat(number2, decimals = 0, decimalPoint = ".", thousandsSeparat
|
||||||
}
|
}
|
||||||
return s2.join(dec);
|
return s2.join(dec);
|
||||||
}
|
}
|
||||||
|
function formValidate(instance, event) {
|
||||||
|
const formItem = $parent.call(instance, "u-form-item");
|
||||||
|
const form = $parent.call(instance, "u-form");
|
||||||
|
if (formItem && form) {
|
||||||
|
form.validateField(formItem.prop, () => {
|
||||||
|
}, event);
|
||||||
|
}
|
||||||
|
}
|
||||||
function page() {
|
function page() {
|
||||||
const pages = getCurrentPages();
|
const pages = getCurrentPages();
|
||||||
return `/${pages[pages.length - 1].route || ""}`;
|
return `/${pages[pages.length - 1].route || ""}`;
|
||||||
|
@ -9276,7 +9284,7 @@ const mixin = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const props$f = {
|
const props$h = {
|
||||||
props: {
|
props: {
|
||||||
// 列表数组,元素可为字符串,如为对象可通过keyName指定目标属性名
|
// 列表数组,元素可为字符串,如为对象可通过keyName指定目标属性名
|
||||||
list: {
|
list: {
|
||||||
|
@ -9401,7 +9409,7 @@ const props$f = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const props$e = {
|
const props$g = {
|
||||||
props: {
|
props: {
|
||||||
// 宫格的name
|
// 宫格的name
|
||||||
name: {
|
name: {
|
||||||
|
@ -9415,7 +9423,7 @@ const props$e = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const props$d = {
|
const props$f = {
|
||||||
props: {
|
props: {
|
||||||
// 分成几列
|
// 分成几列
|
||||||
col: {
|
col: {
|
||||||
|
@ -9434,7 +9442,7 @@ const props$d = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const props$c = {
|
const props$e = {
|
||||||
props: {
|
props: {
|
||||||
// 主题颜色
|
// 主题颜色
|
||||||
type: {
|
type: {
|
||||||
|
@ -9656,7 +9664,101 @@ const openType = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const props$b = {
|
const props$d = {
|
||||||
|
props: {
|
||||||
|
// 组件状态,loadmore-加载前的状态,loading-加载中的状态,nomore-没有更多的状态
|
||||||
|
status: {
|
||||||
|
type: String,
|
||||||
|
default: () => defProps.loadmore.status
|
||||||
|
},
|
||||||
|
// 组件背景色
|
||||||
|
bgColor: {
|
||||||
|
type: String,
|
||||||
|
default: () => defProps.loadmore.bgColor
|
||||||
|
},
|
||||||
|
// 是否显示加载中的图标
|
||||||
|
icon: {
|
||||||
|
type: Boolean,
|
||||||
|
default: () => defProps.loadmore.icon
|
||||||
|
},
|
||||||
|
// 字体大小
|
||||||
|
fontSize: {
|
||||||
|
type: [String, Number],
|
||||||
|
default: () => defProps.loadmore.fontSize
|
||||||
|
},
|
||||||
|
// 图标大小
|
||||||
|
iconSize: {
|
||||||
|
type: [String, Number],
|
||||||
|
default: () => defProps.loadmore.iconSize
|
||||||
|
},
|
||||||
|
// 字体颜色
|
||||||
|
color: {
|
||||||
|
type: String,
|
||||||
|
default: () => defProps.loadmore.color
|
||||||
|
},
|
||||||
|
// 加载中状态的图标,spinner-花朵状图标,circle-圆圈状,semicircle-半圆
|
||||||
|
loadingIcon: {
|
||||||
|
type: String,
|
||||||
|
default: () => defProps.loadmore.loadingIcon
|
||||||
|
},
|
||||||
|
// 加载前的提示语
|
||||||
|
loadmoreText: {
|
||||||
|
type: String,
|
||||||
|
default: () => defProps.loadmore.loadmoreText
|
||||||
|
},
|
||||||
|
// 加载中提示语
|
||||||
|
loadingText: {
|
||||||
|
type: String,
|
||||||
|
default: () => defProps.loadmore.loadingText
|
||||||
|
},
|
||||||
|
// 没有更多的提示语
|
||||||
|
nomoreText: {
|
||||||
|
type: String,
|
||||||
|
default: () => defProps.loadmore.nomoreText
|
||||||
|
},
|
||||||
|
// 在“没有更多”状态下,是否显示粗点
|
||||||
|
isDot: {
|
||||||
|
type: Boolean,
|
||||||
|
default: () => defProps.loadmore.isDot
|
||||||
|
},
|
||||||
|
// 加载中图标的颜色
|
||||||
|
iconColor: {
|
||||||
|
type: String,
|
||||||
|
default: () => defProps.loadmore.iconColor
|
||||||
|
},
|
||||||
|
// 上边距
|
||||||
|
marginTop: {
|
||||||
|
type: [String, Number],
|
||||||
|
default: () => defProps.loadmore.marginTop
|
||||||
|
},
|
||||||
|
// 下边距
|
||||||
|
marginBottom: {
|
||||||
|
type: [String, Number],
|
||||||
|
default: () => defProps.loadmore.marginBottom
|
||||||
|
},
|
||||||
|
// 高度,单位px
|
||||||
|
height: {
|
||||||
|
type: [String, Number],
|
||||||
|
default: () => defProps.loadmore.height
|
||||||
|
},
|
||||||
|
// 是否显示左边分割线
|
||||||
|
line: {
|
||||||
|
type: Boolean,
|
||||||
|
default: () => defProps.loadmore.line
|
||||||
|
},
|
||||||
|
// 线条颜色
|
||||||
|
lineColor: {
|
||||||
|
type: String,
|
||||||
|
default: () => defProps.loadmore.lineColor
|
||||||
|
},
|
||||||
|
// 是否虚线,true-虚线,false-实线
|
||||||
|
dashed: {
|
||||||
|
type: Boolean,
|
||||||
|
default: () => defProps.loadmore.dashed
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const props$c = {
|
||||||
props: {
|
props: {
|
||||||
// 头像图片路径(不能为相对路径)
|
// 头像图片路径(不能为相对路径)
|
||||||
src: {
|
src: {
|
||||||
|
@ -9734,7 +9836,7 @@ const props$b = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const props$a = {
|
const props$b = {
|
||||||
props: {
|
props: {
|
||||||
// 标题
|
// 标题
|
||||||
title: {
|
title: {
|
||||||
|
@ -9844,7 +9946,7 @@ const props$a = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const props$9 = {
|
const props$a = {
|
||||||
props: {
|
props: {
|
||||||
// 用于滚动到指定item
|
// 用于滚动到指定item
|
||||||
anchor: {
|
anchor: {
|
||||||
|
@ -9853,7 +9955,7 @@ const props$9 = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const props$8 = {
|
const props$9 = {
|
||||||
props: {
|
props: {
|
||||||
// 控制是否出现滚动条,仅nvue有效
|
// 控制是否出现滚动条,仅nvue有效
|
||||||
showScrollbar: {
|
showScrollbar: {
|
||||||
|
@ -9952,6 +10054,192 @@ const props$8 = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
const props$8 = {
|
||||||
|
props: {
|
||||||
|
// 绑定的值
|
||||||
|
modelValue: {
|
||||||
|
type: [String, Number],
|
||||||
|
default: () => defProps.input.value
|
||||||
|
},
|
||||||
|
// number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
|
||||||
|
// idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
|
||||||
|
// digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
|
||||||
|
// text-文本输入键盘
|
||||||
|
type: {
|
||||||
|
type: String,
|
||||||
|
default: () => defProps.input.type
|
||||||
|
},
|
||||||
|
// 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
|
||||||
|
// 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
|
||||||
|
fixed: {
|
||||||
|
type: Boolean,
|
||||||
|
default: () => defProps.input.fixed
|
||||||
|
},
|
||||||
|
// 是否禁用输入框
|
||||||
|
disabled: {
|
||||||
|
type: Boolean,
|
||||||
|
default: () => defProps.input.disabled
|
||||||
|
},
|
||||||
|
// 禁用状态时的背景色
|
||||||
|
disabledColor: {
|
||||||
|
type: String,
|
||||||
|
default: () => defProps.input.disabledColor
|
||||||
|
},
|
||||||
|
// 是否显示清除控件
|
||||||
|
clearable: {
|
||||||
|
type: Boolean,
|
||||||
|
default: () => defProps.input.clearable
|
||||||
|
},
|
||||||
|
// 是否密码类型
|
||||||
|
password: {
|
||||||
|
type: Boolean,
|
||||||
|
default: () => defProps.input.password
|
||||||
|
},
|
||||||
|
// 最大输入长度,设置为 -1 的时候不限制最大长度
|
||||||
|
maxlength: {
|
||||||
|
type: [String, Number],
|
||||||
|
default: () => defProps.input.maxlength
|
||||||
|
},
|
||||||
|
// 输入框为空时的占位符
|
||||||
|
placeholder: {
|
||||||
|
type: String,
|
||||||
|
default: () => defProps.input.placeholder
|
||||||
|
},
|
||||||
|
// 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
|
||||||
|
placeholderClass: {
|
||||||
|
type: String,
|
||||||
|
default: () => defProps.input.placeholderClass
|
||||||
|
},
|
||||||
|
// 指定placeholder的样式
|
||||||
|
placeholderStyle: {
|
||||||
|
type: [String, Object],
|
||||||
|
default: () => defProps.input.placeholderStyle
|
||||||
|
},
|
||||||
|
// 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
|
||||||
|
showWordLimit: {
|
||||||
|
type: Boolean,
|
||||||
|
default: () => defProps.input.showWordLimit
|
||||||
|
},
|
||||||
|
// 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
|
||||||
|
// https://uniapp.dcloud.io/component/input
|
||||||
|
// https://uniapp.dcloud.io/component/textarea
|
||||||
|
confirmType: {
|
||||||
|
type: String,
|
||||||
|
default: () => defProps.input.confirmType
|
||||||
|
},
|
||||||
|
// 点击键盘右下角按钮时是否保持键盘不收起,H5无效
|
||||||
|
confirmHold: {
|
||||||
|
type: Boolean,
|
||||||
|
default: () => defProps.input.confirmHold
|
||||||
|
},
|
||||||
|
// focus时,点击页面的时候不收起键盘,微信小程序有效
|
||||||
|
holdKeyboard: {
|
||||||
|
type: Boolean,
|
||||||
|
default: () => defProps.input.holdKeyboard
|
||||||
|
},
|
||||||
|
// 自动获取焦点
|
||||||
|
// 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
|
||||||
|
focus: {
|
||||||
|
type: Boolean,
|
||||||
|
default: () => defProps.input.focus
|
||||||
|
},
|
||||||
|
// 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
|
||||||
|
autoBlur: {
|
||||||
|
type: Boolean,
|
||||||
|
default: () => defProps.input.autoBlur
|
||||||
|
},
|
||||||
|
// 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
|
||||||
|
disableDefaultPadding: {
|
||||||
|
type: Boolean,
|
||||||
|
default: () => defProps.input.disableDefaultPadding
|
||||||
|
},
|
||||||
|
// 指定focus时光标的位置
|
||||||
|
cursor: {
|
||||||
|
type: [String, Number],
|
||||||
|
default: () => defProps.input.cursor
|
||||||
|
},
|
||||||
|
// 输入框聚焦时底部与键盘的距离
|
||||||
|
cursorSpacing: {
|
||||||
|
type: [String, Number],
|
||||||
|
default: () => defProps.input.cursorSpacing
|
||||||
|
},
|
||||||
|
// 光标起始位置,自动聚集时有效,需与selection-end搭配使用
|
||||||
|
selectionStart: {
|
||||||
|
type: [String, Number],
|
||||||
|
default: () => defProps.input.selectionStart
|
||||||
|
},
|
||||||
|
// 光标结束位置,自动聚集时有效,需与selection-start搭配使用
|
||||||
|
selectionEnd: {
|
||||||
|
type: [String, Number],
|
||||||
|
default: () => defProps.input.selectionEnd
|
||||||
|
},
|
||||||
|
// 键盘弹起时,是否自动上推页面
|
||||||
|
adjustPosition: {
|
||||||
|
type: Boolean,
|
||||||
|
default: () => defProps.input.adjustPosition
|
||||||
|
},
|
||||||
|
// 输入框内容对齐方式,可选值为:left|center|right
|
||||||
|
inputAlign: {
|
||||||
|
type: String,
|
||||||
|
default: () => defProps.input.inputAlign
|
||||||
|
},
|
||||||
|
// 输入框字体的大小
|
||||||
|
fontSize: {
|
||||||
|
type: [String, Number],
|
||||||
|
default: () => defProps.input.fontSize
|
||||||
|
},
|
||||||
|
// 输入框字体颜色
|
||||||
|
color: {
|
||||||
|
type: String,
|
||||||
|
default: () => defProps.input.color
|
||||||
|
},
|
||||||
|
// 输入框前置图标
|
||||||
|
prefixIcon: {
|
||||||
|
type: String,
|
||||||
|
default: () => defProps.input.prefixIcon
|
||||||
|
},
|
||||||
|
// 前置图标样式,对象或字符串
|
||||||
|
prefixIconStyle: {
|
||||||
|
type: [String, Object],
|
||||||
|
default: () => defProps.input.prefixIconStyle
|
||||||
|
},
|
||||||
|
// 输入框后置图标
|
||||||
|
suffixIcon: {
|
||||||
|
type: String,
|
||||||
|
default: () => defProps.input.suffixIcon
|
||||||
|
},
|
||||||
|
// 后置图标样式,对象或字符串
|
||||||
|
suffixIconStyle: {
|
||||||
|
type: [String, Object],
|
||||||
|
default: () => defProps.input.suffixIconStyle
|
||||||
|
},
|
||||||
|
// 边框类型,surround-四周边框,bottom-底部边框,none-无边框
|
||||||
|
border: {
|
||||||
|
type: String,
|
||||||
|
default: () => defProps.input.border
|
||||||
|
},
|
||||||
|
// 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
|
||||||
|
readonly: {
|
||||||
|
type: Boolean,
|
||||||
|
default: () => defProps.input.readonly
|
||||||
|
},
|
||||||
|
// 输入框形状,circle-圆形,square-方形
|
||||||
|
shape: {
|
||||||
|
type: String,
|
||||||
|
default: () => defProps.input.shape
|
||||||
|
},
|
||||||
|
// 用于处理或者过滤输入框内容的方法
|
||||||
|
formatter: {
|
||||||
|
type: [Function, null],
|
||||||
|
default: () => defProps.input.formatter
|
||||||
|
},
|
||||||
|
// 是否忽略组件内对文本合成系统事件的处理
|
||||||
|
ignoreCompositionEvent: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
const props$7 = {
|
const props$7 = {
|
||||||
props: {
|
props: {
|
||||||
// 是否细边框
|
// 是否细边框
|
||||||
|
@ -10851,6 +11139,7 @@ exports.deepMerge = deepMerge;
|
||||||
exports.e = e;
|
exports.e = e;
|
||||||
exports.error = error;
|
exports.error = error;
|
||||||
exports.f = f;
|
exports.f = f;
|
||||||
|
exports.formValidate = formValidate;
|
||||||
exports.getPx = getPx;
|
exports.getPx = getPx;
|
||||||
exports.icons = icons;
|
exports.icons = icons;
|
||||||
exports.index = index;
|
exports.index = index;
|
||||||
|
@ -10859,26 +11148,29 @@ exports.mpMixin = mpMixin;
|
||||||
exports.n = n;
|
exports.n = n;
|
||||||
exports.o = o;
|
exports.o = o;
|
||||||
exports.onLoad = onLoad;
|
exports.onLoad = onLoad;
|
||||||
|
exports.onMounted = onMounted;
|
||||||
exports.onShow = onShow;
|
exports.onShow = onShow;
|
||||||
exports.openType = openType;
|
exports.openType = openType;
|
||||||
exports.p = p;
|
exports.p = p;
|
||||||
exports.props = props$g;
|
exports.props = props$i;
|
||||||
exports.props$1 = props$f;
|
exports.props$1 = props$h;
|
||||||
exports.props$10 = props$6;
|
exports.props$10 = props$8;
|
||||||
exports.props$11 = props$5;
|
exports.props$11 = props$7;
|
||||||
exports.props$12 = props$4;
|
exports.props$12 = props$6;
|
||||||
exports.props$13 = props$3;
|
exports.props$13 = props$5;
|
||||||
exports.props$14 = props$2;
|
exports.props$14 = props$4;
|
||||||
exports.props$15 = props$1;
|
exports.props$15 = props$3;
|
||||||
exports.props$16 = props;
|
exports.props$16 = props$2;
|
||||||
exports.props$2 = props$e;
|
exports.props$17 = props$1;
|
||||||
exports.props$3 = props$d;
|
exports.props$18 = props;
|
||||||
exports.props$4 = props$c;
|
exports.props$2 = props$g;
|
||||||
exports.props$5 = props$b;
|
exports.props$3 = props$f;
|
||||||
exports.props$6 = props$a;
|
exports.props$4 = props$e;
|
||||||
exports.props$7 = props$9;
|
exports.props$5 = props$d;
|
||||||
exports.props$8 = props$8;
|
exports.props$6 = props$c;
|
||||||
exports.props$9 = props$7;
|
exports.props$7 = props$b;
|
||||||
|
exports.props$8 = props$a;
|
||||||
|
exports.props$9 = props$9;
|
||||||
exports.random = random;
|
exports.random = random;
|
||||||
exports.reactive = reactive;
|
exports.reactive = reactive;
|
||||||
exports.ref = ref;
|
exports.ref = ref;
|
||||||
|
|
|
@ -0,0 +1,223 @@
|
||||||
|
"use strict";
|
||||||
|
const common_vendor = require("../../common/vendor.js");
|
||||||
|
if (!Array) {
|
||||||
|
const _easycom_up_text2 = common_vendor.resolveComponent("up-text");
|
||||||
|
const _easycom_up_avatar2 = common_vendor.resolveComponent("up-avatar");
|
||||||
|
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
|
||||||
|
(_easycom_up_text2 + _easycom_up_avatar2 + _easycom_up_icon2)();
|
||||||
|
}
|
||||||
|
const _easycom_up_text = () => "../../node-modules/uview-plus/components/u-text/u-text.js";
|
||||||
|
const _easycom_up_avatar = () => "../../node-modules/uview-plus/components/u-avatar/u-avatar.js";
|
||||||
|
const _easycom_up_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
|
||||||
|
if (!Math) {
|
||||||
|
(_easycom_up_text + _easycom_up_avatar + _easycom_up_icon)();
|
||||||
|
}
|
||||||
|
const _sfc_main = {
|
||||||
|
__name: "CaseBox",
|
||||||
|
props: {
|
||||||
|
id: {
|
||||||
|
type: String,
|
||||||
|
default: ""
|
||||||
|
},
|
||||||
|
title: {
|
||||||
|
type: String,
|
||||||
|
default: "标题"
|
||||||
|
},
|
||||||
|
text: {
|
||||||
|
type: String,
|
||||||
|
default: "正文嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻徐"
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
type: String,
|
||||||
|
default: "日期"
|
||||||
|
},
|
||||||
|
cover: {
|
||||||
|
type: String,
|
||||||
|
default: "/static/image/imgerr.png"
|
||||||
|
},
|
||||||
|
userImage: {
|
||||||
|
type: String,
|
||||||
|
default: "地址"
|
||||||
|
},
|
||||||
|
userName: {
|
||||||
|
type: String,
|
||||||
|
default: "作者"
|
||||||
|
},
|
||||||
|
userId: {
|
||||||
|
type: String,
|
||||||
|
default: ""
|
||||||
|
},
|
||||||
|
isLike: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
likeNumber: {
|
||||||
|
type: Number,
|
||||||
|
default: 0
|
||||||
|
},
|
||||||
|
isComments: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
commentsNumber: {
|
||||||
|
type: Number,
|
||||||
|
default: 0
|
||||||
|
},
|
||||||
|
isCollection: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
collectionNumber: {
|
||||||
|
type: Number,
|
||||||
|
default: 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
setup(__props) {
|
||||||
|
const errorImg = () => {
|
||||||
|
info.cover = "/static/image/imgerr.png";
|
||||||
|
};
|
||||||
|
common_vendor.ref("name");
|
||||||
|
const props = __props;
|
||||||
|
const info = common_vendor.reactive({
|
||||||
|
id: "文章id",
|
||||||
|
title: "标题",
|
||||||
|
cover: "封面地址",
|
||||||
|
text: "正文嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻徐",
|
||||||
|
data: "2024-11-11",
|
||||||
|
userImage: "",
|
||||||
|
userName: "作者",
|
||||||
|
userId: "作者id",
|
||||||
|
isLike: false,
|
||||||
|
likeNumber: 0,
|
||||||
|
isComments: false,
|
||||||
|
commentsNumber: 0,
|
||||||
|
isCollection: false,
|
||||||
|
collectionNumber: 0
|
||||||
|
});
|
||||||
|
const toLike = () => {
|
||||||
|
info.isLike = !info.isLike;
|
||||||
|
if (info.isLike) {
|
||||||
|
info.likeNumber++;
|
||||||
|
} else {
|
||||||
|
info.likeNumber--;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const toComments = () => {
|
||||||
|
info.isComments = !info.isComments;
|
||||||
|
if (info.isComments) {
|
||||||
|
info.commentsNumber++;
|
||||||
|
} else {
|
||||||
|
info.commentsNumber--;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const toCollection = () => {
|
||||||
|
info.isCollection = !info.isCollection;
|
||||||
|
if (info.isCollection) {
|
||||||
|
info.collectionNumber++;
|
||||||
|
} else {
|
||||||
|
info.collectionNumber--;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const ggg = () => {
|
||||||
|
info.id = props.id;
|
||||||
|
info.title = props.title;
|
||||||
|
info.cover = props.cover;
|
||||||
|
info.text = props.text;
|
||||||
|
info.userImage = props.userImage;
|
||||||
|
info.userName = props.userName;
|
||||||
|
info.userId = props.userId;
|
||||||
|
info.isLike = props.isLike;
|
||||||
|
info.likeNumber = props.likeNumber;
|
||||||
|
info.isComments = props.isComments;
|
||||||
|
info.commentsNumber = props.commentsNumber;
|
||||||
|
info.isCollection = props.isCollection;
|
||||||
|
info.collectionNumber = props.collectionNumber;
|
||||||
|
};
|
||||||
|
common_vendor.onMounted(() => {
|
||||||
|
ggg();
|
||||||
|
console.log("属性", props);
|
||||||
|
console.log("属性2", info);
|
||||||
|
});
|
||||||
|
return (_ctx, _cache) => {
|
||||||
|
return common_vendor.e({
|
||||||
|
a: info.cover,
|
||||||
|
b: common_vendor.o(errorImg),
|
||||||
|
c: common_vendor.p({
|
||||||
|
lines: 1,
|
||||||
|
text: info.title,
|
||||||
|
bold: "true",
|
||||||
|
size: "30rpx"
|
||||||
|
}),
|
||||||
|
d: common_vendor.p({
|
||||||
|
lines: 3,
|
||||||
|
text: info.text
|
||||||
|
}),
|
||||||
|
e: common_vendor.p({
|
||||||
|
lines: 1,
|
||||||
|
text: info.data,
|
||||||
|
bold: "true"
|
||||||
|
}),
|
||||||
|
f: common_vendor.p({
|
||||||
|
src: info.userImage
|
||||||
|
}),
|
||||||
|
g: common_vendor.p({
|
||||||
|
lines: 1,
|
||||||
|
text: info.userName
|
||||||
|
}),
|
||||||
|
h: info.isLike
|
||||||
|
}, info.isLike ? {
|
||||||
|
i: common_vendor.o(toLike),
|
||||||
|
j: common_vendor.p({
|
||||||
|
name: "heart-fill",
|
||||||
|
color: "#ff0004",
|
||||||
|
size: "28"
|
||||||
|
})
|
||||||
|
} : {
|
||||||
|
k: common_vendor.o(toLike),
|
||||||
|
l: common_vendor.p({
|
||||||
|
name: "heart",
|
||||||
|
color: "#ff0004",
|
||||||
|
size: "28"
|
||||||
|
})
|
||||||
|
}, {
|
||||||
|
m: common_vendor.t(info.likeNumber == 0 ? "" : info.likeNumber),
|
||||||
|
n: info.isComments
|
||||||
|
}, info.isComments ? {
|
||||||
|
o: common_vendor.o(toComments),
|
||||||
|
p: common_vendor.p({
|
||||||
|
name: "chat-fill",
|
||||||
|
color: "#ff0004",
|
||||||
|
size: "28"
|
||||||
|
})
|
||||||
|
} : {
|
||||||
|
q: common_vendor.o(toComments),
|
||||||
|
r: common_vendor.p({
|
||||||
|
name: "chat",
|
||||||
|
color: "#ff0004",
|
||||||
|
size: "28"
|
||||||
|
})
|
||||||
|
}, {
|
||||||
|
s: common_vendor.t(info.commentsNumber == 0 ? "" : info.commentsNumber),
|
||||||
|
t: info.isCollection
|
||||||
|
}, info.isCollection ? {
|
||||||
|
v: common_vendor.o(toCollection),
|
||||||
|
w: common_vendor.p({
|
||||||
|
name: "star-fill",
|
||||||
|
color: "#ff0004",
|
||||||
|
size: "28"
|
||||||
|
})
|
||||||
|
} : {
|
||||||
|
x: common_vendor.o(toCollection),
|
||||||
|
y: common_vendor.p({
|
||||||
|
name: "star",
|
||||||
|
color: "#ff0004",
|
||||||
|
size: "28"
|
||||||
|
})
|
||||||
|
}, {
|
||||||
|
z: common_vendor.t(info.collectionNumber == 0 ? "" : info.collectionNumber)
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/uniapp1/gree_leran/components/CaseBox/CaseBox.vue"]]);
|
||||||
|
wx.createComponent(Component);
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"up-text": "../../node-modules/uview-plus/components/u-text/u-text",
|
||||||
|
"up-avatar": "../../node-modules/uview-plus/components/u-avatar/u-avatar",
|
||||||
|
"up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
<view class="cardbox"><view class="cardbox-top"><view class="cardbox-img"><image src="{{a}}" style="width:100%" alt="加载" binderror="{{b}}"/></view><view class="cardbox-text"><up-text wx:if="{{c}}" u-i="757540d1-0" bind:__l="__l" u-p="{{c}}"></up-text><up-text wx:if="{{d}}" u-i="757540d1-1" bind:__l="__l" u-p="{{d}}"></up-text><up-text wx:if="{{e}}" u-i="757540d1-2" bind:__l="__l" u-p="{{e}}"></up-text></view></view><view class="cardbox-bttom"><view class=""><view class="cardbox-bttom-img"><up-avatar wx:if="{{f}}" u-i="757540d1-3" bind:__l="__l" u-p="{{f}}"></up-avatar><up-text wx:if="{{g}}" u-i="757540d1-4" bind:__l="__l" u-p="{{g}}"></up-text></view></view><view class="cardbox-icon"><up-icon wx:if="{{h}}" bindclick="{{i}}" u-i="757540d1-5" bind:__l="__l" u-p="{{j}}"></up-icon><up-icon wx:else bindclick="{{k}}" u-i="757540d1-6" bind:__l="__l" u-p="{{l||''}}"></up-icon> {{m}} <up-icon wx:if="{{n}}" bindclick="{{o}}" u-i="757540d1-7" bind:__l="__l" u-p="{{p}}"></up-icon><up-icon wx:else bindclick="{{q}}" u-i="757540d1-8" bind:__l="__l" u-p="{{r||''}}"></up-icon> {{s}} <up-icon wx:if="{{t}}" bindclick="{{v}}" u-i="757540d1-9" bind:__l="__l" u-p="{{w}}"></up-icon><up-icon wx:else bindclick="{{x}}" u-i="757540d1-10" bind:__l="__l" u-p="{{y||''}}"></up-icon> {{z}}</view></view></view>
|
|
@ -0,0 +1,76 @@
|
||||||
|
/**
|
||||||
|
* 这里是uni-app内置的常用样式变量
|
||||||
|
*
|
||||||
|
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||||
|
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||||
|
*
|
||||||
|
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||||
|
*/
|
||||||
|
/* 颜色变量 */
|
||||||
|
/* 行为相关颜色 */
|
||||||
|
/* 文字基本颜色 */
|
||||||
|
/* 背景颜色 */
|
||||||
|
/* 边框颜色 */
|
||||||
|
/* 尺寸变量 */
|
||||||
|
/* 文字尺寸 */
|
||||||
|
/* 图片尺寸 */
|
||||||
|
/* Border Radius */
|
||||||
|
/* 水平间距 */
|
||||||
|
/* 垂直间距 */
|
||||||
|
/* 透明度 */
|
||||||
|
/* 文章场景相关 */
|
||||||
|
.cardbox-top {
|
||||||
|
height: 60%;
|
||||||
|
width: 100%;
|
||||||
|
margin: 0 auto;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.cardbox {
|
||||||
|
height: 100%;
|
||||||
|
color: #000;
|
||||||
|
background-color: #fff;
|
||||||
|
display: flex;
|
||||||
|
flex-flow: column;
|
||||||
|
justify-content: space-around;
|
||||||
|
align-items: center;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
}
|
||||||
|
.cardbox-img {
|
||||||
|
height: 90%;
|
||||||
|
width: 47%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.cardbox-text {
|
||||||
|
width: 47%;
|
||||||
|
height: 90%;
|
||||||
|
display: flex;
|
||||||
|
flex-flow: column;
|
||||||
|
justify-content: space-around;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.cardbox-bttom {
|
||||||
|
width: 90%;
|
||||||
|
height: 30%;
|
||||||
|
overflow: hidden;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
.cardbox-bttom .cardbox-bttom-img {
|
||||||
|
display: flex;
|
||||||
|
flex: 1;
|
||||||
|
justify-content: space-around;
|
||||||
|
}
|
||||||
|
.cardbox-icon {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
align-items: center;
|
||||||
|
}
|
|
@ -69,5 +69,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
f: common_vendor.t($props.Videos.titleName)
|
f: common_vendor.t($props.Videos.titleName)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/components/cardVideo.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:/uniapp1/gree_leran/components/cardVideo.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<view class="container"><view class="video-box"><video class="video" ref="videoStatus" bindplay="{{a}}" src="{{b}}"></video><view class="box-bottom"><view class="user-info"><u-avatar wx:if="{{c}}" class="avatar" u-i="2f388469-0" bind:__l="__l" u-p="{{c}}"></u-avatar><text class="username">{{d}}</text></view><u-tag wx:if="{{e}}" class="tag" u-i="2f388469-1" bind:__l="__l" u-p="{{e}}"></u-tag></view><view class="bottom-title"><text class="title">{{f}}</text></view></view></view>
|
<view class="container"><view class="video-box"><video class="video" ref="videoStatus" bindplay="{{a}}" src="{{b}}"></video><view class="box-bottom"><view class="user-info"><u-avatar wx:if="{{c}}" class="avatar" u-i="5285bcf5-0" bind:__l="__l" u-p="{{c}}"></u-avatar><text class="username">{{d}}</text></view><u-tag wx:if="{{e}}" class="tag" u-i="5285bcf5-1" bind:__l="__l" u-p="{{e}}"></u-tag></view><view class="bottom-title"><text class="title">{{f}}</text></view></view></view>
|
|
@ -16,5 +16,5 @@ const _sfc_main = {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/components/newsCard.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/uniapp1/gree_leran/components/newsCard.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
|
@ -46,5 +46,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
e: common_vendor.t($props.cardData.footName)
|
e: common_vendor.t($props.cardData.footName)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/components/photosInfo.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:/uniapp1/gree_leran/components/photosInfo.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<view class="container"><view class="card-box"><image class="background-image" src="{{a}}" mode="aspectFill"></image><view class="content-box"><view class="avatar-box"><view class="user-info"><u-avatar wx:if="{{b}}" class="avatar" u-i="6e2f10a1-0" bind:__l="__l" u-p="{{b}}"></u-avatar><text class="username">{{c}}</text></view><u-tag wx:if="{{d}}" u-i="6e2f10a1-1" bind:__l="__l" u-p="{{d}}"/></view><view class="description">{{e}}</view></view></view></view>
|
<view class="container"><view class="card-box"><image class="background-image" src="{{a}}" mode="aspectFill"></image><view class="content-box"><view class="avatar-box"><view class="user-info"><u-avatar wx:if="{{b}}" class="avatar" u-i="96ee2cd6-0" bind:__l="__l" u-p="{{b}}"></u-avatar><text class="username">{{c}}</text></view><u-tag wx:if="{{d}}" u-i="96ee2cd6-1" bind:__l="__l" u-p="{{d}}"/></view><view class="description">{{e}}</view></view></view></view>
|
|
@ -3,7 +3,7 @@ const common_vendor = require("../../../../common/vendor.js");
|
||||||
const base64Avatar = "data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QMraHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzYgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjREMEQwRkY0RjgwNDExRUE5OTY2RDgxODY3NkJFODMxIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjREMEQwRkY1RjgwNDExRUE5OTY2RDgxODY3NkJFODMxIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NEQwRDBGRjJGODA0MTFFQTk5NjZEODE4Njc2QkU4MzEiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NEQwRDBGRjNGODA0MTFFQTk5NjZEODE4Njc2QkU4MzEiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYG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";
|
const base64Avatar = "data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QMraHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzYgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjREMEQwRkY0RjgwNDExRUE5OTY2RDgxODY3NkJFODMxIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjREMEQwRkY1RjgwNDExRUE5OTY2RDgxODY3NkJFODMxIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NEQwRDBGRjJGODA0MTFFQTk5NjZEODE4Njc2QkU4MzEiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NEQwRDBGRjNGODA0MTFFQTk5NjZEODE4Njc2QkU4MzEiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYG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";
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
name: "u-avatar",
|
name: "u-avatar",
|
||||||
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$5],
|
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$6],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// 如果配置randomBgColor参数为true,在图标或者文字的模式下,会随机从中取出一个颜色值当做背景色
|
// 如果配置randomBgColor参数为true,在图标或者文字的模式下,会随机从中取出一个颜色值当做背景色
|
||||||
|
@ -132,5 +132,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
p: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args))
|
p: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args))
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-14a988f2"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-avatar/u-avatar.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-14a988f2"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-avatar/u-avatar.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
const common_vendor = require("../../../../common/vendor.js");
|
const common_vendor = require("../../../../common/vendor.js");
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
name: "u-button",
|
name: "u-button",
|
||||||
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.button, common_vendor.openType, common_vendor.props$9],
|
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.button, common_vendor.openType, common_vendor.props$11],
|
||||||
data() {
|
data() {
|
||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
|
@ -195,5 +195,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
G: common_vendor.n($options.bemClass)
|
G: common_vendor.n($options.bemClass)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-461e713c"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-button/u-button.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-461e713c"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-button/u-button.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
|
@ -5,7 +5,7 @@ const _sfc_main = {
|
||||||
data() {
|
data() {
|
||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$6],
|
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$7],
|
||||||
computed: {
|
computed: {
|
||||||
titleTextStyle() {
|
titleTextStyle() {
|
||||||
return common_vendor.addStyle(this.titleStyle);
|
return common_vendor.addStyle(this.titleStyle);
|
||||||
|
@ -95,5 +95,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
D: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args))
|
D: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args))
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b4243719"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-cell/u-cell.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b4243719"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-cell/u-cell.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
|
@ -107,5 +107,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
d: common_vendor.s($options.itemStyle)
|
d: common_vendor.s($options.itemStyle)
|
||||||
} : {});
|
} : {});
|
||||||
}
|
}
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-d5274fb5"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-grid-item/u-grid-item.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-d5274fb5"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-grid-item/u-grid-item.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
|
@ -64,5 +64,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
a: common_vendor.s($options.gridStyle)
|
a: common_vendor.s($options.gridStyle)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-85602471"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-grid/u-grid.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-85602471"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-grid/u-grid.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
|
@ -6,7 +6,7 @@ const _sfc_main = {
|
||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
emits: ["click"],
|
emits: ["click"],
|
||||||
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$10],
|
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$12],
|
||||||
computed: {
|
computed: {
|
||||||
uClasses() {
|
uClasses() {
|
||||||
let classes = [];
|
let classes = [];
|
||||||
|
@ -88,5 +88,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
t: common_vendor.n("u-icon--" + _ctx.labelPos)
|
t: common_vendor.n("u-icon--" + _ctx.labelPos)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1c933a9a"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-icon/u-icon.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1c933a9a"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-icon/u-icon.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
|
@ -209,5 +209,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
J: common_vendor.s($options.wrapperStyle)
|
J: common_vendor.s($options.wrapperStyle)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5904192e"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-input/u-input.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5904192e"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-input/u-input.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
const common_vendor = require("../../../../common/vendor.js");
|
const common_vendor = require("../../../../common/vendor.js");
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
name: "u-line",
|
name: "u-line",
|
||||||
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$14],
|
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$16],
|
||||||
computed: {
|
computed: {
|
||||||
lineStyle() {
|
lineStyle() {
|
||||||
const style = {};
|
const style = {};
|
||||||
|
@ -30,5 +30,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
a: common_vendor.s($options.lineStyle)
|
a: common_vendor.s($options.lineStyle)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-bbd9963c"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-line/u-line.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-bbd9963c"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-line/u-line.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
const common_vendor = require("../../../../common/vendor.js");
|
const common_vendor = require("../../../../common/vendor.js");
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
name: "u-link",
|
name: "u-link",
|
||||||
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$13],
|
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$15],
|
||||||
computed: {
|
computed: {
|
||||||
linkStyle() {
|
linkStyle() {
|
||||||
const style = {
|
const style = {
|
||||||
|
@ -40,5 +40,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
d: common_vendor.s($options.addStyle(_ctx.customStyle))
|
d: common_vendor.s($options.addStyle(_ctx.customStyle))
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-dedad317"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-link/u-link.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-dedad317"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-link/u-link.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
const common_vendor = require("../../../../common/vendor.js");
|
const common_vendor = require("../../../../common/vendor.js");
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
name: "u-list-item",
|
name: "u-list-item",
|
||||||
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$7],
|
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$8],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// 节点信息
|
// 节点信息
|
||||||
|
@ -70,5 +70,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
c: common_vendor.n(`u-list-item-${_ctx.anchor}`)
|
c: common_vendor.n(`u-list-item-${_ctx.anchor}`)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-32197ac9"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-list-item/u-list-item.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-32197ac9"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-list-item/u-list-item.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
const common_vendor = require("../../../../common/vendor.js");
|
const common_vendor = require("../../../../common/vendor.js");
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
name: "u-list",
|
name: "u-list",
|
||||||
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$8],
|
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$9],
|
||||||
watch: {
|
watch: {
|
||||||
scrollIntoView(n) {
|
scrollIntoView(n) {
|
||||||
this.scrollIntoViewById(n);
|
this.scrollIntoViewById(n);
|
||||||
|
@ -114,5 +114,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
v: common_vendor.o((...args) => $options.refresherabort && $options.refresherabort(...args))
|
v: common_vendor.o((...args) => $options.refresherabort && $options.refresherabort(...args))
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9ad03670"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-list/u-list.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9ad03670"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-list/u-list.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
const common_vendor = require("../../../../common/vendor.js");
|
const common_vendor = require("../../../../common/vendor.js");
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
name: "u-loading-icon",
|
name: "u-loading-icon",
|
||||||
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$11],
|
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$13],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// Array.form可以通过一个伪数组对象创建指定长度的数组
|
// Array.form可以通过一个伪数组对象创建指定长度的数组
|
||||||
|
@ -96,5 +96,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
t: common_vendor.n(_ctx.vertical && "u-loading-icon--vertical")
|
t: common_vendor.n(_ctx.vertical && "u-loading-icon--vertical")
|
||||||
}) : {});
|
}) : {});
|
||||||
}
|
}
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-00752c6d"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-loading-icon/u-loading-icon.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-00752c6d"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-loading-icon/u-loading-icon.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
99
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.js
vendored
Normal file
99
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.js
vendored
Normal file
|
@ -0,0 +1,99 @@
|
||||||
|
"use strict";
|
||||||
|
const common_vendor = require("../../../../common/vendor.js");
|
||||||
|
const _sfc_main = {
|
||||||
|
name: "u-loadmore",
|
||||||
|
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$5],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 粗点
|
||||||
|
dotText: "●"
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
// 加载的文字显示的样式
|
||||||
|
loadTextStyle() {
|
||||||
|
return {
|
||||||
|
color: this.color,
|
||||||
|
fontSize: common_vendor.addUnit(this.fontSize),
|
||||||
|
lineHeight: common_vendor.addUnit(this.fontSize),
|
||||||
|
backgroundColor: this.bgColor
|
||||||
|
};
|
||||||
|
},
|
||||||
|
// 显示的提示文字
|
||||||
|
showText() {
|
||||||
|
let text = "";
|
||||||
|
if (this.status == "loadmore")
|
||||||
|
text = this.loadmoreText;
|
||||||
|
else if (this.status == "loading")
|
||||||
|
text = this.loadingText;
|
||||||
|
else if (this.status == "nomore" && this.isDot)
|
||||||
|
text = this.dotText;
|
||||||
|
else
|
||||||
|
text = this.nomoreText;
|
||||||
|
return text;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
emits: ["loadmore"],
|
||||||
|
methods: {
|
||||||
|
addStyle: common_vendor.addStyle,
|
||||||
|
addUnit: common_vendor.addUnit,
|
||||||
|
loadMore() {
|
||||||
|
if (this.status == "loadmore")
|
||||||
|
this.$emit("loadmore");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
if (!Array) {
|
||||||
|
const _easycom_u_line2 = common_vendor.resolveComponent("u-line");
|
||||||
|
const _easycom_u_loading_icon2 = common_vendor.resolveComponent("u-loading-icon");
|
||||||
|
(_easycom_u_line2 + _easycom_u_loading_icon2)();
|
||||||
|
}
|
||||||
|
const _easycom_u_line = () => "../u-line/u-line.js";
|
||||||
|
const _easycom_u_loading_icon = () => "../u-loading-icon/u-loading-icon.js";
|
||||||
|
if (!Math) {
|
||||||
|
(_easycom_u_line + _easycom_u_loading_icon)();
|
||||||
|
}
|
||||||
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
|
return common_vendor.e({
|
||||||
|
a: _ctx.line
|
||||||
|
}, _ctx.line ? {
|
||||||
|
b: common_vendor.p({
|
||||||
|
length: "140rpx",
|
||||||
|
color: _ctx.lineColor,
|
||||||
|
hairline: false,
|
||||||
|
dashed: _ctx.dashed
|
||||||
|
})
|
||||||
|
} : {}, {
|
||||||
|
c: _ctx.status === "loading" && _ctx.icon
|
||||||
|
}, _ctx.status === "loading" && _ctx.icon ? {
|
||||||
|
d: common_vendor.p({
|
||||||
|
color: _ctx.iconColor,
|
||||||
|
size: _ctx.iconSize,
|
||||||
|
mode: _ctx.loadingIcon
|
||||||
|
})
|
||||||
|
} : {}, {
|
||||||
|
e: common_vendor.t($options.showText),
|
||||||
|
f: common_vendor.s($options.loadTextStyle),
|
||||||
|
g: common_vendor.n(_ctx.status == "nomore" && _ctx.isDot == true ? "u-loadmore__content__dot-text" : "u-loadmore__content__text"),
|
||||||
|
h: common_vendor.o((...args) => $options.loadMore && $options.loadMore(...args)),
|
||||||
|
i: common_vendor.n(_ctx.status == "loadmore" || _ctx.status == "nomore" ? "u-more" : ""),
|
||||||
|
j: _ctx.line
|
||||||
|
}, _ctx.line ? {
|
||||||
|
k: common_vendor.p({
|
||||||
|
length: "140rpx",
|
||||||
|
color: _ctx.lineColor,
|
||||||
|
hairline: false,
|
||||||
|
dashed: _ctx.dashed
|
||||||
|
})
|
||||||
|
} : {}, {
|
||||||
|
l: common_vendor.s($options.addStyle(_ctx.customStyle)),
|
||||||
|
m: common_vendor.s({
|
||||||
|
backgroundColor: _ctx.bgColor,
|
||||||
|
marginBottom: $options.addUnit(_ctx.marginBottom),
|
||||||
|
marginTop: $options.addUnit(_ctx.marginTop),
|
||||||
|
height: $options.addUnit(_ctx.height)
|
||||||
|
})
|
||||||
|
});
|
||||||
|
}
|
||||||
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5817e4cf"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-loadmore/u-loadmore.vue"]]);
|
||||||
|
wx.createComponent(Component);
|
7
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.json
vendored
Normal file
7
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.json
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"component": true,
|
||||||
|
"usingComponents": {
|
||||||
|
"u-line": "../u-line/u-line",
|
||||||
|
"u-loading-icon": "../u-loading-icon/u-loading-icon"
|
||||||
|
}
|
||||||
|
}
|
1
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.wxml
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<view class="u-loadmore data-v-5817e4cf" style="{{l + ';' + m}}"><u-line wx:if="{{a}}" class="data-v-5817e4cf" u-i="5817e4cf-0" bind:__l="__l" u-p="{{b}}"></u-line><view class="{{[i, 'u-loadmore__content', 'data-v-5817e4cf']}}"><view wx:if="{{c}}" class="u-loadmore__content__icon-wrap data-v-5817e4cf"><u-loading-icon wx:if="{{d}}" class="data-v-5817e4cf" u-i="5817e4cf-1" bind:__l="__l" u-p="{{d}}"></u-loading-icon></view><text style="{{f}}" class="{{['u-line-1', 'data-v-5817e4cf', g]}}" bindtap="{{h}}">{{e}}</text></view><u-line wx:if="{{j}}" class="data-v-5817e4cf" u-i="5817e4cf-2" bind:__l="__l" u-p="{{k}}"></u-line></view>
|
66
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.wxss
vendored
Normal file
66
unpackage/dist/dev/mp-weixin/node-modules/uview-plus/components/u-loadmore/u-loadmore.wxss
vendored
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
/**
|
||||||
|
* 这里是uni-app内置的常用样式变量
|
||||||
|
*
|
||||||
|
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||||
|
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||||
|
*
|
||||||
|
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||||
|
*/
|
||||||
|
/* 颜色变量 */
|
||||||
|
/* 行为相关颜色 */
|
||||||
|
/* 文字基本颜色 */
|
||||||
|
/* 背景颜色 */
|
||||||
|
/* 边框颜色 */
|
||||||
|
/* 尺寸变量 */
|
||||||
|
/* 文字尺寸 */
|
||||||
|
/* 图片尺寸 */
|
||||||
|
/* Border Radius */
|
||||||
|
/* 水平间距 */
|
||||||
|
/* 垂直间距 */
|
||||||
|
/* 透明度 */
|
||||||
|
/* 文章场景相关 */
|
||||||
|
.u-empty.data-v-5817e4cf,
|
||||||
|
.u-empty__wrap.data-v-5817e4cf,
|
||||||
|
.u-tabs.data-v-5817e4cf,
|
||||||
|
.u-tabs__wrapper.data-v-5817e4cf,
|
||||||
|
.u-tabs__wrapper__scroll-view-wrapper.data-v-5817e4cf,
|
||||||
|
.u-tabs__wrapper__scroll-view.data-v-5817e4cf,
|
||||||
|
.u-tabs__wrapper__nav.data-v-5817e4cf,
|
||||||
|
.u-tabs__wrapper__nav__line.data-v-5817e4cf {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
flex-shrink: 0;
|
||||||
|
flex-grow: 0;
|
||||||
|
flex-basis: auto;
|
||||||
|
align-items: stretch;
|
||||||
|
align-content: flex-start;
|
||||||
|
}
|
||||||
|
.u-loadmore.data-v-5817e4cf {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
.u-loadmore__content.data-v-5817e4cf {
|
||||||
|
margin: 0 15px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.u-loadmore__content__icon-wrap.data-v-5817e4cf {
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
|
.u-loadmore__content__text.data-v-5817e4cf {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #606266;
|
||||||
|
}
|
||||||
|
.u-loadmore__content__dot-text.data-v-5817e4cf {
|
||||||
|
font-size: 15px;
|
||||||
|
color: #909193;
|
||||||
|
}
|
|
@ -157,5 +157,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
F: common_vendor.s($options.addStyle(_ctx.customStyle))
|
F: common_vendor.s($options.addStyle(_ctx.customStyle))
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ed789780"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-search/u-search.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ed789780"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-search/u-search.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
const common_vendor = require("../../../../common/vendor.js");
|
const common_vendor = require("../../../../common/vendor.js");
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
name: "u-swiper-indicator",
|
name: "u-swiper-indicator",
|
||||||
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$12],
|
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$14],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
lineWidth: 22
|
lineWidth: 22
|
||||||
|
@ -50,5 +50,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
})
|
})
|
||||||
} : {});
|
} : {});
|
||||||
}
|
}
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-23112adb"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-swiper-indicator/u-swiper-indicator.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-23112adb"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-swiper-indicator/u-swiper-indicator.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
|
@ -159,5 +159,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
w: $options.addUnit(_ctx.radius)
|
w: $options.addUnit(_ctx.radius)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-eda42115"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-swiper/u-swiper.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-eda42115"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-swiper/u-swiper.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
const common_vendor = require("../../../../common/vendor.js");
|
const common_vendor = require("../../../../common/vendor.js");
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
name: "u-tag",
|
name: "u-tag",
|
||||||
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$15],
|
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$17],
|
||||||
data() {
|
data() {
|
||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
|
@ -121,5 +121,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-23de980f"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-tag/u-tag.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-23de980f"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-tag/u-tag.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
|
@ -118,5 +118,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
O: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args))
|
O: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args))
|
||||||
}) : {});
|
}) : {});
|
||||||
}
|
}
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5fec1d8b"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-text/u-text.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5fec1d8b"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-text/u-text.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
|
@ -33,7 +33,7 @@ const _sfc_main = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 将mixin挂在到组件中,实际上为一个vue格式对象。
|
// 将mixin挂在到组件中,实际上为一个vue格式对象。
|
||||||
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.transition, common_vendor.props$16],
|
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.transition, common_vendor.props$18],
|
||||||
watch: {
|
watch: {
|
||||||
show: {
|
show: {
|
||||||
handler(newVal) {
|
handler(newVal) {
|
||||||
|
@ -54,5 +54,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
e: common_vendor.o((...args) => _ctx.noop && _ctx.noop(...args))
|
e: common_vendor.o((...args) => _ctx.noop && _ctx.noop(...args))
|
||||||
} : {});
|
} : {});
|
||||||
}
|
}
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0573594d"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/node_modules/uview-plus/components/u-transition/u-transition.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0573594d"], ["__file", "D:/uniapp1/gree_leran/node_modules/uview-plus/components/u-transition/u-transition.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
|
@ -73,5 +73,5 @@ const _sfc_main = {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-ed332cbd"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/pages/discuss/CommentItem.vue"]]);
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-ed332cbd"], ["__file", "D:/uniapp1/gree_leran/pages/discuss/CommentItem.vue"]]);
|
||||||
wx.createComponent(Component);
|
wx.createComponent(Component);
|
||||||
|
|
|
@ -88,5 +88,5 @@ const _sfc_main = {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-9635802b"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/pages/discuss/discuss.vue"]]);
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-9635802b"], ["__file", "D:/uniapp1/gree_leran/pages/discuss/discuss.vue"]]);
|
||||||
wx.createPage(MiniProgramPage);
|
wx.createPage(MiniProgramPage);
|
||||||
|
|
|
@ -6,29 +6,66 @@ if (!Array) {
|
||||||
const _easycom_up_grid_item2 = common_vendor.resolveComponent("up-grid-item");
|
const _easycom_up_grid_item2 = common_vendor.resolveComponent("up-grid-item");
|
||||||
const _easycom_up_grid2 = common_vendor.resolveComponent("up-grid");
|
const _easycom_up_grid2 = common_vendor.resolveComponent("up-grid");
|
||||||
const _easycom_up_text2 = common_vendor.resolveComponent("up-text");
|
const _easycom_up_text2 = common_vendor.resolveComponent("up-text");
|
||||||
(_easycom_up_search2 + _easycom_up_swiper2 + _easycom_up_grid_item2 + _easycom_up_grid2 + _easycom_up_text2)();
|
const _easycom_CaseBox2 = common_vendor.resolveComponent("CaseBox");
|
||||||
|
const _easycom_up_loadmore2 = common_vendor.resolveComponent("up-loadmore");
|
||||||
|
(_easycom_up_search2 + _easycom_up_swiper2 + _easycom_up_grid_item2 + _easycom_up_grid2 + _easycom_up_text2 + _easycom_CaseBox2 + _easycom_up_loadmore2)();
|
||||||
}
|
}
|
||||||
const _easycom_up_search = () => "../../node-modules/uview-plus/components/u-search/u-search.js";
|
const _easycom_up_search = () => "../../node-modules/uview-plus/components/u-search/u-search.js";
|
||||||
const _easycom_up_swiper = () => "../../node-modules/uview-plus/components/u-swiper/u-swiper.js";
|
const _easycom_up_swiper = () => "../../node-modules/uview-plus/components/u-swiper/u-swiper.js";
|
||||||
const _easycom_up_grid_item = () => "../../node-modules/uview-plus/components/u-grid-item/u-grid-item.js";
|
const _easycom_up_grid_item = () => "../../node-modules/uview-plus/components/u-grid-item/u-grid-item.js";
|
||||||
const _easycom_up_grid = () => "../../node-modules/uview-plus/components/u-grid/u-grid.js";
|
const _easycom_up_grid = () => "../../node-modules/uview-plus/components/u-grid/u-grid.js";
|
||||||
const _easycom_up_text = () => "../../node-modules/uview-plus/components/u-text/u-text.js";
|
const _easycom_up_text = () => "../../node-modules/uview-plus/components/u-text/u-text.js";
|
||||||
|
const _easycom_CaseBox = () => "../../components/CaseBox/CaseBox.js";
|
||||||
|
const _easycom_up_loadmore = () => "../../node-modules/uview-plus/components/u-loadmore/u-loadmore.js";
|
||||||
if (!Math) {
|
if (!Math) {
|
||||||
(_easycom_up_search + _easycom_up_swiper + _easycom_up_grid_item + _easycom_up_grid + _easycom_up_text + newsCard)();
|
(_easycom_up_search + _easycom_up_swiper + _easycom_up_grid_item + _easycom_up_grid + _easycom_up_text + _easycom_CaseBox + _easycom_up_loadmore)();
|
||||||
}
|
}
|
||||||
const newsCard = () => "../../components/newsCard.js";
|
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
__name: "index",
|
__name: "index",
|
||||||
setup(__props) {
|
setup(__props) {
|
||||||
const swipe = common_vendor.reactive([
|
const swipe = common_vendor.reactive([
|
||||||
"/static/stu.png"
|
"/static/stu.png"
|
||||||
]);
|
]);
|
||||||
const newsList = common_vendor.reactive([{
|
const caseList = common_vendor.ref([
|
||||||
title: "测试",
|
{},
|
||||||
image: "/static/stu.png",
|
{},
|
||||||
detile: "这是一个测试",
|
{}
|
||||||
time: "2024-6-1"
|
]);
|
||||||
}]);
|
const isLoading = common_vendor.ref(false);
|
||||||
|
const status = common_vendor.ref("more");
|
||||||
|
const loadMore = async () => {
|
||||||
|
console.log("加载更多...");
|
||||||
|
status.value = "loading";
|
||||||
|
if (isLoading.value)
|
||||||
|
return;
|
||||||
|
isLoading.value = true;
|
||||||
|
await fetchCases();
|
||||||
|
caseList.value.push({});
|
||||||
|
caseList.value.push({});
|
||||||
|
caseList.value.push({});
|
||||||
|
caseList.value.push({});
|
||||||
|
console.log("加载更多2...");
|
||||||
|
isLoading.value = false;
|
||||||
|
status.value = "nomore";
|
||||||
|
console.log("加载更多2...");
|
||||||
|
};
|
||||||
|
const fetchCases = () => {
|
||||||
|
return new Promise((resolve) => {
|
||||||
|
setTimeout(() => {
|
||||||
|
const newCases = [
|
||||||
|
{ id: 1, title: "Case 1" },
|
||||||
|
{ id: 2, title: "Case 2" }
|
||||||
|
];
|
||||||
|
resolve(newCases);
|
||||||
|
}, 1e3);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
const toTop = () => {
|
||||||
|
common_vendor.index.pageScrollTo({
|
||||||
|
scrollTop: 0,
|
||||||
|
duration: 300
|
||||||
|
});
|
||||||
|
};
|
||||||
const baseList = common_vendor.ref([
|
const baseList = common_vendor.ref([
|
||||||
{
|
{
|
||||||
src: "/static/icon/video.png",
|
src: "/static/icon/video.png",
|
||||||
|
@ -56,7 +93,7 @@ const _sfc_main = {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return (_ctx, _cache) => {
|
return (_ctx, _cache) => {
|
||||||
return {
|
return common_vendor.e({
|
||||||
a: common_vendor.o(($event) => _ctx.keyword = $event),
|
a: common_vendor.o(($event) => _ctx.keyword = $event),
|
||||||
b: common_vendor.p({
|
b: common_vendor.p({
|
||||||
placeholder: "日照香炉生紫烟",
|
placeholder: "日照香炉生紫烟",
|
||||||
|
@ -74,7 +111,7 @@ const _sfc_main = {
|
||||||
b: common_vendor.t(baseListItem.title),
|
b: common_vendor.t(baseListItem.title),
|
||||||
c: baseListIndex,
|
c: baseListIndex,
|
||||||
d: common_vendor.o(($event) => NavicatToBaseItems(baseListItem), baseListIndex),
|
d: common_vendor.o(($event) => NavicatToBaseItems(baseListItem), baseListIndex),
|
||||||
e: "5cad4243-3-" + i0 + ",5cad4243-2"
|
e: "adbc9592-3-" + i0 + ",adbc9592-2"
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
e: common_vendor.p({
|
e: common_vendor.p({
|
||||||
|
@ -86,17 +123,23 @@ const _sfc_main = {
|
||||||
type: "primary",
|
type: "primary",
|
||||||
text: "新闻"
|
text: "新闻"
|
||||||
}),
|
}),
|
||||||
g: common_vendor.f(newsList, (i, k0, i0) => {
|
g: common_vendor.o(toTop),
|
||||||
|
h: common_vendor.f(caseList.value, (item, index, i0) => {
|
||||||
return {
|
return {
|
||||||
a: "5cad4243-5-" + i0,
|
a: "adbc9592-5-" + i0,
|
||||||
b: common_vendor.p({
|
b: index
|
||||||
info: i
|
|
||||||
})
|
|
||||||
};
|
};
|
||||||
|
}),
|
||||||
|
i: isLoading.value
|
||||||
|
}, isLoading.value ? {
|
||||||
|
j: common_vendor.p({
|
||||||
|
status: status.value
|
||||||
})
|
})
|
||||||
};
|
} : {}, {
|
||||||
|
k: common_vendor.o(loadMore)
|
||||||
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/pages/index/index.vue"]]);
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/uniapp1/gree_leran/pages/index/index.vue"]]);
|
||||||
wx.createPage(MiniProgramPage);
|
wx.createPage(MiniProgramPage);
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
"up-grid-item": "../../node-modules/uview-plus/components/u-grid-item/u-grid-item",
|
"up-grid-item": "../../node-modules/uview-plus/components/u-grid-item/u-grid-item",
|
||||||
"up-grid": "../../node-modules/uview-plus/components/u-grid/u-grid",
|
"up-grid": "../../node-modules/uview-plus/components/u-grid/u-grid",
|
||||||
"up-text": "../../node-modules/uview-plus/components/u-text/u-text",
|
"up-text": "../../node-modules/uview-plus/components/u-text/u-text",
|
||||||
"news-card": "../../components/newsCard"
|
"case-box": "../../components/CaseBox/CaseBox",
|
||||||
|
"up-loadmore": "../../node-modules/uview-plus/components/u-loadmore/u-loadmore"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1 +1 @@
|
||||||
<view class="content"><view class="nav"><view class="tit-box"> 学习平台 </view><view class="search-box" style="width:80%;margin:0 auto"><up-search wx:if="{{b}}" class="search" u-i="5cad4243-0" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"></up-search></view></view><view class="hand"><up-swiper wx:if="{{c}}" u-i="5cad4243-1" bind:__l="__l" u-p="{{c}}"></up-swiper></view><view class="seton"><up-grid wx:if="{{e}}" u-s="{{['d']}}" u-i="5cad4243-2" bind:__l="__l" u-p="{{e}}"><up-grid-item wx:for="{{d}}" wx:for-item="baseListItem" wx:key="c" u-s="{{['d']}}" bindclick="{{baseListItem.d}}" u-i="{{baseListItem.e}}" bind:__l="__l"><image src="{{baseListItem.a}}" style="width:60rpx" mode="widthFix"></image><text class="grid-text" style="margin:10rpx">{{baseListItem.b}}</text></up-grid-item></up-grid></view><view class="newlist"><up-text wx:if="{{f}}" u-i="5cad4243-4" bind:__l="__l" u-p="{{f}}"></up-text><view class=""><news-card wx:for="{{g}}" wx:for-item="i" u-i="{{i.a}}" bind:__l="__l" u-p="{{i.b}}"></news-card></view></view></view>
|
<view class="content"><view class="nav"><view class="tit-box"> 学习平台 </view><view class="search-box" style="width:80%;margin:0 auto"><up-search wx:if="{{b}}" class="search" u-i="adbc9592-0" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"></up-search></view></view><view class="hand"><up-swiper wx:if="{{c}}" u-i="adbc9592-1" bind:__l="__l" u-p="{{c}}"></up-swiper></view><view class="seton"><up-grid wx:if="{{e}}" u-s="{{['d']}}" u-i="adbc9592-2" bind:__l="__l" u-p="{{e}}"><up-grid-item wx:for="{{d}}" wx:for-item="baseListItem" wx:key="c" u-s="{{['d']}}" bindclick="{{baseListItem.d}}" u-i="{{baseListItem.e}}" bind:__l="__l"><image src="{{baseListItem.a}}" style="width:60rpx" mode="widthFix"></image><text class="grid-text" style="margin:10rpx">{{baseListItem.b}}</text></up-grid-item></up-grid></view><view class="newlist"><view class="newList-t" bindtap="{{g}}"><up-text wx:if="{{f}}" u-i="adbc9592-4" bind:__l="__l" u-p="{{f}}"></up-text></view><scroll-view scroll-y bindscrolltolower="{{k}}" class="case-list"><view wx:for="{{h}}" wx:for-item="item" wx:key="b" class="list-itme"><case-box u-i="{{item.a}}" bind:__l="__l"></case-box></view><view wx:if="{{i}}" class="loading"><up-loadmore wx:if="{{j}}" u-i="adbc9592-6" bind:__l="__l" u-p="{{j}}"/></view></scroll-view></view></view>
|
|
@ -45,6 +45,18 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 25rpx;
|
top: 25rpx;
|
||||||
}
|
}
|
||||||
|
.newlist {
|
||||||
|
display: flex;
|
||||||
|
flex-flow: column;
|
||||||
|
}
|
||||||
|
.newList-t {
|
||||||
|
position: -webkit-sticky;
|
||||||
|
position: sticky;
|
||||||
|
top: 60rpx;
|
||||||
|
height: 60rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
.content {
|
.content {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
background-color: #F7F8FA;
|
background-color: #F7F8FA;
|
||||||
|
@ -63,3 +75,15 @@
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
margin-top: -80rpx;
|
margin-top: -80rpx;
|
||||||
}
|
}
|
||||||
|
.case-list {
|
||||||
|
scrollbar-width: none;
|
||||||
|
height: 100vh;
|
||||||
|
display: flexbox;
|
||||||
|
flex-flow: column;
|
||||||
|
background-color: #e2e2e2;
|
||||||
|
}
|
||||||
|
.list-itme {
|
||||||
|
width: 98%;
|
||||||
|
height: 350rpx;
|
||||||
|
margin: 10rpx auto;
|
||||||
|
}
|
|
@ -62,5 +62,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
})
|
})
|
||||||
} : {});
|
} : {});
|
||||||
}
|
}
|
||||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/pages/intergral/intergral.vue"]]);
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:/uniapp1/gree_leran/pages/intergral/intergral.vue"]]);
|
||||||
wx.createPage(MiniProgramPage);
|
wx.createPage(MiniProgramPage);
|
||||||
|
|
|
@ -1,31 +1,70 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
const common_vendor = require("../../common/vendor.js");
|
const common_vendor = require("../../common/vendor.js");
|
||||||
if (!Math) {
|
if (!Array) {
|
||||||
newsCard();
|
const _easycom_CaseBox2 = common_vendor.resolveComponent("CaseBox");
|
||||||
|
const _easycom_up_loadmore2 = common_vendor.resolveComponent("up-loadmore");
|
||||||
|
(_easycom_CaseBox2 + _easycom_up_loadmore2)();
|
||||||
|
}
|
||||||
|
const _easycom_CaseBox = () => "../../components/CaseBox/CaseBox.js";
|
||||||
|
const _easycom_up_loadmore = () => "../../node-modules/uview-plus/components/u-loadmore/u-loadmore.js";
|
||||||
|
if (!Math) {
|
||||||
|
(_easycom_CaseBox + _easycom_up_loadmore)();
|
||||||
}
|
}
|
||||||
const newsCard = () => "../../components/newsCard.js";
|
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
__name: "news",
|
__name: "news",
|
||||||
setup(__props) {
|
setup(__props) {
|
||||||
const newsList = common_vendor.reactive([{
|
const caseList = common_vendor.ref([
|
||||||
title: "测试",
|
{},
|
||||||
image: "/static/stu.png",
|
{},
|
||||||
detile: "这是一个测试",
|
{}
|
||||||
time: "2024-6-1"
|
]);
|
||||||
}]);
|
const isLoading = common_vendor.ref(false);
|
||||||
|
const status = common_vendor.ref("more");
|
||||||
|
const loadMore = async () => {
|
||||||
|
console.log("加载更多...");
|
||||||
|
status.value = "loading";
|
||||||
|
if (isLoading.value)
|
||||||
|
return;
|
||||||
|
isLoading.value = true;
|
||||||
|
await fetchCases();
|
||||||
|
caseList.value.push({});
|
||||||
|
caseList.value.push({});
|
||||||
|
caseList.value.push({});
|
||||||
|
caseList.value.push({});
|
||||||
|
console.log("加载更多2...");
|
||||||
|
isLoading.value = false;
|
||||||
|
status.value = "nomore";
|
||||||
|
console.log("加载更多2...");
|
||||||
|
};
|
||||||
|
const fetchCases = () => {
|
||||||
|
return new Promise((resolve) => {
|
||||||
|
setTimeout(() => {
|
||||||
|
const newCases = [
|
||||||
|
{ id: 1, title: "Case 1" },
|
||||||
|
{ id: 2, title: "Case 2" }
|
||||||
|
];
|
||||||
|
resolve(newCases);
|
||||||
|
}, 1e3);
|
||||||
|
});
|
||||||
|
};
|
||||||
return (_ctx, _cache) => {
|
return (_ctx, _cache) => {
|
||||||
|
return common_vendor.e({
|
||||||
|
a: common_vendor.f(caseList.value, (item, index, i0) => {
|
||||||
return {
|
return {
|
||||||
a: common_vendor.f(newsList, (i, k0, i0) => {
|
a: "4c8a5df1-0-" + i0,
|
||||||
return {
|
b: index
|
||||||
a: "2b6dbdfd-0-" + i0,
|
|
||||||
b: common_vendor.p({
|
|
||||||
info: i
|
|
||||||
})
|
|
||||||
};
|
};
|
||||||
|
}),
|
||||||
|
b: isLoading.value
|
||||||
|
}, isLoading.value ? {
|
||||||
|
c: common_vendor.p({
|
||||||
|
status: status.value
|
||||||
})
|
})
|
||||||
};
|
} : {}, {
|
||||||
|
d: common_vendor.o(loadMore)
|
||||||
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/pages/news/news.vue"]]);
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/uniapp1/gree_leran/pages/news/news.vue"]]);
|
||||||
wx.createPage(MiniProgramPage);
|
wx.createPage(MiniProgramPage);
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"navigationBarTitleText": "新闻",
|
"navigationBarTitleText": "新闻",
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"news-card": "../../components/newsCard"
|
"case-box": "../../components/CaseBox/CaseBox",
|
||||||
|
"up-loadmore": "../../node-modules/uview-plus/components/u-loadmore/u-loadmore"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1 +1 @@
|
||||||
<view style="margin-top:20rpx"><news-card wx:for="{{a}}" wx:for-item="i" u-i="{{i.a}}" bind:__l="__l" u-p="{{i.b}}"></news-card></view>
|
<view class=""><scroll-view scroll-y bindscrolltolower="{{d}}" class="case-list"><view wx:for="{{a}}" wx:for-item="item" wx:key="b" class="list-itme"><case-box u-i="{{item.a}}" bind:__l="__l"></case-box></view><view wx:if="{{b}}" class="loading"><up-loadmore wx:if="{{c}}" u-i="4c8a5df1-1" bind:__l="__l" u-p="{{c}}"/></view></scroll-view></view>
|
|
@ -23,6 +23,15 @@
|
||||||
/* 垂直间距 */
|
/* 垂直间距 */
|
||||||
/* 透明度 */
|
/* 透明度 */
|
||||||
/* 文章场景相关 */
|
/* 文章场景相关 */
|
||||||
page {
|
.case-list {
|
||||||
background-color: #F7F8FA;
|
scrollbar-width: none;
|
||||||
|
height: 100vh;
|
||||||
|
display: flexbox;
|
||||||
|
flex-flow: column;
|
||||||
|
background-color: #e2e2e2;
|
||||||
|
}
|
||||||
|
.list-itme {
|
||||||
|
width: 98%;
|
||||||
|
height: 350rpx;
|
||||||
|
margin: 10rpx auto;
|
||||||
}
|
}
|
|
@ -1,62 +1,88 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
const common_vendor = require("../../common/vendor.js");
|
const common_vendor = require("../../common/vendor.js");
|
||||||
const comm_api = require("../../comm/api.js");
|
|
||||||
const utils_Auth = require("../../utils/Auth.js");
|
|
||||||
require("../../utils/http.js");
|
|
||||||
if (!Array) {
|
if (!Array) {
|
||||||
|
const _easycom_up_text2 = common_vendor.resolveComponent("up-text");
|
||||||
|
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||||
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
|
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
|
||||||
_easycom_up_button2();
|
(_easycom_up_text2 + _easycom_up_input2 + _easycom_up_button2)();
|
||||||
}
|
}
|
||||||
|
const _easycom_up_text = () => "../../node-modules/uview-plus/components/u-text/u-text.js";
|
||||||
|
const _easycom_up_input = () => "../../node-modules/uview-plus/components/u-input/u-input.js";
|
||||||
const _easycom_up_button = () => "../../node-modules/uview-plus/components/u-button/u-button.js";
|
const _easycom_up_button = () => "../../node-modules/uview-plus/components/u-button/u-button.js";
|
||||||
if (!Math) {
|
if (!Math) {
|
||||||
_easycom_up_button();
|
(_easycom_up_text + _easycom_up_input + _easycom_up_button)();
|
||||||
}
|
}
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
__name: "login",
|
__name: "login",
|
||||||
setup(__props) {
|
setup(__props) {
|
||||||
|
const username = common_vendor.ref("");
|
||||||
|
const password = common_vendor.ref("");
|
||||||
|
const style = common_vendor.reactive({
|
||||||
|
height: "70rpx",
|
||||||
|
margin: "10rpx",
|
||||||
|
textAlign: "center",
|
||||||
|
backgroundColor: "#fff",
|
||||||
|
boxShadow: "0 4px 8px rgba(0, 0, 0, 0.1)"
|
||||||
|
});
|
||||||
|
const usernameError = common_vendor.ref(false);
|
||||||
|
const passwordError = common_vendor.ref(false);
|
||||||
|
const isButtonDisabled = common_vendor.ref(true);
|
||||||
|
function validateUsername() {
|
||||||
|
usernameError.value = username.value.trim() === "";
|
||||||
|
checkFormValidity();
|
||||||
|
}
|
||||||
|
function validatePassword() {
|
||||||
|
passwordError.value = password.value.trim() === "";
|
||||||
|
checkFormValidity();
|
||||||
|
}
|
||||||
|
function checkFormValidity() {
|
||||||
|
isButtonDisabled.value = usernameError.value || passwordError.value || username.value.trim() === "" || password.value.trim() === "";
|
||||||
|
}
|
||||||
async function login() {
|
async function login() {
|
||||||
common_vendor.index.login({
|
if (isButtonDisabled.value)
|
||||||
provider: "weixin",
|
return;
|
||||||
async success(e) {
|
|
||||||
console.log(e.code);
|
|
||||||
try {
|
|
||||||
const resp = await comm_api.loginByCode({
|
|
||||||
code: e.code
|
|
||||||
});
|
|
||||||
console.log(resp, "resp");
|
|
||||||
common_vendor.index.showToast({
|
|
||||||
icon: "none",
|
|
||||||
title: "登录成功"
|
|
||||||
});
|
|
||||||
utils_Auth.setToken(resp.token);
|
|
||||||
setTimeout(() => {
|
|
||||||
common_vendor.index.switchTab({
|
|
||||||
url: "/pages/user/user"
|
|
||||||
});
|
|
||||||
}, 800);
|
|
||||||
} catch (err) {
|
|
||||||
console.log(err, "errorCatch");
|
|
||||||
common_vendor.index.showToast({
|
|
||||||
icon: "none",
|
|
||||||
title: "登录失败"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
fail(err) {
|
|
||||||
console.log(err, "error");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
return (_ctx, _cache) => {
|
return (_ctx, _cache) => {
|
||||||
return {
|
return {
|
||||||
a: common_vendor.o(login),
|
a: common_vendor.p({
|
||||||
b: common_vendor.p({
|
lines: 1,
|
||||||
|
text: "登录",
|
||||||
|
bold: "true",
|
||||||
|
size: " 60rpx",
|
||||||
|
align: "cente"
|
||||||
|
}),
|
||||||
|
b: common_vendor.o(validateUsername),
|
||||||
|
c: common_vendor.o(($event) => username.value = $event),
|
||||||
|
d: common_vendor.p({
|
||||||
|
placeholder: "请输入账号",
|
||||||
|
border: "surround",
|
||||||
|
error: usernameError.value,
|
||||||
|
fontSize: 15,
|
||||||
|
["error-message"]: "账号不能为空",
|
||||||
|
customStyle: style,
|
||||||
|
modelValue: username.value
|
||||||
|
}),
|
||||||
|
e: common_vendor.o(validatePassword),
|
||||||
|
f: common_vendor.o(($event) => password.value = $event),
|
||||||
|
g: common_vendor.p({
|
||||||
|
placeholder: "请输入密码",
|
||||||
|
border: "surround",
|
||||||
|
type: "password",
|
||||||
|
error: passwordError.value,
|
||||||
|
fontSize: 15,
|
||||||
|
customStyle: style,
|
||||||
|
["error-message"]: "密码不能为空",
|
||||||
|
modelValue: password.value
|
||||||
|
}),
|
||||||
|
h: common_vendor.o(login),
|
||||||
|
i: common_vendor.p({
|
||||||
type: "primary",
|
type: "primary",
|
||||||
text: "登录"
|
text: "登录",
|
||||||
|
disabled: isButtonDisabled.value
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/pages/user/login.vue"]]);
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-6163e5ce"], ["__file", "D:/uniapp1/gree_leran/pages/user/login.vue"]]);
|
||||||
wx.createPage(MiniProgramPage);
|
wx.createPage(MiniProgramPage);
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
"navigationBarTitleText": "登录",
|
"navigationBarTitleText": "登录",
|
||||||
"navigationStyle": "default",
|
"navigationStyle": "default",
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
|
"up-text": "../../node-modules/uview-plus/components/u-text/u-text",
|
||||||
|
"up-input": "../../node-modules/uview-plus/components/u-input/u-input",
|
||||||
"up-button": "../../node-modules/uview-plus/components/u-button/u-button"
|
"up-button": "../../node-modules/uview-plus/components/u-button/u-button"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1 +1 @@
|
||||||
<view class="main"><view class="" style="width:80%;margin:0 auto"><up-button wx:if="{{b}}" bindclick="{{a}}" u-i="35531eb2-0" bind:__l="__l" u-p="{{b}}"></up-button></view></view>
|
<view class="main data-v-6163e5ce"><view class="login-container data-v-6163e5ce"><view class=" data-v-6163e5ce"><up-text wx:if="{{a}}" class="data-v-6163e5ce" u-i="6163e5ce-0" bind:__l="__l" u-p="{{a}}"></up-text></view><view class="log-input data-v-6163e5ce"><up-input wx:if="{{d}}" class="data-v-6163e5ce" bindchange="{{b}}" u-i="6163e5ce-1" bind:__l="__l" bindupdateModelValue="{{c}}" u-p="{{d}}"></up-input></view><view class="log-input data-v-6163e5ce"><up-input wx:if="{{g}}" class="data-v-6163e5ce" bindchange="{{e}}" u-i="6163e5ce-2" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"></up-input></view><view class="log-input data-v-6163e5ce"><up-button wx:if="{{i}}" class="data-v-6163e5ce" bindclick="{{h}}" u-i="6163e5ce-3" bind:__l="__l" u-p="{{i}}"></up-button></view></view></view>
|
|
@ -1,6 +1,31 @@
|
||||||
|
|
||||||
.main {
|
.main.data-v-6163e5ce {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
background-color: #efefef;
|
||||||
|
}
|
||||||
|
.login-container.data-v-6163e5ce {
|
||||||
|
width: 80%;
|
||||||
|
display: flex;
|
||||||
|
flex-flow: column;
|
||||||
|
height: 90vh;
|
||||||
|
align-items: center;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 20px;
|
||||||
|
/* background: #ffffff; */
|
||||||
|
/* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
|
||||||
|
/* border-radius: 8px; */
|
||||||
|
}
|
||||||
|
.login-container up-input.data-v-6163e5ce {
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
.login-container up-button.data-v-6163e5ce {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.log-input.data-v-6163e5ce{
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 40rpx;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,5 +83,5 @@ const _sfc_main = {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-0f7520f0"], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/pages/user/user.vue"]]);
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-0f7520f0"], ["__file", "D:/uniapp1/gree_leran/pages/user/user.vue"]]);
|
||||||
wx.createPage(MiniProgramPage);
|
wx.createPage(MiniProgramPage);
|
||||||
|
|
|
@ -93,7 +93,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
return {
|
return {
|
||||||
a: common_vendor.o($options.getVideo, index),
|
a: common_vendor.o($options.getVideo, index),
|
||||||
b: index,
|
b: index,
|
||||||
c: "71f14456-0-" + i0,
|
c: "137bd0c9-0-" + i0,
|
||||||
d: common_vendor.p({
|
d: common_vendor.p({
|
||||||
VideoId: index,
|
VideoId: index,
|
||||||
Videos: item
|
Videos: item
|
||||||
|
@ -102,5 +102,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "C:/Users/33043/Desktop/文件/work/newStud学习/greenStu/pages/video/video.vue"]]);
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:/uniapp1/gree_leran/pages/video/video.vue"]]);
|
||||||
wx.createPage(MiniProgramPage);
|
wx.createPage(MiniProgramPage);
|
||||||
|
|
|
@ -19,7 +19,9 @@
|
||||||
"disablePlugins": [],
|
"disablePlugins": [],
|
||||||
"outputPath": ""
|
"outputPath": ""
|
||||||
},
|
},
|
||||||
"ignoreUploadUnusedFiles": false
|
"condition": false,
|
||||||
|
"ignoreUploadUnusedFiles": true,
|
||||||
|
"minifyWXML": true
|
||||||
},
|
},
|
||||||
"condition": {},
|
"condition": {},
|
||||||
"editorSetting": {
|
"editorSetting": {
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
|
@ -1,9 +1,6 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
const common_vendor = require("../common/vendor.js");
|
const common_vendor = require("../common/vendor.js");
|
||||||
var Admin = "token";
|
var Admin = "token";
|
||||||
function setToken(token) {
|
|
||||||
common_vendor.index.setStorageSync(Admin, token);
|
|
||||||
}
|
|
||||||
function getToken() {
|
function getToken() {
|
||||||
return common_vendor.index.getStorageSync(Admin);
|
return common_vendor.index.getStorageSync(Admin);
|
||||||
}
|
}
|
||||||
|
@ -12,4 +9,3 @@ function isLogin() {
|
||||||
}
|
}
|
||||||
exports.getToken = getToken;
|
exports.getToken = getToken;
|
||||||
exports.isLogin = isLogin;
|
exports.isLogin = isLogin;
|
||||||
exports.setToken = setToken;
|
|
||||||
|
|
Loading…
Reference in New Issue