| | |
| | | * @Author: 小明丶 |
| | | * @Date: 2020-05-20 20:29:47 |
| | | * @LastEditors: zxq |
| | | * @LastEditTime: 2022-08-03 17:16:32 |
| | | * @LastEditTime: 2022-11-28 11:05:10 |
| | | * @Description: |
| | | --> |
| | | <template> |
| | |
| | | <div class="btn-box"> |
| | | <button @click="goOrderHandling">办理分期</button> |
| | | </div> |
| | | <div class="text-box"> |
| | | <!-- <p>客服电话:028-86043722</p> --> |
| | | <!-- <div class="text-box"> |
| | | <p>客服电话:028-86043722</p> |
| | | <p>联系邮箱:kefu@finlean.com</p> |
| | | </div> |
| | | </div> --> |
| | | </div> |
| | | <van-dialog v-model="show" title="错误提示"> |
| | | <div class="dialog-box"> |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | // this.getWXToken(); |
| | | this.getWXToken(); |
| | | // 判断微信接口是否支持 |
| | | wx.checkJsApi({ |
| | | jsApiList: ["checkJsApi", "scanQRCode"], // 需要检测的JS接口列表 |
| | | success: function(res) {} |
| | | success: function(res) { |
| | | console.log(res) |
| | | } |
| | | }); |
| | | |
| | | }, |
| | |
| | | * **/ |
| | | orderCreateStep() { |
| | | this.$api.orderCreateStep().then(res => { |
| | | localStorage.setItem('projId',res.body.projId); |
| | | localStorage.setItem('projId',res.body.projId?res.body.projId:100000); |
| | | // res.body.createStep = 4; |
| | | if (res.body.createStep == 0) { |
| | | //调用摄像头 |
| | |
| | | let url = location.href.split('#')[0] |
| | | this.$api.wechatgetSign({ url }).then( |
| | | res => { |
| | | |
| | | // 第二步骤 只需要首页地址分享 ,需要在每次变化时调用 |
| | | wx.config({ |
| | | debug: false, // 开启调试模式 |
| | |
| | | nonceStr: res.body.nonceStr, // 必填,生成签名的随机串 |
| | | signature: res.body.signature, // 必填,签名,见附录1 |
| | | jsApiList: ["checkJsApi", "scanQRCode"] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2 |
| | | }); |
| | | wx.error(function (res) { |
| | | console.log(res) |
| | | // config信息验证失败会执行error函数,如签名过期导致验证失败,具体错 |
| | | }); |
| | | }, |
| | | error => { |
| | |
| | | if (window.android && window.android.fetchQrCode) { |
| | | window.android.fetchQrCode(); |
| | | } else { |
| | | |
| | | wx.scanQRCode({ |
| | | needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果, |
| | | scanType: ["qrCode", "barCode"], // 可以指定扫二维码还是一维码,默认二者都有 |
| | |
| | | .home-index-page { |
| | | & { |
| | | background: #fff; |
| | | height: 100vh; |
| | | height:calc(100vh - 52px); |
| | | } |
| | | .top-bg-box{ |
| | | &{ |
| | | width: 100%; |
| | | height: 100vh; |
| | | background: url('../../../static/img/homeBack.png'); |
| | | background-size: cover; |
| | | height:calc(100vh - 52px); |
| | | background: url('../../../static/img/homeBack.jpg'); |
| | | background-size: 100% 100%; |
| | | position: relative; |
| | | } |
| | | .btn-box{ |