Pārlūkot izejas kodu

访问配置业务域名

lifanagju_citu 4 mēneši atpakaļ
vecāks
revīzija
fe49400dd4
3 mainītis faili ar 44 papildinājumiem un 0 dzēšanām
  1. 6 0
      pages.json
  2. 37 0
      pages/domainName/index.vue
  3. 1 0
      static/txt/test.txt

+ 6 - 0
pages.json

@@ -9,6 +9,12 @@
 				"navigationStyle": "custom" 
 			}
 		},
+		{
+			"path": "pages/domainName/index",
+			"style": {
+				"navigationBarTitleText": "访问配置业务域名"
+			}
+		},
 		{
 			"path": "pages/index/crowdsourcing",
 			"style": {

+ 37 - 0
pages/domainName/index.vue

@@ -0,0 +1,37 @@
+<!--  -->
+<template>
+  <view>
+    <view>访问配置业务域名</view>
+  </view>
+</template>
+
+<script setup>
+// import { onMounted } from 'vue'
+import { onLoad } from '@dcloudio/uni-app'
+
+
+// onMounted(() => {
+//   console.log('onMounted:', 123)
+//   uni.request({
+//     url: 'https://minio.menduner.com/dev/34b1e846f19d86cd1a805dc52e121904632c4d80daac64a74be87c1b0778f7da.txt',
+//     success: (res) => {
+//       debugger
+//       console.log('testonMounted:', res?.data)
+//     }
+//   })
+// })
+
+// 页面初始化
+onLoad(() => {
+  console.log('页面初始化:', 12345)
+  uni.request({
+    url: 'https://minio.menduner.com/dev/34b1e846f19d86cd1a805dc52e121904632c4d80daac64a74be87c1b0778f7da.txt',
+    success: function (res) {
+      debugger
+      console.log('testonLoad:', res?.data)
+    }
+  })
+})
+</script>
+<style lang="scss" scoped>
+</style>

+ 1 - 0
static/txt/test.txt

@@ -0,0 +1 @@
+b5d2453f90193893373ef165600aecf8