1.使用axios發(fā)送網(wǎng)絡請求
解決辦法:http://www.reibang.com/p/71aa01ebe09c
2.background-img不顯示,
解決辦法:1)使用img標簽絕對定位position:absolute;z-index:-1;(父控件不能指定背景色,否則背景圖還是不顯示)2)使用網(wǎng)絡圖片地址url
3.在使用vant-weapp的時候,輸入框van-field綁定的value值不會同步更新到data對應的變量,需要添加@change="completeInputMobile"
completeInputMobile (event) {
this.mobile = event.mp.detail
}
4.img標簽必須寫成行內(nèi)樣式給height和width,直接屬性和內(nèi)聯(lián)樣式都不生效
5.關(guān)于mpvue 切換頁面數(shù)據(jù)沒清空
加載頁面的時候誉简,小程序生命周期重置data數(shù)據(jù)
onLoad(){
Object.assign(this.options.data())
}
6.mpvue官網(wǎng)只有page間正向傳值,沒有反向傳值的解決方案,于是自己寫了一個
http://www.reibang.com/p/5c224d079f31
待更新...
參考資料:
http://www.reibang.com/p/8f779950bfd9
https://blog.csdn.net/qq_32678401/article/details/81744424
http://www.bslxx.com/m/view.php?aid=1824