Commit b8c4fbee authored by ly's avatar ly

多典花

parent 329f56c9
No preview for this file type
......@@ -150,6 +150,13 @@
"navigationBarTitleText": ""
}
},
{
"path": "pages/web/websrc",
"style": {
"navigationStyle": "custom",
"enablePullDownRefresh": false
}
},
{
"path": "pages/bill/indexs",
"style": {
......
No preview for this file type
......@@ -174,8 +174,18 @@ export default {
}
// 埋点结束
if (!isLogin()) this.JumpToLogin()
else this.Go(item.tager)
if (!isLogin()) {
this.JumpToLogin()
}else {
if(item.tager=='uni:/pages/indexfinance/index,tab'){
console.log(item.tager,'987')
this.Go('uni:/pages/web/web','tab')
}else{
this.Go(item.tager)
}
}
},
// 检查版本更新
......
......@@ -185,11 +185,19 @@ export default {
switch (item.title) {
case "我的还款":
this.buryingPoint('app:my_repayment_click')
this.Go('uni:/pages/web/web?src=http://ddang-h5-s.rockstect.cn/index.html#/bill', 'tab')
const newpath='http://192.168.0.23:8080/index.html#/bill'
uni.setStorageSync('web-src', newpath)
uni.setStorageSync('web-src-title', '账单')
this.Go('uni:/pages/web/websrc')
// this.Go('uni:/pages/web/websrc?src=http://192.168.0.23:8080/index.html#/bill')
break;
case "申请记录":
this.buryingPoint('app:my_application_record_click')
this.Go('uni:/pages/web/web?src=http://ddang-h5-s.rockstect.cn/index.html#/loanRecord', 'tab')
const Recordpath='http://192.168.0.23:8080/index.html#/loanRecord'
uni.setStorageSync('web-src', Recordpath)
uni.setStorageSync('web-src-title', '借款记录')
this.Go('uni:/pages/web/websrc')
// this.Go('uni:/pages/web/websrc?src=http://192.168.0.23:8080/index.html#/loanRecord')
break;
default:
break;
......
......@@ -36,6 +36,7 @@ export default {
}
},
deviceStatus: '',
typePage:false,
};
},
onBackPress(e) {
......@@ -71,7 +72,7 @@ export default {
this.wv && this.wv.evalJS(`callback({ 'action': 'OnShow' })`)
},
async onLoad(option) {
console.log(option,'参数')
console.log(option,'参数555')
const that = this
if (option.src) {
......@@ -90,6 +91,9 @@ export default {
},
onShow() {
console.log('WEB show方法')
// if (option.src) {
// this.src = option.src
// }
if (uni.getStorageSync('canRefreshWeb')) {
uni.removeStorageSync('canRefreshWeb')
if (this.wv) {
......@@ -105,6 +109,9 @@ export default {
}
}
}
let pagearr = getCurrentPages();//获取应用页面栈
let currentPage = pagearr[pagearr.length - 1];//获取当前页面信息
console.log('option:' , currentPage.options)//获取页面传递的信息
},
onUnload() {
uni.$off('loadingSubnvue'); //移除监听配置的原生子窗体
......@@ -224,6 +231,26 @@ export default {
title
})
},
//返回方法
GoBack(num){
console.log('wori')
try{
const self=this
uni.navigateBack({
delta:num,
success(res) {
console.log(res,'9877')
self.typePage=true
console.log(self.typePage,'resss')
}
})
}catch(err){
this.toast('返回失败')
console.log(err,'err')
}
},
// Toast 提示框
Toast(config) {
try {
......
<template>
<view class="page-web">
<web-view ref='webview' :webview-styles="webviewStyles" @message="handleMessage" :src="src"></web-view>
</view>
</template>
<script>
import { loadLocation } from './tools'
import {
CheckContactPermission,
SelectContact
} from './authPermission'
import storage from '@/utils/storage'
import {
UploadFile
} from './utils/uploads'
import Permission from '@/js_sdk/wa-permission/permission' //权限工具类
const LF = uni.requireNativePlugin('AThree-LFv2')
import api from '@/config/api'
let reloadTimeOut = null
let token = uni.getStorageSync('token')
console.log(token,'是否登录')
export default {
name: "WEB",
data() {
return {
src: '',
wv: null,
isLogin: token,
canBack: false,
webviewStyles: {
progress: {
color: '#FF4050'
}
},
deviceStatus: '',
typePage:false,
};
},
onBackPress(e) {
if (this.wv && this.canBack) {
this.wv.back()
return true
}
return false
},
onReady() {
const _that = this
// #ifdef APP-PLUS
//此对象相当于html5plus里的plus.webview.currentWebview()。在uni-app里vue页面直接使用plus.webview.currentWebview()无效
let currentWebview = _that.$scope.$getAppWebview();
setTimeout(() => {
this.wv = currentWebview.children()[0]
// 物理按键返回
_that.wv.addEventListener(
'loaded',
() => {
_that.wv.canBack((e) => {
_that.canBack = e.canBack
})
},
false
)
}, 1000) //如果是页面初始化调用时,需要延时一下
// #endif
},
onTabItemTap(e) {
console.log(e, 'tabItemTap')
this.wv && this.wv.evalJS(`callback({ 'action': 'OnShow' })`)
},
async onLoad(option) {
const newURL=uni.getStorageSync('web-src')
console.log(newURL,'参数555')
const that = this
if (newURL) {
that.src = newURL
}
uni.getStorage({
key: 'm-device-info',
success: function (res) {
const { device } = JSON.parse(res.data)
that.deviceStatus = device
}
})
},
onHide() {
// uni.removeStorageSync('hasRefresh')
},
onShow() {
console.log('WEB show方法')
const newURL=uni.getStorageSync('web-src')
this.src=newURL
if (uni.getStorageSync('canRefreshWeb')) {
uni.removeStorageSync('canRefreshWeb')
if (this.wv) {
const needReload = uni.getStorageSync('reloadFlag')
if (!needReload) {
console.log('刷新页面')
if (reloadTimeOut) clearTimeout(reloadTimeOut)
reloadTimeOut = setTimeout(() => {
this.wv.reload()
}, 1000)
} else {
console.log('不刷新页面')
}
}
}
},
onUnload() {
uni.$off('loadingSubnvue'); //移除监听配置的原生子窗体
},
methods: {
subnvue_open() {
this.subNVue = uni.getSubNVueById('loadingSubnvue'); //通过id获取nvue子窗体
this.subNVue.show();
},
handleMessage(e) {
const data = e.detail.data;
if (!data || data.lenght === 0) {
this.toast('调用APP方法报错');
return;
}
const {
name,
params
} = data[0];
if (!name) {
this.toast('缺少方法名', 'error')
return
}
if (this.isLogin) {
if (params) {
this[name](params)
} else {
this[name]()
}
}
},
//返回方法
GoBack(num){
console.log('wori')
try{
const self=this
uni.navigateBack({
delta:num,
success(res) {
console.log(res,'9877')
self.typePage=true
console.log(self.typePage,'resss')
}
})
}catch(err){
this.toast('返回失败')
console.log(err,'err')
}
},
UserToken(token) {
uni.setStorage({
key: 'm-token',
data: token,
success: () => {
console.log('m-token存储成功');
}
})
},
// 删除localtabbar
removeRefreshStorage() {
uni.removeStorageSync('hasRefresh')
console.log('删除了hasRefresh')
},
// 隐藏tabbar
hideLoading() {
// console.log('调用了APP的hideLoading方法')
uni.hideLoading()
},
// 隐藏tabbar
hideTabBar() {
uni.hideTabBar()
},
// 显示tabbar
showTabBar() {
uni.showTabBar()
},
// 获取当前WebView实例
GetWebView() {
const currentWebview = this.$scope.$getAppWebview();
let wv = currentWebview.children()[0];
return wv;
},
// 获取状态栏高度
GetStatusBarHei() {
try {
const windowInfo = uni.getWindowInfo()
const {
statusBarHeight
} = windowInfo;
this.GetWebView().evalJS("receiveStatusBarHei('" + statusBarHeight + "')")
} catch (err) {
console.log(err, '什么错')
this.toast('获取状态栏高度报错')
}
},
// 获取用户手机号
GetUserMobile() {
const self=this
try {
uni.getStorage({
key: 'l-mobile',
success: function(res) {
console.log(res, '结果')
const mobile = res.data;
self.GetWebView().evalJS("receiveUserMobile('" + mobile + "')")
},
fail: function(err) {
console.log(err, '报错了')
}
})
// const mobileCell = uni.getStorageSync('d-mobile')
// this.GetWebView().evalJS(`receiveUserMobile('${mobileCell}')`)
} catch (err) {
console.log(err, '什么错')
self.toast('获取用户手机号报错')
}
},
// 拨打电话
MakeCall(num) {
try {
uni.makePhoneCall({
phoneNumber: num
});
} catch (err) {
this.toast('拨打电话报错')
}
},
// Toast提示框
toast(title, type) {
uni.showToast({
icon: type ? type : "none",
title
})
},
// Toast 提示框
Toast(config) {
try {
uni.showToast({
...config
})
} catch (err) {
this.toast('提示框报错')
}
},
// 实名认证正面
Camera_OCR_Front(config) {
console.log('实名认证前面', config)
// 检查相机权限
// if (!this.CheckCamera()) return;
console.log('哈哈哈')
const that = this;
try {
console.log(LF, '忍忍')
LF.Camera_UP({
...config
}, async (res) => {
console.log(res, 'res-front1')
if (res.code == 1 && res.info) {
let chacheImg = res.standardImage.replace(/\n/g, '')
if (res.info && res.info.rectifiedImage) delete res.info.rectifiedImage;
const result = {
info: res.info
}
UploadFile(config, `data:image/png;base64,${chacheImg}`).then(file => {
result.fileUrl = file.fileUrl
if (file.statusCode === 200) {
that.wv.evalJS(`receiveOcrFront('${JSON.stringify(result)}')`)
uni.showToast({
icon: "success",
title: "图片上传成功"
})
} else {
uni.showToast({
icon: "success",
title: "图片上传失败"
})
}
}).catch(err => {
console.log(err)
uni.showToast({
icon: 'error',
title: "图片上传失败"
})
})
} else if (res.code == 10) {
uni.showToast({
icon: "none",
title: "请重拍一张照片试一试"
})
} else {
uni.showToast({
icon: "none",
title: "请重拍一张照片试一试"
})
}
})
} catch (err) {
console.log(err, 'OCR识别错误')
}
},
// 实名认证反面
Camera_OCR_Back(config) {
// 检查相机权限
// if (!this.CheckCamera()) return;
const that = this;
try {
LF.Camera_UP({
...config
}, (res) => {
if (res.code == 1 && res.info) {
let chacheImg = res.standardImage.replace(/\n/g, '')
if (res.info && res.info.rectifiedImage) delete res.info.rectifiedImage;
const result = {
info: res.info
}
UploadFile(config, `data:image/png;base64,${chacheImg}`).then(file => {
result.fileUrl = file.fileUrl
if (file.statusCode === 200) {
that.wv.evalJS(`receiveOcrBack('${JSON.stringify(result)}')`)
uni.showToast({
icon: "success",
title: "图片上传成功"
})
} else {
uni.showToast({
icon: "success",
title: "图片上传失败"
})
}
}).catch(err => {
console.log(err)
uni.showToast({
icon: 'error',
title: "图片上传失败"
})
})
} else if (res.code == 10) {
uni.showToast({
icon: "none",
title: "请重拍一张照片试一试"
})
} else {
uni.showToast({
icon: "none",
title: "请重拍一张照片试一试"
})
}
})
} catch (err) {
console.log(err, 'OCR识别错误')
}
},
// 专门为OCR页面做的
SetReloadFlag(flag) {
if (flag === 'NO') {
uni.setStorageSync('reloadFlag', 'true')
} else {
if (uni.getStorageSync('reloadFlag')) uni.removeStorageSync('reloadFlag')
}
},
// 隐藏导航了
HideNavBar() {
try {
let pages = getCurrentPages();
let page = pages[pages.length - 1];
let currentWebView = page.$getAppWebview();
let titleNView = currentWebView.getStyle().titleNView;
console.log(titleNView, 'titleNView的值')
currentWebView.setStyle({
titleNView: false
})
} catch (err) {
this.toast('隐藏导航报错')
}
},
// 显示导航了
ShowNavBar() {
try {
let pages = getCurrentPages();
let page = pages[pages.length - 1];
let currentWebView = page.$getAppWebview();
let titleNView = currentWebView.getStyle().titleNView;
console.log(titleNView, 'titleNView的值')
currentWebView.setStyle({
titleNView: {}
})
} catch (err) {
this.toast('显示导航报错')
}
},
// 活体认证
async Camera_Live(config) {
// 检查相机权限
// if (!this.CheckCamera()) return;
const that = this;
try {
LF.Face_UP({
...config
}, (res) => {
if (res.code === 1000) {
const {
image
} = res;
const faceImage = image.replace(/\n/g, '')
const result = `data:image/png;base64,${faceImage}`;
UploadFile(config, result).then(file => {
if (file.statusCode === 200) {
const faceImgUrl = file.fileUrl;
// 提交活体检测
that.GetWebView().evalJS(
`receiveLiveBack(${JSON.stringify({ fileUrl: faceImgUrl })})`
)
} else {
uni.showToast({
icon: "success",
title: "认证失败"
})
}
}).catch(err => {
uni.showToast({
icon: 'error',
title: "认证失败"
})
})
}
})
} catch (err) {
console.log(err, 'LIVE活体识别错误')
}
},
// 获取设备信息
async GetDeviceInfo() {
try {
const res = await loadLocation();
this.GetWebView().evalJS(`receiveGetDeviceInfo('${JSON.stringify(res)}')`)
} catch (err) {
console.log(err, '设备信息报错')
this.GetWebView().evalJS(`receiveGetDeviceInfo('${JSON.stringify(err)}')`)
}
},
// 获取全部通讯录
GetContacts() {
const that = this;
try {
CheckContactPermission((data) => {
that.GetWebView().evalJS(`receiveContactsBack('${JSON.stringify(data)}')`)
})
} catch (err) {
console.log(err, '获取全部用户通讯录错误')
}
},
// 通讯录选择
PickContact() {
const that = this;
try {
CheckContactPermission((data) => {
SelectContact((contact) => {
that.GetWebView().evalJS(
`receivePickContactsBack('${JSON.stringify(contact)}')`)
})
})
} catch (err) {
console.log(err, '选择用户通讯录错误')
}
},
// 图片选择上传
PickImage(config) {
console.log(config, '参数')
const that = this;
try {
uni.chooseImage({
count: 1,
sourceType: ["album", "camera"],
success: (res) => {
if (res.tempFiles) {
const file = res.tempFiles[0];
UploadFile(config, file, true).then(file => {
if (file.statusCode === 200) {
const faceImgUrl = file.fileUrl;
console.log(faceImgUrl, '上传成功后的地址')
// 提交活体检测
that.GetWebView().evalJS(`receiveImage(${JSON.stringify({ fileUrl: file.fileUrl })})`
)
} else {
uni.showToast({
icon: "success",
title: "上传图片失败"
})
}
}).catch(err => {
uni.showToast({
icon: 'error',
title: "上传图片报错"
})
})
}
},
fail: () => {
console.log('选择图片报错')
},
});
} catch (err) {
console.log(err, 'H5调用PickImage方法报错')
}
},
// 检查文件和相机权限
async CheckFileAndCamera() {
const that = this;
if (plus.os.name == "iOS") {
const iosFirstCamera = uni.getStorageSync("iosFirstCamera"); // 是不是第一次开启相机
if (iosFirstCamera !== "false") {
uni.setStorageSync("iosFirstCamera", "false"); // 设为false就代表不是第一次开启相机
} else {
if (!Permission.judgeIosPermission('camera') || Permission.judgeIosPermission('photoLibrary')) {
that.GetWebView().evalJS(`receiveCheckFileAndCamera(${JSON.stringify({ flag: "false" })})`);
return false
}
}
} else {
const cameraFlag = await Permission.requestAndroidPermission('android.permission.CAMERA');
const fileFlag = await Permission.requestAndroidPermission('android.permission.READ_EXTERNAL_STORAGE');
if (cameraFlag != 1 || fileFlag != 1) {
that.GetWebView().evalJS(`receiveCheckFileAndCamera(${JSON.stringify({ flag: "false" })})`)
return false
}
}
that.GetWebView().evalJS(`receiveCheckFileAndCamera(${JSON.stringify({ flag: "true" })})`)
return true;
},
// 检测相机权限
async CheckCamera() {
const that = this;
if (plus.os.name == "iOS") {
const iosFirstCamera = uni.getStorageSync("iosFirstCamera"); // 是不是第一次开启相机
if (iosFirstCamera !== "false") {
uni.setStorageSync("iosFirstCamera", "false"); // 设为false就代表不是第一次开启相机
} else {
if (!Permission.judgeIosPermission('camera')) {
that.GetWebView().evalJS(`receiveCheckCamera(${JSON.stringify({ flag: "false" })})`);
uni.showModal({
title: "提示",
content: "您已经关闭相机权限,去设置",
success: function (res) {
if (res.confirm) {
Permission.gotoAppPermissionSetting();
}
},
});
return false
}
}
} else {
const result = await Permission.requestAndroidPermission('android.permission.CAMERA');
if (result != 1) {
uni.showModal({
title: "提示",
content: "您已经关闭相机权限,去设置",
success: function (res) {
if (res.confirm) {
Permission.gotoAppPermissionSetting();
}
}
})
that.GetWebView().evalJS(`receiveCheckCamera(${JSON.stringify({ flag: "false" })})`)
return false
}
}
that.GetWebView().evalJS(`receiveCheckCamera(${JSON.stringify({ flag: "true" })})`)
return true;
}
}
}
</script>
<style lang="less" scoped>
.page-web {
width: 100vw;
height: 100vh;
web-view {
width: 100%;
height: 100%;
}
}
</style>
\ No newline at end of file
var isReady=false;var onReadyCallbacks=[];
var isServiceReady=false;var onServiceReadyCallbacks=[];
var __uniConfig = {"pages":["pages/index/index","pages/sort/index","pages/my/index","pages/recruit/index","pages/recruitResult/index","pages/category/category","pages/application/application","pages/myneed/myneed","pages/Ineed/Ineed","pages/productDetails/productDetails","pages/detailResult/detailResult","pages/useFeed/useFeed","pages/lookGoods/lookGoods","pages/login/login","pages/prolist/prolist","pages/setting/setting","pages/contact/contact","pages/web/contact","pages/webview/webview","pages/websrc/websrc","pages/web/web","pages/bill/indexs","pages/finance/index","pages/app-update/index","pages/agreement/index"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#FFFFFF","backgroundColor":"#F8F8F8","bounce":"none"},"tabBar":{"borderStyle":"white","color":"#BBBBBB","selectedColor":"#2263E6","list":[{"pagePath":"pages/index/index","iconPath":"/static/tab/indexfh.png","selectedIconPath":"/static/tab/indexf.png","text":"首页"},{"pagePath":"pages/web/web","iconPath":"/static/tab/index-h.png","selectedIconPath":"/static/tab/index.png","text":"贷款"},{"pagePath":"pages/sort/index","iconPath":"/static/tab/sort-h.png","selectedIconPath":"/static/tab/sort.png","text":"分类"},{"pagePath":"pages/my/index","iconPath":"/static/tab/my-h.png","selectedIconPath":"/static/tab/my.png","text":"我的"}]},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"多典花","compilerVersion":"4.24","entryPagePath":"pages/index/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/index/index","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":false,"navigationStyle":"custom","bounce":"none"}},{"path":"/pages/sort/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"款式"}},{"path":"/pages/my/index","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationStyle":"custom"}},{"path":"/pages/recruit/index","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"鉴定师招聘"}},{"path":"/pages/recruitResult/index","meta":{},"window":{"enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/category/category","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"选择鉴定品类"}},{"path":"/pages/application/application","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"我的鉴定申请"}},{"path":"/pages/myneed/myneed","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"我需要的"}},{"path":"/pages/Ineed/Ineed","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"我需要"}},{"path":"/pages/productDetails/productDetails","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"商品详情"}},{"path":"/pages/detailResult/detailResult","meta":{},"window":{"enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/useFeed/useFeed","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"用户反馈"}},{"path":"/pages/lookGoods/lookGoods","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":""}},{"path":"/pages/login/login","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"登录"}},{"path":"/pages/prolist/prolist","meta":{},"window":{"navigationBarTitleText":"相关协议"}},{"path":"/pages/setting/setting","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"设置"}},{"path":"/pages/contact/contact","meta":{},"window":{"navigationBarTitleText":"通讯录","enablePullDownRefresh":false}},{"path":"/pages/web/contact","meta":{},"window":{"navigationBarTitleText":"通讯录","enablePullDownRefresh":false}},{"path":"/pages/webview/webview","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":""}},{"path":"/pages/websrc/websrc","meta":{},"window":{"navigationBarTitleText":"454566","enablePullDownRefresh":false}},{"path":"/pages/web/web","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationStyle":"custom","enablePullDownRefresh":false,"navigationBarTitleText":""}},{"path":"/pages/bill/indexs","meta":{},"window":{"navigationBarTitleText":"账单"}},{"path":"/pages/finance/index","meta":{},"window":{"enablePullDownRefresh":true,"navigationStyle":"custom"}},{"path":"/pages/app-update/index","meta":{},"window":{"navigationStyle":"custom","navigationBarTitleText":"","enablePullDownRefresh":false,"bounce":"none","animationType":"fade-in","background":"transparent","backgroundColor":"rgba(0,0,0,0)","webviewBGTransparent":true,"mask":"none"}},{"path":"/pages/agreement/index","meta":{},"window":{"navigationStyle":"custom","navigationBarTitleText":"","enablePullDownRefresh":false,"bounce":"none","animationType":"fade-in","background":"transparent","backgroundColor":"rgba(0,0,0,0)","webviewBGTransparent":true,"mask":"none"}}];
var __uniConfig = {"pages":["pages/index/index","pages/sort/index","pages/my/index","pages/recruit/index","pages/recruitResult/index","pages/category/category","pages/application/application","pages/myneed/myneed","pages/Ineed/Ineed","pages/productDetails/productDetails","pages/detailResult/detailResult","pages/useFeed/useFeed","pages/lookGoods/lookGoods","pages/login/login","pages/prolist/prolist","pages/setting/setting","pages/contact/contact","pages/web/contact","pages/webview/webview","pages/websrc/websrc","pages/web/web","pages/web/websrc","pages/bill/indexs","pages/finance/index","pages/app-update/index","pages/agreement/index"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#FFFFFF","backgroundColor":"#F8F8F8","bounce":"none"},"tabBar":{"borderStyle":"white","color":"#BBBBBB","selectedColor":"#2263E6","list":[{"pagePath":"pages/index/index","iconPath":"/static/tab/indexfh.png","selectedIconPath":"/static/tab/indexf.png","text":"首页"},{"pagePath":"pages/web/web","iconPath":"/static/tab/index-h.png","selectedIconPath":"/static/tab/index.png","text":"贷款"},{"pagePath":"pages/sort/index","iconPath":"/static/tab/sort-h.png","selectedIconPath":"/static/tab/sort.png","text":"分类"},{"pagePath":"pages/my/index","iconPath":"/static/tab/my-h.png","selectedIconPath":"/static/tab/my.png","text":"我的"}]},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"多典花","compilerVersion":"4.24","entryPagePath":"pages/index/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/index/index","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":false,"navigationStyle":"custom","bounce":"none"}},{"path":"/pages/sort/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"款式"}},{"path":"/pages/my/index","meta":{"isQuit":true,"isTabBar":true},"window":{"enablePullDownRefresh":true,"navigationStyle":"custom"}},{"path":"/pages/recruit/index","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"鉴定师招聘"}},{"path":"/pages/recruitResult/index","meta":{},"window":{"enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/category/category","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"选择鉴定品类"}},{"path":"/pages/application/application","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"我的鉴定申请"}},{"path":"/pages/myneed/myneed","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"我需要的"}},{"path":"/pages/Ineed/Ineed","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"我需要"}},{"path":"/pages/productDetails/productDetails","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"商品详情"}},{"path":"/pages/detailResult/detailResult","meta":{},"window":{"enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/useFeed/useFeed","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"用户反馈"}},{"path":"/pages/lookGoods/lookGoods","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":""}},{"path":"/pages/login/login","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"登录"}},{"path":"/pages/prolist/prolist","meta":{},"window":{"navigationBarTitleText":"相关协议"}},{"path":"/pages/setting/setting","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":"设置"}},{"path":"/pages/contact/contact","meta":{},"window":{"navigationBarTitleText":"通讯录","enablePullDownRefresh":false}},{"path":"/pages/web/contact","meta":{},"window":{"navigationBarTitleText":"通讯录","enablePullDownRefresh":false}},{"path":"/pages/webview/webview","meta":{},"window":{"enablePullDownRefresh":false,"navigationBarTitleText":""}},{"path":"/pages/websrc/websrc","meta":{},"window":{"navigationBarTitleText":"454566","enablePullDownRefresh":false}},{"path":"/pages/web/web","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationStyle":"custom","enablePullDownRefresh":false,"navigationBarTitleText":""}},{"path":"/pages/web/websrc","meta":{},"window":{"navigationStyle":"custom","enablePullDownRefresh":false}},{"path":"/pages/bill/indexs","meta":{},"window":{"navigationBarTitleText":"账单"}},{"path":"/pages/finance/index","meta":{},"window":{"enablePullDownRefresh":true,"navigationStyle":"custom"}},{"path":"/pages/app-update/index","meta":{},"window":{"navigationStyle":"custom","navigationBarTitleText":"","enablePullDownRefresh":false,"bounce":"none","animationType":"fade-in","background":"transparent","backgroundColor":"rgba(0,0,0,0)","webviewBGTransparent":true,"mask":"none"}},{"path":"/pages/agreement/index","meta":{},"window":{"navigationStyle":"custom","navigationBarTitleText":"","enablePullDownRefresh":false,"bounce":"none","animationType":"fade-in","background":"transparent","backgroundColor":"rgba(0,0,0,0)","webviewBGTransparent":true,"mask":"none"}}];
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}});
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -27,7 +27,7 @@ export const Jump = function (url, type='navigate') {
console.log("跳转到其它APP 或者 小程序 或者其它的内容")
break;
}
console.log(targetPath,'targetPath')
switch (type) {
case 'redirect':
uni.redirectTo({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment