修改接口问题

This commit is contained in:
duan
2025-01-02 10:37:35 +08:00
parent a9974eddca
commit 169bc3b4c8
11 changed files with 20 additions and 18 deletions

View File

@@ -11,9 +11,10 @@
// const ROOTPATH2 = "http://192.168.1.5:8100"; //后台服务域名
// const ROOTPATH1 = "http://192.168.1.41:8100/czg"; //
// const ROOTPATH = "http://192.168.1.41:8100/czg"; //后台服务域名
// 测试
const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg"; //
const ROOTPATH = "https://web-api.hnsiyao.cn/czg"; //后台服务域名
// const ROOTPATH = "http://192.168.1.41:8100/czg"; //后台服务域名
const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名

View File

@@ -424,7 +424,7 @@
async remoteGetPrizeIndex() {
this.result = ''
console.warn('###当前处于模拟的请求接口,并返回了中奖信息###')
const res = await this.$Request.getT('app/discSpinning/draw', {
const res = await this.$Request.getT('/app/discSpinning/draw', {
orderId: this.option.orderId || 2145
})
console.log(res);
@@ -476,7 +476,7 @@
orderId,
id
} = _this.result
_this.$Request.postJson('app/discSpinning/receive', _this.result).then(res => {
_this.$Request.postJson('/app/discSpinning/receive', _this.result).then(res => {
_this.result = ''
console.log(res)
if (res.code == 0) {

View File

@@ -53,7 +53,7 @@
orderId,
id
} = this.result
this.$Request.postJson('app/discSpinning/receive', this.result).then(res => {
this.$Request.postJson('/app/discSpinning/receive', this.result).then(res => {
this.result = ''
console.log(res)
if (res.code == 0) {
@@ -80,7 +80,7 @@
orderId,
id
} = this.result
this.$Request.postJson('app/discSpinning/receive', this.result).then(res => {
this.$Request.postJson('/app/discSpinning/receive', this.result).then(res => {
this.result = ''
console.log(res)
if (res.code == 0) {

View File

@@ -57,7 +57,7 @@
orderId,
id
} = this.result
this.$Request.postJson('app/discSpinning/receive', this.result).then(res => {
this.$Request.postJson('/app/discSpinning/receive', this.result).then(res => {
this.result = ''
console.log(res)
if (res.code == 0) {

View File

@@ -452,7 +452,7 @@ export default {
async remoteGetPrizeIndex() {
this.result = '';
console.warn('###当前处于模拟的请求接口,并返回了中奖信息###');
const res = await this.$Request.getT('app/discSpinning/draw', { source: this.source });
const res = await this.$Request.getT('/app/discSpinning/draw', { source: this.source });
this.freeNum--;
// this.getCount()
console.log(res);

View File

@@ -439,7 +439,7 @@
async remoteGetPrizeIndex() {
this.result=''
console.warn('###当前处于模拟的请求接口,并返回了中奖信息###')
const res = await this.$Request.getT('app/discSpinning/draw',{source:this.source})
const res = await this.$Request.getT('/app/discSpinning/draw',{source:this.source})
this.freeNum--
// this.getCount()
console.log(res);

View File

@@ -41,11 +41,11 @@
}
},
onLoad: function(e) {
console.log(e)
console.log(e,'debug')
if (e.moneyType) {
this.moneyType = e.moneyType
uni.setNavigationBarTitle({
title: e.moneyType === 1 ? '红包明细' : '金币明细'
title: e.moneyType == 1 ? '红包明细' : '金币明细'
});
}
if (e.viewType) {

View File

@@ -24,8 +24,8 @@
{
"path": "pages/task/prizeList",
"style": {
"navigationBarTitleText": "任务",
"navigationStyle": "custom"
"navigationBarTitleText": "任务"
// "navigationStyle": "custom"
}
},
@@ -373,7 +373,7 @@
"path": "yaoqing/ymf-yaoqing-home",
"style": {
"navigationBarTitleText": "分享好友",
"navigationStyle": "custom",
// "navigationStyle": "custom",
"h5": {
"titleNView": {
"backgroundColor": "#FFFFFF"

View File

@@ -1,17 +1,17 @@
<template>
<view class="">
<u-sticky :enable="enableIos">
<!-- <u-sticky :enable="enableIos">
<view class="search-box-ios">
<u-search bg-color="#f2f2f2" style="width: 100%;" placeholder="搜索更多资源" v-model="keywordIos"
:show-action="false" :animation="true" @search="getCourseListIos()"></u-search>
</view>
</u-sticky>
</u-sticky> -->
<view class="swiper flex align-center justify-center">
<view class="swiper-box">
<swiper :indicator-dots="true" class="swiper " :autoplay="true" interval="5000" duration="500"
:circular="true" style="width: 100%;height: 350rpx;">
<swiper-item v-for="(item,index) in swiperListIos" :key='index' @tap="goPageIos(item.url)">
<image :src="item.imageUrl" mode="scaleToFill"
<image :src="item.imageUrl" mode="aspectFill"
style="width: 100%;height: 100%;border-radius: 24rpx;"></image>
</swiper-item>
</swiper>

View File

@@ -55,6 +55,7 @@
<script>
import contentlist from './components/contentlist.vue'
import httpsRequest from '@/common/httpRequest.js'
export default {
components: {
contentlist

View File

@@ -119,8 +119,8 @@
</view>
</view>
<view style="margin-top: 40rpx;">观看历史</view>
<view class="df" style=" justify-content: space-between;margin-top: 28rpx;">
<view style="border-radius:21rpx 21rpx 21rpx 21rpx" v-for="(item,index) in list" :key="(item,index)"
<view class="df" style=" margin-top: 28rpx;">
<view style="border-radius:21rpx 21rpx 21rpx 21rpx;margin-left: 28rpx" v-for="(item,index) in list" :key="(item,index)"
@tap="seVideo(item)">
<image :src="item.titleImg"
style="width: 188rpx;height: 247rpx;border-radius:21rpx 21rpx 21rpx 21rpx" mode=""></image>