Skip to content

Commit

Permalink
支付收银台,openid 动态读取
Browse files Browse the repository at this point in the history
  • Loading branch information
YunaiV committed Nov 20, 2023
1 parent 245a04a commit 64ace65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions pages/goods/cashier/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion store/modules/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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):'',
Expand Down

0 comments on commit 64ace65

Please sign in to comment.