增加剧集解锁价格阶梯

This commit is contained in:
2025-12-15 14:40:29 +08:00
parent 16c36577e7
commit 727d56e325
4 changed files with 32 additions and 6 deletions

View File

@@ -225,7 +225,8 @@
</view>
<view class="pay-list-item" @click="payBtnClick('money', 1)">
<!-- <image class="hot" src="@/static/images/hot.png" mode=""></image> -->
<text class="u-font-28 font-bold">{{ nowDanjiPrice }}元解锁单集视频</text>
<!-- <text class="u-font-28 font-bold">{{ nowDanjiPrice }}元解锁单集视频</text> -->
<text class="u-font-28 font-bold">{{ nowNewDanjiPrice }}元解锁单集视频</text>
</view>
</view>
</view>
@@ -321,6 +322,7 @@
</template>
<script setup>
import {getPayMoney} from '@/api/order/index.js'
import { toBindWx } from '@/utils/wx.js';
import { useCommonStore } from '@/store/common.js';
import { getElRect } from '@/utils/util.js';
@@ -769,6 +771,8 @@ async function popupShow(key = 'show', item, index) {
}
if (key == 'pay') {
const res = await Api.getPayTips();
await getDanjiPrice()
const numbers = extractNumbers(res);
console.log(numbers);
if (numbers.length >= 2) {
@@ -1027,6 +1031,16 @@ const nowDanjiPrice = computed(() => {
return videoList.value[current.value].price;
});
const nowNewDanjiPrice=ref(0);
async function getDanjiPrice(){
const res=await getPayMoney({
y_price:nowDanjiPrice.value,
})
nowNewDanjiPrice.value=res
}
function loadmore() {
console.log('loadmore');
}