feat: 样式调整
This commit is contained in:
+13
-1
@@ -87,12 +87,24 @@ Page({
|
||||
lowestPrice = { label: prices[0].label, value: (prices[0].value / 100).toFixed(2) }
|
||||
}
|
||||
}
|
||||
// 按钮类型:用于 WXML 条件渲染
|
||||
// VIP 用户优先判断 —— 可播放全部频道
|
||||
var btnType = 'subscribe'
|
||||
if (gd.isVip) {
|
||||
btnType = isVipOnly ? 'vip-listen' : 'listen'
|
||||
} else if (isVipOnly) {
|
||||
btnType = 'vip-only'
|
||||
} else if (isFree || isSubscribed) {
|
||||
btnType = 'listen'
|
||||
}
|
||||
|
||||
return Object.assign({}, ch, {
|
||||
_isSubscribed: isSubscribed,
|
||||
_isFree: isFree,
|
||||
_isVipOnly: isVipOnly,
|
||||
_lowestPrice: lowestPrice,
|
||||
_canPlay: canPlay
|
||||
_canPlay: canPlay,
|
||||
_btnType: btnType
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user