feat: 接口配置
This commit is contained in:
parent
9169a0d7de
commit
4f7a9ef918
|
|
@ -3,7 +3,7 @@ let accountInfo = wx.getAccountInfoSync();
|
|||
let envVersion = accountInfo.miniProgram.envVersion
|
||||
|
||||
//手动指定版本
|
||||
// envVersion = 'trial'
|
||||
envVersion = 'trial'
|
||||
|
||||
let hosts = {
|
||||
"develop": 'http://wanyu.test',
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user