当前位置:网站首页>Applet H5 get mobile number scheme
Applet H5 get mobile number scheme
2022-07-25 13:36:00 【|Liu Zhao|】
Explanation of the reason :
1、 Because the applet obtains the mobile number through the small town button Component to get , and UI Is a coupling relationship ;
2、 Applet web-view By default, the components are spread all over the screen , also web-view It is not allowed to overwrite any other applet components on the component ;
For details, please refer to web-view 、 button Component is introduced ;


Solution :
H5 Page Jump applet page , Get the mobile number and pass url Pass the mobile number into h5 page
Code implementation
The applet soundtrack obtains the mobile phone number :
1、.wxml file
|
2、.js file
|
Applet web-view The page receives the returned parameters :
.js file
|
h5 Page receive parameters
|
Be careful :
1、 Return from the soundtrack page web-view page , adopt url Pass parameters directly into h5 Next page of , Namely a history.push operation .
2、h5 All page data that needs to be retained will be used redux Of sotre cache , This will guarantee h5 The page returns and re renders. The page data is still .
边栏推荐
- stable_ Baselines quick start
- Numpy quick start
- Hcip eighth day experiment
- 好友让我看这段代码
- Based on Baiwen imx6ull_ Ap3216 experiment driven by Pro development board
- Blindly expanding the scale of the meta universe has deviated from the development logic of the meta universe
- hcip第九天笔记
- Jupyter Notebook介绍
- What is your revenue rank among global developers in 2022?
- 【GCN-CTR】DC-GNN: Decoupled GNN for Improving and Accelerating Large-Scale E-commerce Retrieval WWW22
猜你喜欢

C#基础学习(二十三)_窗体与事件

JS array indexof includes sort() colon sort quick sort de duplication and random sample random

【GCN-CTR】DC-GNN: Decoupled GNN for Improving and Accelerating Large-Scale E-commerce Retrieval WWW22

C # basic learning (XXIII)_ Forms and events

Numpy简介和特点(一)

刷题-洛谷-P1046 陶陶摘苹果

vim基础操作汇总

Uncaught SyntaxError: Octal literals are not allowed in strict mode.

0713RHCSA

刷题-洛谷-P1146 硬币翻转
随机推荐
Esp32-c3 is based on blinker lighting control 10 way switch or relay group under Arduino framework
【GCN-RS】Learning Explicit User Interest Boundary for Recommendation (WWW‘22)
好友让我看这段代码
Concurrent programming - memory model JMM
2022年下半年软考初级程序员备考
Brpc source code analysis (III) -- the mechanism of requesting other servers and writing data to sockets
Gym installation, invocation and registration
What is your revenue rank among global developers in 2022?
Preparing for the soft test for junior programmers in the second half of 2022
Hcip day 8 notes
Numpy quick start
Excel添加按键运行宏
音视频技术开发周刊 | 255
How to realize the configuration method of user password free login?
Talk about your understanding of hashcode and equals methods?
电脑里一辈子都不想删的神仙软件
刷题-洛谷-P1150 Peter的烟
运动豪华还是安全豪华?亚洲龙与沃尔沃S60该入手哪款?
Sports luxury or safety luxury? Which type of Asian Dragon and Volvo S60 should we start with?
mujoco_ Py Chinese document