当前位置:网站首页>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 .
边栏推荐
- 基于百问网IMX6ULL_PRO开发板移植LCD多点触摸驱动(GT911)
- ES6 array de duplication new set()
- Esp32-c3 is based on blinker lighting control 10 way switch or relay group under Arduino framework
- The whole process of 6w+ word recording experiment | explore the economical data storage strategy of alluxio
- 0720RHCSA
- Prepare for 2022 csp-j1 2022 csp-s1 preliminaries video set
- 0713RHCSA
- window unbutu20 LTS apt,wget 安装时 DNS 解析错误
- 刷题-洛谷-P1146 硬币翻转
- mujoco_ Py Chinese document
猜你喜欢

刷题-洛谷-P1035 级数求和

二叉树基本知识

从输入网址到网页显示
Congestion control of TCP

IM系统-消息流化一些常见问题

安装mujoco报错:distutils.errors.DistutilsExecError: command ‘gcc‘ failed with exit status 1

Brpc source code analysis (III) -- the mechanism of requesting other servers and writing data to sockets

刷题-洛谷-P1075 质因数分解

Jupyter Notebook介绍

JS array indexof includes sort() colon sort quick sort de duplication and random sample random
随机推荐
Any time, any place, super detective, seriously handle the case!
6.27 uniapp项目历程
C#基础学习(二十三)_窗体与事件
The whole process of 6w+ word recording experiment | explore the economical data storage strategy of alluxio
The interviewer asked me: how much do you know about MySQL's storage engine?
In order to improve efficiency, there are various problems when using parallelstream
Hcip day 8 notes
0710RHCSA
Programmer growth chapter 27: how to evaluate requirements priorities?
Talk about your understanding of hashcode and equals methods?
刷题-洛谷-P1035 级数求和
面试官问我:Mysql的存储引擎你了解多少?
C # basic learning (XXIII)_ Forms and events
The migration of arm architecture to alsa lib and alsa utils is smooth
QGIS加载在线地图:高德、天地图等
VIM basic operation summary
刷题-洛谷-P1089 津津的储蓄计划
Pycharm cannot input Chinese solution
Concurrent programming - memory model JMM
Hcip eighth day experiment