DESKTOP-O04BTUJ\muzen 3 gadi atpakaļ
vecāks
revīzija
c3640d8ebd
2 mainītis faili ar 0 papildinājumiem un 80 dzēšanām
  1. 0 49
      src/pages/index/index.vue
  2. 0 31
      utils/request.js

+ 0 - 49
src/pages/index/index.vue

@@ -1,49 +0,0 @@
-<template>
-	<view class="content">
-		<image class="logo" src="/static/logo.png"></image>
-		<view>
-			<text class="title">{{title}}</text>
-		</view>
-	</view>
-</template>
-
-<script>
-	export default {
-		data() {
-			return {
-				title: 'Hello'
-			}
-		},
-		onLoad() {
-
-		},
-		methods: {
-
-		}
-	}
-</script>
-
-<style>
-	.content {
-		display: flex;
-		flex-direction: column;
-		align-items: center;
-		justify-content: center;
-	}
-
-	.logo {
-		height: 200rpx;
-		width: 200rpx;
-		margin: 200rpx auto 50rpx auto;
-	}
-
-	.text-area {
-		display: flex;
-		justify-content: center;
-	}
-
-	.title {
-		font-size: 36rpx;
-		color: #8f8f94;
-	}
-</style>

+ 0 - 31
utils/request.js

@@ -1,31 +0,0 @@
-const baseUrl = 'https://o3tapi.radio1964.com/web' // 测试
-// const baseUrl = 'http://192.168.0.217/web' // 付新保本地'
-
-function request(e) {
-  if(!e.data){
-    e.data = {}
-  }
-
-  uni.showLoading({
-    title: '加载中...'
-  })
-
-  const promise = new Promise((resolve, reject) => {
-    uni.request({
-      url: baseUrl + e.url,
-      method: e.method,
-      data: e.data,
-      success: (res) => {
-        resolve(res)
-        uni.hideLoading()
-      },
-      fail: (err) => {
-        reject(err)
-        uni.hideLoading()
-      }
-    })
-  })
-  return promise
-}
-
-export default request