提交 31f0cbdc 编写于 作者: Q qiang

fix: 优化选择位置页面

上级 cfbc51f5
...@@ -23,35 +23,10 @@ export function chooseLocation (options, callbackId) { ...@@ -23,35 +23,10 @@ export function chooseLocation (options, callbackId) {
let result let result
const page = showPage({ const page = showPage({
url: '__uniappchooselocation', url: '__uniappchooselocation',
data: { data: options,
keyword: options.keyword
},
style: { style: {
animationType: options.animationType || 'slide-in-bottom', animationType: options.animationType || 'slide-in-bottom',
titleNView: { titleNView: false,
autoBackButton: false,
titleText: options.titleText || '选择位置',
titleColor: '#ffffff',
backgroundColor: 'rgba(0,0,0,1)',
buttons: [{
// text: options.cancelText || "取消",
// fontSize: "17px",
type: 'close',
float: 'left',
onclick: () => {
page.close()
}
}, {
text: options.doneText || '完成',
fontSize: '17px',
width: '60px',
onclick: () => {
page.sendMessage({
type: 'done'
})
}
}]
},
popGesture: 'close', popGesture: 'close',
scrollIndicator: 'none' scrollIndicator: 'none'
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册