微信公眾號內嵌的H5頁面
前言:之前寫微信端購物商城的頁面時,使用過flex佈局,方便靈活,對手機端相容性良好,同時可應對複雜的巢狀佈局,很是方便。但是,針對兩欄式的微信端頁面,除了flex佈局,還有較為簡單的position:relative;和padding-left:90px;佈局方法,這類佈局簡單易操作,在某些場景下有廣泛使用。
一、瞭解需求及例項
頁面佈局如下圖所示:
①頁面整體佈局為底部選單欄固定,主體內容滑動顯示;②展示資訊為左右兩欄式,右側展示資訊中,價格標籤突出居中顯示;③在不同螢幕尺寸下,左側圖片尺寸固定不變,右側文字資訊可自適應(頁面尺寸統一採用px單位,不涉及不同尺寸下字型等尺寸變化)。
二、實際程式碼運用及拆分
(1)頁面整體佈局
<html lang="zh"> <head> </head> <body> <!--頁面頭部標題欄--> <div class="am-header"></div> <!--頁面主體部分--> <div id="main" class="page"> <!--頁面中間資訊展示--> <div class="am-widthLimite"></div> <!--頁面尾部選單欄--> <div class="botFilter"></div> </div> </body> </html>
.am-header { background: #ff4d4d; box-shadow: rgba(0,0,0,.13) 1px 1px 3px; height: 44px; position: relative; z-index: 1; } #main { position: relative; height: 100%; } .am-widthLimite { margin: 0 auto; position: absolute; top: 0; left: 0; bottom: 0; right: 0; background: #fff; } .botFilter { position: fixed; /*使用position:fixed固定位置*/ width: 100%; background-color: #f4f4f4; opacity: .94; z-index: 102; bottom: 0; /*使選單欄固定在螢幕底部*/ left: 0; border-top: 1px solid #d4d4d4; }
(2)頁面中間資訊展示的佈局:
①左側圖片使用固定尺寸,右側資訊描述使用padding-left:92px留出間隙,位於右側,使用width:100%;以適應不同螢幕下都能鋪滿;②最右側突出懸浮的價格,通過position:absolute相對於父元素定位,使用top:50%在div中居中。
<html lang="zh">
<head>
</head>
<body>
<!--頁面頭部標題欄-->
<div class="am-header"></div>
<!--頁面主體部分-->
<div id="main" class="page">
<!--頁面中間資訊展示-->
<div class="am-widthLimite">
<div class="hotel_list_box">
<div class="hotel_list_box">
<ul class="hotel_list_ul">
<li style="background-color:#fff;">
<div class="hl_pic">
<img src="images/2.jpg">
</div>
<div class="hl_text">
<div class="hl_tl_left">
<div class="hl_name fs17 fc666">紫光物聯智慧酒店</div>
<div class="hl_comment fs13 fc999">
<span class="fcred">
<i class="integer">2</i>
<i>.</i>
<i class="decimal">6</i>
<i class="ml5">分</i>
</span>
<span>15人點評</span>
</div>
<div class="hl_icons">
<span class="icon_small wifi"></span>
<span class="icon_small huiyishi></span>
</div>
<div class="hl_distance fs12 fc999">
距
<span class="fcblue hl_address">您</span>
<span>0.5公里</span>
</div>
</div>
<div class="hl_tl_right fs12 fc333">
<span>
<i>¥</i>
<i class="fs20 fwb">298</i>
<i>起</i>
</span>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
<!--頁面尾部選單欄-->
<div class="botFilter"></div>
</div>
</body>
</html>
.hotel_list_box {
padding: 0px 10px 50px 10px;
}
ul {
padding: 0;
margin: 0;
}
li {
list-style: none;
}
.hotel_list_ul li {
border-bottom: 1px solid #dedede;
position: relative;
padding: 10px 0;
}
.hotel_list_ul li .hl_pic {
position: absolute; /*固定圖片的位置*/
width: 82px;
height: 82px;
}
.hotel_list_ul li .hl_pic img {
width: 82px;
height: 82px;
}
.hotel_list_ul li .hl_text {
padding-left: 92px;
position: relative;
height: 82px;
}
.hl_tl_left {
width: 100%; /*文字資訊達到自適應螢幕*/
}
.hl_name {
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 18px;
height: 18px;
}
.hl_comment {
line-height: 1.5;
height: 28px;
}
.fs13 {
font-size: 13px !important;
}
.fs20 {
font-size: 20px !important;
}
.fc999 {
color: #999 !important;
}
.fcred {
color: #fe4d4d !important;
}
.fcblue {
color: #70a7e8 !important;
}
.fwb {
font-weight: bold !important;
}
.integer {
font-size: 19px;
font-style: italic;
font-weight: 600;
}
.decimal {
font-size: 12px;
font-style: italic;
font-weight: 600;
margin-left: -6px;
}
.ml5 {
margin-left: 5px !important;
}
.hl_icons {
line-height: 1;
margin-bottom: 3px;
height: 18px;
}
.hl_icons .icon_smalll {
margin-right: 4px;
display: inline-block;
width: 16px;
height: 16px;
background: url(../images/wx_icon_small_default.png) no-repeat center center;
background-size: 16px 421px;
vertical-align: middle;
}
.wifi {
background-position: 0px 0px;
}
.hl_distance {
margin-top: 5px;
height: 15px;
}
.hl_address {
display: inline-block;
max-width: 60px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: bottom;
}
.hl_tl_right {
position: absolute; /*使用absolute依據父元素進行定位*/
right: 0;
top: 50%; /*使用top:50%使文字達到居中效果*/
margin-top: -12px;
}
三、展示頁面完整程式碼
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta content="telephone=no" name="format-detection">
<link href="css/main.css" rel="stylesheet">
<link href="css/common.css" rel="stylesheet">
<title>網際網路+智慧酒店</title>
</head>
<body>
<div class="am-header">
<div class="btn am-backbuttton">
<i class="left"></i>
</div>
<div class="rightBut">
<div class="am_ckls btn right">
<a class="ng-binding">地圖模式</a>
</div>
</div>
<p class="ng-binding">酒店列表</p>
</div>
<!--ngView-->
<div id="main" class="page">
<div class="am-widthLimite">
<div class="hotel_list_box">
<ul class="hotel_list_ul">
<li style="background-color:#fff;">
<div class="hl_pic">
<img src="images/2_20160706201805.jpg">
</div>
<div class="hl_text">
<div class="hl_tl_left">
<div class="hl_name fs17 fc666">紫光物聯智慧酒店</div>
<div class="hl_comment fs13 fc999">
<span class="fcred">
<i class="integer">2</i>
<i>.</i>
<i class="decimal">6</i>
<i class="ml5">分</i>
</span>
<span>15人點評</span>
</div>
<div class="hl_icons">
<span class="icon_small wifi"></span>
<span class="icon_small tingchechang"></span>
<span class="icon_small huiyishi"></span>
<span class="icon_small jiejifuwu"></span>
<span class="icon_small chuifengji"></span>
</div>
<div class="hl_distance fs12 fc999">
距
<span class="fcblue hl_address">您</span>
<span>0.5公里</span>
</div>
</div>
<div class="hl_tl_right fs12 fc333">
<span>
<i>¥</i>
<i class="fs20 fwb">298</i>
<i>起</i>
</span>
</div>
</div>
</li>
<li style="background-color:#fff;">
<div class="hl_pic">
<img src="images/2.jpg">
</div>
<div class="hl_text">
<div class="hl_tl_left">
<div class="hl_name fs17 fc666">浦東國際酒店</div>
<div class="hl_comment fs13 fc999">
<span class="fcred">
<i class="integer">2</i>
<i>.</i>
<i class="decimal">6</i>
<i class="ml5">分</i>
</span>
<span>5人點評</span>
</div>
<div class="hl_icons">
<span class="icon_small wifi"></span>
<span class="icon_small tingchechang"></span>
<span class="icon_small huiyishi"></span>
</div>
<div class="hl_distance fs12 fc999">
距
<span class="fcblue hl_address">您</span>
<span>2.1公里</span>
</div>
</div>
<div class="hl_tl_right fs12 fc333">
<span>
<i>¥</i>
<i class="fs20 fwb">0</i>
<i>起</i>
</span>
</div>
</div>
</li>
<li style="background-color:#fff;">
<div class="hl_pic">
<img src="images/sy_62331342149_20160520163223.jpg">
</div>
<div class="hl_text">
<div class="hl_tl_left">
<div class="hl_name fs17 fc666">閔行大酒店</div>
<div class="hl_comment fs13 fc999">
<span class="fcred">
<i class="integer">2</i>
<i>.</i>
<i class="decimal">6</i>
<i class="ml5">分</i>
</span>
<span>50人點評</span>
</div>
<div class="hl_icons">
<span class="icon_small wifi"></span>
<span class="icon_small canyin"></span>
<span class="icon_small chuifengji"></span>
<span class="icon_small huiyishi"></span>
<span class="icon_small jiejifuwu"></span>
<span class="icon_small tingchechang"></span>
</div>
<div class="hl_distance fs12 fc999">
距
<span class="fcblue hl_address">您</span>
<span>4.1公里</span>
</div>
</div>
<div class="hl_tl_right fs12 fc333">
<span>
<i>¥</i>
<i class="fs20 fwb">99</i>
<i>起</i>
</span>
</div>
</div>
</li>
<li style="background-color:#fff;">
<div class="hl_pic">
<img src="images/timg_20170428173649.jpg">
</div>
<div class="hl_text">
<div class="hl_tl_left">
<div class="hl_name fs17 fc666">果加門鎖測試店</div>
<div class="hl_comment fs13 fc999">
<span class="fcred">
<i class="integer">2</i>
<i>.</i>
<i class="decimal">6</i>
<i class="ml5">分</i>
</span>
<span>5人點評</span>
</div>
<div class="hl_icons">
<span class="icon_small wifi"></span>
<span class="icon_small chuifengji"></span>
<span class="icon_small huiyishi"></span>
</div>
<div class="hl_distance fs12 fc999">
距
<span class="fcblue hl_address">您</span>
<span>2.1公里</span>
</div>
</div>
<div class="hl_tl_right fs12 fc333">
<span>
<i>¥</i>
<i class="fs20 fwb">0</i>
<i>起</i>
</span>
</div>
</div>
</li>
<li style="background-color:#fff;">
<div class="hl_pic">
<img src="images/2.jpg">
</div>
<div class="hl_text">
<div class="hl_tl_left">
<div class="hl_name fs17 fc666">鵬恆太空艙專用店</div>
<div class="hl_comment fs13 fc999">
<span class="fcred">
<i class="integer">3</i>
<i>.</i>
<i class="decimal">4</i>
<i class="ml5">分</i>
</span>
<span>3人點評</span>
</div>
<div class="hl_icons">
<span class="icon_small wifi"></span>
<span class="icon_small jiejifuwu"></span>
<span class="icon_small chuifengji"></span>
</div>
<div class="hl_distance fs12 fc999">
距
<span class="fcblue hl_address">您</span>
<span>14.8公里</span>
</div>
</div>
<div class="hl_tl_right fs12 fc333">
<span>
<i>¥</i>
<i class="fs20 fwb">300</i>
<i>起</i>
</span>
</div>
</div>
</li>
<li style="background-color:#fff;">
<div class="hl_pic">
<img src="images/sy_62331342149_20160520163223.jpg">
</div>
<div class="hl_text">
<div class="hl_tl_left">
<div class="hl_name fs17 fc666">安吉熙居酒店</div>
<div class="hl_comment fs13 fc999">
<span class="fcred">
<i class="integer">2</i>
<i>.</i>
<i class="decimal">6</i>
<i class="ml5">分</i>
</span>
<span>145人點評</span>
</div>
<div class="hl_icons">
<span class="icon_small chuifengji"></span>
<span class="icon_small wifi"></span>
<span class="icon_small tingchechang"></span>
<span class="icon_small huiyishi"></span>
<span class="icon_small jiejifuwu"></span>
</div>
<div class="hl_distance fs12 fc999">
距
<span class="fcblue hl_address">您</span>
<span>15.5公里</span>
</div>
</div>
<div class="hl_tl_right fs12 fc333">
<span>
<i>¥</i>
<i class="fs20 fwb">1</i>
<i>起</i>
</span>
</div>
</div>
</li>
</ul>
</div>
</div>
<div class="botFilter">
<ul>
<li>
<p style="line-height: 15px;border-right: 1px solid #d1d1d1;">排序</p>
</li>
<li>
<p style="line-height: 15px;border-right: 1px solid #d1d1d1;">品牌</p>
</li>
<li>
<p style="line-height: 15px;">篩選</p>
</li>
</ul>
</div>
</div>
</body>
</html>
@charset "UTF-8"
article, aside, blockquote, body, button, code, dd, div, dl, dt, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, input, legend, li, menu, nav, ol, p, pre, section, td, textarea, th, ul {
margin: 0;
padding: 0;
outline: 0;
}
* {
margin: 0;
padding: 0;
}
body {
font-family: "黑體",Helvetica;
font-size: 14px;
background: #ffffff;
color: #5c5c5c;
overflow-x: hidden;
min-height: 100%;
margin: 0;
}
a {
-webkit-touch-callout: none;
text-decoration: none;
outline: 0;
}
i {
font-style: normal;
}
li {
list-style: none;
}
fieldset,img {
border: 0;
}
ul {
padding: 0;
margin: 0;
}
.fc333 {
color: #333 !important;
}
.fc666 {
color: #666 !important;
}
.fc999 {
color: #999 !important;
}
.fs13 {
font-size: 13px !important;
}
.fs17 {
font-size: 17px !important;
}
.fs20 {
font-size: 20px !important;
}
.fcred {
color: #fe4d4d !important;
}
.fcblue {
color: #70a7e8 !important;
}
.fwb {
font-weight: bold !important;
}
.ml5 {
margin-left: 5px !important;
}
/**header**/
.am-header {
background: #ff4d4d;
box-shadow: rgba(0,0,0,.13) 1px 1px 3px;
height: 44px;
position: relative;
z-index: 1;
}
.am-header .btn {
min-width: 44px;
height: 44px;
position: absolute;
top: 0;
line-height: 44px;
text-align: center;
font-size: 18px;
color: #ff5961;
}
.am-header .am-backbuttton i {
display: block;
margin: 12px auto;
width: 13px;
height: 20px;
background: url(../images/hotel_icon.png) no-repeat center center;
background-size: 400px 400px;
background-position: -93px -105.2px;
}
.rightBut {
top: 0;
float: right;
margin-right: 15px;
width: 20%;
}
.am-heder .right {
right: 0;
}
.am-header .right a {
font-size: 16px;
color: #fff;
margin-right: 15px;
}
.am-header p {
width: 50%;
margin: 0 auto;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
height: 44px;
line-height: 44px;
font-size: 21px;
color: #fff;
}
/**main**/
#main {
position: relative;
height: 100%;
}
.am-widthLimite {
margin: 0 auto;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: #fff;
}
.hotel_list_box {
padding: 0px 10px 50px 10px;
}
.hotel_list_ul li {
border-bottom: 1px solid #dedede;
position: relative;
padding: 10px 0;
}
.hotel_list_ul li .hl_pic {
position: absolute;
width: 82px;
height: 82px;
}
.hotel_list_ul li .hl_pic img {
width: 82px;
height: 82px;
}
.hotel_list_ul li .hl_text {
padding-left: 92px;
position: relative;
height: 82px;
}
.hl_tl_left {
width: 100%;
}
.hl_name {
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 18px;
height: 18px;
}
.hl_comment {
line-height: 1.5;
height: 28px;
}
.integer {
font-size: 19px;
font-style: italic;
font-weight: 600;
}
.decimal {
font-size: 12px;
font-style: italic;
font-weight: 600;
margin-left: -6px;
}
.hl_icons {
line-height: 1;
margin-bottom: 3px;
height: 18px;
}
.hl_icons .icon_small {
margin-right: 4px;
}
.icon_small {
display: inline-block;
width: 16px;
height: 16px;
background: url(../images/wx_icon_small_default.png) no-repeat center center;
background-size: 16px 421px;
vertical-align: middle;
}
.wifi {
background-position: 0px 0px;
}
.tingchechang {
background-position: 0px -47.6px;
height: 17px;
}
.huiyishi {
background-position: 0px -129.6px;
}
.jiejifuwu {
background-position: 0px -64.8px;
}
.chuifengji {
background-position: 0px -356.6px;
height: 15px;
}
.canyin {
background-position: 0px -388.8px;
}
.hl_distance {
margin-top: 5px;
height: 15px;
}
.hl_address {
display: inline-block;
max-width: 60px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: bottom;
}
.hl_tl_right {
position: absolute;
right: 0;
top: 50%;
margin-top: -12px;
}
/**footer**/
.botFilter {
position: fixed;
width: 100%;
background-color: #f4f4f4;
opacity: .94;
z-index: 102;
bottom: 0;
left: 0;
border-top: 1px solid #d4d4d4;
}
.botFilter ul {
background-color: transparent;
display: -webkit-box;
text-align: center;
}
.botFilter ul li {
-webkit-box-flex: 1;
box-sizing: border-box;
padding: 15px 0;
}
四、不同螢幕下的展示效果
五 、總結
現在,移動端的頁面,複雜巢狀的佈局,採用flex佈局能夠靈活解決問題。但是,遇到較為簡單的佈局,全域性未完全採用自適應模式時,只是提供展示資訊的內容,可以考慮較為簡單的方法,達到適配效果。
如文章哪裡有問題,歡迎大家留言指正,謝謝!
相關推薦
微信公眾號內嵌的H5頁面
前言:之前寫微信端購物商城的頁面時,使用過flex佈局,方便靈活,對手機端相容性良好,同時可應對複雜的巢狀佈局,很是方便。但是,針對兩欄式的微信端頁面,除了flex佈局,還有較為簡單的position:relative;和padding-left:90px;佈局方法,
微信公眾號內喚起h5支付
1.呼叫統一下單的介面URL地址:https://api.mch.weixin.qq.com/pay/unifiedorder 2.呼叫統一下單必傳引數: appid:需要進行支付功能的公眾號的appId mch_id:微信分配的商戶號 nonce_str:隨機字串,自己生成,要求在32位
微信小程式內嵌H5頁面
<web-view>概況使用 <web-view> 標籤能在小程式中開啟外部網頁,但是要開啟的網頁的域名必須跟小程式的業務域名(業務域名可以在小程式的後臺管理介面新增)一致,否則在真機上是打不開的。如果開發工具上勾選了‘不校驗域名’,在開發的時候還是能
微信公眾號裡的H5頁面返回至公眾號首頁
方法一:關閉瀏覽器模擬達到返回至公眾號首頁的效果 程式碼: function f_close(){ if(typeof(WeixinJSBridge)!="undefined"){ WeixinJSBridge.call('closeWindow');
如何在微信公眾號內實現圖書館座位預約功能
科技改變了你我的生活,讓我們的生活更加便利和高效。目前,智慧校園成為各方關注物件,科技的春風終於吹到了校園裡,各方廠家都想為更加高效便利的校園生活出一份力,不但為老師減輕負擔,也能讓孩子生活的更舒適。 說起校園生活那就不得不提預約這件事了,因為人數眾多,做什麼事情都要排隊預約想必每個人都
微信公眾號支付回撥頁面處理asp.net
1.在商家微信商戶通中配置回撥url 2.在提交訂單時傳入的回撥頁面中獲取支付成功後或支付失敗後的引數,對訂單進行處理 public partial class gzpayCallback : System.Web.UI.Page, IHttpHandler
thinkphp5+easywechat:微信公眾號內支付
前幾天寫了一下使用tp5和easywechat整合微信掃碼支付的方法(可以點這裡檢視),裡面已經說過咱們安裝easywechat了,這裡就不在重複說明了,直接寫整合的步驟了: 1,相關的配置請參考之前的第一篇文字 2,頁面樣子如下: 頁面程式碼
跳轉到微信公眾號主頁,關注頁面
想要跳轉到微信公眾號的主頁或者關注頁面首先先知道對應連結 1、微信進入公眾號檢視訊息記錄,複製連結,這個頁面是個關注頁面,具體連結如下: https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzAxND
APP內嵌h5頁面如何分享到微信?
一個APP內嵌入H5頁面,H5頁面有個分享微信的按鈕,點選這個按鈕可以將這個H5頁面分享到微信。從技術上看可行嗎? 就目前而言,具體實現有這幾個方法: 1、通過微信內建的SDK可以實現其分享 2、native裡面的share可以實現 3、應用第三方外掛可以實現 4、你巢狀在APP裡面的,你也可以讓APP開發
微信公眾號開發---微信支付之H5頁面WAP端接入
更新:2015年12月3日微信提供 Wap 支付, 開發者文件:【微信支付】開發者文件 1.前言 公司是通過支付寶和微信支付那塊內容獲取收入,app端已經接入成功,現在要做WAP端。需要頁面和後臺介面一起來實現。 2.介面接入 因為微信支付版本更新了,網上
微信小程式中內嵌h5頁面,新增撥打電話功能
1.內嵌的h5頁面,head裡面新增meta標籤,需要撥打電話的地方新增a標籤 ,屬性href=“tel: 135xxxxxxxx” PS:name="format-detection"為格式檢測,te
有關微信公眾號和H5支付的一些記錄
obj contents simplexml tps 一個 efi his xxx lib 最近項目裏面需要做公眾號和H5支付的功能,根據自己的體驗,整理了一下,做個記錄。 首先我解釋一下,為什麽有公眾號支付還要做H5支付?因為不確定每個用戶在公眾號上打開網站,所以另外做了
***微信公眾號支付+微信H5支付+微信掃碼支付+小程序支付+APP微信支付解決方案總結
ati asc alt creat chapter edit 隨機字符串 glob 測試 最近負責的一些項目開發,都用到了微信支付(微信公眾號支付、微信H5支付、微信掃碼支付、APP微信支付)。在開發的過程中,在調試支付的過程中,或多或少都遇到了一些問題,今天總結下,分享,
[轉]微信小程序、微信公眾號、H5之間相互跳轉
ret 名單 地址 pro .com 哈哈 png 慕課 域名 本文轉自:https://www.cnblogs.com/colorful-paopao1/p/8608609.html 轉自慕課網 一、小程序和公眾號 答案是:可以相互關聯。 在微信公眾號裏可以添加
【轉】微信公眾號h5網頁被嵌入廣告 不知道什麽原因
正常的 嵌入廣告 數據 監視 https 公眾號 不知道 數據流 就會 這個是因為http劫持導致的。HTTP劫持是在使用者與其目的網絡服務所建立的專用數據通道中,監視特定數據信息,提示當滿足設定的條件時,就會在正常的數據流中插入精心設計的網絡數據報文,目的是讓用戶端程序解
微信公眾號H5支付-JAVA版
微信開發之微信公眾號H5支付-JAVA版 引子 從事JAVA開發一年多了,一直都在看部落格園,CSDN的部落格,從很多前人哪裡學習了很多,突然覺得自己也要盡一份力,寫點部落格自己給自己做做記錄,也給要開發微信人提提醒少遇點坑。 很多人開發微信的時候,總是在抱怨微
微信跳轉之WAP跳轉微信公眾號關注頁面連結weixin://dl/business/?ticket=
本文整理了部分微信 URL Schemes,經過本人測試,所有url在微信 6.3.22 版本下都可正常工作。大家可以在 Safari 中開啟連結進行嘗試。(部分連結僅允許在微信內部瀏覽器中開啟,已用!標註。) 微信 微信 weixin:// weixin://dl/business/?
微信公眾號之H5支付筆記
以前一直沒有接觸支付這一塊,突然接到要做公眾號的支付著實讓我頭疼了幾天,下面就說一說微信公眾號H5支付的一些具體流程和心得(當然其中沒少借鑑其他大牛們的文章,看了很多才搞定,也是著實對自己著急)。 首先,我們第一步
微信公眾號支付(二)H5調起支付
上一篇講到統一下單,得到微信返回的預支付交易會話標識prepay_id,那麼下單完成後要做的就是在html頁面調起支付視窗。 檢視官方文件:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_7&
微信公眾號頁面無法喚起輸入框
pan 修改 版本 size proc 手機 tro null 頁面 在做的微信公眾號小項目中微信公眾號頁面無法喚起輸入框? 遇到這個問題,找了好久,最後才鎖定這是微信自帶的X5內核才出現的bug 1.調起調試頁面 通過鏈接直接進入http//:debug