mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-24 05:46:04 +08:00
优化代码
This commit is contained in:
parent
3c9a8e7481
commit
5975bfa813
@ -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'
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 设置
|
// 设置
|
||||||
|
|||||||
@ -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() {
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user