🎨 修改接口地址

This commit is contained in:
loser 2023-12-10 05:54:10 +08:00
parent e31e6d8fc5
commit c4edb4ec3d
6 changed files with 15 additions and 14 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ node_modules/*
package-lock.json package-lock.json
yarn.lock yarn.lock
unpackage unpackage
.hbuilderx

View File

@ -1,6 +1,6 @@
// isdev 为 true 表示开发环境 false 表示发布环境 // isdev 为 true 表示开发环境 false 表示发布环境
const isdev = true; const isdev = true;
const baseUrl = isdev ? 'http://47.116.50.126:8888' : 'http://eb467b6.r19.cpolar.top';// 办公室接口 & 测试环境 const baseUrl = isdev ? 'https://api.jimingyiliao.com' : 'http://eb467b6.r19.cpolar.top';// 办公室接口 & 测试环境
// const baseUrl = isdev ? 'http://192.168.1.133:8899' : 'https://api.gwkjxb.com';// 办公室接口 & 正式环境 // const baseUrl = isdev ? 'http://192.168.1.133:8899' : 'https://api.gwkjxb.com';// 办公室接口 & 正式环境
// const baseUrl = 'https://api.gwkjxb.com';// 正式环境(由于本地测试后台没有启动,暂时通用正式服) // const baseUrl = 'https://api.gwkjxb.com';// 正式环境(由于本地测试后台没有启动,暂时通用正式服)
@ -18,4 +18,4 @@ const config = {
appID:'wx2a050f9a5c87a6dc', appID:'wx2a050f9a5c87a6dc',
isdev isdev
} }
export default config export default config

View File

@ -1,7 +1,7 @@
<script setup> <script setup>
// //
import uniDatetimePicker from '@/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue' import uniDatetimePicker from '@/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue'
import uniEasyinput from '@/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue' import uniEasyinput from '@/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue'
import { onLoad } from "@dcloudio/uni-app" import { onLoad } from "@dcloudio/uni-app"
// import mySwiper from "@/components/mySwiper.vue" // import mySwiper from "@/components/mySwiper.vue"
import {ref,onMounted,nextTick} from "vue" import {ref,onMounted,nextTick} from "vue"
@ -17,10 +17,10 @@
const res_ = ref(null) const res_ = ref(null)
const userInfo = ref(null) const userInfo = ref(null)
const bg_imgs = ref([ const bg_imgs = ref([
'/static/result1.jpg', 'https://jmyl-app.oss-cn-chengdu.aliyuncs.com/miniapp/result/result1.jpg',
'/static/result2.jpg', 'https://jmyl-app.oss-cn-chengdu.aliyuncs.com/miniapp/result/result2.jpg',
'/static/result3.jpg', 'https://jmyl-app.oss-cn-chengdu.aliyuncs.com/miniapp/result/result3.jpg',
]) ])
const bg_index = ref(0) const bg_index = ref(0)
const avatarUrl = ref(null) const avatarUrl = ref(null)
const info = ref({left:'',right:''}) const info = ref({left:'',right:''})
@ -40,8 +40,8 @@
console.log(err) console.log(err)
} }
}) })
} }
</script> </script>
<template> <template>
<view class="visionTestBox page-box"> <view class="visionTestBox page-box">
<!-- <view class="actionBox" :style="{background:`url(${bg_imgs[bg_index]})`}"> <!-- <view class="actionBox" :style="{background:`url(${bg_imgs[bg_index]})`}">
@ -59,8 +59,8 @@
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</template> </template>
<style scoped lang="scss"> <style scoped lang="scss">
.avatar-box{ .avatar-box{
width: 100%; width: 100%;
@ -159,5 +159,5 @@
width: 80%; width: 80%;
margin: 0 auto; margin: 0 auto;
border-radius: 20rpx; border-radius: 20rpx;
} }
</style> </style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 MiB