feat: 接口配置

This commit is contained in:
苟川东 2025-04-23 11:24:17 +08:00
parent 9169a0d7de
commit 4f7a9ef918
2 changed files with 7 additions and 5 deletions

View File

@ -3,7 +3,7 @@ let accountInfo = wx.getAccountInfoSync();
let envVersion = accountInfo.miniProgram.envVersion let envVersion = accountInfo.miniProgram.envVersion
//手动指定版本 //手动指定版本
// envVersion = 'trial' envVersion = 'trial'
let hosts = { let hosts = {
"develop": 'http://wanyu.test', "develop": 'http://wanyu.test',

View File

@ -57,7 +57,7 @@
</template> </template>
<script setup> <script setup>
import {onLoad, onReachBottom} from '@dcloudio/uni-app' import {onReachBottom, onShow} from '@dcloudio/uni-app'
import {reactive, computed, inject} from 'vue' import {reactive, computed, inject} from 'vue'
import MeIcon from "../../components/me-icon/me-icon"; import MeIcon from "../../components/me-icon/me-icon";
import MeButton from "../../components/me-button/me-button"; import MeButton from "../../components/me-button/me-button";
@ -121,8 +121,10 @@ const toDetail = (id) => {
helpers.jumpToPage('order-info', `id=${id}`) helpers.jumpToPage('order-info', `id=${id}`)
} }
onLoad(() => { onShow(() => {
init() if (data.list === null) {
init()
}
}) })
const data = reactive({ const data = reactive({
@ -130,7 +132,7 @@ const data = reactive({
page_size: 10, page_size: 10,
last_page: 0, last_page: 0,
is_show_skeleton: true, is_show_skeleton: true,
list: [] list: null
}) })
const getList = () => { const getList = () => {
if (data.page > 1) { if (data.page > 1) {