|
@@ -314,6 +314,7 @@ export default {
|
|
|
goods_id: $this.selection_card.goods_id,
|
|
|
buy_num: 1
|
|
|
}
|
|
|
+
|
|
|
createOrder($params).then((res) => {
|
|
|
let $data = res.data
|
|
|
let $payment = $data.data
|
|
@@ -355,6 +356,11 @@ export default {
|
|
|
},
|
|
|
// 获取充值卡列表
|
|
|
get_card_list() {
|
|
|
+ wx.login({
|
|
|
+ success(res) {
|
|
|
+ console.log("微信登陆",res.code);
|
|
|
+ }
|
|
|
+ })
|
|
|
goodsCardList().then((res) => {
|
|
|
let $data = res.data.data
|
|
|
$this.time_cards = $data.time_card
|
|
@@ -378,9 +384,9 @@ export default {
|
|
|
// 切换显示
|
|
|
changeCardShow($id) {
|
|
|
console.log($id)
|
|
|
- if ($this.card_action_show == $id){
|
|
|
+ if ($this.card_action_show == $id) {
|
|
|
$this.card_action_show = 0
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
$this.card_action_show = $id
|
|
|
}
|
|
|
}
|
|
@@ -433,7 +439,7 @@ export default {
|
|
|
height: 103px;
|
|
|
background-position: center;
|
|
|
background-size: 100% 100%;
|
|
|
- margin:0px auto;
|
|
|
+ margin: 0px auto;
|
|
|
}
|
|
|
|
|
|
.gold {
|