fix
This commit is contained in:
parent
47df11c81f
commit
6ac1b9a92c
@ -1,3 +1,3 @@
|
||||
export default {
|
||||
baseUrl: "https://warehouse.szjixun.cn",
|
||||
baseUrl: "https://stock.szjixun.cn", //"https://warehouse.szjixun.cn", // https://stock.szjixun.cn
|
||||
};
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
export default {
|
||||
config: {
|
||||
baseUrl: "https://warehouse.szjixun.cn", //"http://172.16.100.93:8017", //"http://192.168.88.175:9021",//'https://warehouse.szjixun.cn'
|
||||
baseUrl: "https://stock.szjixun.cn", //"http://172.16.100.93:8017", //"http://192.168.88.175:9021",//'https://warehouse.szjixun.cn'
|
||||
header: {
|
||||
"Content-Type": "application/json;charset=UTF-8",
|
||||
// 'Content-Type':'application/x-www-form-urlencoded'
|
||||
|
@ -132,6 +132,7 @@ export default {
|
||||
watch:{
|
||||
isFddSuccess(newValue){
|
||||
if(newValue){
|
||||
console.log(9999999,newValue)
|
||||
this.name = uni.getStorageSync("info").name || ''
|
||||
this.num = uni.getStorageSync("info").num || ''
|
||||
this.fileList = uni.getStorageSync("info").fileList || []
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
11
unpackage/dist/dev/mp-weixin/app.json
vendored
11
unpackage/dist/dev/mp-weixin/app.json
vendored
@ -18,15 +18,7 @@
|
||||
"pages/paySuccess/paySuccess",
|
||||
"pages/payError/payError"
|
||||
],
|
||||
"subPackages": [{
|
||||
"root": "pagesFace",
|
||||
"name": "pagesFace",
|
||||
"pages": [
|
||||
"pages/index/index",
|
||||
"pages/webview/webview",
|
||||
"pages/middle/middle"
|
||||
]
|
||||
}],
|
||||
"subPackages": [],
|
||||
"window": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "uni-app",
|
||||
@ -55,6 +47,5 @@
|
||||
"desc": "你的摄像头将用于拍照或录像"
|
||||
}
|
||||
},
|
||||
|
||||
"usingComponents": {}
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -1,81 +1,85 @@
|
||||
Page({
|
||||
data: {
|
||||
/** 刷脸token */
|
||||
bizToken: "",
|
||||
/** 认证小程序appId */
|
||||
miniProgramAppId: "",
|
||||
/** 认证小程序跳转页地址 */
|
||||
miniProgramPath: "",
|
||||
/** 刷脸结束回调地址 */
|
||||
miniProgramCallBackUrl: "",
|
||||
/** 是否已跳转认证小程序 */
|
||||
goFaceDone: false,
|
||||
},
|
||||
|
||||
/** 点击前往认证 */
|
||||
onJump() {
|
||||
const { bizToken, miniProgramAppId, miniProgramPath } = this.data;
|
||||
wx.navigateToMiniProgram({
|
||||
appId: miniProgramAppId,
|
||||
path: miniProgramPath + "?bizToken=" + bizToken,
|
||||
success: (res) => {
|
||||
this.setData({
|
||||
goFaceDone: true,
|
||||
});
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
/** 生命周期函数--监听页面加载 */
|
||||
onLoad: function ({
|
||||
bizToken = "",
|
||||
miniProgramAppId = "",
|
||||
miniProgramPath = "",
|
||||
miniProgramCallBackUrl = "",
|
||||
}) {
|
||||
console.log("---middle onLoad");
|
||||
this.setData({
|
||||
bizToken: decodeURIComponent(bizToken),
|
||||
miniProgramAppId: decodeURIComponent(miniProgramAppId),
|
||||
miniProgramPath: decodeURIComponent(miniProgramPath),
|
||||
miniProgramCallBackUrl: decodeURIComponent(miniProgramCallBackUrl),
|
||||
});
|
||||
},
|
||||
|
||||
/** 生命周期函数--监听页面显示 */
|
||||
onShow: function () {
|
||||
console.log("---middle onShow");
|
||||
const { goFaceDone, miniProgramCallBackUrl } = this.data;
|
||||
/** 防止从认证进入后直接返回 */
|
||||
if (!goFaceDone) return;
|
||||
|
||||
/** 已跳转认证小程序,重置 */
|
||||
this.setData({
|
||||
data: {
|
||||
/** 刷脸token */
|
||||
bizToken: "",
|
||||
/** 认证小程序appId */
|
||||
miniProgramAppId: "",
|
||||
/** 认证小程序跳转页地址 */
|
||||
miniProgramPath: "",
|
||||
/** 刷脸结束回调地址 */
|
||||
miniProgramCallBackUrl: "",
|
||||
/** 是否已跳转认证小程序 */
|
||||
goFaceDone: false,
|
||||
});
|
||||
|
||||
/** getEnterOptionsSync 基础库 2.9.4 开始支持,低版本需做兼容处理 */
|
||||
const options = wx.getEnterOptionsSync();
|
||||
console.log("---app onShow options", options);
|
||||
|
||||
/** 从认证小程序返回 */
|
||||
if (
|
||||
options.scene === 1038 &&
|
||||
options.referrerInfo.extraData &&
|
||||
options.referrerInfo.extraData.faceResult
|
||||
) {
|
||||
const pages = getCurrentPages();
|
||||
const previous = pages[pages.length - 2];
|
||||
/** 重新加载认证页面 */
|
||||
previous.$vm.reloadPage(
|
||||
miniProgramCallBackUrl.replace(
|
||||
"https://realnameverify-test.fadada.com",
|
||||
"https://realnameverify-test07.fadada.com"
|
||||
)
|
||||
);
|
||||
wx.navigateBack({
|
||||
delta: 1,
|
||||
},
|
||||
|
||||
/** 点击前往认证 */
|
||||
onJump() {
|
||||
const { bizToken, miniProgramAppId, miniProgramPath } = this.data;
|
||||
wx.navigateToMiniProgram({
|
||||
appId: miniProgramAppId,
|
||||
path: miniProgramPath + "?bizToken=" + bizToken,
|
||||
success: (res) => {
|
||||
this.setData({
|
||||
goFaceDone: true,
|
||||
});
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
/** 生命周期函数--监听页面加载 */
|
||||
onLoad: function ({
|
||||
bizToken = "",
|
||||
miniProgramAppId = "",
|
||||
miniProgramPath = "",
|
||||
miniProgramCallBackUrl = "",
|
||||
}) {
|
||||
console.log("---middle onLoad");
|
||||
this.setData({
|
||||
bizToken: decodeURIComponent(bizToken),
|
||||
miniProgramAppId: decodeURIComponent(miniProgramAppId),
|
||||
miniProgramPath: decodeURIComponent(miniProgramPath),
|
||||
miniProgramCallBackUrl: decodeURIComponent(miniProgramCallBackUrl),
|
||||
});
|
||||
},
|
||||
|
||||
/** 生命周期函数--监听页面显示 */
|
||||
onShow: function () {
|
||||
console.log("---middle onShow");
|
||||
const { goFaceDone, miniProgramCallBackUrl } = this.data;
|
||||
/** 防止从认证进入后直接返回 */
|
||||
if (!goFaceDone) return;
|
||||
|
||||
/** 已跳转认证小程序,重置 */
|
||||
this.setData({
|
||||
goFaceDone: false,
|
||||
});
|
||||
|
||||
/** getEnterOptionsSync 基础库 2.9.4 开始支持,低版本需做兼容处理 */
|
||||
const options = wx.getEnterOptionsSync();
|
||||
console.log("---app onShow options", options);
|
||||
|
||||
/** 从认证小程序返回 */
|
||||
if (
|
||||
options.scene === 1038 &&
|
||||
options.referrerInfo.extraData &&
|
||||
options.referrerInfo.extraData.faceResult
|
||||
) {
|
||||
const pages = getCurrentPages();
|
||||
const previous = pages[pages.length - 2];
|
||||
|
||||
/** 重新加载认证页面 */
|
||||
previous.$vm.reloadPage(
|
||||
miniProgramCallBackUrl.replace(
|
||||
"https://realnameverify-test.fadada.com",
|
||||
"https://realnameverify-test07.fadada.com"
|
||||
).replace(
|
||||
"https://realnameverify.fadada.com",
|
||||
"https://realnameverify06.fadada.com"
|
||||
)
|
||||
);
|
||||
wx.navigateBack({
|
||||
delta: 1,
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
BIN
unpackage/dist/dev/mp-weixin/static/bbj1@3x.png
vendored
BIN
unpackage/dist/dev/mp-weixin/static/bbj1@3x.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 587 KiB |
Loading…
Reference in New Issue
Block a user