|
@@ -34,32 +34,4 @@ export const musicBuy = (item: any, callBack?: any, moreQuery = {}) => {
|
|
|
isOpenLight: true
|
|
|
}
|
|
|
})
|
|
|
- return
|
|
|
- // play :0 不能看,1 能看
|
|
|
- const path =
|
|
|
- !item.play && item.chargeType === 'VIP' ? '/memberCenter' : '/orderDetail'
|
|
|
- if (!item.play && item.chargeType === 'VIP') {
|
|
|
- Dialog.confirm({
|
|
|
- title: '提示',
|
|
|
- message: '您还不是会员,是否加入会员?',
|
|
|
- confirmButtonColor: 'var(--van-primary)'
|
|
|
- }).then(() => {
|
|
|
- callBack && callBack(path)
|
|
|
- })
|
|
|
- return
|
|
|
- } else if (!item.play && item.chargeType === 'CHARGE') {
|
|
|
- orderStatus.orderObject.orderType = 'MUSIC'
|
|
|
- orderStatus.orderObject.orderName = item.musicSheetName
|
|
|
- orderStatus.orderObject.orderDesc = item.musicSheetName
|
|
|
- orderStatus.orderObject.actualPrice = item.musicPrice
|
|
|
- orderStatus.orderObject.orderList = [
|
|
|
- {
|
|
|
- orderType: 'MUSIC',
|
|
|
- goodsName: item.musicSheetName,
|
|
|
- actualPrice: item.musicPrice,
|
|
|
- ...item
|
|
|
- }
|
|
|
- ]
|
|
|
- callBack && callBack(path)
|
|
|
- }
|
|
|
}
|