Compare commits
2 Commits
04ec6d3659
...
debb9e148f
Author | SHA1 | Date | |
---|---|---|---|
debb9e148f | |||
6ac1b9a92c |
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,2 @@
|
||||
/node_modules
|
||||
|
||||
/unpackage
|
||||
/.gitignore
|
||||
|
@ -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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
"component": true,
|
||||
"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,
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
@ -15,8 +15,7 @@
|
||||
"ignore": [],
|
||||
"disablePlugins": [],
|
||||
"outputPath": ""
|
||||
},
|
||||
"condition": false
|
||||
}
|
||||
},
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "3.1.0",
|
||||
|
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 |
@ -1,10 +1,10 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-popup": "/uview-ui/components/u-popup/u-popup",
|
||||
"u-icon": "/uview-ui/components/u-icon/u-icon",
|
||||
"u-line": "/uview-ui/components/u-line/u-line",
|
||||
"u-loading-icon": "/uview-ui/components/u-loading-icon/u-loading-icon",
|
||||
"u-gap": "/uview-ui/components/u-gap/u-gap"
|
||||
},
|
||||
"component": true
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-loading-icon": "/uview-ui/components/u-loading-icon/u-loading-icon",
|
||||
"u-icon": "/uview-ui/components/u-icon/u-icon"
|
||||
},
|
||||
"component": true
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-icon": "/uview-ui/components/u-icon/u-icon"
|
||||
},
|
||||
"component": true
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-transition": "/uview-ui/components/u-transition/u-transition",
|
||||
"u-loading-icon": "/uview-ui/components/u-loading-icon/u-loading-icon"
|
||||
},
|
||||
"component": true
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-safe-bottom": "/uview-ui/components/u-safe-bottom/u-safe-bottom"
|
||||
},
|
||||
"component": true
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-icon": "/uview-ui/components/u-icon/u-icon",
|
||||
"u-loading-icon": "/uview-ui/components/u-loading-icon/u-loading-icon"
|
||||
},
|
||||
"component": true
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user