|
|
@ -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 { |
|
|
|