mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-23 21:36:38 +08:00
optimize charge
This commit is contained in:
parent
cf4ec2fa74
commit
d20bb79736
@ -33,7 +33,7 @@
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.loadOwnerAccount();
|
||||
//this.loadOwnerAccount();
|
||||
},
|
||||
methods: {
|
||||
loadOwnerAccount: function(_communityId) {
|
||||
|
||||
@ -52,6 +52,7 @@
|
||||
queryOwnerAccount
|
||||
} from '../../api/user/userApi.js';
|
||||
import {getCommunityId} from '@/api/community/communityApi.js';
|
||||
import {getWAppId} from '../../lib/java110/utils/StorageUtil.js'
|
||||
|
||||
import {payFeeApp,payFeeWechat} from '@/api/fee/feeApi.js';
|
||||
export default {
|
||||
@ -71,7 +72,7 @@
|
||||
this.appId = accountInfo.miniProgram.appId;
|
||||
// #endif
|
||||
// #ifdef H5
|
||||
this.appId = uni.getStorageSync(constant.mapping.W_APP_ID)
|
||||
this.appId = getWAppId();
|
||||
// #endif
|
||||
},
|
||||
methods: {
|
||||
@ -79,9 +80,6 @@
|
||||
let _that = this;
|
||||
context.getOwner(function(_ownerInfo) {
|
||||
if (_ownerInfo) {
|
||||
if(!_that.communityId){
|
||||
_that.communityId = _ownerInfo.communityId;
|
||||
}
|
||||
queryOwnerAccount({
|
||||
page: 1,
|
||||
row: 20,
|
||||
@ -131,7 +129,7 @@
|
||||
|
||||
payFeeWechat(this,{
|
||||
business: "preStoreOnline",
|
||||
communityId: getCommunityId(),
|
||||
communityId: this.communityId,
|
||||
acctId: this.account.acctId,
|
||||
feeName: '账户充值',
|
||||
receivedAmount: _receivedAmount,
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
</view>
|
||||
<view class="flex justify-start mtc-machine-port">
|
||||
<view v-for="(item,index) in ports" :key="index" class="port-item">
|
||||
<view class="item-1" :class="{'item-1-active':curPort.portId == item.portId}" @click="_switchPort(item)">
|
||||
<view class="item-1" :class="{'item-1-active':curPort.portId == item.portId || item.state=='WORK'}" @click="_switchPort(item)">
|
||||
<view class="port-name">
|
||||
{{item.portName}}
|
||||
</view>
|
||||
@ -103,10 +103,18 @@
|
||||
this.communityId = options.communityId;
|
||||
this._loadChargeMachines();
|
||||
this._loadChargeMachinePorts();
|
||||
let _that = this;
|
||||
setTimeout(function(){
|
||||
_that.$refs.accRef.loadOwnerAccount(_that.communityId);
|
||||
},1000);
|
||||
},
|
||||
onShow: function(options) {
|
||||
this._dealChargeCoupons();
|
||||
this.$refs.accRef.loadOwnerAccount(this.communityId);
|
||||
|
||||
if(this.$refs.accRef){
|
||||
this.$refs.accRef.loadOwnerAccount(this.communityId);
|
||||
}
|
||||
|
||||
},
|
||||
methods: {
|
||||
_loadChargeMachines: function() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user