提交 777a79f3 编写于 作者: inkwalk's avatar inkwalk

fix(weixin): protocol showActionSheet, title -> alertText

上级 7d6146aa
...@@ -579,6 +579,14 @@ var getSystemInfo = { ...@@ -579,6 +579,14 @@ var getSystemInfo = {
} }
}; };
var showActionSheet = {
args (fromArgs) {
if (typeof fromArgs === 'object') {
fromArgs.alertText = fromArgs.title;
}
}
};
// import navigateTo from 'uni-helpers/navigate-to' // import navigateTo from 'uni-helpers/navigate-to'
const protocols = { const protocols = {
...@@ -586,7 +594,8 @@ const protocols = { ...@@ -586,7 +594,8 @@ const protocols = {
// navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
previewImage, previewImage,
getSystemInfo, getSystemInfo,
getSystemInfoSync: getSystemInfo getSystemInfoSync: getSystemInfo,
showActionSheet
}; };
const todos = [ const todos = [
'vibrate', 'vibrate',
......
export default {
args (fromArgs) {
if (typeof fromArgs === 'object') {
fromArgs.alertText = fromArgs.title
}
}
}
...@@ -2,13 +2,15 @@ ...@@ -2,13 +2,15 @@
import redirectTo from '../../helpers/redirect-to' import redirectTo from '../../helpers/redirect-to'
import previewImage from '../../helpers/normalize-preview-image' import previewImage from '../../helpers/normalize-preview-image'
import getSystemInfo from '../../helpers/system-info' import getSystemInfo from '../../helpers/system-info'
import showActionSheet from '../../helpers/show-action-sheet'
export const protocols = { export const protocols = {
redirectTo, redirectTo,
// navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
previewImage, previewImage,
getSystemInfo, getSystemInfo,
getSystemInfoSync: getSystemInfo getSystemInfoSync: getSystemInfo,
showActionSheet
} }
export const todos = [ export const todos = [
'vibrate', 'vibrate',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册