Commit ef2af2b3 by sunchao

安装jquery

parent 970e2c2d
......@@ -33,7 +33,8 @@
"src/styles.scss"
],
"scripts": [
"node_modules/echarts/dist/echarts.min.js"
"node_modules/echarts/dist/echarts.min.js",
"node_modules/jquery/dist/jquery.js"
], // 引入全局脚步,构建时会打包进来,常用于第三方库引入的脚本
"es5BrowserSupport": true
},
......
......@@ -5285,6 +5285,11 @@
"integrity": "sha1-43zwsX8ZnM4jvqcbIDk5Uka07E4=",
"dev": true
},
"jquery": {
"version": "3.5.1",
"resolved": "https://registry.npm.taobao.org/jquery/download/jquery-3.5.1.tgz",
"integrity": "sha1-17TQjhv9uGrS8aPQOeoXMEcXq7U="
},
"js-base64": {
"version": "2.6.4",
"resolved": "https://registry.npm.taobao.org/js-base64/download/js-base64-2.6.4.tgz?cache=0&sync_timestamp=1596920188035&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjs-base64%2Fdownload%2Fjs-base64-2.6.4.tgz",
......
......@@ -27,6 +27,7 @@
"dayjs": "^1.8.35",
"echarts": "^4.9.0",
"html2canvas": "^1.0.0-rc.5",
"jquery": "^3.5.1",
"ng-zorro-antd-mobile": "^0.12.5",
"ngx-echarts": "^3.2.0",
"rxjs": "~6.3.3",
......
......@@ -7,7 +7,7 @@
<span class="page_mark"> 8/8</span>
</div>
<div id="signature"></div>
<signature-pad id="signatureCanvas" [options]="signaturePadOptions"></signature-pad>
<!-- <signature-pad id="signatureCanvas" [options]="signaturePadOptions"></signature-pad> -->
<footer class="fixed" (click)="next()">
我自愿签订经纪人合同书
</footer>
......
......@@ -4,7 +4,7 @@ import { ActivatedRoute,Router } from "@angular/router";
import { LifeCommonService } from "../../../common/life-common.service";
import {SignaturePad} from 'angular2-signaturepad'
import EleSign from "elesigncode";
import * as $ from 'jquery';
@Component({
selector: 'ydlife-signature',
templateUrl: './signature.component.html',
......@@ -26,7 +26,6 @@ export class SignatureComponent implements OnInit {
var eleSign = new EleSign();//实例化对象
eleSign.init({setBgColor:'#333333'}); //初始化
eleSign.moutedEle(ele) //将签名节点放入到传入的element节点中
}
next(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment