@@ -2,12 +2,12 @@ | |||
* 小程序配置文件 | |||
*/ | |||
// 此处主机域名修改成腾讯云解决方案分配的域名 | |||
var host = 'http://121.42.63.138:9091/autoSR/api'; // 测试站 | |||
// var host = 'http://121.42.63.138:9091/autoSR/api'; // 测试站 | |||
// var host = 'http://192.168.31.169:8080/autoSR/api'; // 长龙 | |||
// var host = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪 | |||
// var host = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 | |||
// var host = 'https://zkgj.quhouse.com/api'; // 质控正式 | |||
// var host = 'https://hfju.com/api'; // 数智正式 | |||
var host = 'https://hfju.com/api'; // 数智正式 | |||
var iMServiceHost = 'https://im.quhouse.com/'; //IM的后端地址正式 | |||
@@ -166,6 +166,15 @@ | |||
"navigationBarTextStyle": "black" | |||
} | |||
}, | |||
{ | |||
"path": "subscribe", | |||
"style": { | |||
"navigationBarTitleText": "消息订阅", | |||
"navigationBarBackgroundColor": "#FFFFFF", | |||
"navigationBarTextStyle": "black" | |||
} | |||
}, | |||
{ | |||
"path": "reception/addreception", | |||
"style": { | |||
@@ -207,7 +207,7 @@ | |||
}) | |||
}else{ | |||
uni.navigateTo({ | |||
url: `/pages/mine/detailsNew?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}` | |||
url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}` | |||
}) | |||
} | |||
} | |||
@@ -15,6 +15,15 @@ | |||
</view> | |||
</view> | |||
<view class="settingGroup box"> | |||
<!-- <navigator class="line" url="/pages/mine/subscribe"> | |||
<view class="title"> | |||
<image src="/static/images/subscribe.png" style="width: 36rpx;height: 36rpx;" mode=""></image> | |||
订阅消息 | |||
</view> | |||
<view class="right"> | |||
<image src="/static/images/arrow.png" style="width: 18rpx;height: 32rpx;" mode=""></image> | |||
</view> | |||
</navigator> --> | |||
<navigator class="line" url="/pages/mine/Myprofile"> | |||
<view class="title"> | |||
<image src="/static/images/setting.png" style="width: 36rpx;height: 36rpx;" mode=""></image> | |||
@@ -109,7 +118,37 @@ | |||
} | |||
} | |||
}); | |||
} | |||
}, | |||
// tosubscr(){ | |||
// let that=this; | |||
// wx.login({ | |||
// success (res) { | |||
// if (res.code) { | |||
// let appid ='wxd9748307889cbe0d'; | |||
// let secret = 'cfc40d2b86b650e216e900a2c430cd2b' | |||
// let url = 'https://api.weixin.qq.com/sns/jscode2session?appid=' + appid + '&secret=' + secret + '&js_code=' +res.code + '&grant_type=authorization_code'; | |||
// uni.request({ | |||
// url: url, // 请求路径 | |||
// success: result => { | |||
// that.$u.get("/user/bindMessage",{ | |||
// openId:result.data.openid, | |||
// loginName:that.mobile | |||
// }).then(data => { | |||
// console.log(data) | |||
// }) | |||
// } | |||
// }) | |||
// } else { | |||
// console.log('登录失败!' + res.errMsg) | |||
// } | |||
// } | |||
// }) | |||
// // /pages/mine/subscribe | |||
// }, | |||
} | |||
}; | |||
@@ -516,7 +516,9 @@ | |||
this.isshowFile = false; | |||
this.getCorpusAnalysis(info); | |||
this.creatAudio() | |||
var itc=parseInt(info.bg/1000) | |||
this.adasdasdasd(itc) | |||
console.log("999999999999999999999") | |||
} | |||
}) | |||
}else{ | |||
@@ -903,9 +905,9 @@ | |||
}, | |||
//录音列表显示隐藏 | |||
showFile() { | |||
console.log("111111111111111111111111") | |||
this.isshowFile = !this.isshowFile; | |||
console.log("222222222222222222222") | |||
this.audioPlay == false; | |||
this.innerAudioContext.pause() | |||
}, | |||
//评分上下显隐 | |||
@@ -1032,9 +1034,7 @@ | |||
qwe.isshow = false; | |||
}) | |||
}) | |||
var itc=parseInt(info.bg/1000) | |||
this.adasdasdasd(itc) | |||
console.log("999999999999999999999") | |||
setTimeout(function() { | |||
uni.hideLoading(); | |||
}, 2000); | |||
@@ -1129,10 +1129,14 @@ | |||
this.recordPath = item.recordPath; | |||
this.sliderMax = this.getTime(item.recordDuration); | |||
this.timeStr = this.getTime(item.recordDuration); | |||
this.currentTimeStr = "00:00"; | |||
this.sliderValue=0; | |||
this.$forceUpdate() | |||
this.date = item.receptionTime; | |||
this.isshowFile = false; | |||
this.creatAudio() | |||
this.getCorpusAnalysis() | |||
}, | |||
//录音实例 | |||
creatAudio() { | |||
@@ -61,7 +61,7 @@ | |||
<view class="audio"> | |||
<view class="audio-wrapper"> | |||
<view class="audio-number">{{format(current)}}</view> | |||
<slider class="audio-slider" @changing="[status.seeking = true,current=$event.detail.value]" @change="seek($event.detail.value)" | |||
<slider class="audio-slider" @change="seek($event.detail.value)" | |||
activeColor="#E0E0E0" step="1" block-size="16" :value="current" :max="duration"></slider> | |||
<view class="audio-number">{{format(duration)}}</view> | |||
</view> | |||
@@ -74,9 +74,10 @@ | |||
<u-icon name="skip-back-left" color="#333" size="48"></u-icon> | |||
</view> | |||
<view class="audio-control audio-control-switch" @click="!status.playing?play():pausePlay()"> | |||
<image v-if="status.playing && status.waiting" style="width: 30rpx;height: 30rpx;" src="../../static/images/jiazaizhong.gif" mode=""></image> | |||
<u-icon v-else-if="status.playing==false" name="play-circle" color="#333" size="72"></u-icon> | |||
<u-icon v-else name="pause-circle" color="#333" size="72"></u-icon> | |||
<!-- <image v-if="status.playing && status.waiting" style="width: 30rpx;height: 30rpx;" src="../../static/images/jiazaizhong.gif" mode=""></image> --> | |||
<u-icon v-if="status.playing" name="pause-circle" color="#333" size="72"></u-icon> | |||
<u-icon v-else name="play-circle" color="#333" size="72"></u-icon> | |||
</view> | |||
<view class="audio-control audio-control-next"> | |||
@@ -111,8 +112,8 @@ | |||
/**逻辑状态**/ | |||
status:{ | |||
playing:false,//只有点击控制面板和播放结束可修改此状态 | |||
seeking: false, //是否处于拖动状态 | |||
waiting: false, //等待加载数据 | |||
afterseek:false | |||
}, | |||
customerId:"",//客户id | |||
buildingID:'',//楼盘id | |||
@@ -197,10 +198,9 @@ | |||
this.resetStatus(); | |||
this.audio = uni.createInnerAudioContext(); | |||
this.audio.obeyMuteSwitch = false; | |||
this.audio.startTime=this.startTime; | |||
this.audio.startTime=this.startTime;//播放开始时间 | |||
this.audio.autoplay=false; | |||
this.duration=0; | |||
// this.mappedFields(); | |||
this.duration=this.luyinList[this.csdFileindex].recordDuration; | |||
this.audio.src=this.luyinList[this.csdFileindex].recordPath; | |||
if(this.autoplay){ | |||
this.status.playing=true; | |||
@@ -210,9 +210,7 @@ | |||
if (!this.duration) { | |||
this.duration = this.audio.duration | |||
} | |||
if (!this.status.seeking) { | |||
this.current = this.audio.currentTime | |||
} | |||
this.current = this.audio.currentTime | |||
this.playNow = parseInt(this.current * 1000) | |||
if (this.dialogList.length == 0) { | |||
return | |||
@@ -230,49 +228,40 @@ | |||
//音频播放事件 | |||
this.audio.onPlay(() => { | |||
this.debug && console.log('开始播放,当前播放器状态='+this.audio.paused); | |||
this.status.waiting = false; | |||
if(this.status.seeking && this.status.afterseek){ | |||
this.status.afterseek=false; | |||
// if(this.status.afterseek==true){ | |||
this.seek(this.current); | |||
}else{ | |||
this.status.seeking=false; | |||
this.status.afterseek=false; | |||
} | |||
// } | |||
}) | |||
//音频暂停事件 | |||
this.audio.onPause(() => { | |||
this.debug && console.log('暂停播放,当前播放器状态='+this.audio.paused); | |||
this.status.waiting = false; | |||
if(this.status.seeking && this.status.afterseek){ | |||
this.status.afterseek=false; | |||
this.seek(this.current); | |||
}else{ | |||
this.status.seeking=false; | |||
this.status.afterseek=false; | |||
console.log("是",this.status.afterseek) | |||
if(this.status.afterseek==true){ | |||
console.log("走跳转") | |||
this.audio.seek(this.current); | |||
} | |||
}) | |||
this.audio.onStop(() => { | |||
this.debug && console.log('停止播放,当前播放器状态='+this.audio.paused); | |||
}) | |||
//音频等待 | |||
this.audio.onWaiting(() => { | |||
this.debug && console.log('等待音频数据,当前播放器状态='+this.audio.paused) | |||
this.status.waiting = true; | |||
if(!this.audio.paused){ | |||
this.audio.pause() | |||
} | |||
}) | |||
this.audio.onCanplay(() => { | |||
this.debug && console.log('数据准备就绪,当前播放器状态='+this.audio.paused) | |||
this.status.waiting = false; | |||
if (this.status.playing && !this.status.seeking && !this.status.afterseek) { | |||
this.play() | |||
} | |||
}) | |||
//音频完成更改进度事件 | |||
this.audio.onSeeking(()=>{ | |||
console.log("进行跳转"); | |||
}) | |||
this.audio.onSeeked(() => { | |||
console.log("结束跳转"); | |||
this.status.afterseek=false; | |||
this.play() | |||
}) | |||
//音频结束事件 | |||
@@ -293,29 +282,27 @@ | |||
value=this.duration; | |||
} | |||
this.debug && console.log('调用Seek,当前audio状态='+this.audio.paused+',value='+value); | |||
this.status.afterseek=true; | |||
this.status.seeking = true; | |||
this.status.playing=true; | |||
this.current = value; | |||
if(!this.audio.paused){//暂停事件里调用this.audio.seek | |||
this.audio.pause() | |||
}else{//已经是停止状态 必须先播放后再调用this.seek | |||
if(this.audio.paused==false){//暂停事件里调用this.audio.seek | |||
console.log("播放中") | |||
this.status.afterseek=true; | |||
if(!this.status.waiting){ | |||
this.play(); | |||
} | |||
this.pausePlay() | |||
}else{//已经是停止状态 必须先播放后再调用this.seek | |||
console.log("暂停") | |||
// this.status.afterseek=true; | |||
this.play(); | |||
} | |||
}, | |||
//点击播放按钮 | |||
play() { | |||
this.debug && console.log('调用播放,当前audio状态='+this.audio.paused); | |||
this.status.playing=true; | |||
if(this.audio.paused){ | |||
this.audio.play(); | |||
} | |||
}, | |||
pausePlay(){ | |||
this.debug && console.log('调用暂停,当前audio状态='+this.audio.paused); | |||
this.status.playing=false; | |||
if(!this.audio.paused){ | |||
this.audio.pause(); | |||
@@ -324,8 +311,6 @@ | |||
// 重置状态 | |||
resetStatus(){ | |||
this.status.playing = false; | |||
this.status.seeking=false; | |||
this.status.waiting = false; | |||
this.current = 0; | |||
}, | |||
//格式化时长 | |||
@@ -65,7 +65,8 @@ | |||
</view> | |||
</view> | |||
<view class="clive" @click="save">确定</view> | |||
<view class="clive" v-if="saveisshow" @click.stop="save">确定</view> | |||
<view class="clive2" v-else >确定</view> | |||
<view v-if="Showhiddenunits"> | |||
<u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="list" @cancel="cancel" @confirm="confirm"></u-select> | |||
@@ -109,7 +110,9 @@ | |||
content: '东临碣石,以观沧海', | |||
confirmtext:'1',//确认文字 | |||
canceltext:'2',//取消文字 | |||
daitiReceptionobj:{} | |||
daitiReceptionobj:{}, | |||
saveisshow:true, | |||
}; | |||
}, | |||
onShow: function() { | |||
@@ -138,11 +141,13 @@ | |||
this.baochunfun() | |||
}, | |||
save() { | |||
this.saveisshow=false; | |||
if (this.parames.name.length==0) { | |||
uni.showToast({ | |||
icon: "none", | |||
title: "客户姓名不能为空" | |||
}) | |||
this.saveisshow=true; | |||
return; | |||
} | |||
if (this.parames.phone && !this.$u.test.mobile(this.parames.phone)) { | |||
@@ -150,23 +155,10 @@ | |||
icon: "none", | |||
title: "手机号码格式不正确" | |||
}) | |||
this.saveisshow=true; | |||
return; | |||
} | |||
// if (this.parames.phone && this.parames.phone.length<5) { | |||
// uni.showToast({ | |||
// icon: "none", | |||
// title: "手机号码不能小于5位" | |||
// }) | |||
// return; | |||
// } | |||
// if (this.parames.phone && this.parames.phone.length>11) { | |||
// uni.showToast({ | |||
// icon: "none", | |||
// title: "手机号码不能大于11位" | |||
// }) | |||
// return; | |||
// } | |||
const that = this; | |||
this.$u.post("customer/daitiReception", { | |||
phone: that.parames.phone, | |||
@@ -216,6 +208,7 @@ | |||
}) | |||
if (dataCode == 6) { | |||
this.$u.post("/customer/gwAdd", this.parames).then(res => { | |||
this.saveisshow=true; | |||
uni.hideLoading(); | |||
uni.showToast({ | |||
icon: "none", | |||
@@ -225,6 +218,7 @@ | |||
}) | |||
} else { | |||
this.$u.post("/customer/add", this.parames).then(res => { | |||
this.saveisshow=true; | |||
uni.hideLoading(); | |||
uni.showToast({ | |||
icon: "none", | |||
@@ -412,4 +406,16 @@ | |||
margin-top: 300rpx; | |||
font-size: 32rpx; | |||
} | |||
.clive2{ | |||
width: 690rpx; | |||
height: 88rpx; | |||
background: #9999; | |||
text-align: center; | |||
line-height: 88rpx; | |||
color: #666; | |||
border-radius: 8rpx; | |||
margin: 0 auto; | |||
margin-top: 300rpx; | |||
font-size: 32rpx; | |||
} | |||
</style> |
@@ -0,0 +1,71 @@ | |||
<template> | |||
<view class="main"> | |||
<view class="text1">第一步:关注众合发展公众号</view> | |||
<view style="width: 96%;margin: 0 auto;"> | |||
<view class="text2" style="margin-top: 30rpx;">1.长按识别二维码或保存至相册进行关注</view> | |||
<view style="text-align: center;" > | |||
<image @click="baocun()" style="width: 300rpx;height: 300rpx;" src="../../static/images/supimg.png" mode=""></image> | |||
</view> | |||
<view style="margin-top: 30rpx;" class="text2">2.微信搜索公众号【众合发展】进行关注</view> | |||
</view> | |||
<view style="margin-top: 30rpx;" class="text1">第二步:点击【用户绑定】,完成绑定即可</view> | |||
<view style="width: 100%;margin-top: 30rpx;"> | |||
<image style="width: 100%;height: 362rpx;" src="../../static/images/supsrc.png" mode=""></image> | |||
</view> | |||
<view style="font-size: 30rpx;color: red;margin-top: 30rpx;"> | |||
注意:微信绑定手机号与智控管家登录的手机号不一致时无法接受消息。 | |||
</view> | |||
</view> | |||
</template> | |||
<script> | |||
var app = getApp(); | |||
var util = require("../../utils/util.js"); | |||
var config = require("../../config"); | |||
export default { | |||
data() { | |||
return { | |||
}; | |||
}, | |||
onShow: function() { | |||
var userInfos = uni.getStorageSync('weapp_session_userInfo_data'); | |||
}, | |||
methods: { | |||
baocun(){ | |||
uni.chooseImage({ | |||
count: 1, | |||
sourceType: ['camera'], | |||
success: function (res) { | |||
uni.saveImageToPhotosAlbum({ | |||
filePath: "../../static/images/supimg.png", | |||
success: function () { | |||
console.log('save success'); | |||
} | |||
}); | |||
} | |||
}); | |||
} | |||
} | |||
}; | |||
</script> | |||
<style lang="scss" scoped> | |||
.main { | |||
padding:30rpx; | |||
background: #F8F8F8; | |||
display: flex; | |||
flex-direction: column; | |||
min-height: 100vh; | |||
padding-bottom: 40rpx; | |||
background: #FFFFFF; | |||
.text1{ | |||
color: #303030; | |||
font-size: 30rpx; | |||
} | |||
.text2{ | |||
font-size: 30rpx; | |||
color: #666666; | |||
} | |||
} | |||
</style> |
@@ -1,10 +1,10 @@ | |||
const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站 | |||
// const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站 | |||
// const baseUrl = 'http://192.168.31.169:8080/autoSR/api'; // 长龙 | |||
// const baseUrl = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪 | |||
// const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 | |||
// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 | |||
// const baseUrl = 'https://hfju.com/api'; // 数智正式 | |||
const baseUrl = 'https://hfju.com/api'; // 数智正式 | |||
const install = (Vue, vm) => { | |||
Vue.prototype.$u.http.setConfig({ | |||