自定義tabbar實(shí)現(xiàn)
pages.json中"tabBar"對象的"list"屬性置為空數(shù)組够颠,即沒有tabbar頁面,然后在需要使用tabbar的頁面中引入自定義組件"tabbar"(因?yàn)閘ist為空所以uni.switchTab失效疾嗅,使用uni.reLaunch跳轉(zhuǎn))
g-modal改為u-modal
自定義u-modal 解決支付寶小程序不支持$slots?https://ask.dcloud.net.cn/question/136765
獲取手機(jī)號
button屬性open-type="getAuthorize" scope="phoneNumber" @getAuthorize="getPhoneNumber"
getPhoneNumber中使用my.getPhoneNumber API
navigationBarTextStyle在支付寶無效 文檔鏈接??
導(dǎo)航欄字體顏色無法自定義修改,但是可以通過修改背景顏色旅掂,自動(dòng)調(diào)整變成黑色或白色的導(dǎo)航欄字體顏色悲龟。
自定義導(dǎo)航?(pages.js有注釋// custom nav)的頁面需要reLaunch進(jìn)入以取消返回鍵,同時(shí)出現(xiàn)的home鍵需要hideBackHome()
uni.uploadFile?fileType:"image",? //支付寶小程序必填
<swiper-item 上綁定tap事件失效
在<swiper-item 內(nèi)做事件綁定