提交 2b78a85b 编写于 作者: Q qiang

fix: 调整模板页按钮位置

上级 6377e856
......@@ -89,11 +89,11 @@ export function scanCode ({
const buttons = []
if (!onlyFromCamera) {
buttons.push({
'float': 'right',
'text': '相册',
'fontSize': '17px',
'width': '60px',
'onclick': function () {
float: 'right',
text: '相册',
fontSize: '17px',
width: '60px',
onclick: function () {
plus.gallery.pick(file => {
barcode.scan(file, (type, code) => {
if (isDark) {
......
......@@ -37,6 +37,7 @@ export function scanCode (options, callbackId) {
buttons: !options.onlyFromCamera ? [{
text: options.albumText || '相册',
fontSize: '17px',
width: '60px',
onclick: () => {
page.sendMessage({
type: 'gallery'
......
......@@ -34,6 +34,7 @@ export function chooseLocation (params, callbackId) {
float: 'right',
text: '完成',
fontSize: '17px',
width: '60px',
onclick: function () {
webview.evalJS('__chooseLocationConfirm__()')
}
......
......@@ -44,6 +44,7 @@ export function chooseLocation (options, callbackId) {
}, {
text: options.doneText || '完成',
fontSize: '17px',
width: '60px',
onclick: () => {
page.sendMessage({
type: 'done'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册