增加剧集解锁价格阶梯
This commit is contained in:
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'
|
||||
})
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
//打包时修改env的值即可
|
||||
const env = 'production' //test,production,local
|
||||
const env = 'local' //test,production,local
|
||||
|
||||
export const encryptKey = '1234567890123456' // http数据加解密的key
|
||||
|
||||
@@ -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';
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
"name" : "斯耀短剧",
|
||||
"appid" : "__UNI__E0B05B1",
|
||||
"description" : "",
|
||||
"versionName" : "1.3.3",
|
||||
"versionCode" : 133,
|
||||
"versionName" : "1.3.4",
|
||||
"versionCode" : 134,
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus" : {
|
||||
|
||||
Reference in New Issue
Block a user