微信小程序成功案例??旅游微天气开发全套程序(天气预报)

发布时间:2021-09-27 16:48:57

微信小程序成功案例??旅游微天气开发全套程序(天气预报)


今天给大家介绍的这个天气预报小程序,开发有三个原因。 一是天气类的小程序整体复杂度不高,适合我们说明问题以及微信小程序开发初学者练手。 二是这种类型的应用也更加适合微信小程序生态的场景,我的理解这个生态不适宜开发过于复杂的应用。 三是最重要的,因为先前是旅游爱好者,也是旅游工作者,经常出去旅游,有了这个小程序就更方便知道目的地的天气情况,好了,不说这些了,咱们首先来看看最终效果,有个感官的认识:

这是白天的时时效果图



这是晚上的时时效果图


这个是在我的发布小程序的最终运行效果,根据你当前的位置显示当前以及未来3天的天气情况。下拉屏幕,可以关注更多天气信息,如穿衣指数,洗车指数,感冒指数,运动指数,紫外线强度指数;特别关注的是,小程序自带了一个多功能设置按钮,读者您有没有找到呢?


准备工作


先给大家看了运行效果,建立一个感官认识。那么接下来,我们就可以开始了。首先在微信开发者工具里建立一个项目:


接下来,项目创建窗口有一点说明下, 在 AppID 条目中, 如果你已经有了内测账号,就填写你的 AppID, 如果你还没有内测账号,点击旁边的无AppID就可以了(相信大多数同学是没有内测账号的,所以可以使用这个方法继续在本地调试)。


关于小程序的基本流程,以及项目结构等,这些基础部分咱们这里就不多赘述。


项目结构


整个项目的文件结构如下:


大家可以看到,有一个 index 目录里面是主页。 app.js 是程序主入口, util.js 是咱们的工具脚本,用于读取天气数据。这个项目的所有文件都在这里了,是不是挺简单的?


基本结构介绍完了, 接下来咱们可以开始 Coding 了。 对于这个旅游微天气小程序来说, 首先要处理的一个事情就是天气数据的获取了。 那咱们就照着一步一步的来做就可以了。


app.js开发源代码展示:
var util = require(“we7/resource/js/util.js”);


App({
onLaunch: function(e) {
var s = this;
wx.getSystemInfo({
success: function(e) {
s.globalData.systeminfo = e;
}
});
},
util: util,
userInfo: {
sessionid: null
},
globalData: {
keepscreenon: !1,
systeminfo: {},
ak: “1d0b8747131b0db1e76efbaa7f30a318”
},
setGeocoderUrl: function(e) {
return “https://api.map.baidu.com/geocoder/v2/?address=” + e + “&output=json&ak=” + this.globalData.ak;
},
siteInfo: require(“siteinfo.js”)
});


app.json开发源代码展示:
{
“pages”: [
“zmsofts_weather/pages/index/index”,
“zmsofts_weather/pages/about/about”,
“zmsofts_weather/pages/citychoose/citychoose”,
“zmsofts_weather/pages/setting/setting”,
“zmsofts_weather/pages/systeminfo/systeminfo”
],
“window”: {
“backgroundTextStyle”: “dark”,
“navigationBarBackgroundColor”: “#40a7e7”,
“navigationBarTitleText”: “旅游微天气”,
“navigationBarTextStyle”: “light”
}
}


app.wxss开发源代码展示:
page {
line-height: 1.6;
font-family: -apple-system-font,“Helvetica Neue”,sans-serif;
}


icon {
vertical-align: middle;
}


.weui-cells {
position: relative;
margin-top: 1.17647059em;
background-color: #fff;
line-height: 1.41176471;
font-size: 17px;
}


.weui-cells:before {
content: " ";
position: absolute;
left: 0;
top: 0;
right: 0;
height: 1px;
border-top: 1rpx solid #e6e6e6;
color: #e6e6e6;
}


.weui-cells:after {
content: " ";
position: absolute;
left: 0;
bottom: 0;
right: 0;
height: 0px;
border-bottom: 0rpx solid #e6e6e6;
color: #e6e6e6;
}


.weui-cells__title {
margin-top: 0.77em;
margin-bottom: 0.3em;
padding-left: 15px;
padding-right: 15px;
color: #999;
font-size: 14px;
}


.weui-cells_after-title {
margin-top: 0;
}


.weui-cells__tips {
margin-top: 0.3em;
color: #999;
padding-left: 15px;
padding-right: 15px;
font-size: 14px;
}


.weui-cell {
padding: 10px 15px;
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-align: center;
align-items: center;
}


.weui-cell:before {
content: " ";
position: absolute;
left: 0;
top: 0;
right: 0;
height: 1px;
border-top: 1rpx solid #e6e6e6;
color: #e6e6e6;
}


.weui-cell:first-child:before {
display: none;
}


.weui-cell_active {
background-color: #ececec;
}


.weui-cell_primary {
-webkit-box-align: start;
align-items: flex-start;
}


.weui-cell__bd {
-webkit-box-flex: 1;
flex: 1;
}


.weui-cell__ft {
text-align: right;
color: #999;
}


.weui-cell_access {
color: inherit;
}


.weui-cell__ft_in-access {
padding-right: 13px;
position: relative;
}


.weui-cell__ft_in-access:after {
content: " ";
display: inline-block;
height: 6px;
width: 6px;
border-width: 2px 2px 0 0;
border-color: #c8c8cd;
border-style: solid;
transform: matrix(0.71,0.71,-0.71,0.71,0,0);
position: relative;
top: -2px;
position: absolute;
top: 50%;
margin-top: -4px;
right: 2px;
}


.weui-cell_link {
color: #586c94;
font-size: 14px;
}


.weui-cell_link:active {
background-color: #ececec;
}


.weui-cell_link:first-child:before {
display: block;
}


.weui-icon-radio {
margin-left: 3.2px;
margin-right: 3.2px;
}


.weui-icon-checkbox_circle,.weui-icon-checkbox_success {
margin-left: 4.6px;
margin-right: 4.6px;
}


.weui-check__label:active {
background-color: #ececec;
}


.weui-check {
position: absolute;
left: -9999px;
}


.weui-check__hd_in-checkbox {
padding-right: 0.35em;
}


.weui-cell__ft_in-radio {
padding-left: 0.35em;
}


.weui-cell_input {
padding-top: 0;
padding-bottom: 0;
}


.weui-label {
width: 105px;
word-wrap: break-word;
word-break: break-all;
}


.weui-input {
height: 2.58823529em;
min-height: 2.58823529em;
line-height: 2.58823529em;
}


.weui-toptips {
position: fixed;
transform: translateZ(0);
top: 0;
left: 0;
right: 0;
padding: 5px;
font-size: 14px;
text-align: center;
color: #fff;
z-index: 5000;
word-wrap: break-word;
word-break: break-all;
}


.weui-toptips_warn {
background-color: #e64340;
}


.weui-textarea {
display: block;
width: 100%;
}


.weui-textarea-counter {
color: #b2b2b2;
text-align: right;
}


.weui-textarea-counter_warn {
color: #e64340;
}


.weui-cell_warn {
color: #e64340;
}


.weui-form-preview {
position: relative;
background-color: #fff;
}


.weui-form-preview:before {
content: " ";
position: absolute;
left: 0;
top: 0;
right: 0;
height: 1px;
border-top: 1rpx solid #d9d9d9;
color: #d9d9d9;
}


.weui-form-preview:after {
content: " ";
position: absolute;
left: 0;
bottom: 0;
right: 0;
height: 1px;
border-bottom: 1rpx solid #d9d9d9;
color: #d9d9d9;
}


.weui-form-preview__value {
font-size: 14px;
}


.weui-form-preview__value_in-hd {
font-size: 26px;
}


.weui-form-preview__hd {
position: relative;
padding: 10px 15px;
text-align: right;
line-height: 2.5em;
}


.weui-form-preview__hd:after {
content: " ";
position: absolute;
left: 0;
bottom: 0;
right: 0;
height: 1px;
border-bottom: 1rpx solid #d9d9d9;
color: #d9d9d9;
left: 15px;
}


.weui-form-preview__bd {
padding: 10px 15px;
font-size: 0.9em;
text-align: right;
color: #999;
line-height: 2;
}


.weui-form-preview__ft {
position: relative;
line-height: 50px;
display: -webkit-box;
display: -webkit-flex;
display: flex;
}


.weui-form-preview__ft:after {
content: " ";
position: absolute;
left: 0;
top: 0;
right: 0;
height: 1px;
border-top: 1rpx solid #d5d5d6;
color: #d5d5d6;
}


.weui-form-preview__item {
overflow: hidden;
}


.weui-form-preview__label {
float: left;
margin-right: 1em;
min-width: 4em;
color: #999;
text-align: justify;
text-align-last: justify;
}


.weui-form-preview__value {
display: block;
overflow: hidden;
word-break: normal;
word-wrap: break-word;
}


.weui-form-preview__btn {
position: relative;
display: block;
-webkit-box-flex: 1;
flex: 1;
color: #3cc51f;
text-align: center;
}


.weui-form-preview__btn:after {
content: " ";
position: absolute;
left: 0;
top: 0;
width: 1px;
bottom: 0;
border-left: 1rpx solid #d5d5d6;
color: #d5d5d6;
}


.weui-form-preview__btn:first-child:after {
display: none;
}


.weui-form-preview__btn_active {
background-color: #eee;
}


.weui-form-preview__btn_default {
color: #999;
}


.weui-form-preview__btn_primary {
color: #0bb20c;
}


.weui-cell_select {
padding: 0;
}


.weui-select {
position: relative;
padding-left: 15px;
padding-right: 30px;
height: 2.58823529em;
min-height: 2.58823529em;
line-height: 2.58823529em;
border-right: 1rpx solid #d9d9d9;
}


.weui-select:before {
content: " ";
display: inline-block;
height: 6px;
width: 6px;
border-width: 2px 2px 0 0;
border-color: #c8c8cd;
border-style: solid;
transform: matrix(0.71,0.71,-0.71,0.71,0,0);
position: relative;
top: -2px;
position: absolute;
top: 50%;
right: 15px;
margin-top: -4px;
}


.weui-select_in-select-after {
padding-left: 0;
}


.weui-cell__hd_in-select-after,.weui-cell__bd_in-select-before {
padding-left: 15px;
}


.weui-cell_vcode {
padding-right: 0;
}


.weui-vcode-img {
margin-left: 5px;
height: 2.58823529em;
vertical-align: middle;
}


.weui-vcode-btn {
display: inline-block;
height: 2.58823529em;
margin-left: 5px;
padding: 0 0.6em 0 0.7em;
border-left: 1px solid #e5e5e5;
line-height: 2.58823529em;
vertical-align: middle;
font-size: 17px;
color: #3cc51f;
white-space: nowrap;
}


.weui-vcode-btn:active {
color: #52a341;
}


.weui-cell_switch {
padding-top: 6px;
padding-bottom: 6px;
}


.weui-uploader__hd {
display: -webkit-box;
display: -webkit-flex;
display: flex;
padding-bottom: 10px;
-webkit-box-align: center;
align-items: center;
}


.weui-uploader__title {
-webkit-box-flex: 1;
flex: 1;
}


.weui-uploader__info {
color: #b2b2b2;
}


.weui-uploader__bd {
margin-bottom: -4px;
margin-right: -9px;
overflow: hidden;
}


.weui-uploader__file {
float: left;
margin-right: 9px;
margin-bottom: 9px;
}


.weui-uploader__img {
display: block;
width: 79px;
height: 79px;
}


.weui-uploader__file_status {
position: relative;
}


.weui-uploader__file_status:before {
content: " ";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: rgba(0,0,0,0.5);
}


.weui-uploader__file-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
color: #fff;
}


.weui-uploader__input-box {
float: left;
position: relative;
margin-right: 9px;
margin-bottom: 9px;
width: 77px;
height: 77px;
border: 1px solid #d9d9d9;
}


.weui-uploader__input-box:before,.weui-uploader__input-box:after {
content: " ";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
background-color: #d9d9d9;
}


.weui-uploader__input-box:before {
width: 2px;
height: 39.5px;
}


.weui-uploader__input-box:after {
width: 39.5px;
height: 2px;
}


.weui-uploader__input-box:active {
border-color: #999;
}


.weui-uploader__input-box:active:before,.weui-uploader__input-box:active:after {
background-color: #999;
}


.weui-uploader__input {
position: absolute;
z-index: 1;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
}


.weui-article {
padding: 20px 15px;
font-size: 15px;
}


.weui-article__section {
margin-bottom: 1.5em;
}


.weui-article__h1 {
font-size: 18px;
font-weight: 400;
margin-bottom: 0.9em;
}


.weui-article__h2 {
font-size: 16px;
font-weight: 400;
margin-bottom: 0.34em;
}


.weui-article__h3 {
font-weight: 400;
font-size: 15px;
margin-bottom: 0.34em;
}


.weui-article__p {
margin: 0 0 0.8em;
}


.weui-msg {
padding-top: 36px;
text-align: center;
}


.weui-msg__link {
display: inline;
color: #586c94;
}


.weui-msg__icon-area {
margin-bottom: 30px;
}


.weui-msg__text-area {
margin-bottom: 25px;
padding: 0 20px;
}


.weui-msg__title {
margin-bottom: 5px;
font-weight: 400;
font-size: 20px;
}


.weui-msg__desc {
font-size: 14px;
color: #999;
}


.weui-msg__opr-area {
margin-bottom: 25px;
}


.weui-msg__extra-area {
margin-bottom: 15px;
font-size: 14px;
color: #999;
}


@media screen and (min-height:438px) {
.weui-msg__extra-area {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
text-align: center;
}
}


.weui-flex {
display: -webkit-box;
display: -webkit-flex;
display: flex;
}


.weui-flex__item {
-webkit-box-flex: 1;
flex: 1;
}


.weui-btn {
margin-top: 15px;
}


.weui-btn:first-child {
margin-top: 0;
}


.weui-btn-area {
margin: 1.17647059em 15px 0.3em;
}


.weui-agree {
display: block;
padding: 0.5em 15px;
font-size: 13px;
}


.weui-agree__text {
color: #999;
}


.weui-agree__link {
display: inline;
color: #586c94;
}


.weui-agree__checkbox {
position: absolute;
left: -9999px;
}


.weui-agree__checkbox-icon {
position: relative;
top: 2px;
display: inline-block;
border: 1px solid #d1d1d1;
background-color: #fff;
border-radius: 3px;
width: 11px;
height: 11px;
}


.weui-agree__checkbox-icon-check {
position: absolute;
top: 1px;
left: 1px;
}


.weui-footer {
color: #999;
font-size: 14px;
text-align: center;
}


.weui-footer_fixed-bottom {
position: fixed;
bottom: 0.52em;
left: 0;
right: 0;
}


.weui-footer__links {
font-size: 0;
}


.weui-footer__link {
display: inline-block;
vertical-align: top;
margin: 0 0.62em;
position: relative;
font-size: 14px;
color: #586c94;
}


.weui-footer__link:before {
content: " ";
position: absolute;
left: 0;
top: 0;
width: 1px;
bottom: 0;
border-left: 1rpx solid #c7c7c7;
color: #c7c7c7;
left: -0.65em;
top: 0.36em;
bottom: 0.36em;
}


.weui-footer__link:first-child:before {
display: none;
}


.weui-footer__text {
padding: 0 0.34em;
font-size: 12px;
}


.weui-grids {
border-top: 1rpx solid #d9d9d9;
border-left: 1rpx solid #d9d9d9;
overflow: hidden;
}


.weui-grid {
position: relative;
float: left;
padding: 20px 10px;
width: 33.33333333%;
box-sizing: border-box;
border-right: 1rpx solid #d9d9d9;
border-bottom: 1rpx solid #d9d9d9;
}


.weui-grid_active {
background-color: #ececec;
}


.weui-grid__icon {
display: block;
width: 28px;
height: 28px;
margin: 0 auto;
}


.weui-grid__label {
margin-top: 5px;
display: block;
text-align: center;
color: #000;
font-size: 14px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}


.weui-loading {
margin: 0 5px;
width: 20px;
height: 20px;
display: inline-block;
vertical-align: middle;
animation: weuiLoading 1s steps(12,end) infinite;
background: transparent url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) no-repeat;
background-size: 100%;
}


@-webkit-keyframes weuiLoading {
0% {
transform: rotate3d(0,0,1,0deg);
}


100% {
transform: rotate3d(0,0,1,360deg);
}

}


@keyframes weuiLoading {
0% {
transform: rotate3d(0,0,1,0deg);
}


100% {
transform: rotate3d(0,0,1,360deg);
}

}


.weui-badge {
display: inline-block;
padding: 0.15em 0.4em;
min-width: 8px;
border-radius: 18px;
background-color: #f43530;
color: #fff;
line-height: 1.2;
text-align: center;
font-size: 12px;
vertical-align: middle;
}


.weui-badge_dot {
padding: 0.4em;
min-width: 0;
}


.weui-loadmore {
width: 65%;
margin: 1.5em auto;
line-height: 1.6em;
font-size: 14px;
text-align: center;
}


.weui-loadmore__tips {
display: inline-block;
vertical-align: middle;
}


.weui-loadmore_line {
border-top: 1px solid #e5e5e5;
margin-top: 2.4em;
}


.weui-loadmore__tips_in-line {
position: relative;
top: -0.9em;
padding: 0 0.55em;
background-color: #fff;
color: #999;
}


.weui-loadmore__tips_in-dot {
position: relative;
padding: 0 0.16em;
width: 4px;
height: 1.6em;
}


.weui-loadmore__tips_in-dot:before {
content: " ";
position: absolute;
top: 50%;
left: 50%;
margin-top: -1px;
margin-left: -2px;
width: 4px;
height: 4px;
border-radius: 50%;
background-color: #e5e5e5;
}


.weui-panel {
background-color: #fff;
margin-top: 10px;
position: relative;
overflow: hidden;
}


.weui-panel:first-child {
margin-top: 0;
}


.weui-panel:before {
content: " ";
position: absolute;
left: 0;
top: 0;
right: 0;
height: 1px;
border-top: 1rpx solid #e5e5e5;
color: #e5e5e5;
}


.weui-panel:after {
content: " ";
position: absolute;
left: 0;
bottom: 0;
right: 0;
height: 1px;
border-bottom: 1rpx solid #e5e5e5;
color: #e5e5e5;
}


.weui-panel__hd {
padding: 14px 15px 10px;
color: #999;
font-size: 13px;
position: relative;
}


.weui-panel__hd:after {
content: " ";
position: absolute;
left: 0;
bottom: 0;
right: 0;
height: 1px;
border-bottom: 1rpx solid #e5e5e5;
color: #e5e5e5;
}


.weui-media-box {
padding: 15px;
position: relative;
}


.weui-media-box:before {
content: " ";
position: absolute;
left: 0;
top: 0;
right: 0;
height: 1px;
border-top: 1rpx solid #e5e5e5;
color: #e5e5e5;
}


.weui-media-box:first-child:before {
display: none;
}


.weui-media-box__title {
font-weight: 400;
font-size: 17px;
width: auto;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-wrap: normal;
word-wrap: break-word;
word-break: break-all;
}


.weui-media-box__desc {
color: #999;
font-size: 13px;
line-height: 1.2;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}


.weui-media-box__info {
margin-top: 15px;
padding-bottom: 5px;
font-size: 13px;
color: #cecece;
line-height: 1em;
list-style: none;
overflow: hidden;
}


.weui-media-box__info__meta {
float: left;
padding-right: 1em;
}


.weui-media-box__info__meta_extra {
padding-left: 1em;
border-left: 1px solid #cecece;
}


.weui-media-box__title_in-text {
margin-bottom: 8px;
}


.weui-media-box_appmsg {
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-align: center;
align-items: center;
}


.weui-media-box__thumb {
width: 100%;
height: 100%;
vertical-align: top;
}


.weui-media-box__hd_in-appmsg {
margin-right: 0.8em;
width: 60px;
height: 60px;
line-height: 60px;
text-align: center;
}


.weui-media-box__bd_in-appmsg {
-webkit-box-flex: 1;
flex: 1;
min-width: 0;
}


.weui-media-box_small-appmsg {
padding: 0;
}


.weui-cells_in-small-appmsg {
margin-top: 0;
}


.weui-cells_in-small-appmsg:before {
display: none;
}


.weui-progress {
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-align: center;
align-items: center;
}


.weui-progress__bar {
-webkit-box-flex: 1;
flex: 1;
}


.weui-progress__opr {
margin-left: 15px;
font-size: 0;
}


.weui-navbar {
display: -webkit-box;
display: -webkit-flex;
display: flex;
position: absolute;
z-index: 500;
top: 0;
width: 100%;
border-bottom: 1rpx solid #ccc;
}


.weui-navbar__item {
position: relative;
display: block;
-webkit-box-flex: 1;
flex: 1;
padding: 13px 0;
text-align: center;
font-size: 0;
}


.weui-navbar__item.weui-bar__item_on {
color: #1aad19;
}


.weui-navbar__slider {
position: absolute;
content: " ";
left: 0;
bottom: 0;
width: 6em;
height: 3px;
background-color: #1aad19;
transition: transform 0.3s;
transition: transform 0.3s,-webkit-transform 0.3s;
}


.weui-navbar__title {
display: inline-block;
font-size: 15px;
max-width: 8em;
width: auto;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-wrap: normal;
}


.weui-tab {
position: relative;
height: 100%;
}


.weui-tab__panel {
box-sizing: border-box;
height: 100%;
padding-top: 50px;
overflow: auto;
-webkit-overflow-scrolling: touch;
}


.weui-search-bar {
position: relative;
padding: 8px 10px;
display: -webkit-box;
display: -webkit-flex;
display: flex;
box-sizing: border-box;
background-color: #efeff4;
border-top: 1rpx solid #d7d6dc;
border-bottom: 1rpx solid #d7d6dc;
}


.weui-icon-search {
margin-right: 8px;
font-size: inherit;
}


.weui-icon-search_in-box {
position: absolute;
left: 10px;
top: 7px;
}


.weui-search-bar__text {
display: inline-block;
font-size: 14px;
vertical-align: middle;
}


.weui-search-bar__form {
position: relative;
-webkit-box-flex: 1;
flex: auto;
border-radius: 5px;
background: #fff;
border: 1rpx solid #e6e6ea;
}


.weui-search-bar__box {
position: relative;
padding-left: 30px;
padding-right: 30px;
width: 100%;
box-sizing: border-box;
z-index: 1;
}


.weui-search-bar__input {
height: 28px;
line-height: 28px;
font-size: 14px;
}


.weui-icon-clear {
position: absolute;
top: 0;
right: 0;
padding: 7px 8px;
font-size: 0;
}


.weui-search-bar__label {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 2;
border-radius: 3px;
text-align: center;
color: #9b9b9b;
background: #fff;
line-height: 28px;
}


.weui-search-bar__cancel-btn {
margin-left: 10px;
line-height: 28px;
color: #09bb07;
white-space: nowrap;
}


.weui-tabbar {
display: flex;
position: absolute;
z-index: 500;
bottom: 0;
width: 100%;
background-color: #f7f7fa;
}


.weui-tabbar:before {
content: " ";
position: absolute;
left: 0;
top: 0;
right: 0;
height: 1px;
border-top: 1px solid #c0bfc4;
color: #c0bfc4;
transform-origin: 0 0;
transform: scaleY(0.5);
}


.weui-tabbar__item {
display: block;
flex: 1;
padding: 5px 0 0;
font-size: 0;
color: #999;
text-align: center;
-webkit-tap-highlight-color: rgba(0,0,0,0);
}


.weui-tabbar__item.weui-bar__item_on .weui-tabbar__icon,.weui-tabbar__item.weui-bar__item_on .weui-tabbar__icon>i,.weui-tabbar__item.weui-bar__item_on .weui-tabbar__label {
color: #09bb07;
}


.weui-tabbar__icon {
display: inline-block;
width: 27px;
height: 27px;
}


i.weui-tabbar__icon,.weui-tabbar__icon>i {
font-size: 24px;
color: #999;
}


.weui-tabbar__icon img {
width: 100%;
height: 100%;
}


.weui-tabbar__label {
text-align: center;
color: #999;
font-size: 10px;
line-height: 1.8;
}


.page__hd {
padding: 40px;
}


.page__bd {
padding-bottom: 40px;
}


.page__bd_spacing {
padding-left: 15px;
padding-right: 15px;
}


.page__ft {
padding-bottom: 10px;
text-align: center;
}


.page__title {
text-align: left;
font-size: 20px;
font-weight: 400;
}


.page__desc {
margin-top: 5px;
color: #888;
text-align: left;
font-size: 14px;
}


.we7-bottom-placeholder {
width: 100%;
height: 134rpx;
position: relative;
bottom: 0;
z-index: -1;
}


.we7-bottom {
display: flex;
overflow: hidden;
position: fixed;
left: 0;
right: 0;
bottom: 0;
padding: 10rpx 0;
border-top: 1px solid #000;
background-color: #fff;
}


.we7-bottom.active {
background-color: #fff;
}


.we7-bottom.active navigatorurl {
background-color: #fff;
}


.we7-bottom .we7-bottom-item {
flex: 1;
padding: 10rpx;
text-align: center;
}


.we7-bottom .item-img {
width: 50rpx;
height: 50rpx;
display: inline-block;
}


.we7-bottom .item-text {
display: block;
font-size: 12px;
line-height: 1;
}


.goHome {
position: fixed;
bottom: 150rpx;
right: 30rpx;
width: 50rpx;
height: 50rpx;
background-color: #1ba9ba;
padding: 30rpx;
border-radius: 50%;
}


.goHome>image {
width: 100%;
}


.text-right {
text-align: right;
}


::-webkit-scrollbar {
display: none;
}


project.config.json开发源代码展示:
{
“description”: “项目配置文件。”,
“setting”: {
“urlCheck”: true,
“es6”: true,
“postcss”: true,
“minified”: true,
“newFeature”: true
},
“compileType”: “miniprogram”,
“libVersion”: “1.9.94”,
“appid”: “wx131a1283c98a800a”,
“projectname”: “%E5%A4%A9%E6%B0%94%E5%BF%AB%E6%8A%A5”,
“isGameTourist”: false,
“condition”: {
“search”: {
“current”: -1,
“list”: []
},
“conversation”: {
“current”: -1,
“list”: []
},
“game”: {
“currentL”: -1,
“list”: []
},
“miniprogram”: {
“current”: -1,
“list”: []
}
}
}


siteinto.js开发源代码展示:
module.exports = {
name: “QQ752753222板图科技”,
uniacid: “6”,
acid: “6”,
multiid: “0”,
version: “1.3.1”,
siteroot: “https://www.bantukeji.com/app/index.php”,
design_method: “3”
};


如果你觉得这篇文章有帮助,还可以关注微信公众号 bantukeji或登录www.bantukeji.com联系客服索取小程序源码,会有更多我的原创内容分享给你~

相关文档

  • 小学二年级数学第八单元试题
  • Call Unix Script from PeopleCode
  • 咖喱鸡的可口做法
  • 不锈钢软管品牌十大排行榜
  • 四年级语文小学教学方法探讨
  • 2010,送给春天最诚实的礼物(完全无删版)
  • 高亮重复项怎么用
  • 喂母乳的妈妈不能吃的食物
  • 微信成语猜猜看太子太师第10关答案门字里面一个石石字里面一个路答案分析
  • 2021年1月份经验总结
  • java解答约瑟夫问题
  • 比较研究法是什么
  • 蓝桥杯 algo122 未名湖的烦恼 简单题
  • 作为一名程序员,聊聊我们的现状和未来
  • 结婚后女的怎么跟男性朋友相处
  • 鱼帮主加盟费多少钱
  • 手机拍视频如何不抖动
  • python 双重差分模型_Python&Stata数据分析课寒假工作坊
  • ANN人工神经网络(Artificial Neuron Network )
  • 酷狗音乐如何开启专辑封面自动旋转功能?
  • 吵架道歉信
  • 启用仪式邀请函优质3篇
  • 五年级下册数学练习题|小学五年级数学《小数乘法的混合练习》教案
  • YSL鸦片香水价格圣罗兰鸦片香水多少钱一瓶
  • 服装活动广告词_服装促销广告词
  • 铁路工人技师工作总结
  • 定期合同模板汇总7篇
  • 注水肉的识别方法
  • NASA将继续奥巴马制定的太空探索目标
  • 成功做人做事的名言
  • 猜你喜欢

  • 常熟市虞山金属制品厂企业信息报告-天眼查
  • 2018年圣诞节活动主题广告语word版本 (2页)
  • 鄂州兴阳矿业有限公司企业信用报告-天眼查
  • 五年级上册数学课件-5.1 分数的再认识(一) |北师大版(2018秋) (共21张PPT)
  • 30关于提升销售企业内部巡视工作的思考
  • 【免费下载】春中国石油大学财务管理第三次在线作业
  • 低值易耗品申请表
  • 浅析互动式教学在小学英语课堂教学中的应用
  • 关于羊脂球读后感
  • 2019年秋季沪科版九年级物理全册*题讲评课件 3.第三节 踏上信息高速公路
  • 七年级英语上册Module 4 Healthy foodUnit 2 Is your food and drink healthy课件(40张ppt)
  • 酒楼员工劳动合同范本
  • 南京市2005年生态足迹分析
  • 顶级AI资源 | 2020年最热的AI论文、代码和基准数据集「年终盘点」「AI优质资源」...
  • 教学流程图大全课件
  • pygame项目一 物体移动
  • 数理统计大作业答案
  • (ubuntu版本)快速下载NVIDIA最新显卡驱动RTX3080ti、GTX1650ti、CUDA11.2,CUDNN的地址
  • 中国梦主题演讲稿精选:有梦想就有希望
  • 普安县长业中药种植农民专业合作社企业信用报告-天眼查
  • 德宏州梁河县有那些乡镇
  • VMware vSphere 7.0 Update 2 发布 - 数据中心虚拟化和 Kubernetes 云原生应用引擎
  • 2017东京亲子旅游好去处及攻略
  • 东莞市海顺建材有限公司(企业信用报告)- 天眼查
  • 【2018-2019】好人好事表扬信范文-word范文模板 (5页)
  • 一篇非常优秀的关于家庭教育的文章
  • 浙江省湖州市2018年中考英语真题试卷(附解析)
  • 沉降点观测记录表
  • 康元添福(肇庆)生物科技有限公司(企业信用报告)- 天眼查
  • java规则引擎你应该知道的几点东西,不妨来看看呦!
  • 2020年德育研究学年工作计划
  • 【2018最新】小学数学学*的经验总结-实用word文档 (2页)
  • 东莞市捷晟食品贸易有限公司企业信用报告-天眼查
  • 保定电大2010年秋行政管理专科管理学基础期末复*资料2
  • 配置多个git账号_同一台电脑配置两个git账号
  • 肝昏迷前期的护理研究
  • 中小学初中数学北师版八年级上册第五章小结与复*课件.ppt
  • 增强自主创新能力铸就企业可持续发展之路
  • 【高中语文】卫风·氓ppt精品课件56
  • 《DNF》鬼剑士90级史诗武器 鬼剑士90级史诗武器属性怎么样
  • 中考历史备考复习要点
  • 7、高处作业吊篮安全培训ppt课件
  • 电脑版