1.修改问题

dev
杨杰 2 years ago
parent f154b33bad
commit 1eec54bbc3
  1. 6
      App.vue
  2. 9
      manifest.json
  3. 2
      pages/login/login/login.vue
  4. 15
      pages/tabBar/home/home.vue
  5. 3
      pages/tabBar/user/user.vue
  6. 17
      pages/user/updateOilgun/updateOilgun.vue

@ -7,11 +7,13 @@
// //
// url: 'https://hsg.dctpay.com/brest', // url: 'https://hsg.dctpay.com/brest',
// imgUrl: 'https://hsg.dctpay.com/filesystem/', // imgUrl: 'https://hsg.dctpay.com/filesystem/',
// imageWxImg: 'https://hsg.dctpay.com/filesystem/wxApplets/', // imageWxImg: 'https://hsg.dctpay.com/filesystem/wxApplets/',
// wsssocket:'wss://hsgcs.dctpay.com/msg/WebSocket/',
// //
url: 'https://hsgcs.dctpay.com/brest', url: 'https://hsgcs.dctpay.com/brest',
imgUrl: 'https://hsgcs.dctpay.com/filesystem/', imgUrl: 'https://hsgcs.dctpay.com/filesystem/',
imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/', imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/',
wsssocket:'wss://hsgcs.dctpay.com/msg/WebSocket/',
userInfo: "", userInfo: "",
openId: '', openId: '',
code: '', code: '',

@ -68,5 +68,12 @@
"uniStatistics" : { "uniStatistics" : {
"enable" : false "enable" : false
}, },
"vueVersion" : "2" "vueVersion" : "2",
"h5" : {
"title" : "嗨森逛商家端",
"router" : {
"mode" : "hash",
"base" : "/merchantH5/"
}
}
} }

@ -2,7 +2,7 @@
<view> <view>
<image src="../../../static/img/logo.png" mode="widthFix" class="mart40 alijus imgs"></image> <image src="../../../static/img/logo.png" mode="widthFix" class="mart40 alijus imgs"></image>
<view class="main mart40"> <view class="main mart40">
<wInput v-model="phoneData" type="text" placeholder="用户名" :focus="isFocus"></wInput> <wInput v-model="phoneData" type="text" placeholder="用户名"></wInput>
<wInput v-model="passData" type="password" placeholder="密码" isShowPass="true"></wInput> <wInput v-model="passData" type="password" placeholder="密码" isShowPass="true"></wInput>
</view> </view>
<view class="height40p"></view> <view class="height40p"></view>

@ -106,7 +106,7 @@
socketio() { socketio() {
let that = this; let that = this;
uni.connectSocket({ uni.connectSocket({
url: 'ws://139.159.177.244:9302/brest/WebSocket/' + app.globalData.userInfo.merchantStore.id url: app.globalData.wsssocket + app.globalData.userInfo.merchantStore.id
}); });
uni.onSocketOpen(function(res) { uni.onSocketOpen(function(res) {
console.log('WebSocket连接已打开!'); console.log('WebSocket连接已打开!');
@ -119,13 +119,18 @@
uni.onSocketMessage(function(res) { uni.onSocketMessage(function(res) {
let innerAudioContext = uni.createInnerAudioContext(); // let innerAudioContext = uni.createInnerAudioContext(); //
innerAudioContext.autoplay = false; // innerAudioContext.autoplay = false; //
innerAudioContext.src = res.data; // innerAudioContext.src = JSON.parse(res.data).voice; //
that.innerAudioContext = innerAudioContext; that.innerAudioContext = innerAudioContext;
that.orderList = [];
that.pageNum = 1;
that.getGasOrderList();
that.startAudio(); that.startAudio();
console.log('收到服务器内容:' + res.data); console.log('收到服务器内容:' + JSON.parse(res.data).voice);
}); });
uni.onSocketClose(function(res) { uni.onSocketClose(function(res) {
console.log('WebSocket 已关闭!'); console.log('WebSocket 已关闭!');
uni.closeSocket();
that.socketio();
}); });
}, },
// //
@ -249,7 +254,7 @@
} }
.counimgs { .counimgs {
width: 60px; width: 60px;
max-height: 60px; max-height: 60px;
} }

@ -100,7 +100,8 @@
// //
jumpdesfun(item) { jumpdesfun(item) {
if (item.title == '退出登录') { if (item.title == '退出登录') {
this.logout(); this.logout();
uni.closeSocket();
} }
uni.navigateTo({ uni.navigateTo({
url: item.url url: item.url

@ -1,7 +1,7 @@
<template> <template>
<view> <view>
<view v-if="oilgunList == ''" class="mart40 fotct font14 fcor666"> <view v-if="oilgunList == ''" class="mart40 fotct font14 fcor666">
<image mode="widthFix" style="width: 70vw;" src="../../../static/img/noorder.png"></image> <image mode="widthFix" style="width: 70vw;" src="../../../static/img/noorder.png"></image>
</view> </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}}号枪
@ -40,14 +40,25 @@
editable: true, editable: true,
success: function(res) { success: function(res) {
if (res.confirm) { if (res.confirm) {
var a = /^[0-9]*$/;
if (!(a.test(res.content))) {
uni.showToast({
title: '请输入正确的枪号',
duration: 2000,
icon: 'none'
})
return;
}
uni.showLoading({ uni.showLoading({
title: '提交中' title: '提交中'
}) })
let datas = { let datas = {
"oilPriceId": that.oilNo, "oilPriceId": that.oilNo,
"gunNo": res.content "gunNo": res.content
} }
addGasOilPrice(datas).then(res => { addGasOilPrice(datas).then(res => {
uni.hideLoading();
if (res.return_code == '000000') { if (res.return_code == '000000') {
that.getGunNoListByOilPrice(); that.getGunNoListByOilPrice();
} else { } else {

Loading…
Cancel
Save