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
//手动指定版本
// envVersion = 'trial'
envVersion = 'trial'
let hosts = {
"develop": 'http://wanyu.test',

View File

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