修复:配送商 - 缴费记录中支付成功后跳转页面错误

This commit is contained in:
wuhui_zzw 2024-06-20 11:03:40 +08:00
parent 316d9a7383
commit 93d8f9e708
1 changed files with 3 additions and 1 deletions

View File

@ -57,7 +57,7 @@
@onChangeFun='onChangeFun' @onChangeFun='onChangeFun'
:order_id="pay_order_id" :order_id="pay_order_id"
:totalPrice='totalPrice' :totalPrice='totalPrice'
:returnUrl="'/pages/agent/invite/record'"> :returnUrl="return_url">
</payment> </payment>
</view> </view>
</template> </template>
@ -119,11 +119,13 @@ export default {
pay_close: false, pay_close: false,
pay_order_id: '', pay_order_id: '',
totalPrice: 0, totalPrice: 0,
return_url: '',
} }
}, },
onLoad(options) { onLoad(options) {
let _this = this; let _this = this;
_this.agent_id = options.agent_id || 0; _this.agent_id = options.agent_id || 0;
_this.return_url = `/pages/agent/delivery/payment_record?agent_id=${_this.agent_id}`;
// agent_id <= 0 // agent_id <= 0
if(Number(_this.agent_id) <= 0){ if(Number(_this.agent_id) <= 0){
_this.$util.Tips({ _this.$util.Tips({