一 獲取保存圖片到相冊失敗
Api: wx.saveImageToPhotosAlbum
返回errMsg ios 于 and 不一致
dev: saveImageToPhotosAlbum:fail auth deny
iOS:saveImageToPhotosAlbum:fail auth deny
and: saveImageToPhotosAlbum:fail:auth denied
二 授權(quán)問題
例如: 定位、相冊等功能需要授權(quán),
注意:有兩個授權(quán):一是向微信授權(quán),二是向系統(tǒng)授權(quán)。
假如微信授權(quán)成功,系統(tǒng)沒有授權(quán),還是操作功能失敗
三 開發(fā)工具
template 用法
<template name="temp">
<view class="one">1</view>
<view class="two">2</view>
</template>
基礎庫1.6.6 只會顯示 one 也就是第一個
四 tabBar
產(chǎn)品/交互,經(jīng)常設計在不屬于tabBar 切換的頁面里顯示 tabBar,這也是不可行的。
五 canvas - draw方法
可能是異步的
六 <br/> 替代品,文本換行
<view style="white-space: pre-wrap;">這是一段有趣又幽默的文本\n你喜歡嗎</view>
樣式不能少
七 checkbox 樣式重寫
checkbox {
width: 30rpx;
height: 30rpx;
}
checkbox .wx-checkbox-input {
width: 30rpx;
height: 30rpx;
}
checkbox .wx-checkbox-input .wx-checkbox-input-checked {
border: none;
background: red;
}
checkbox .wx-checkbox-input .wx-checkbox-input-checked::before {
border-radius: 50%;
width: 30rpx;
height: 30rpx;
line-height: 30rpx;
text-align: center;
font-size: 30rpx;
color: #fff;
background: transparent;
transform: translate(- 50%, - 50%) scale(1);
-webkit-transform: translate(- 50%, - 50%) scale(1);
}
八 map 組件 markers屬性的callout的bgColor 安卓不能正確使用 ,不管設置什么顏色都是黑色。
發(fā)現(xiàn)機型: 安卓
微信版本:6.6.6
同版本ios 正常
應該使用16進制6位
九 wx.canIUse('showToast.object.icon.none')
一直都是false
十 map 組件 ios8.3 上設置height:100%;無效
微信版本:6.6.7
十一 cover-view 組件圓角問題
安卓4.4 ,微信 6.6.6,腰圓按鈕實現(xiàn)不正確。
| 問題代碼 | 解決代碼 |
|---|---|
| 代碼段1 | 代碼段2 |
//代碼段1
.btn{
height: 84rpx;
line-height: 84rpx;
text-align: center;
font-size: 36rpx;
border-radius: 84rpx;
}
//代碼段2
.btn{
height: 84rpx;
line-height: 84rpx;
text-align: center;
font-size: 36rpx;
border-radius: 1.5em;
}
@ 效果不是很完美。
十二 cover-view iOS10.3以下 點擊事件無效
微信6.7.0
微信6.7.0 背景顏色無效