diff --git a/components/fee/qrcode-owe-fee.vue b/components/fee/qrcode-owe-fee.vue index ee7ddb2..f221418 100644 --- a/components/fee/qrcode-owe-fee.vue +++ b/components/fee/qrcode-owe-fee.vue @@ -152,7 +152,16 @@ }, checkboxChange: function(e) { + let _that =this; this.feeIds = e.detail.value; + _that.fees.forEach(function(_item) { + _item.selected = "0"; + _that.feeIds.forEach(_feeId =>{ + if(_item.feeId == _feeId){ + _item.selected = "1"; + } + }); + }) this.computeAmount(); }, _getDeadlineTime: function(_fee) { @@ -203,4 +212,8 @@ .line-height { line-height: 100upx; } + + .uni-checkbox-input{ + + } diff --git a/pages/fee/cashier.vue b/pages/fee/cashier.vue index 2e77f7c..bbd8cde 100644 --- a/pages/fee/cashier.vue +++ b/pages/fee/cashier.vue @@ -7,7 +7,10 @@ {{money}} - + + + + @@ -59,31 +62,34 @@ this.openId = options.openId; this.communityId = options.communityId; this.cashierUserId = options.cashierUserId; - - if (!isNotNull(this.openId)) { - //刷新 openId - // #ifdef H5 - if (isWxOrAli() == 'ALIPAY') { - this._refreshAliPayOpenId(); + let _that =this; + this._loadAppId(function(){ + if (!isNotNull(_that.openId)) { + //刷新 openId + // #ifdef H5 + if (isWxOrAli() == 'ALIPAY') { + _that._refreshAliPayOpenId(); + return; + } + //todo h5 情况 + _that._refreshWechatOpenId(); return; + // #endif + + // #ifdef MP-WEIXIN + _that._refreshWechatMiniOpenId(); + // #endif } - //todo h5 情况 - this._refreshWechatOpenId(); - return; - // #endif - - // #ifdef MP-WEIXIN - this._refreshWechatMiniOpenId(); - // #endif - } + }); + this.money = options.money; this.business = options.business; this.data = uni.getStorageSync('doing_cashier'); - this._loadAppId(); + }, methods: { - _loadAppId:function(){ + _loadAppId:function(_call){ let _objType = "1100"; // todo public // #ifdef MP-WEIXIN _objType = "1000"; @@ -95,13 +101,14 @@ objType:_objType }).then(_data =>{ _that.appId = _data.data; + _call(); }) }, _refreshWechatOpenId: function() { let _redirectUrl = window.location.href; refreshUserOpenId({ redirectUrl: _redirectUrl, - communityId: this.communityId, + wAppId: this.appId, }).then(_data => { console.log(_data, 123) if (_data.code == 0) { diff --git a/pages/fee/payQrCode.vue b/pages/fee/payQrCode.vue index 5d3b730..273572d 100644 --- a/pages/fee/payQrCode.vue +++ b/pages/fee/payQrCode.vue @@ -164,7 +164,7 @@ .tips { text-align: center; - margin: 80rpx 0; + margin: 40rpx 0; font-size: 12pt; margin-bottom: 20upx; color: #888888;