修改语音播报莫名其妙 bug,查看 ai取件 图片等

This commit is contained in:
2025-04-01 21:19:16 +08:00
parent fd6310b8f1
commit 607dbf7018
8 changed files with 46 additions and 34 deletions

BIN
assets/icon/images.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -86,19 +86,24 @@ Component({
} }
}, },
notice(){ notice(){
this.bgam.src = this.data.haveOrderAudio; //这里通知改为下面的inneraudio 之前用的上面的 但是突然有一天 在切换 src 之后会执行onStop
this.bgam.onEnded(()=>{ //从而导致停止播放音乐逻辑 不知道为什么 怀疑微信偷偷改东西或者手机问题
this.bgam.src = this.data.emptyAudio;
}); // this.bgam.src = this.data.haveOrderAudio;
// console.log('notice order'); // this.bgam.onEnded(()=>{
// const innerAudioContext = wx.createInnerAudioContext({ // this.bgam.src = this.data.emptyAudio;
// useWebAudioImplement:true // });
// })
// innerAudioContext.src = this.data.haveOrderAudio;
// innerAudioContext.play(); console.log('notice order');
// innerAudioContext.onEnded(()=>{ const innerAudioContext = wx.createInnerAudioContext({
// innerAudioContext.destroy(); useWebAudioImplement:true
// }) })
innerAudioContext.src = this.data.haveOrderAudio;
innerAudioContext.play();
innerAudioContext.onEnded(()=>{
innerAudioContext.destroy();
})
}, },
downloadFile(url,filePath){ downloadFile(url,filePath){
console.log('download',url,filePath); console.log('download',url,filePath);

View File

@ -189,12 +189,12 @@ Page({
this.data.statusDetail.delivering.value = 0; this.data.statusDetail.delivering.value = 0;
this.data.statusDetail.completed.value = 0; this.data.statusDetail.completed.value = 0;
data.map((item)=>{ data.map((item)=>{
if(item.status==this.data.orderStatus.unpaid||item.status==this.data.orderStatus.completed){ // if(item.status==this.data.orderStatus.unpaid||item.status==this.data.orderStatus.completed){
this.data.statusDetail.completed.value += item.count; // this.data.statusDetail.completed.value += item.count;
}else{ // }else{
if(this.data.statusDetail[item.status.toLowerCase()]){ // }
this.data.statusDetail[item.status.toLowerCase()].value = item.count; if(this.data.statusDetail[item.status.toLowerCase()]){
} this.data.statusDetail[item.status.toLowerCase()].value = item.count;
} }
}); });
console.log(this.data.statusDetail); console.log(this.data.statusDetail);
@ -207,9 +207,9 @@ Page({
const cid = this.data.userInfo.community_id; const cid = this.data.userInfo.community_id;
const status = this.data.statusDetail[this.data.statusDetailKey]; const status = this.data.statusDetail[this.data.statusDetailKey];
let _status = status.key; let _status = status.key;
if(status.key==this.data.orderStatus.completed){ // if(status.key==this.data.orderStatus.completed){
_status = `${this.data.orderStatus.unpaid},${this.data.orderStatus.completed}`; // _status = `${this.data.orderStatus.unpaid},${this.data.orderStatus.completed}`;
} // }
let data = await orderApi.buildingList(cid,_status); let data = await orderApi.buildingList(cid,_status);
let totalCount = 0; let totalCount = 0;
(data||[]).map((item)=>{ (data||[]).map((item)=>{
@ -238,11 +238,11 @@ Page({
}else{ }else{
params.community_id = this.data.userInfo.community_id; params.community_id = this.data.userInfo.community_id;
} }
if(this.data.statusDetailKey=='completed'){ // if(this.data.statusDetailKey=='completed'){
params.status = `${this.data.orderStatus.unpaid},${this.data.orderStatus.completed}` // params.status = `${this.data.orderStatus.unpaid},${this.data.orderStatus.completed}`
}else{ // }else{
params.status = this.data.statusDetail[this.data.statusDetailKey].key; // }
} params.status = this.data.statusDetail[this.data.statusDetailKey].key;
orderApi.list(params).then((data)=>{ orderApi.list(params).then((data)=>{
const date = new Date(); const date = new Date();
if(this.data.pager.pageIndex==0){ if(this.data.pager.pageIndex==0){

View File

@ -62,9 +62,9 @@
}} }}
</view> </view>
</view> </view>
<view class="sl-item" wx:if="{{item.pickup_images&&item.pickup_images.length>0}}"> <!-- <view class="sl-item" wx:if="{{item.pickup_images&&item.pickup_images.length>0}}">
<view class="name">图片取件 {{item.pickup_images_count}} 件</view> <view class="name">图片取件 {{item.pickup_images_count}} 件</view>
</view> </view> -->
</view> </view>
<view class="address"> <view class="address">
<view class="title"> <view class="title">

View File

@ -19,6 +19,9 @@
<view class="page-container station-info" wx:for="{{orderDetail.packages}}" wx:key="index"> <view class="page-container station-info" wx:for="{{orderDetail.packages}}" wx:key="index">
<view class="title"> <view class="title">
<view class="name">{{item.station_name}}</view> <view class="name">{{item.station_name}}</view>
<image src="/assets/icon/images.png" class="view-img-icon" bind:tap="previewPackageImage"
data-item="{{orderDetail.pickup_images}}"
wx:if="{{orderDetail.status!=orderStatus.created&&!item.station_id}}"/>
<view class="received-status {{orderDetail.status==orderStatus.received&&!item.receivedAll?'done':''}}" <view class="received-status {{orderDetail.status==orderStatus.received&&!item.receivedAll?'done':''}}"
wx:if="{{item.status!=orderStatus.created}}"> wx:if="{{item.status!=orderStatus.created}}">
<!-- {{item.receivedAll?'已取件':'待取件'}} --> <!-- {{item.receivedAll?'已取件':'待取件'}} -->
@ -43,9 +46,9 @@
</label> </label>
</checkbox-group> </checkbox-group>
</view> </view>
<view class="page-container station-info" wx:if="{{orderDetail.pickup_images&&orderDetail.pickup_images.length>0}}"> <view class="page-container station-info" wx:if="{{false&&orderDetail.pickup_images&&orderDetail.pickup_images.length>0}}">
<view class="title"> <view class="title">
<view class="name">图片取件 {{orderDetail.pickup_images_count}} 件</view> <view class="name">原始图片信息</view>
</view> </view>
<view class="images" wx:if="{{orderDetail.status==orderStatus.created}}"> <view class="images" wx:if="{{orderDetail.status==orderStatus.created}}">
<view class="image empty-img" wx:for="{{orderDetail.pickup_images}}" wx:key="index" src="{{item}}"> <view class="image empty-img" wx:for="{{orderDetail.pickup_images}}" wx:key="index" src="{{item}}">
@ -120,7 +123,7 @@
</view> </view>
<view class="row"> <view class="row">
<view class="key">订单金额</view> <view class="key">订单金额</view>
<view class="value money money-normal">{{orderDetail.original_amount}}</view> <view class="value money money-normal">{{orderDetail.final_amount}}</view>
</view> </view>
</view> </view>
<view class="scroll-view-dispatch"></view> <view class="scroll-view-dispatch"></view>

View File

@ -44,6 +44,10 @@
font-weight: 500; font-weight: 500;
flex: 1; flex: 1;
} }
.station-info .title .view-img-icon{
width:40rpx;height:40rpx;
padding:0 18rpx;
}
.station-info .title .received-status{ .station-info .title .received-status{
font-size: 32rpx; font-size: 32rpx;
border-left: 1rpx solid #999999; border-left: 1rpx solid #999999;

View File

@ -1,5 +1,5 @@
{ {
"miniprogramRoot": "./", "miniprogramRoot": "",
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "trial", "libVersion": "trial",
"packOptions": { "packOptions": {

View File

@ -4,5 +4,5 @@
"setting": { "setting": {
"compileHotReLoad": true "compileHotReLoad": true
}, },
"libVersion": "3.7.7" "libVersion": "3.6.6"
} }