Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cca8804e57 | |||
| 727d56e325 | |||
| 16c36577e7 | |||
| 64b7c90278 | |||
| 3091df43ee | |||
| 3bca9b1d81 | |||
| ec6bd2a68b |
@@ -2,7 +2,8 @@
|
|||||||
"version" : "1.0",
|
"version" : "1.0",
|
||||||
"configurations" : [
|
"configurations" : [
|
||||||
{
|
{
|
||||||
"playground" : "custom",
|
"customPlaygroundType" : "device",
|
||||||
|
"playground" : "standard",
|
||||||
"type" : "uni-app:app-android"
|
"type" : "uni-app:app-android"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
11
App.vue
11
App.vue
@@ -1,12 +1,19 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
onLaunch: function() {
|
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 ');
|
console.log('App Launch ');
|
||||||
uni.setStorageSync('adRewardedNum', 0)
|
uni.setStorageSync('adRewardedNum', 0)
|
||||||
|
|
||||||
},
|
},
|
||||||
onShow: function() {
|
onShow: function() {},
|
||||||
},
|
|
||||||
onHide: function() {
|
onHide: function() {
|
||||||
console.log('App Hide');
|
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 = {
|
export const h5Config = {
|
||||||
production: 'https://web.hnsiyao.cn',
|
production: 'https://web.hnsiyao.cn',
|
||||||
test: 'https://web-api.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 = {
|
export const AppConfig = {
|
||||||
production: 'https://dj-api.hnsiyao.cn',
|
production: 'https://dj-api.hnsiyao.cn',
|
||||||
test: 'https://web-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() {
|
export function returnShareUrl() {
|
||||||
|
|||||||
@@ -225,7 +225,8 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="pay-list-item" @click="payBtnClick('money', 1)">
|
<view class="pay-list-item" @click="payBtnClick('money', 1)">
|
||||||
<!-- <image class="hot" src="@/static/images/hot.png" mode=""></image> -->
|
<!-- <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>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -321,6 +322,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import {getPayMoney} from '@/api/order/index.js'
|
||||||
import { toBindWx } from '@/utils/wx.js';
|
import { toBindWx } from '@/utils/wx.js';
|
||||||
import { useCommonStore } from '@/store/common.js';
|
import { useCommonStore } from '@/store/common.js';
|
||||||
import { getElRect } from '@/utils/util.js';
|
import { getElRect } from '@/utils/util.js';
|
||||||
@@ -641,9 +643,16 @@ async function payConfirm() {
|
|||||||
orderId: res.orders.ordersId
|
orderId: res.orders.ordersId
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
uni.showLoading()
|
||||||
|
console.log('延迟开始')
|
||||||
|
setTimeout(()=>{
|
||||||
|
uni.hideLoading()
|
||||||
|
console.log('延迟结束')
|
||||||
payOrder({
|
payOrder({
|
||||||
orderId: res.orders.ordersId
|
orderId: res.orders.ordersId
|
||||||
});
|
});
|
||||||
|
},200)
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
}
|
}
|
||||||
@@ -762,6 +771,8 @@ async function popupShow(key = 'show', item, index) {
|
|||||||
}
|
}
|
||||||
if (key == 'pay') {
|
if (key == 'pay') {
|
||||||
const res = await Api.getPayTips();
|
const res = await Api.getPayTips();
|
||||||
|
|
||||||
|
await getDanjiPrice()
|
||||||
const numbers = extractNumbers(res);
|
const numbers = extractNumbers(res);
|
||||||
console.log(numbers);
|
console.log(numbers);
|
||||||
if (numbers.length >= 2) {
|
if (numbers.length >= 2) {
|
||||||
@@ -1020,6 +1031,16 @@ const nowDanjiPrice = computed(() => {
|
|||||||
return videoList.value[current.value].price;
|
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() {
|
function loadmore() {
|
||||||
console.log('loadmore');
|
console.log('loadmore');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
"name" : "斯耀短剧",
|
"name" : "斯耀短剧",
|
||||||
"appid" : "__UNI__E0B05B1",
|
"appid" : "__UNI__E0B05B1",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.3.2",
|
"versionName" : "1.3.4",
|
||||||
"versionCode" : 132,
|
"versionCode" : 134,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|||||||
@@ -165,6 +165,7 @@ onReachBottom(() => {
|
|||||||
// 公告
|
// 公告
|
||||||
async function getMsg() {
|
async function getMsg() {
|
||||||
let res = await messageselectMessage();
|
let res = await messageselectMessage();
|
||||||
|
console.log('res',res)
|
||||||
let arr = [];
|
let arr = [];
|
||||||
let ids = uni.getStorageSync('ids');
|
let ids = uni.getStorageSync('ids');
|
||||||
res.list.forEach((ele) => {
|
res.list.forEach((ele) => {
|
||||||
@@ -177,7 +178,7 @@ async function getMsg() {
|
|||||||
arr.push(ele);
|
arr.push(ele);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
datas.noticeList = arr;
|
datas.noticeList = res.list;
|
||||||
if (arr.length) {
|
if (arr.length) {
|
||||||
if (ids.length) {
|
if (ids.length) {
|
||||||
uni.setStorageSync('ids', [...uni.getStorageSync('ids'), datas.noticeList[datas.cloneNum].id]);
|
uni.setStorageSync('ids', [...uni.getStorageSync('ids'), datas.noticeList[datas.cloneNum].id]);
|
||||||
|
|||||||
Reference in New Issue
Block a user