Commit b8c4fbee authored by ly's avatar ly

多典花

parent 329f56c9
No preview for this file type
...@@ -150,6 +150,13 @@ ...@@ -150,6 +150,13 @@
"navigationBarTitleText": "" "navigationBarTitleText": ""
} }
}, },
{
"path": "pages/web/websrc",
"style": {
"navigationStyle": "custom",
"enablePullDownRefresh": false
}
},
{ {
"path": "pages/bill/indexs", "path": "pages/bill/indexs",
"style": { "style": {
......
No preview for this file type
...@@ -174,8 +174,18 @@ export default { ...@@ -174,8 +174,18 @@ export default {
} }
// 埋点结束 // 埋点结束
if (!isLogin()) this.JumpToLogin() if (!isLogin()) {
else this.Go(item.tager) 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 { ...@@ -185,11 +185,19 @@ export default {
switch (item.title) { switch (item.title) {
case "我的还款": case "我的还款":
this.buryingPoint('app:my_repayment_click') 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; break;
case "申请记录": case "申请记录":
this.buryingPoint('app:my_application_record_click') 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; break;
default: default:
break; break;
......
...@@ -36,6 +36,7 @@ export default { ...@@ -36,6 +36,7 @@ export default {
} }
}, },
deviceStatus: '', deviceStatus: '',
typePage:false,
}; };
}, },
onBackPress(e) { onBackPress(e) {
...@@ -71,7 +72,7 @@ export default { ...@@ -71,7 +72,7 @@ export default {
this.wv && this.wv.evalJS(`callback({ 'action': 'OnShow' })`) this.wv && this.wv.evalJS(`callback({ 'action': 'OnShow' })`)
}, },
async onLoad(option) { async onLoad(option) {
console.log(option,'参数') console.log(option,'参数555')
const that = this const that = this
if (option.src) { if (option.src) {
...@@ -90,6 +91,9 @@ export default { ...@@ -90,6 +91,9 @@ export default {
}, },
onShow() { onShow() {
console.log('WEB show方法') console.log('WEB show方法')
// if (option.src) {
// this.src = option.src
// }
if (uni.getStorageSync('canRefreshWeb')) { if (uni.getStorageSync('canRefreshWeb')) {
uni.removeStorageSync('canRefreshWeb') uni.removeStorageSync('canRefreshWeb')
if (this.wv) { if (this.wv) {
...@@ -105,6 +109,9 @@ export default { ...@@ -105,6 +109,9 @@ export default {
} }
} }
} }
let pagearr = getCurrentPages();//获取应用页面栈
let currentPage = pagearr[pagearr.length - 1];//获取当前页面信息
console.log('option:' , currentPage.options)//获取页面传递的信息
}, },
onUnload() { onUnload() {
uni.$off('loadingSubnvue'); //移除监听配置的原生子窗体 uni.$off('loadingSubnvue'); //移除监听配置的原生子窗体
...@@ -224,6 +231,26 @@ export default { ...@@ -224,6 +231,26 @@ export default {
title 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 提示框
Toast(config) { Toast(config) {
try { try {
......
This diff is collapsed.
This diff is collapsed.
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') { ...@@ -27,7 +27,7 @@ export const Jump = function (url, type='navigate') {
console.log("跳转到其它APP 或者 小程序 或者其它的内容") console.log("跳转到其它APP 或者 小程序 或者其它的内容")
break; break;
} }
console.log(targetPath,'targetPath')
switch (type) { switch (type) {
case 'redirect': case 'redirect':
uni.redirectTo({ 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