修改接口问题
This commit is contained in:
@@ -11,9 +11,10 @@
|
|||||||
// const ROOTPATH2 = "http://192.168.1.5:8100"; //后台服务域名
|
// const ROOTPATH2 = "http://192.168.1.5:8100"; //后台服务域名
|
||||||
|
|
||||||
// const ROOTPATH1 = "http://192.168.1.41:8100/czg"; //
|
// 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 ROOTPATH1 = "https://web-api.hnsiyao.cn/czg"; //
|
||||||
const ROOTPATH = "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"; //后台服务域名
|
const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -424,7 +424,7 @@
|
|||||||
async remoteGetPrizeIndex() {
|
async remoteGetPrizeIndex() {
|
||||||
this.result = ''
|
this.result = ''
|
||||||
console.warn('###当前处于模拟的请求接口,并返回了中奖信息###')
|
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
|
orderId: this.option.orderId || 2145
|
||||||
})
|
})
|
||||||
console.log(res);
|
console.log(res);
|
||||||
@@ -476,7 +476,7 @@
|
|||||||
orderId,
|
orderId,
|
||||||
id
|
id
|
||||||
} = _this.result
|
} = _this.result
|
||||||
_this.$Request.postJson('app/discSpinning/receive', _this.result).then(res => {
|
_this.$Request.postJson('/app/discSpinning/receive', _this.result).then(res => {
|
||||||
_this.result = ''
|
_this.result = ''
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
orderId,
|
orderId,
|
||||||
id
|
id
|
||||||
} = this.result
|
} = this.result
|
||||||
this.$Request.postJson('app/discSpinning/receive', this.result).then(res => {
|
this.$Request.postJson('/app/discSpinning/receive', this.result).then(res => {
|
||||||
this.result = ''
|
this.result = ''
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
orderId,
|
orderId,
|
||||||
id
|
id
|
||||||
} = this.result
|
} = this.result
|
||||||
this.$Request.postJson('app/discSpinning/receive', this.result).then(res => {
|
this.$Request.postJson('/app/discSpinning/receive', this.result).then(res => {
|
||||||
this.result = ''
|
this.result = ''
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
orderId,
|
orderId,
|
||||||
id
|
id
|
||||||
} = this.result
|
} = this.result
|
||||||
this.$Request.postJson('app/discSpinning/receive', this.result).then(res => {
|
this.$Request.postJson('/app/discSpinning/receive', this.result).then(res => {
|
||||||
this.result = ''
|
this.result = ''
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
|||||||
@@ -452,7 +452,7 @@ export default {
|
|||||||
async remoteGetPrizeIndex() {
|
async remoteGetPrizeIndex() {
|
||||||
this.result = '';
|
this.result = '';
|
||||||
console.warn('###当前处于模拟的请求接口,并返回了中奖信息###');
|
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.freeNum--;
|
||||||
// this.getCount()
|
// this.getCount()
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
|||||||
@@ -439,7 +439,7 @@
|
|||||||
async remoteGetPrizeIndex() {
|
async remoteGetPrizeIndex() {
|
||||||
this.result=''
|
this.result=''
|
||||||
console.warn('###当前处于模拟的请求接口,并返回了中奖信息###')
|
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.freeNum--
|
||||||
// this.getCount()
|
// this.getCount()
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
|||||||
@@ -41,11 +41,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad: function(e) {
|
onLoad: function(e) {
|
||||||
console.log(e)
|
console.log(e,'debug')
|
||||||
if (e.moneyType) {
|
if (e.moneyType) {
|
||||||
this.moneyType = e.moneyType
|
this.moneyType = e.moneyType
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: e.moneyType === 1 ? '红包明细' : '金币明细'
|
title: e.moneyType == 1 ? '红包明细' : '金币明细'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (e.viewType) {
|
if (e.viewType) {
|
||||||
|
|||||||
@@ -24,8 +24,8 @@
|
|||||||
{
|
{
|
||||||
"path": "pages/task/prizeList",
|
"path": "pages/task/prizeList",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "任务",
|
"navigationBarTitleText": "任务"
|
||||||
"navigationStyle": "custom"
|
// "navigationStyle": "custom"
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -373,7 +373,7 @@
|
|||||||
"path": "yaoqing/ymf-yaoqing-home",
|
"path": "yaoqing/ymf-yaoqing-home",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "分享好友",
|
"navigationBarTitleText": "分享好友",
|
||||||
"navigationStyle": "custom",
|
// "navigationStyle": "custom",
|
||||||
"h5": {
|
"h5": {
|
||||||
"titleNView": {
|
"titleNView": {
|
||||||
"backgroundColor": "#FFFFFF"
|
"backgroundColor": "#FFFFFF"
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="">
|
<view class="">
|
||||||
<u-sticky :enable="enableIos">
|
<!-- <u-sticky :enable="enableIos">
|
||||||
<view class="search-box-ios">
|
<view class="search-box-ios">
|
||||||
<u-search bg-color="#f2f2f2" style="width: 100%;" placeholder="搜索更多资源" v-model="keywordIos"
|
<u-search bg-color="#f2f2f2" style="width: 100%;" placeholder="搜索更多资源" v-model="keywordIos"
|
||||||
:show-action="false" :animation="true" @search="getCourseListIos()"></u-search>
|
:show-action="false" :animation="true" @search="getCourseListIos()"></u-search>
|
||||||
</view>
|
</view>
|
||||||
</u-sticky>
|
</u-sticky> -->
|
||||||
<view class="swiper flex align-center justify-center">
|
<view class="swiper flex align-center justify-center">
|
||||||
<view class="swiper-box">
|
<view class="swiper-box">
|
||||||
<swiper :indicator-dots="true" class="swiper " :autoplay="true" interval="5000" duration="500"
|
<swiper :indicator-dots="true" class="swiper " :autoplay="true" interval="5000" duration="500"
|
||||||
:circular="true" style="width: 100%;height: 350rpx;">
|
:circular="true" style="width: 100%;height: 350rpx;">
|
||||||
<swiper-item v-for="(item,index) in swiperListIos" :key='index' @tap="goPageIos(item.url)">
|
<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>
|
style="width: 100%;height: 100%;border-radius: 24rpx;"></image>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
|
|||||||
@@ -55,6 +55,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import contentlist from './components/contentlist.vue'
|
import contentlist from './components/contentlist.vue'
|
||||||
|
import httpsRequest from '@/common/httpRequest.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
contentlist
|
contentlist
|
||||||
|
|||||||
@@ -119,8 +119,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="margin-top: 40rpx;">观看历史</view>
|
<view style="margin-top: 40rpx;">观看历史</view>
|
||||||
<view class="df" style=" justify-content: space-between;margin-top: 28rpx;">
|
<view class="df" style=" margin-top: 28rpx;">
|
||||||
<view style="border-radius:21rpx 21rpx 21rpx 21rpx" v-for="(item,index) in list" :key="(item,index)"
|
<view style="border-radius:21rpx 21rpx 21rpx 21rpx;margin-left: 28rpx" v-for="(item,index) in list" :key="(item,index)"
|
||||||
@tap="seVideo(item)">
|
@tap="seVideo(item)">
|
||||||
<image :src="item.titleImg"
|
<image :src="item.titleImg"
|
||||||
style="width: 188rpx;height: 247rpx;border-radius:21rpx 21rpx 21rpx 21rpx" mode=""></image>
|
style="width: 188rpx;height: 247rpx;border-radius:21rpx 21rpx 21rpx 21rpx" mode=""></image>
|
||||||
|
|||||||
Reference in New Issue
Block a user