Compare commits

..

No commits in common. "8c62924e9cddf77a1aaa7204e4f1faf003ce2530" and "41cbac698a4e12a32406c97eb4557b5bc34d5f99" have entirely different histories.

5 changed files with 12 additions and 59 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
/unpackage
/node_modules
/.gitignore

View File

@ -4,7 +4,7 @@
*/
export default {
config: {
baseUrl: "https://stock.szjixun.cn", //"http://172.16.100.93:8017", //"http://192.168.88.175:9021",//测试 'https://warehouse.szjixun.cn' 正式 https://stock.szjixun.cn
baseUrl: "https://warehouse.szjixun.cn", //"http://172.16.100.93:8017", //"http://192.168.88.175:9021",//测试 'https://warehouse.szjixun.cn' 正式 https://stock.szjixun.cn
header: {
"Content-Type": "application/json;charset=UTF-8",
// 'Content-Type':'application/x-www-form-urlencoded'
@ -61,22 +61,13 @@ export default {
}
}
if (response.data?.status === 401) {
uni.showModal({
title:'登录后使用完整功能',
success:(res)=>{
if (res.confirm){
let curPage = getCurrentPages();
let route = curPage[curPage.length - 1].route; //获取当前页面的路由
if (route !== "pages/login/login") {
uni.navigateTo({
url: "/pages/login/login",
});
}
}
}
})
let curPage = getCurrentPages();
let route = curPage[curPage.length - 1].route; //获取当前页面的路由
if (route !== "pages/login/login") {
uni.navigateTo({
url: "/pages/login/login",
});
}
}
// 统一的响应日志记录
_reslog(response);

View File

@ -552,15 +552,8 @@ export default {
uni.navigateTo({
url: `/pages/signwebview/index`,
});
}else {
uni.showToast({
title: res.msg,
duration: 2000,
icon: "none",
});
this.loading=false
}
this.loading=false
},
async obtainAmount(index,list=false){
let data={

View File

@ -1,6 +1,5 @@
<template>
<view class="main">
<view class="ykfw" @click="goRouter">游客访问</view>
<image src="@/static/image/logo.png" mode="scaleToFill" class="logo" />
<view class="btn">
<u-button v-if="isShow" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" color="transparent"
@ -23,11 +22,6 @@ export default {
};
},
methods: {
goRouter(){
uni.switchTab({
url: '/pages/home/index'
});
},
async getPhoneNumber(e) {
if (e.detail.errMsg == "getPhoneNumber:ok") {
//
@ -117,14 +111,7 @@ export default {
display: flex;
align-items: center;
flex-direction: column;
position: relative;
.ykfw{
height: 50rpx;
position:absolute;
top: 20rpx;
right: 40rpx;
color: #fff;
}
.logo {
margin-top: 250rpx;
width: 398rpx;
@ -158,4 +145,4 @@ export default {
}
}
}
</style>
</style>

View File

@ -85,24 +85,6 @@ export default {
if (res1.code === 200) {
this.info = res1.data
}
},
async getData1() {
const data1 = {
ID: Number(this.$mp.query.ID)
}
const res1 = await postDataByParams('/api/v2/warehouse/detail', data1)
if (res1.code === 200) {
this.info = res1.data
}
},
async getData2() {
const data1 = {
ID: Number(this.$mp.query.ID)
}
const res1 = await postDataByParams('/api/v2/warehouse/detail', data1)
if (res1.code === 200) {
this.info = res1.data
}
}
}
};