优化代码

This commit is contained in:
java110 2021-11-26 11:27:24 +08:00
parent 3c9a8e7481
commit 5975bfa813
3 changed files with 7 additions and 4 deletions

View File

@ -190,7 +190,7 @@
return; return;
} }
this.vc.navigateTo({ this.vc.navigateTo({
url: './myMenu?pageSign=myAssets' url: '/pages/my/myMenu?pageSign=myAssets'
}); });
}, },
// //
@ -204,7 +204,7 @@
return; return;
} }
this.vc.navigateTo({ this.vc.navigateTo({
url: './myMenu?pageSign=myServices' url: '/pages/my/myMenu?pageSign=myServices'
}); });
}, },
// //

View File

@ -1,7 +1,6 @@
<template> <template>
<view> <view>
<view class="cu-list menu margin-top"> <view class="cu-list menu margin-top">
<block v-if="pageSign == 'myAssets'"> <block v-if="pageSign == 'myAssets'">
<view class="cu-item arrow" @click="viewOwner()"> <view class="cu-item arrow" @click="viewOwner()">
<view class="content"> <view class="content">
@ -100,6 +99,7 @@
props: {}, props: {},
onLoad: function(options) { onLoad: function(options) {
this.pageSign = options.pageSign; this.pageSign = options.pageSign;
console.log(options,"123")
}, },
onShow: function() { onShow: function() {
}, },

View File

@ -62,8 +62,9 @@
// pages/payParkingFee/payParkingFee.js // pages/payParkingFee/payParkingFee.js
const context = require("../../context/Java110Context.js"); const context = require("../../context/Java110Context.js");
const constant = context.constant; const constant = context.constant;
// #ifdef H5
const WexinPayFactory = require('../../factory/WexinPayFactory.js'); const WexinPayFactory = require('../../factory/WexinPayFactory.js');
// #endif
import { import {
getTempCarFeeOrder, getTempCarFeeOrder,
toPayTempCarFee toPayTempCarFee
@ -133,6 +134,7 @@
toPayTempCarFee(_objData) toPayTempCarFee(_objData)
.then(_data=>{ .then(_data=>{
if (_data.code == '0') { if (_data.code == '0') {
// #ifdef H5
WexinPayFactory.wexinPay(_data, function() { WexinPayFactory.wexinPay(_data, function() {
uni.showToast({ uni.showToast({
title: "支付成功", title: "支付成功",
@ -142,6 +144,7 @@
delta:1 delta:1
}); });
}); });
// #endif
wx.hideLoading(); wx.hideLoading();
return; return;
} }