master
jevononlie 7 months ago
parent 9830ab7fe4
commit ae53c29f1c

@ -161,7 +161,7 @@ const handleJump = (type) => {
</view> </view>
</view> </view>
</view> --> </view> -->
<!-- <view class="module"> <view class="module">
<view class="module-title">订单中心</view> <view class="module-title">订单中心</view>
<view class="module-list"> <view class="module-list">
<view class="item" @click="handleJump('book')"> <view class="item" @click="handleJump('book')">
@ -177,7 +177,7 @@ const handleJump = (type) => {
<view class="label">到站回收</view> <view class="label">到站回收</view>
</view> </view>
</view> </view>
</view> --> </view>
<view class="list"> <view class="list">
<!-- <navigator class="loation item arrow" url="/pages/orderList/orderList" hover-class="none"> <!-- <navigator class="loation item arrow" url="/pages/orderList/orderList" hover-class="none">

@ -52,8 +52,8 @@ export const bannerList = [
}, },
] ]
// 文件路径 // 文件路径
export const serviceDomain = 'https://nxhs.cjyx.cc' // export const serviceDomain = 'https://nxhs.cjyx.cc'
// export const serviceDomain = 'http://222.71.165.188:8808' export const serviceDomain = 'http://222.71.165.188:8808'
// export const serviceDomain = 'http://192.168.0.166:8808' // export const serviceDomain = 'http://192.168.0.166:8808'
export const storage_userInfo = { export const storage_userInfo = {
userType: { userType: {

@ -60,6 +60,7 @@ type Data<T> = {
function ajaxError(data) { function ajaxError(data) {
uni.showToast({ uni.showToast({
title: data.msg || '请求出错,请重试', title: data.msg || '请求出错,请重试',
duration: 3000,
icon: 'none', icon: 'none',
complete() { complete() {
if (data.code === 600 || data.code === 601 || data.code === 602) { if (data.code === 600 || data.code === 601 || data.code === 602) {
@ -110,6 +111,7 @@ export const http = <T>(options: UniApp.RequestOptions) => {
fail(err) { fail(err) {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
duration: 3000,
title: '网络错误,换个网络试试', title: '网络错误,换个网络试试',
}) })
reject(err) reject(err)

Loading…
Cancel
Save