| | |
| | | * @Author: 小明丶 |
| | | * @Date: 2020-05-20 20:29:47 |
| | | * @LastEditors: zxq |
| | | * @LastEditTime: 2022-08-04 14:55:01 |
| | | * @LastEditTime: 2022-11-28 10:36:22 |
| | | * @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"> |
| | |
| | | // 判断微信接口是否支持 |
| | | 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) { |
| | | //调用摄像头 |
| | |
| | | if (window.android && window.android.fetchQrCode) { |
| | | window.android.fetchQrCode(); |
| | | } else { |
| | | console.log(wx) |
| | | wx.scanQRCode({ |
| | | needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果, |
| | | scanType: ["qrCode", "barCode"], // 可以指定扫二维码还是一维码,默认二者都有 |
| | | success: function(res) { |
| | | var result = res.resultStr; // 当needResult 为 1 时,扫码返回的结果 |
| | | console.log(result); |
| | | _this.str = res.resultStr; |
| | | _this.$router.push({ |
| | | path: "/order-handling", |
| | |
| | | .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{ |