zhangzengfei
2022-09-05 fa6247894dd69aa63daa26f12b1a6f99cacbdabb
修改接口地址,优化停车位样式
3个文件已修改
18 ■■■■ 已修改文件
manifest.json 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/parking/parking.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/api/api.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
manifest.json
@@ -2,8 +2,8 @@
    "name" : "育英中学停车",
    "appid" : "__UNI__EDF0B5C",
    "description" : "",
    "versionName" : "1.0.2",
    "versionCode" : 102,
    "versionName" : "1.1.0",
    "versionCode" : 110,
    "transformPx" : false,
    /* 5+App特有相关 */
    "app-plus" : {
pages/parking/parking.vue
@@ -155,12 +155,17 @@
                background-repeat: no-repeat;
                background-position: center;
                background-size: 70%;
                &.gray{
                    background-image: url(../../static/parking/u308.png);
                }
                &.blue{
                    background: linear-gradient(135deg, #7ccef9 0%, #7ccef9 0%, #7590fd 100%, #7590fd 100%);
                    background-size: 100%;
                    color: #ffffffa3;
                    line-height: 90rpx;
                    text-align: center;
                    font-family: auto;
                }
                &.red{
                    background-image: url(../../static/parking/u392.png);
@@ -209,6 +214,10 @@
                background-position: center;
                background-size: 56%;
                font-size: 36rpx;
                color: #ffffffa3;
                line-height: 60rpx;
                text-align: center;
                font-family: auto;
                &.whitespace{
                    background: none;
                    box-shadow: none;
static/api/api.js
@@ -1,10 +1,9 @@
export default class Api {
    syncRequest = function(option){
        //正式
        const BASEURL = 'http://111.205.161.131:5116';
        const BASEURL = 'http://yyparking.smartai.com:5116';
        //测试
        //const BASEURL = 'http://192.168.20.10:7006';
        //处理请求url
        // const BASEURL = 'http://58.118.176.201:5116';
        if(option.url.indexOf('weather')<0 && option.url.indexOf('smartai')<0){
            option.url = BASEURL+option.url;