mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-23 15:32:52 +08:00
Merge branch 'feature/GFRS-1576签名模糊问题处理' into dev
This commit is contained in:
@@ -219,6 +219,35 @@ export default {
|
|||||||
isWeixin: ua.match(/MicroMessenger/i)
|
isWeixin: ua.match(/MicroMessenger/i)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* 签名位置
|
||||||
|
*/
|
||||||
|
signParams() {
|
||||||
|
let ua = navigator.userAgent
|
||||||
|
let device = {
|
||||||
|
isChrome: ua.match(/Chrome\/([\d.]+)/) || ua.match(/CriOS\/([\d.]+)/),
|
||||||
|
// eslint-disable-next-line no-useless-escape
|
||||||
|
isAndroid: ua.match(/(Android);?[\s\/]+([\d.]+)?/),
|
||||||
|
isIphone: ua.indexOf('iPhone') != -1,
|
||||||
|
isWeixin: ua.match(/MicroMessenger/i)
|
||||||
|
}
|
||||||
|
if(device.isIphone) {
|
||||||
|
return {
|
||||||
|
signatureWidth: 80,
|
||||||
|
signatureHeight: 40
|
||||||
|
}
|
||||||
|
}else if(device.isAndroid){
|
||||||
|
return {
|
||||||
|
signatureWidth: 160,
|
||||||
|
signatureHeight: 80
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
return {
|
||||||
|
signatureWidth: 80,
|
||||||
|
signatureHeight: 40
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 设置title
|
* 设置title
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -132,6 +132,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
sign() {
|
sign() {
|
||||||
|
alert("宽:" + this.$utils.signParams().signatureWidth + "高:" + this.$utils.signParams().signatureHeight);
|
||||||
// let that = this
|
// let that = this
|
||||||
this.$toast.loading({
|
this.$toast.loading({
|
||||||
duration: 0, // 持续展示 toast
|
duration: 0, // 持续展示 toast
|
||||||
@@ -151,7 +152,9 @@ export default {
|
|||||||
pageNo: '1',
|
pageNo: '1',
|
||||||
index: '1',
|
index: '1',
|
||||||
offset: '5',
|
offset: '5',
|
||||||
pos: '3'
|
pos: '3',
|
||||||
|
signatureWidth: this.$utils.signParams().signatureWidth,
|
||||||
|
signatureHeight: this.$utils.signParams().signatureWidth
|
||||||
}).then(data => {
|
}).then(data => {
|
||||||
this.$toast.clear()
|
this.$toast.clear()
|
||||||
if (JSON.parse(data).state == '1') {
|
if (JSON.parse(data).state == '1') {
|
||||||
|
|||||||
Reference in New Issue
Block a user