diff --git a/pages/index/contract.vue b/pages/index/contract.vue
index a46e9ba..011b0d4 100644
--- a/pages/index/contract.vue
+++ b/pages/index/contract.vue
@@ -1,178 +1,199 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
+
+
-
+
+ .f-box {
+ width: 100%;
+ box-sizing: border-box;
+ padding: 15px;
+ }
+
\ No newline at end of file
diff --git a/uni_modules/jushi-signature/components/jushi-signature/jushi-signature.vue b/uni_modules/jushi-signature/components/jushi-signature/jushi-signature.vue
index ba95409..b0b49e7 100644
--- a/uni_modules/jushi-signature/components/jushi-signature/jushi-signature.vue
+++ b/uni_modules/jushi-signature/components/jushi-signature/jushi-signature.vue
@@ -141,7 +141,7 @@
success: function(res) {
console.log(res, '签名');
//强制返回base64
- that.emit(res.tempFilePath)
+ uni.$emit('tempFilePath', res.tempFilePath)
},
fail(e) {
console.log(JSON.stringify(e))
@@ -149,20 +149,20 @@
}, this)
},
reset() {
- let that = this
- uni.getSystemInfo({
- success: function(res) {
- ctx.clearRect(0, 0, res.windowWidth, res.windowHeight)
- ctx.draw(true)
- // #ifdef MP-WEIXIN
- that.setCanvasBg()
- // #endif
- that.setPaintStyle()
- },
- })
- tempPoint = []
- // 注意:这里不触发任何emit事件
- },
+ let that = this
+ uni.getSystemInfo({
+ success: function(res) {
+ ctx.clearRect(0, 0, res.windowWidth, res.windowHeight)
+ ctx.draw(true)
+ // #ifdef MP-WEIXIN
+ that.setCanvasBg()
+ // #endif
+ that.setPaintStyle()
+ },
+ })
+ tempPoint = []
+ // 注意:这里不触发任何emit事件
+ },
emit(tempFilePath) {
this.$emit('change', tempFilePath)
},
@@ -226,11 +226,11 @@
}
.clear {}
-
+
.reset {
- background: #FF9900;
- color: white;
- }
+ background: #FF9900;
+ color: white;
+ }
.sign-area {
position: absolute;
@@ -240,5 +240,4 @@
font-size: 130rpx;
transform: rotate(-20deg);
}
-
\ No newline at end of file