Compare commits
2 Commits
2caa156983
...
dd1f40353a
Author | SHA1 | Date | |
---|---|---|---|
dd1f40353a | |||
41df0afa36 |
@ -1 +1 @@
|
|||||||
{"version":3,"sources":["uni-app:///main.js"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":"wJAAA,MAGA,aACA,YAFAA,EAAGC,kCAAoCC,EAGvCC,EAAWC,a","file":"pagesFace/pages/middle/middle.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pagesFace/pages/middle/middle.vue'\ncreatePage(Page)"],"sourceRoot":""}
|
{"version":3,"sources":["uni-app:///main.js"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":"wJAAA,MAGA,aACA,qIAFAA,EAAGC,kCAAoCC,EAGvCC,EAAWC,a","file":"pagesFace/pages/middle/middle.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pagesFace/pages/middle/middle.vue'\ncreatePage(Page)"],"sourceRoot":""}
|
21
unpackage/dist/dev/mp-weixin/app.json
vendored
21
unpackage/dist/dev/mp-weixin/app.json
vendored
@ -18,15 +18,7 @@
|
|||||||
"pages/paySuccess/paySuccess",
|
"pages/paySuccess/paySuccess",
|
||||||
"pages/payError/payError"
|
"pages/payError/payError"
|
||||||
],
|
],
|
||||||
"subPackages": [ {
|
"subPackages": [],
|
||||||
"root": "pagesFace",
|
|
||||||
"name": "pagesFace",
|
|
||||||
"pages": [
|
|
||||||
"pages/index/index",
|
|
||||||
"pages/webview/webview",
|
|
||||||
"pages/middle/middle"
|
|
||||||
]
|
|
||||||
}],
|
|
||||||
"window": {
|
"window": {
|
||||||
"navigationBarTextStyle": "black",
|
"navigationBarTextStyle": "black",
|
||||||
"navigationBarTitleText": "uni-app",
|
"navigationBarTitleText": "uni-app",
|
||||||
@ -55,5 +47,16 @@
|
|||||||
"desc": "你的摄像头将用于拍照或录像"
|
"desc": "你的摄像头将用于拍照或录像"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"subpackages": [
|
||||||
|
{
|
||||||
|
"root": "pagesFace",
|
||||||
|
"name": "pagesFace",
|
||||||
|
"pages": [
|
||||||
|
"pages/index/index",
|
||||||
|
"pages/webview/webview",
|
||||||
|
"pages/middle/middle"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"usingComponents": {}
|
"usingComponents": {}
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
"usingComponents": {},
|
||||||
"usingComponents": {}
|
"component": true
|
||||||
}
|
}
|
@ -1,66 +1,43 @@
|
|||||||
// pagesFace/pages/index/index.js
|
const app = getApp();
|
||||||
|
|
||||||
Page({
|
Page({
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面的初始数据
|
|
||||||
*/
|
|
||||||
data: {
|
data: {
|
||||||
|
url: ''
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
inputUrl(e) {
|
||||||
* 生命周期函数--监听页面加载
|
this.setData({
|
||||||
*/
|
url: e.detail.value,
|
||||||
onLoad(options) {
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
goScanCode() {
|
||||||
* 生命周期函数--监听页面初次渲染完成
|
wx.scanCode({
|
||||||
*/
|
onlyFromCamera: true,
|
||||||
onReady() {
|
success: ({result = ''}) => {
|
||||||
|
if(!result) {
|
||||||
},
|
wx.showToast({
|
||||||
|
title: '扫码失败',
|
||||||
/**
|
icon: 'error'
|
||||||
* 生命周期函数--监听页面显示
|
})
|
||||||
*/
|
}
|
||||||
onShow() {
|
this.setData({
|
||||||
|
url: result
|
||||||
},
|
}, this.goUrl)
|
||||||
|
}
|
||||||
/**
|
})
|
||||||
* 生命周期函数--监听页面隐藏
|
},
|
||||||
*/
|
|
||||||
onHide() {
|
goUrl() {
|
||||||
|
const url = this.data.url
|
||||||
},
|
wx.navigateTo({
|
||||||
|
url: '/pagesFace/pages/webview/webview?url=' + encodeURIComponent(url),
|
||||||
/**
|
})
|
||||||
* 生命周期函数--监听页面卸载
|
},
|
||||||
*/
|
|
||||||
onUnload() {
|
clearUrl() {
|
||||||
|
this.setData({
|
||||||
},
|
url: '',
|
||||||
|
})
|
||||||
/**
|
|
||||||
* 页面相关事件处理函数--监听用户下拉动作
|
|
||||||
*/
|
|
||||||
onPullDownRefresh() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面上拉触底事件的处理函数
|
|
||||||
*/
|
|
||||||
onReachBottom() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户点击右上角分享
|
|
||||||
*/
|
|
||||||
onShareAppMessage() {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
4
unpackage/dist/dev/mp-weixin/pagesFace/pages/index/index.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pagesFace/pages/index/index.json
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"usingComponents": {},
|
||||||
|
"navigationBarTitleText": "人脸识别认证"
|
||||||
|
}
|
@ -1,2 +1,13 @@
|
|||||||
<!--pagesFace/pages/index/index.wxml-->
|
<view class="container">
|
||||||
<text>pagesFace/pages/index/index.wxml</text>
|
<view class="container box1">
|
||||||
|
<view class="title">
|
||||||
|
在当前小程序内打开实名/签署页面,刷脸跳转到公证签小程序
|
||||||
|
</view>
|
||||||
|
<input class="weui-input" maxlength="-1" placeholder="输入链接" value="{{url}}" bindinput="inputUrl"/>
|
||||||
|
<view class="btn-box">
|
||||||
|
<button class="weui-btn my-btn" type="primary" bindtap="goScanCode">扫描二维码</button>
|
||||||
|
<button class="weui-btn my-btn" type="primary" bindtap="goUrl">跳转</button>
|
||||||
|
<button class="weui-btn my-btn" bindtap="clearUrl">清空</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
33
unpackage/dist/dev/mp-weixin/pagesFace/pages/index/index.wxss
vendored
Normal file
33
unpackage/dist/dev/mp-weixin/pagesFace/pages/index/index.wxss
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
.container {
|
||||||
|
padding-top: 20rpx !important;
|
||||||
|
}
|
||||||
|
.box1 {
|
||||||
|
margin-bottom: 100rpx;
|
||||||
|
padding-bottom: 130rpx;
|
||||||
|
}
|
||||||
|
.title {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
text-align: left;
|
||||||
|
width: 100%;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.weui-input {
|
||||||
|
width: 100%;
|
||||||
|
border-bottom: 1px solid #ccc;
|
||||||
|
margin-bottom: 50rpx;
|
||||||
|
}
|
||||||
|
.btn-box {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.weui-btn {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin-bottom: 50rpx;
|
||||||
|
}
|
||||||
|
.my-btn {
|
||||||
|
margin-top: 0 !important;
|
||||||
|
}
|
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
"navigationBarTitleText": "人脸识别认证",
|
"usingComponents": {},
|
||||||
"enablePullDownRefresh": false,
|
"navigationBarTitleText": "人脸识别认证"
|
||||||
"usingComponents": {}
|
|
||||||
}
|
}
|
File diff suppressed because one or more lines are too long
@ -1,66 +1,22 @@
|
|||||||
// pagesFace/pages/webview/webview.js
|
|
||||||
Page({
|
Page({
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面的初始数据
|
|
||||||
*/
|
|
||||||
data: {
|
data: {
|
||||||
|
url: '',
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/** 初始打开实名认证页面 */
|
||||||
* 生命周期函数--监听页面加载
|
|
||||||
*/
|
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
console.log('---wevbiew onload', options)
|
||||||
},
|
this.setData({
|
||||||
|
url: decodeURIComponent(options.url),
|
||||||
/**
|
})
|
||||||
* 生命周期函数--监听页面初次渲染完成
|
},
|
||||||
*/
|
|
||||||
onReady() {
|
/** 刷脸完成后重新加载实名认证页面 */
|
||||||
|
reloadPage(url) {
|
||||||
},
|
console.log('---webview reloadPage', url)
|
||||||
|
this.setData({
|
||||||
/**
|
url,
|
||||||
* 生命周期函数--监听页面显示
|
})
|
||||||
*/
|
},
|
||||||
onShow() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面隐藏
|
|
||||||
*/
|
|
||||||
onHide() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生命周期函数--监听页面卸载
|
|
||||||
*/
|
|
||||||
onUnload() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面相关事件处理函数--监听用户下拉动作
|
|
||||||
*/
|
|
||||||
onPullDownRefresh() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 页面上拉触底事件的处理函数
|
|
||||||
*/
|
|
||||||
onReachBottom() {
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户点击右上角分享
|
|
||||||
*/
|
|
||||||
onShareAppMessage() {
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
})
|
4
unpackage/dist/dev/mp-weixin/pagesFace/pages/webview/webview.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pagesFace/pages/webview/webview.json
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"usingComponents": {},
|
||||||
|
"navigationBarTitleText": "人脸识别认证"
|
||||||
|
}
|
@ -1,2 +1 @@
|
|||||||
<!--pagesFace/pages/webview/webview.wxml-->
|
<web-view src="{{url}}"></web-view>
|
||||||
<text>pagesFace/pages/webview/webview.wxml</text>
|
|
0
unpackage/dist/dev/mp-weixin/pagesFace/pages/webview/webview.wxss
vendored
Normal file
0
unpackage/dist/dev/mp-weixin/pagesFace/pages/webview/webview.wxss
vendored
Normal file
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"u-popup": "/uview-ui/components/u-popup/u-popup",
|
"u-popup": "/uview-ui/components/u-popup/u-popup",
|
||||||
"u-icon": "/uview-ui/components/u-icon/u-icon",
|
"u-icon": "/uview-ui/components/u-icon/u-icon",
|
||||||
"u-line": "/uview-ui/components/u-line/u-line",
|
"u-line": "/uview-ui/components/u-line/u-line",
|
||||||
"u-loading-icon": "/uview-ui/components/u-loading-icon/u-loading-icon",
|
"u-loading-icon": "/uview-ui/components/u-loading-icon/u-loading-icon",
|
||||||
"u-gap": "/uview-ui/components/u-gap/u-gap"
|
"u-gap": "/uview-ui/components/u-gap/u-gap"
|
||||||
}
|
},
|
||||||
|
"component": true
|
||||||
}
|
}
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"u-loading-icon": "/uview-ui/components/u-loading-icon/u-loading-icon",
|
"u-loading-icon": "/uview-ui/components/u-loading-icon/u-loading-icon",
|
||||||
"u-icon": "/uview-ui/components/u-icon/u-icon"
|
"u-icon": "/uview-ui/components/u-icon/u-icon"
|
||||||
}
|
},
|
||||||
|
"component": true
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
"usingComponents": {},
|
||||||
"usingComponents": {}
|
"component": true
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"u-icon": "/uview-ui/components/u-icon/u-icon"
|
"u-icon": "/uview-ui/components/u-icon/u-icon"
|
||||||
}
|
},
|
||||||
|
"component": true
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
"usingComponents": {},
|
||||||
"usingComponents": {}
|
"component": true
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"u-line": "/uview-ui/components/u-line/u-line"
|
"u-line": "/uview-ui/components/u-line/u-line"
|
||||||
}
|
},
|
||||||
|
"component": true
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
"usingComponents": {},
|
||||||
"usingComponents": {}
|
"component": true
|
||||||
}
|
}
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"u-transition": "/uview-ui/components/u-transition/u-transition",
|
"u-transition": "/uview-ui/components/u-transition/u-transition",
|
||||||
"u-loading-icon": "/uview-ui/components/u-loading-icon/u-loading-icon"
|
"u-loading-icon": "/uview-ui/components/u-loading-icon/u-loading-icon"
|
||||||
}
|
},
|
||||||
|
"component": true
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"u-safe-bottom": "/uview-ui/components/u-safe-bottom/u-safe-bottom"
|
"u-safe-bottom": "/uview-ui/components/u-safe-bottom/u-safe-bottom"
|
||||||
}
|
},
|
||||||
|
"component": true
|
||||||
}
|
}
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"u-icon": "/uview-ui/components/u-icon/u-icon",
|
"u-icon": "/uview-ui/components/u-icon/u-icon",
|
||||||
"u-loading-icon": "/uview-ui/components/u-loading-icon/u-loading-icon"
|
"u-loading-icon": "/uview-ui/components/u-loading-icon/u-loading-icon"
|
||||||
}
|
},
|
||||||
|
"component": true
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user