|
@@ -74,7 +74,6 @@ import 'swiper/dist/css/swiper.css'
|
74
|
74
|
import { swiper, swiperSlide } from 'vue-awesome-swiper'
|
75
|
75
|
import { createNamespacedHelpers } from 'vuex'
|
76
|
76
|
import MainPageContainer from '../../../components/common/MainPageContainer'
|
77
|
|
-import { APIBase } from '@/util/constant'
|
78
|
77
|
|
79
|
78
|
const { mapState: mapUserState, mapActions: mapUserActions, mapMutations: mapUserMutations } = createNamespacedHelpers('user')
|
80
|
79
|
export default {
|
|
@@ -134,7 +133,8 @@ export default {
|
134
|
133
|
]),
|
135
|
134
|
...mapUserActions([
|
136
|
135
|
'GetCurrentShopOrderList',
|
137
|
|
- 'SendPrize'
|
|
136
|
+ 'SendPrize',
|
|
137
|
+ 'AliPay'
|
138
|
138
|
]),
|
139
|
139
|
SendMoney () { // 派奖
|
140
|
140
|
if (this.DataLock || this.SelectNum === 0) return
|
|
@@ -145,7 +145,13 @@ export default {
|
145
|
145
|
CurrentOrder = { ...item }
|
146
|
146
|
}
|
147
|
147
|
})
|
148
|
|
- window.location.href = `${APIBase}api/shop/sent-award/order/${CurrentOrder.orderId}?returlURL=${encodeURIComponent(`${window.location.origin}/#/PaiJiang/PaiJiangGuanLi`)}&token=${window.localStorage.Jwt}`
|
|
148
|
+ this.AliPay({ urlData: { orderId: CurrentOrder.orderId }, queryData: { returlURL: encodeURIComponent(`${window.location.origin}/#/PaiJiang/PaiJiangGuanLi`) } }).then((res) => {
|
|
149
|
+ this.DataLock = false
|
|
150
|
+ window.location.href = res.data.data.payUrl
|
|
151
|
+ }).catch((res) => {
|
|
152
|
+ this.DataLock = false
|
|
153
|
+ })
|
|
154
|
+ // window.location.href = `${APIBase}api/shop/sent-award/order/${CurrentOrder.orderId}?returlURL=${encodeURIComponent(`${window.location.origin}/#/PaiJiang/PaiJiangGuanLi`)}&token=${window.localStorage.Jwt}`
|
149
|
155
|
// this.SendPrize({ urlData: { id: OrderId.join(',') } }).then(() => {
|
150
|
156
|
// this.Toast('派奖成功')
|
151
|
157
|
// this.PageList.splice(Index, 1)
|