提交 54bda53c 编写于 作者: 小刘28's avatar 小刘28 💬

Merge branch 'lxl' into develop

......@@ -4,4 +4,6 @@
* @LastEditors: xiaozuo28
* @LastEditTime: 2022年8月3日10:35:42
* @Description: 主界面接口
**/
\ No newline at end of file
**/
import xzRequest from '@/utils/network/xz-request.js';
\ No newline at end of file
......@@ -7,90 +7,90 @@
* @Description: 模板1.基本常用的方案和数据内容
-->
<template>
<view>
</view>
<view>
</view>
</template>
<script>
export default {
data() {
return {
/**
* @description 是否处于加载操作中
**/
isLoading:false,
/**
* @description 是否显示页面内容
**/
isShowPage:false
}
},
onLoad(options) {
},
onShow() {
},
onPageScroll() {
},
onReachBottom() {
},
onPullDownRefresh(){
},
onBackPress() {
},
methods: {
// 1.网络请求处理部分
/**
* @description 获取数据的请求
* @date 2022年7月17日08:48:03
**/
getData(){
},
/**
* @description 发送数据的请求
* @date 2022年7月17日08:48:03
**/
sendData(){
},
// 2.组件事件处理部分
// 3.数据校验,逻辑判断处理部分
// 4.数据处理部分
/**
* @description 格式化接收的数据
* @date 2022年7月17日08:48:03
* @param {Array} array 待处理数据
* @return {Array} 已处理数据
**/
formateReceiveData(object = {}){
let arr = [];
return arr;
},
/**
* @description 格式化发送的数据
* @date 2022年7月17日08:48:03
* @param {Array} array 待处理数据
* @return {Array} 已处理数据
**/
formateSendData(array = []){
let arr = [];
return arr;
}
}
export default {
data( ) {
return {
/**
* @description 是否处于加载操作中
**/
isLoading: false,
/**
* @description 是否显示页面内容
**/
isShowPage: false
}
},
onLoad( options ) {
},
onShow( ) {
},
onPageScroll( ) {
},
onReachBottom( ) {
},
onPullDownRefresh( ) {
},
onBackPress( ) {
},
methods: {
// 1.网络请求处理部分
/**
* @description 获取数据的请求
* @date 2022年7月17日08:48:03
**/
getData( ) {
},
/**
* @description 发送数据的请求
* @date 2022年7月17日08:48:03
**/
sendData( ) {
},
// 2.组件事件处理部分
// 3.数据校验,逻辑判断处理部分
// 4.数据处理部分
/**
* @description 格式化接收的数据
* @date 2022年7月17日08:48:03
* @param {Array} array 待处理数据
* @return {Array} 已处理数据
**/
formateReceiveData( object = {} ) {
let arr = [ ];
return arr;
},
/**
* @description 格式化发送的数据
* @date 2022年7月17日08:48:03
* @param {Array} array 待处理数据
* @return {Array} 已处理数据
**/
formateSendData( array = [ ] ) {
let arr = [ ];
return arr;
}
}
}
</script>
<style lang="scss" scoped>
......
......@@ -8,14 +8,27 @@
-->
<template>
<div>
<web-view src="https://www.baidu.com"></web-view>
</div>
<div>
<web-view :src="webSrc"></web-view>
</div>
</template>
<script>
export default {
data(){
return {
webSrc:''
}
},
onLoad( options ) {
this.webSrc = options.src|| 'http://www.baidu.com';
},
methods:{
}
}
</script>
<style lang="scss" scoped>
</style>
\ No newline at end of file
</style>
......@@ -7,130 +7,130 @@
* @Description: 模板3.基本的列表页效果模板
-->
<template>
<view>
</view>
<view>
</view>
</template>
<script>
export default {
data() {
return {
/**
* @description 新闻列表
**/
newsList:[],
/**
* @description 新闻列表查询参数
**/
newsListQuery:{
page:1,
pageSize:10,
total:0,
searchKey:''
},
/**
* @description 是否上拉加载更多
**/
isDownMore:true,
/**
* @description 是否处于加载操作中
**/
isLoading:false,
/**
* @description 是否显示页面内容
**/
isShowPage:false
}
export default {
data( ) {
return {
/**
* @description 新闻列表
**/
newsList: [ ],
/**
* @description 新闻列表查询参数
**/
newsListQuery: {
page: 1,
pageSize: 10,
total: 0,
searchKey: ''
},
onLoad(options) {
this.isDownMore = false;
this.getData();
},
onShow() {
},
onPageScroll() {
},
onReachBottom() {
this.isDownMore = true;
if (Math.ceil(this.newsListQuery.total / this.newsListQuery.pageSize) > this.newsListQuery.page) {
this.newsListQuery.page = this.newsListQuery.page + 1;
this.getData();
} else {
uni.showToast({
icon: 'none',
title: "已全部加载"
});
}
/**
* @description 是否上拉加载更多
**/
isDownMore: true,
/**
* @description 是否处于加载操作中
**/
isLoading: false,
/**
* @description 是否显示页面内容
**/
isShowPage: false
}
},
onLoad( options ) {
this.isDownMore = false;
this.getData( );
},
onShow( ) {
},
onPullDownRefresh(){
this.isDownMore = false;
this.newsListQuery.page = 1;
},
onBackPress() {
},
methods: {
// 1.网络请求处理部分
/**
* @description 获取数据的请求
* @date 2022年7月17日08:48:03
**/
getData(){
let data = {
page:this.newsListQuery.page,
searchKey:this.newsListQuery.searchKey
};
if(this.isDownMore){
this.newsList = this.newsList.concat(this.formateReceiveData([]));
// this.newsListQuery.total = 100;
}else{
this.newsList = this.formateReceiveData([]);
this.newsListQuery.total = 100;
}
},
/**
* @description 发送数据的请求
* @date 2022年7月17日08:48:03
**/
sendData(){
},
// 2.组件事件处理部分
// 3.数据校验,逻辑判断处理部分
// 4.数据处理部分
/**
* @description 格式化接收的数据
* @date 2022年7月17日08:48:03
* @param {Array} array 待处理数据
* @return {Array} 已处理数据
**/
formateReceiveData(object = {}){
let arr = [];
return arr;
},
/**
* @description 格式化发送的数据
* @date 2022年7月17日08:48:03
* @param {Array} array 待处理数据
* @return {Array} 已处理数据
**/
formateSendData(array = []){
let arr = [];
return arr;
}
},
onPageScroll( ) {
},
onReachBottom( ) {
this.isDownMore = true;
if ( Math.ceil( this.newsListQuery.total / this.newsListQuery.pageSize ) > this.newsListQuery.page ) {
this.newsListQuery.page = this.newsListQuery.page + 1;
this.getData( );
} else {
uni.showToast( {
icon: 'none',
title: "已全部加载"
} );
}
},
onPullDownRefresh( ) {
this.isDownMore = false;
this.newsListQuery.page = 1;
},
onBackPress( ) {
},
methods: {
// 1.网络请求处理部分
/**
* @description 获取数据的请求
* @date 2022年7月17日08:48:03
**/
getData( ) {
let data = {
page: this.newsListQuery.page,
searchKey: this.newsListQuery.searchKey
};
if ( this.isDownMore ) {
this.newsList = this.newsList.concat( this.formateReceiveData( [ ] ) );
// this.newsListQuery.total = 100;
} else {
this.newsList = this.formateReceiveData( [ ] );
this.newsListQuery.total = 100;
}
},
/**
* @description 发送数据的请求
* @date 2022年7月17日08:48:03
**/
sendData( ) {
},
// 2.组件事件处理部分
// 3.数据校验,逻辑判断处理部分
// 4.数据处理部分
/**
* @description 格式化接收的数据
* @date 2022年7月17日08:48:03
* @param {Array} array 待处理数据
* @return {Array} 已处理数据
**/
formateReceiveData( object = {} ) {
let arr = [ ];
return arr;
},
/**
* @description 格式化发送的数据
* @date 2022年7月17日08:48:03
* @param {Array} array 待处理数据
* @return {Array} 已处理数据
**/
formateSendData( array = [ ] ) {
let arr = [ ];
return arr;
}
}
}
</script>
<style lang="scss" scoped>
......
......@@ -15,9 +15,21 @@
</template>
<script>
export default {
data(){
return {
}
},
onLoad( options ) {
},
methods:{
}
}
</script>
<style>
</style>
\ No newline at end of file
</style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册