1.修改问题

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

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

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

@ -2,7 +2,7 @@
<view>
<image src="../../../static/img/logo.png" mode="widthFix" class="mart40 alijus imgs"></image>
<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>
</view>
<view class="height40p"></view>

@ -106,7 +106,7 @@
socketio() {
let that = this;
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) {
console.log('WebSocket连接已打开!');
@ -119,13 +119,18 @@
uni.onSocketMessage(function(res) {
let innerAudioContext = uni.createInnerAudioContext(); //
innerAudioContext.autoplay = false; //
innerAudioContext.src = res.data; //
innerAudioContext.src = JSON.parse(res.data).voice; //
that.innerAudioContext = innerAudioContext;
that.orderList = [];
that.pageNum = 1;
that.getGasOrderList();
that.startAudio();
console.log('收到服务器内容:' + res.data);
console.log('收到服务器内容:' + JSON.parse(res.data).voice);
});
uni.onSocketClose(function(res) {
console.log('WebSocket 已关闭!');
uni.closeSocket();
that.socketio();
});
},
//

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

@ -40,14 +40,25 @@
editable: true,
success: function(res) {
if (res.confirm) {
var a = /^[0-9]*$/;
if (!(a.test(res.content))) {
uni.showToast({
title: '请输入正确的枪号',
duration: 2000,
icon: 'none'
})
return;
}
uni.showLoading({
title: '提交中'
})
let datas = {
"oilPriceId": that.oilNo,
"gunNo": res.content
}
addGasOilPrice(datas).then(res => {
uni.hideLoading();
if (res.return_code == '000000') {
that.getGunNoListByOilPrice();
} else {

Loading…
Cancel
Save