7 Commits
gyq ... ymf

Author SHA1 Message Date
cca8804e57 价格显示修改为获取接口 2025-12-16 09:53:52 +08:00
727d56e325 增加剧集解锁价格阶梯 2025-12-15 14:40:51 +08:00
16c36577e7 增加支付延迟,修复首页公告不显示 2025-10-29 10:27:23 +08:00
64b7c90278 去除生产环境打印 2025-08-25 16:30:46 +08:00
3091df43ee 版本升级,生成订单号等待300-600ms再支付 2025-08-25 16:14:21 +08:00
3bca9b1d81 1 2025-08-25 15:50:06 +08:00
ec6bd2a68b test 2025-08-25 15:19:49 +08:00
7 changed files with 55 additions and 13 deletions

View File

@@ -2,7 +2,8 @@
"version" : "1.0",
"configurations" : [
{
"playground" : "custom",
"customPlaygroundType" : "device",
"playground" : "standard",
"type" : "uni-app:app-android"
},
{

13
App.vue
View File

@@ -1,12 +1,19 @@
<script>
export default {
onLaunch: function() {
// 生产环境禁用所有 console 方法
if (process.env.NODE_ENV === 'production') {
const noop = () => {};
console.log = noop;
console.info = noop;
console.warn = noop;
console.error = noop;
}
console.log('App Launch ');
uni.setStorageSync('adRewardedNum',0)
uni.setStorageSync('adRewardedNum', 0)
},
onShow: function() {
},
onShow: function() {},
onHide: function() {
console.log('App Hide');
}

12
api/order/index.js Normal file
View File

@@ -0,0 +1,12 @@
import http from '@/http/http.js'
/**
* 获取最近观看
*/
export const getPayMoney = (data) => {
return http.request({
url: 'order/getPayMoney',
data: data,
method: 'POST'
})
}

View File

@@ -7,13 +7,13 @@ export const apiUrl = '/czg/'
export const h5Config = {
production: 'https://web.hnsiyao.cn',
test: 'https://web-api.hnsiyao.cn',
local: 'http://192.168.1.21:8100'
local: 'http://192.168.1.56:8787'
}
export const AppConfig = {
production: 'https://dj-api.hnsiyao.cn',
test: 'https://web-api.hnsiyao.cn',
local: 'http://192.168.1.41:8100'
local: 'http://192.168.1.56:8787'
}
export function returnShareUrl() {

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';
@@ -641,9 +643,16 @@ async function payConfirm() {
orderId: res.orders.ordersId
});
} else {
payOrder({
orderId: res.orders.ordersId
});
uni.showLoading()
console.log('延迟开始')
setTimeout(()=>{
uni.hideLoading()
console.log('延迟结束')
payOrder({
orderId: res.orders.ordersId
});
},200)
}
} else {
}
@@ -762,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) {
@@ -1020,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');
}

View File

@@ -2,8 +2,8 @@
"name" : "斯耀短剧",
"appid" : "__UNI__E0B05B1",
"description" : "",
"versionName" : "1.3.2",
"versionCode" : 132,
"versionName" : "1.3.4",
"versionCode" : 134,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@@ -165,6 +165,7 @@ onReachBottom(() => {
// 公告
async function getMsg() {
let res = await messageselectMessage();
console.log('res',res)
let arr = [];
let ids = uni.getStorageSync('ids');
res.list.forEach((ele) => {
@@ -177,7 +178,7 @@ async function getMsg() {
arr.push(ele);
}
});
datas.noticeList = arr;
datas.noticeList = res.list;
if (arr.length) {
if (ids.length) {
uni.setStorageSync('ids', [...uni.getStorageSync('ids'), datas.noticeList[datas.cloneNum].id]);