|
@@ -119,8 +119,12 @@
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
- aPrice() {
|
|
|
- return (this.SelectNum - 1) * this.price
|
|
|
+ aPrice() {
|
|
|
+ if (this.fetch.disabled) {
|
|
|
+ return (this.SelectNum - 1) * this.price
|
|
|
+ } else {
|
|
|
+ return (this.SelectNum) * this.price
|
|
|
+ }
|
|
|
},
|
|
|
rpxNum() {
|
|
|
return this.boxWidth / 750
|
|
@@ -411,12 +415,25 @@
|
|
|
buy : function(seat) {
|
|
|
seat = seat.join(',');
|
|
|
var self = this;
|
|
|
- this.Dever.confirm('确定购买座位吗?公测期间免费~', function() {
|
|
|
+ this.Dever.confirm('确定购买座位吗?第一个座位免费哦~', function() {
|
|
|
+ var data = {};
|
|
|
+ data.code = self.Dever.config.code;
|
|
|
+ data.seat = seat;
|
|
|
+ data.content_id = self.type_id;
|
|
|
+ data.index = self.index;
|
|
|
+ var location = 'dream/view?code='+self.Dever.config.code + '&name=' + self.Dever.config.name;
|
|
|
+ data.refer = self.Dever.host + '/' + location;
|
|
|
+ self.Dever.post('app/user/?l=pay.seat', data, function(t) {
|
|
|
+ self.Dever.pay(t, location, '支付失败');
|
|
|
+ });
|
|
|
+
|
|
|
+ /*
|
|
|
self.Dever.post('app/user/?l=api.seatSave', {code:self.Dever.config.code, seat:seat, content_id : self.type_id}, function(t) {
|
|
|
self.Dever.alert('选座成功,您可以点击头像发布内容~');
|
|
|
self.resetSeat();
|
|
|
self.initData(self.hall);
|
|
|
- });
|
|
|
+ });
|
|
|
+ */
|
|
|
})
|
|
|
|
|
|
},
|