更新:增加课程和图书VIP购买及“我的”主页vip身份显示
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
<wd-popup
|
||||
v-model="visible"
|
||||
position="bottom"
|
||||
@close="handleClose"
|
||||
>
|
||||
<view class="goods-selector">
|
||||
<view v-if="selectedIndex !== -1" class="goods-info-mini">
|
||||
@@ -93,9 +94,20 @@ const handleConfirm = () => {
|
||||
return
|
||||
}
|
||||
|
||||
visible.value = false
|
||||
emit('confirm', props.goods[selectedIndex.value])
|
||||
}
|
||||
|
||||
/**
|
||||
* 关闭弹窗
|
||||
*/
|
||||
const handleClose = () => {
|
||||
visible.value = false
|
||||
emit('close')
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 监听显示状态,重置选择
|
||||
watch(() => props.show, (newVal: boolean) => {
|
||||
if (newVal && props.goods.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user