diff --git a/pages/bd/bddetail.vue b/pages/bd/bddetail.vue
index ed8c127..4e79717 100644
--- a/pages/bd/bddetail.vue
+++ b/pages/bd/bddetail.vue
@@ -92,7 +92,17 @@
人员:{{info.accept_admin.name}}
-
+
+
+ 签字
+
+
+
+
+
+
+
+
审核
@@ -239,6 +249,7 @@
return
}
}else{
+
that.isCheck = false
}
diff --git a/pages/bd/signpic.vue b/pages/bd/signpic.vue
index 2ad672f..7a83972 100644
--- a/pages/bd/signpic.vue
+++ b/pages/bd/signpic.vue
@@ -1,10 +1,12 @@
-
+
+
+ :penSize="penSize">
+ 签字区
-
+
@@ -19,21 +21,21 @@
} from 'image-tools'
export default {
data() {
- return {
- id:"",
+ return {
+ id: "",
title: 'Hello',
penColor: 'black',
penSize: 5,
- urls: '',
- accept_admin_sign:"",
- picForm:{},
- host:''
+ urls: '',
+ accept_admin_sign: "",
+ picForm: {},
+ host: ''
}
- },
- onLoad(options){
- this.id = options.id
- this.host = this.util.HOST
- this.loadDetail()
+ },
+ onLoad(options) {
+ this.id = options.id
+ this.host = this.util.HOST
+ this.loadDetail()
},
methods: {
onClick(type) {
@@ -65,24 +67,24 @@
uploadImg(url) {
let that = this
uni.uploadFile({
- url: this.host+'/api/admin/upload-file',
+ url: this.host + '/api/admin/upload-file',
filePath: url,
- name: 'file',
- header:{
- token:uni.getStorageSync('userInfo_BD_token').token
+ name: 'file',
+ header: {
+ token: uni.getStorageSync('userInfo_BD_token').token
},
- success: (res) => {
- console.log("respic",res.data)
- let data = JSON.parse(res.data)
- that.picForm.accept_admin_sign = data.response?data.response.id:data.id
- console.log("that.accept_admin_sign",that.picForm)
+ success: (res) => {
+ console.log("respic", res.data)
+ let data = JSON.parse(res.data)
+ that.picForm.accept_admin_sign = data.response ? data.response.id : data.id
+ console.log("that.accept_admin_sign", that.picForm)
that.picSubmit()
}
});
},
loadDetail() {
- let that = this
- console.log("that.id",that.id)
+ let that = this
+ console.log("that.id", that.id)
this.util.request({
api: '/api/admin/visit/show',
method: "get",
@@ -101,33 +103,33 @@
})
}
})
- },
- picSubmit() {
- let that = this
- // return
- this.util.request({
- api: '/api/admin/visit/save',
- method: "POST",
- requestType:'bd',
- data: that.picForm,
- utilSuccess: function(res) {
- uni.showToast({
- title: res.msg,
- duration: 2000,
- icon: 'none'
- })
- uni.navigateTo({
- url:'/pages/bd/record?type=myrecord'
- })
- },
- utilFail: function(res) {
- uni.showToast({
- title: res.errmsg,
- duration: 2000,
- icon: 'none'
- })
- }
- })
+ },
+ picSubmit() {
+ let that = this
+ // return
+ this.util.request({
+ api: '/api/admin/visit/save',
+ method: "POST",
+ requestType: 'bd',
+ data: that.picForm,
+ utilSuccess: function(res) {
+ uni.showToast({
+ title: res.msg,
+ duration: 2000,
+ icon: 'none'
+ })
+ uni.navigateTo({
+ url: '/pages/bd/record?type=myrecord'
+ })
+ },
+ utilFail: function(res) {
+ uni.showToast({
+ title: res.errmsg,
+ duration: 2000,
+ icon: 'none'
+ })
+ }
+ })
},
}
@@ -139,13 +141,39 @@
width: 100%;
height: 100vh;
position: relative;
+ background-color: #ddd;
+ }
+ .signarea{
+ position: absolute;
+ top: 47%;
+ right: 0%;
+ transform: translate(-50%, -50%),;
+ z-index: 99;
+ font-size: 32px;
+ transform: rotate(90deg);
+ color: #ddd;
+ }
+ /deep/ .lime-signature,
+ .lime-signature__canvas {
+ height: 80% !important;
+ width: 80% !important;
+ position: absolute;
+ top: 50%;
+ right: 0;
+ transform: translate(0, -50%);
+ background: #fff !important;
+ z-index: 99
}
.signbtns {
position: absolute;
- top: 0;
- left: 0;
+ top: 50%;
+ left: -8px;
width: 100%;
+ flex-direction: column;
+ height: 80%;
+ z-index: 9;
+ transform: translate(0, -50%);
}
.signbtns button {
@@ -155,5 +183,6 @@
margin-top: 20rpx;
/* padding: 40rpx; */
color: #333;
+ transform: rotate(90deg);
}
-
+
\ No newline at end of file
diff --git a/pages/visit/detail.vue b/pages/visit/detail.vue
index 37c1475..686624c 100644
--- a/pages/visit/detail.vue
+++ b/pages/visit/detail.vue
@@ -93,7 +93,16 @@
人员:{{info.accept_admin.name}}
-
+
+
+ 签字
+
+
+
+
+
+
+
@@ -101,8 +110,6 @@
-
-