}.page-header{background:rgb(8, 117, 94);color:#fff;line-height:100rpx;/*不放大不缩小固定100rpx*/flex:0 0 100rpx; }.page-main{flex:1;position:relative; }.page-main-scroll{position:absolute;left:0;right:0;top:0;bottom:0; }.page-main-list{height:80rpx;line-height:80rpx;text-ali...
<template><viewclass="page-wrapper"><ws-tabsref="tabsHeaderRef":tabList="state.tabList"@tabClick="handleClickTab":indicatorWidth="10"></ws-tabs><viewstyle="flex: 1"><swiperclass="swiper":autoplay="false"ref="swiperRef":current="currentPage"@change="handleSwiperChange"><swiper-item><vie...
HBuilderX安装 HBuilderX安装的时候选择标准版,不要下载APP开发版,至于uni-app编辑都可以在标准版里面通过插件安装或者是直接通过vue-cli命令行创建项目,另外就我个人使用之后,APP开发版编译小程序的时候,有时候会导致编译出来的小程序页面空白(只剩下<page></page>)。 微信开发者工具 HBuilderX运行/发布微信小程序...
export function request (options) { const { url, method, data, header } = options uni.showLoading({ title: '加载中' }); return new Promise((resolve, reject) => { uni.request({ url: baseUrl + url, data: data || {}, method: method || 'GET', header: header || {}, timeout:...
header:{'content-type':'application/json','authorization':token},dataType:'json',success:function(res){console.log("post---success")console.log("post---url:"+url)console.log("post---code:"+res.data.code)if(res.data.code===401){uni.removeStorageSync('token');uni.showModal({title:'...
uni-app原生导航栏也能实现一些顶部自定义按钮+搜索框,只需在page.json里面做一些配置即可。设置app-plus,不过目前暂支持H5、App端,不支持小程序。 dcloud平台app-plus配置 代码语言:javascript 代码运行次数:0 复制 Cloud Studio代码运行 {"path":"pages/ucenter/index","style":{"navigationBarTitleText":"我的...
data: { token:uni.getStorageSync('token'), class_id:ee, page:this.page, per_page:this.per_page }, method: 'POST', header: { 'content-type': 'application/x-www-form-urlencoded' //自定义请求头信息 }, success: (res) => { this.goodsList = this.goodsList.concat(res.data.data);...
.page { display: flex; flex-direction: column; } .top { height: 100px; background: green; } .bottom { height: 100px; background: red; } .center { flex: 1; } </style> 场景三:未知高度局部滚动 这个就有点难度了,其实就是我们 pc 上常用的设置最大高度 max-height,如果超过了最大高度...
page{ /*background: url('https://file.genepre.com/wechat/estimatebg.png');*/ background-size: 100% 100%; height: 100vh; width: 100%; overflow: hidden; background: #F9F9F9; } .header{ width: 100%; height: 88rpx; /* margin-top: 110rpx; */ } .headerTitle{ text-align: ...
{ "path": "pages/home/home", "style": { "navigationStyle": "custom", //pages.json中禁用原生导航栏 "enablePullDownRefresh": true, "app-plus": { "pullToRefresh": { "support": true, "color": "#DD524D", "offset": "70px" } } } } //自定义导航栏 <view class="header"> <vie...