Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cca8804e57 | |||
| 727d56e325 | |||
| 16c36577e7 | |||
| 64b7c90278 | |||
| 3091df43ee | |||
| 3bca9b1d81 | |||
| ec6bd2a68b |
@@ -2,7 +2,8 @@
|
||||
"version" : "1.0",
|
||||
"configurations" : [
|
||||
{
|
||||
"playground" : "custom",
|
||||
"customPlaygroundType" : "device",
|
||||
"playground" : "standard",
|
||||
"type" : "uni-app:app-android"
|
||||
},
|
||||
{
|
||||
|
||||
13
App.vue
13
App.vue
@@ -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
12
api/order/index.js
Normal 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'
|
||||
})
|
||||
}
|
||||
@@ -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() {
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
@@ -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" : {
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user