1.修改对接接口问题

dev
杨杰 3 years ago
parent c4189b9563
commit f154b33bad
  1. 8
      pages/home/oderDetails/oderDetails.vue
  2. 27
      pages/tabBar/home/home.vue
  3. 5
      pages/user/oil-list/oil-list.vue
  4. 3
      pages/user/updateOilgun/updateOilgun.vue
  5. BIN
      static/img/noorder.png

@ -63,22 +63,22 @@
</view> </view>
<view class="width92 fcor666 font14 mart20 alijusstart"> <view class="width92 fcor666 font14 mart20 alijusstart">
<view class="width20">加油折扣</view> <view class="width20">加油折扣</view>
<view class="width80p fotrt" v-if="oilorderdetails.gasDiscount">{{oilorderdetails.gasDiscount}}</view> <view class="width80p fotrt" v-if="oilorderdetails.gasDiscount">¥{{oilorderdetails.gasDiscount}}</view>
<view class="width80p fotrt" v-else>0折</view> <view class="width80p fotrt" v-else>0折</view>
</view> </view>
<view class="width92 fcor666 font14 mart20 alijusstart"> <view class="width92 fcor666 font14 mart20 alijusstart">
<view class="width20">加油补贴</view> <view class="width20">加油补贴</view>
<view class="width80p fotrt" v-if="oilorderdetails.gasOilSubsidy">{{oilorderdetails.gasOilSubsidy}}</view> <view class="width80p fotrt" v-if="oilorderdetails.gasOilSubsidy">¥{{oilorderdetails.gasOilSubsidy}}</view>
<view class="width80p fotrt" v-else>¥0</view> <view class="width80p fotrt" v-else>¥0</view>
</view> </view>
<view class="width92 fcor666 font14 mart20 alijusstart"> <view class="width92 fcor666 font14 mart20 alijusstart">
<view class="width20">每升优惠</view> <view class="width20">每升优惠</view>
<view class="width80p fotrt" v-if="oilorderdetails.gasLitersPreferences">{{oilorderdetails.gasLitersPreferences}}</view> <view class="width80p fotrt" v-if="oilorderdetails.gasLitersPreferences">¥{{oilorderdetails.gasLitersPreferences}}</view>
<view class="width80p fotrt" v-else>¥0</view> <view class="width80p fotrt" v-else>¥0</view>
</view> </view>
<view class="width92 fcor666 font14 mart20 alijusstart"> <view class="width92 fcor666 font14 mart20 alijusstart">
<view class="width20">优惠价格</view> <view class="width20">优惠价格</view>
<view class="width80p fotrt" v-if="oilorderdetails.gasPricePreferences">{{oilorderdetails.gasPricePreferences}}</view> <view class="width80p fotrt" v-if="oilorderdetails.gasPricePreferences">¥{{oilorderdetails.gasPricePreferences}}</view>
<view class="width80p fotrt" v-else>¥0</view> <view class="width80p fotrt" v-else>¥0</view>
</view> </view>
<view class="width92 line1 mart15"></view> <view class="width92 line1 mart15"></view>

@ -12,6 +12,9 @@
<view class="width33" :class="[type=='3' ? 'fcor089' : 'fcor333']" @click="updateStu(3)">已完成</view> <view class="width33" :class="[type=='3' ? 'fcor089' : 'fcor333']" @click="updateStu(3)">已完成</view>
<view class="width33" :class="[type=='4' ? 'fcor089' : 'fcor333']" @click="updateStu(4)">已退款</view> <view class="width33" :class="[type=='4' ? 'fcor089' : 'fcor333']" @click="updateStu(4)">已退款</view>
</view> </view>
<view v-if="orderList == ''" class="mart40 fotct font14 fcor666">
<image mode="widthFix" style="width: 70vw;" src="../../../static/img/noorder.png"></image>
</view>
<view class="width94 backcorfff headcont mart10" v-for="(item,index) in orderList" :key="index" <view class="width94 backcorfff headcont mart10" v-for="(item,index) in orderList" :key="index"
@click="jumpDetails(item.orderNo)"> @click="jumpDetails(item.orderNo)">
<view class="alijusstart width94 height30 fcor333 paddtop5"> <view class="alijusstart width94 height30 fcor333 paddtop5">
@ -88,10 +91,7 @@
}) })
}, },
onLoad() { onLoad() {
let innerAudioContext = uni.createInnerAudioContext(); //
innerAudioContext.autoplay = false; //
innerAudioContext.src = 'https://hsgcs.dctpay.com/filesystem/wxApplets/player.mp3'; //
this.innerAudioContext = innerAudioContext;
this.socketio(); this.socketio();
}, },
onReachBottom() { // onReachBottom() { //
@ -102,16 +102,30 @@
} }
}, },
methods: { methods: {
//socket
socketio() { socketio() {
let that = this;
uni.connectSocket({ uni.connectSocket({
url: 'ws://localhost:9302/brest/WebSocket/111' url: 'ws://139.159.177.244:9302/brest/WebSocket/' + app.globalData.userInfo.merchantStore.id
}); });
uni.onSocketOpen(function(res) { uni.onSocketOpen(function(res) {
console.log('WebSocket连接已打开!'); console.log('WebSocket连接已打开!');
}); });
uni.onSocketError(function(res) { uni.onSocketError(function(res) {
console.log('WebSocket连接打开失败,请检查!'); console.log('WebSocket连接打开失败,请检查!');
uni.closeSocket();
that.socketio();
});
uni.onSocketMessage(function(res) {
let innerAudioContext = uni.createInnerAudioContext(); //
innerAudioContext.autoplay = false; //
innerAudioContext.src = res.data; //
that.innerAudioContext = innerAudioContext;
that.startAudio();
console.log('收到服务器内容:' + res.data);
});
uni.onSocketClose(function(res) {
console.log('WebSocket 已关闭!');
}); });
}, },
// //
@ -236,6 +250,7 @@
.counimgs { .counimgs {
width: 60px; width: 60px;
max-height: 60px;
} }
.counscou { .counscou {

@ -1,6 +1,9 @@
<template> <template>
<view> <view>
<view class="width90 mart15 font15 fcor666">选择油品</view> <view class="width90 mart15 font15 fcor666">选择油品</view>
<view v-if="oilpriceList == ''" class="mart40 fotct font14 fcor666">
<image mode="widthFix" style="width: 70vw;" src="../../../static/img/noorder.png"></image>
</view>
<view class="activeRefuel" v-for="(item,index) in oilpriceList" :key="index" <view class="activeRefuel" v-for="(item,index) in oilpriceList" :key="index"
@click="jumpupdatePrice(item)"> @click="jumpupdatePrice(item)">
{{item.oilNoName}} {{item.oilNoName}}
@ -171,6 +174,6 @@
.imgcha { .imgcha {
position: absolute; position: absolute;
margin-top: -15px; margin-top: -15px;
margin-left: 30px; margin-left: 25px;
} }
</style> </style>

@ -1,5 +1,8 @@
<template> <template>
<view> <view>
<view v-if="oilgunList == ''" class="mart40 fotct font14 fcor666">
<image mode="widthFix" style="width: 70vw;" src="../../../static/img/noorder.png"></image>
</view>
<view class="activeRefuel" v-for="(item,index) in oilgunList" :key="index"> <view class="activeRefuel" v-for="(item,index) in oilgunList" :key="index">
{{item.gunNo}}号枪 {{item.gunNo}}号枪
<image src="../../../static/img/6.png" mode="widthFix" class="imgcha iconw" @click.stop="delGunNo(item.id)"> <image src="../../../static/img/6.png" mode="widthFix" class="imgcha iconw" @click.stop="delGunNo(item.id)">

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Loading…
Cancel
Save