2025.03.21 工作代码提交
This commit is contained in:
parent
2c31837f88
commit
c5707aab24
|
@ -6,8 +6,8 @@ const config = {
|
||||||
// host: 'h5api',
|
// host: 'h5api',
|
||||||
// #endif
|
// #endif
|
||||||
// #ifndef H5
|
// #ifndef H5
|
||||||
// host: 'http://91f.xyz:8080',
|
host: 'http://91f.xyz:8080',
|
||||||
host: 'http://kiukjz.natappfree.cc',
|
// host: 'http://liuyd.cpolar.top ',
|
||||||
// #endif
|
// #endif
|
||||||
// 是否vivo显示
|
// 是否vivo显示
|
||||||
showVivo: true,
|
showVivo: true,
|
||||||
|
|
|
@ -71,8 +71,10 @@
|
||||||
const viewCount = ref('')
|
const viewCount = ref('')
|
||||||
// 播放量消耗的榴莲果
|
// 播放量消耗的榴莲果
|
||||||
const viewTotal = computed(() => {
|
const viewTotal = computed(() => {
|
||||||
let count = Number(viewCount.value) || 0
|
let total = Number(viewCount.value) || 0
|
||||||
return count * myVideoIds.length
|
let count = myVideoIds.length
|
||||||
|
if (collectVideo.value.id) count++
|
||||||
|
return total * count
|
||||||
})
|
})
|
||||||
// 已选择的自己视频列表
|
// 已选择的自己视频列表
|
||||||
const myVideos = computed(() => {
|
const myVideos = computed(() => {
|
||||||
|
@ -83,7 +85,7 @@
|
||||||
})
|
})
|
||||||
// 已选择的视频id
|
// 已选择的视频id
|
||||||
const videoIds = computed(() => {
|
const videoIds = computed(() => {
|
||||||
let result = [...myVideoIds, ]
|
let result = [...myVideoIds]
|
||||||
if (collectVideo.value.id) result.push(collectVideo.value.id)
|
if (collectVideo.value.id) result.push(collectVideo.value.id)
|
||||||
return result
|
return result
|
||||||
})
|
})
|
||||||
|
@ -281,12 +283,12 @@
|
||||||
// 二级密码
|
// 二级密码
|
||||||
secondPassword: ev,
|
secondPassword: ev,
|
||||||
// 视频id
|
// 视频id
|
||||||
videoIds: videoIds.value.join(','),
|
videoIds: videoIds.value,
|
||||||
}
|
}
|
||||||
}).then(rs => {
|
}).then(rs => {
|
||||||
if (rs.code === 200) {
|
if (rs.code === 200) {
|
||||||
util.alert('申请成功,请等待后台审核')
|
|
||||||
util.getPurse()
|
util.getPurse()
|
||||||
|
uni.navigateBack()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -399,7 +401,7 @@
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 二级支付 -->
|
<!-- 二级支付 -->
|
||||||
<payPwd ref="payPwdRef" @confirm="handlePwdConfirm" />
|
<payPwd ref="payPwdRef" :price="viewTotal" unitKey="durian" @confirm="handlePwdConfirm" />
|
||||||
|
|
||||||
<!-- 展播量 -->
|
<!-- 展播量 -->
|
||||||
<uni-popup ref="views" type="center">
|
<uni-popup ref="views" type="center">
|
||||||
|
|
|
@ -3,8 +3,8 @@ import {
|
||||||
} from 'vite';
|
} from 'vite';
|
||||||
import uni from '@dcloudio/vite-plugin-uni';
|
import uni from '@dcloudio/vite-plugin-uni';
|
||||||
|
|
||||||
// let target = 'http://91f.xyz:8080'
|
let target = 'http://91f.xyz:8080'
|
||||||
let target = 'http://kiukjz.natappfree.cc'
|
// let target = 'http://liuyd.cpolar.top '
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [uni()],
|
plugins: [uni()],
|
||||||
|
|
Loading…
Reference in New Issue