支付收银台,openid 动态读取

pull/17/head
YunaiV 2023-11-21 00:00:43 +08:00
parent 245a04aedc
commit 64ace657ac
2 changed files with 6 additions and 3 deletions

View File

@ -42,8 +42,10 @@
import * as PayChannelApi from '@/api/pay/channel.js';
import * as WalletApi from '@/api/pay/wallet.js';
import {fen2yuan} from "../../../utils/util";
import { mapGetters } from "vuex";
export default {
components: {
computed: mapGetters([ 'openid' ]),
components: {
CountDown,
numberScroll
},
@ -165,7 +167,8 @@
returnUrl: this.getPayReturnUrl(),
channelExtras: { // TODO
// openid: "ockUAwIZ-0OeMZl9ogcZ4ILrGba0" // wx_pub openid
openid: "oLefc4g5GjKWHJjLjMSXB3wX0fD0" // wx_lite openid
// openid: "oLefc4g5GjKWHJjLjMSXB3wX0fD0" // wx_lite openid
openid: this.openid
}
}).then(res => {
this.handleSubmitOrderResult(res.data);

View File

@ -15,7 +15,7 @@ const state = {
backgroundColor: "#fff",
userInfo: Cache.get(USER_INFO)?JSON.parse(Cache.get(USER_INFO)):null,
uid: Cache.get(UID) || null,
openid: Cache.get(OPENID) || null,
openid: Cache.get(OPENID) || null,
homeActive: false,
chatUrl: Cache.get('chatUrl') || '',
systemPlatform: Cache.get(PLATFORM)?Cache.get(PLATFORM):'',