Compare commits
4 Commits
zyj
...
3f24bf3f62
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3f24bf3f62 | ||
|
|
20489cfe18 | ||
|
|
8b948056bf | ||
| b01b735ab8 |
@@ -4,6 +4,7 @@
|
|||||||
<block slot="backText">返回</block>
|
<block slot="backText">返回</block>
|
||||||
<block slot="content">加油记录</block>
|
<block slot="content">加油记录</block>
|
||||||
</cu-custom>
|
</cu-custom>
|
||||||
|
|
||||||
<view class="fixed-t">
|
<view class="fixed-t">
|
||||||
<view class="flex bg-main-oil padding solid-bottom">
|
<view class="flex bg-main-oil padding solid-bottom">
|
||||||
<!-- <view class="flex-sub">
|
<!-- <view class="flex-sub">
|
||||||
@@ -24,7 +25,11 @@
|
|||||||
v-for="(item,index) in tabList" :key="index" @tap="tabSelect" :data-id="index">{{item}}</view>
|
v-for="(item,index) in tabList" :key="index" @tap="tabSelect" :data-id="index">{{item}}</view>
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
|
<view v-if="exportShow" style="margin-top: 16rpx;text-align: right;padding-right: 30rpx;">
|
||||||
|
<button class="cu-btn bg-white" style="border: 1px solid #ddd;" @click="orderExport">订单导出</button>
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
<view v-if="exportShow" style="padding: 24rpx;"></view>
|
||||||
<!-- <view class="placeholder-hidden">
|
<!-- <view class="placeholder-hidden">
|
||||||
<view class="flex bg-main-oil padding solid-bottom">
|
<view class="flex bg-main-oil padding solid-bottom">
|
||||||
<view class="flex-sub">
|
<view class="flex-sub">
|
||||||
@@ -46,12 +51,12 @@
|
|||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view v-if="exportShow">
|
<!-- <view v-if="exportShow">
|
||||||
<view style="padding: 30upx;"></view>
|
<view style="padding: 30rpx;"></view>
|
||||||
<view style="position: fixed;width: 750upx;z-index: 5;text-align: right;top:315upx;right: 30upx;">
|
<view style="position: fixed;width: 750rpx;z-index: 5;text-align: right;top:315rpx;right: 30rpx;">
|
||||||
<button class="cu-btn bg-white" @click="orderExport">订单导出</button>
|
<button class="cu-btn bg-white" style="border: 1px solid #ddd;" @click="orderExport">订单导出</button>
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
|
</view> -->
|
||||||
|
|
||||||
<view class="padding padding-bottom-0" style="padding-top: 200upx;">
|
<view class="padding padding-bottom-0" style="padding-top: 200upx;">
|
||||||
<!-- 0 全部 1 待支付 2 已支付 3退款 -->
|
<!-- 0 全部 1 待支付 2 已支付 3退款 -->
|
||||||
@@ -120,7 +125,8 @@
|
|||||||
<view class="popup_card_from_item">
|
<view class="popup_card_from_item">
|
||||||
<view class="popup_card_from_item_left_text" style="margin-top: 32rpx;">结束时间:</view>
|
<view class="popup_card_from_item_left_text" style="margin-top: 32rpx;">结束时间:</view>
|
||||||
<view class="uni-list-cell-db">
|
<view class="uni-list-cell-db">
|
||||||
<uni-datetime-picker type="datetime" :value="endDate" @change="endDateChange" :start="endStartDate" :end="endEndDate" />
|
<uni-datetime-picker type="datetime" :value="endDate" @change="endDateChange"
|
||||||
|
:start="endStartDate" :end="endEndDate" />
|
||||||
<!-- <picker mode="date" :value="endDate" @change="endDateChange" :start="endStartDate" :end="endEndDate" class="uni-picker">
|
<!-- <picker mode="date" :value="endDate" @change="endDateChange" :start="endStartDate" :end="endEndDate" class="uni-picker">
|
||||||
<view class="uni-input">{{endDate}}</view>
|
<view class="uni-input">{{endDate}}</view>
|
||||||
</picker> -->
|
</picker> -->
|
||||||
@@ -225,7 +231,11 @@
|
|||||||
'1689183774927818752',
|
'1689183774927818752',
|
||||||
'1689184331812888576',
|
'1689184331812888576',
|
||||||
'1689185023261741056',
|
'1689185023261741056',
|
||||||
'1782596400854310912'
|
'1782596400854310912',
|
||||||
|
'1661994395596533760',
|
||||||
|
'1825776105145946112',
|
||||||
|
'1802612281797746688',
|
||||||
|
'1508364963431362560'
|
||||||
]
|
]
|
||||||
var exportFields = exportList.filter((item) => {
|
var exportFields = exportList.filter((item) => {
|
||||||
return item == uni.getStorageSync('oilSitePriceId');
|
return item == uni.getStorageSync('oilSitePriceId');
|
||||||
@@ -559,12 +569,15 @@
|
|||||||
width: 750upx;
|
width: 750upx;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.uni-input {
|
.uni-input {
|
||||||
height: 25rpx;
|
height: 25rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.uni-picker {
|
.uni-picker {
|
||||||
height: 25rpx;
|
height: 25rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.uni-list-cell-db {
|
.uni-list-cell-db {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 30rpx;
|
height: 30rpx;
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<text class>油站工作人员绑定油站</text>
|
<text class>油站工作人员绑定油站</text>
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="banner text-lg">
|
<view v-if="!isPad" class="banner text-lg">
|
||||||
欢迎使用星油云站
|
欢迎使用星油云站
|
||||||
</view>
|
</view>
|
||||||
<view class="pannel">
|
<view class="pannel">
|
||||||
@@ -140,6 +140,7 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
isPad:false,
|
||||||
titleText: "",
|
titleText: "",
|
||||||
errMsg: '',
|
errMsg: '',
|
||||||
checkUser: false,
|
checkUser: false,
|
||||||
@@ -162,6 +163,12 @@
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
uni.showShareMenu()
|
uni.showShareMenu()
|
||||||
|
uni.getSystemInfo({
|
||||||
|
success:(res) => {
|
||||||
|
// console.log('getSystemInfoSync',res)
|
||||||
|
this.isPad = res.deviceType === 'pad'
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkAgree(val) {
|
checkAgree(val) {
|
||||||
|
|||||||
@@ -7,10 +7,9 @@ import utils from '@/utils/encode'
|
|||||||
//42 洛超 /29 孙志华 /40 阿浩
|
//42 洛超 /29 孙志华 /40 阿浩
|
||||||
// 测试日日顺时需要连阿浩
|
// 测试日日顺时需要连阿浩
|
||||||
|
|
||||||
const testUrl = 'http://192.168.0.26:38080'
|
const testUrl = 'http://192.168.110.77:38080'
|
||||||
// const productionUrl = 'https://www.51xingka.net/oilApp' // 生产,加密 old
|
// const productionUrl = 'https://www.51xingka.net/oilApp' // 生产,加密 old
|
||||||
// const productionUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new
|
// const productionUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new
|
||||||
// const productionUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new
|
|
||||||
const productionUrl = 'http://uat.xingoil.com/adminapi'
|
const productionUrl = 'http://uat.xingoil.com/adminapi'
|
||||||
// const env = process.env.NODE_ENV // 环境
|
// const env = process.env.NODE_ENV // 环境
|
||||||
const service = axios.create({
|
const service = axios.create({
|
||||||
@@ -49,7 +48,7 @@ service.interceptors.request.use(
|
|||||||
if (env === 'production') {
|
if (env === 'production') {
|
||||||
// 生产环境,加密,不输出任何东西
|
// 生产环境,加密,不输出任何东西
|
||||||
// 设置jsessionid和token
|
// 设置jsessionid和token
|
||||||
console.log('这里是生产')
|
// console.log('这里是生产')
|
||||||
const JSESSIONID = utils.uuid()
|
const JSESSIONID = utils.uuid()
|
||||||
config.headers['JSESSIONID'] = JSESSIONID
|
config.headers['JSESSIONID'] = JSESSIONID
|
||||||
config.headers['token'] = utils.md5Salt(JSESSIONID)
|
config.headers['token'] = utils.md5Salt(JSESSIONID)
|
||||||
@@ -100,13 +99,13 @@ service.interceptors.response.use(
|
|||||||
// console.log('生产环境 请求路径', response.config.url, '解密为', res.data)
|
// console.log('生产环境 请求路径', response.config.url, '解密为', res.data)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log('请求路径', response.config.url, '返回结果未加密', res)
|
// console.log('请求路径', response.config.url, '返回结果未加密', res)
|
||||||
console.log('-------------------------------------------')
|
// console.log('-------------------------------------------')
|
||||||
}
|
}
|
||||||
|
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
if (res.code != 20000) {
|
if (res.code != 20000) {
|
||||||
console.log('这里是登录报错处',res)
|
// console.log('这里是登录报错处',res)
|
||||||
if(response.config.url.indexOf('/oil-user/oilCustomerChannelRelation/getByPhone/') != -1){
|
if(response.config.url.indexOf('/oil-user/oilCustomerChannelRelation/getByPhone/') != -1){
|
||||||
// uni.hideToast()
|
// uni.hideToast()
|
||||||
}else{
|
}else{
|
||||||
@@ -125,23 +124,11 @@ service.interceptors.response.use(
|
|||||||
success: function(res) {
|
success: function(res) {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: '/pages/login/boforeLogin/boforeLogin',
|
url: '/pages/login/boforeLogin/boforeLogin'
|
||||||
success: () => {
|
|
||||||
console.log('跳转成功')
|
|
||||||
},
|
|
||||||
fail: (err) => {
|
|
||||||
console.log(err)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
} else if (res.cancel) {
|
} else if (res.cancel) {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: '/pages/login/boforeLogin/boforeLogin?type=1',
|
url: '/pages/login/boforeLogin/boforeLogin?type=1'
|
||||||
success: () => {
|
|
||||||
console.log('跳转成功')
|
|
||||||
},
|
|
||||||
fail: (err) => {
|
|
||||||
console.log(err)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -154,13 +141,7 @@ service.interceptors.response.use(
|
|||||||
icon: "none"
|
icon: "none"
|
||||||
})
|
})
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: '/pages/login/boforeLogin/boforeLogin',
|
url: '/pages/login/boforeLogin/boforeLogin'
|
||||||
success: () => {
|
|
||||||
console.log('跳转成功')
|
|
||||||
},
|
|
||||||
fail: (err) => {
|
|
||||||
console.log(err)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if(res.code == 42077){
|
if(res.code == 42077){
|
||||||
@@ -169,13 +150,7 @@ service.interceptors.response.use(
|
|||||||
icon: "none"
|
icon: "none"
|
||||||
})
|
})
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: '/pages/login/boforeLogin/boforeLogin',
|
url: '/pages/login/boforeLogin/boforeLogin'
|
||||||
success: () => {
|
|
||||||
console.log('跳转成功')
|
|
||||||
},
|
|
||||||
fail: (err) => {
|
|
||||||
console.log(err)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -201,7 +176,6 @@ service.interceptors.response.use(
|
|||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
uni.getNetworkType({
|
uni.getNetworkType({
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
console.log(res.networkType);
|
|
||||||
if (res.networkType === 'none') {
|
if (res.networkType === 'none') {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '没有网啦!',
|
title: '没有网啦!',
|
||||||
|
|||||||
Reference in New Issue
Block a user