search
HomeWeChat AppletMini Program DevelopmentAbout the production of the welcome page in WeChat mini program

About the production of the welcome page in WeChat mini program

Jun 26, 2018 pm 04:05 PM
WeChat appletWeChat applet development

This article mainly introduces the production of WeChat applet welcome page including (source code download) related information. The welcome page is implemented here, which will be used when starting to make applications. Friends who need it can refer to it

WeChat Mini Program Welcome Page:

Let’s take a look at the final rendering:

##First open the development tools and create a quick start project, it’s simple Modify it.


  • Rename the Index folder to welcome;

  • Change the hello world at the bottom Add a background color to a button-like style;

  • ; Modify the top style;

Button implementation:

welcome.wxml

 <view class="usermotto">
 <text class="btn">开启小程序之旅</text>
 </view>

welcome.wxss

.usermotto {
 margin-top: 200px;
 border: 1px solid #405f80;
 width: 200rpx;
 height: 80rpx;
 text-align: center;
 border-radius: 5px;
}
.btn{
 font-size: 22rpx;
 font-family: MicroSoft Yahei;
 font-weight: bold;
 line-height: 80rpx;
}

Background color settings:

Note: Setting the width and height to 100% in the outermost view and adding a background color are invalid. Because WeChat defaults to a layer of pages outside.


So you need to write it like this:

page{
 height: 100%;
 background: #b3d4db;
}

Top settings:

app.jason

{
 "pages":[
 "pages/welcome/welcome"

 ],
 "window":{
 "backgroundTextStyle":"light",
 "navigationBarBackgroundColor": "#b3d4db",
 "navigationBarTitleText": "欢迎",
 "navigationBarTextStyle":"black"
 }
}

The above is the entire content of this article. I hope it will be helpful to everyone’s study. For more related content, please pay attention to the PHP Chinese website!

Related recommendations:

How to implement real-time circular progress bar in WeChat applet

WeChat applet monitors gesture sliding Implementation of switching pages

WeChat applet development running WeChat applet

The above is the detailed content of About the production of the welcome page in WeChat mini program. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function