| @@ -1,9 +1,10 @@ | |||||
| import { host, hosts, iMServiceHost } from './utils/domain.js' | |||||
| import { host, hosts, iMServiceHost , admin, base} from './utils/domain.js' | |||||
| var config = { | var config = { | ||||
| service: { | service: { | ||||
| host, | host, | ||||
| iMServiceHost, | iMServiceHost, | ||||
| addLog:`${base}/admin/log/addLoginCount`, | |||||
| getStage:`${host}/customer/getStage`, | getStage:`${host}/customer/getStage`, | ||||
| //验证toen | //验证toen | ||||
| verify:`${host}/user/verify`, | verify:`${host}/user/verify`, | ||||
| @@ -1,7 +1,7 @@ | |||||
| { | { | ||||
| "name" : "AI营销辅助", | "name" : "AI营销辅助", | ||||
| "appid" : "__UNI__D88F14A", | "appid" : "__UNI__D88F14A", | ||||
| "description" : "智控管家", | |||||
| "description" : "AI销管", | |||||
| "versionName" : "1.1.0", | "versionName" : "1.1.0", | ||||
| "versionCode" : "100", | "versionCode" : "100", | ||||
| "transformPx" : false, | "transformPx" : false, | ||||
| @@ -14,7 +14,7 @@ | |||||
| { | { | ||||
| "path": "pages/index/index", | "path": "pages/index/index", | ||||
| "style": { | "style": { | ||||
| "navigationBarTitleText": "智控管家", | |||||
| "navigationBarTitleText": "AI销管", | |||||
| "navigationBarBackgroundColor": "#2671E2", | "navigationBarBackgroundColor": "#2671E2", | ||||
| "navigationBarTextStyle": "white" | "navigationBarTextStyle": "white" | ||||
| } | } | ||||
| @@ -66,7 +66,7 @@ | |||||
| <view class="zuoname">{{item.agentName}}</view> | <view class="zuoname">{{item.agentName}}</view> | ||||
| </view> | </view> | ||||
| <view class="cen"> | <view class="cen"> | ||||
| 自动结束 18:12 | |||||
| 自动结束 <u-count-down :timestamp="timestamp(item.createTime)" color="#E7483C"></u-count-down> | |||||
| </view> | </view> | ||||
| <view class="you"> | <view class="you"> | ||||
| <!-- <view class="youimg1" v-if="item.status!=0"></view> | <!-- <view class="youimg1" v-if="item.status!=0"></view> | ||||
| @@ -129,10 +129,10 @@ | |||||
| <image src="../../static/images/time.png" class="c-items-img" mode=""></image> | <image src="../../static/images/time.png" class="c-items-img" mode=""></image> | ||||
| {{ item.createTime }} | {{ item.createTime }} | ||||
| </view> | </view> | ||||
| <view class="c-items"> | |||||
| <!-- <view class="c-items"> | |||||
| <image src="../../static/images/voice.png" class="c-items-img" mode=""></image> | <image src="../../static/images/voice.png" class="c-items-img" mode=""></image> | ||||
| {{ item.mm || '0' }}min | {{ item.mm || '0' }}min | ||||
| </view> | |||||
| </view> --> | |||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| <view class="footer-button" v-if="item.status!=0"> | <view class="footer-button" v-if="item.status!=0"> | ||||
| @@ -182,7 +182,15 @@ | |||||
| onLoad() { | onLoad() { | ||||
| uni.hideTabBar(); | uni.hideTabBar(); | ||||
| }, | }, | ||||
| computed:{ | |||||
| timestamp(){ | |||||
| return (e)=>{ | |||||
| let totalTime = new Date(e).getTime()/1000 + 60*60*2 | |||||
| let nowTime = new Date().getTime()/1000 | |||||
| return totalTime - nowTime | |||||
| } | |||||
| } | |||||
| }, | |||||
| onShow() { | onShow() { | ||||
| this.buildingID = uni.getStorageSync('buildingID').id; | this.buildingID = uni.getStorageSync('buildingID').id; | ||||
| let newmenulist = uni.getStorageSync('weapp_session_Menu_data'); | let newmenulist = uni.getStorageSync('weapp_session_Menu_data'); | ||||
| @@ -203,7 +211,7 @@ | |||||
| methods: { | methods: { | ||||
| reshCustom() { | reshCustom() { | ||||
| this.init() | this.init() | ||||
| }, | |||||
| }, | |||||
| tapThevisiting(item) { | tapThevisiting(item) { | ||||
| if (this.permissions.commonly1 != true) { | if (this.permissions.commonly1 != true) { | ||||
| return | return | ||||
| @@ -436,8 +436,26 @@ | |||||
| } | } | ||||
| this.initworkThisWeek() | this.initworkThisWeek() | ||||
| this.initrealTimeStatistics() | this.initrealTimeStatistics() | ||||
| this.sendLog() | |||||
| }, | }, | ||||
| methods: { | methods: { | ||||
| sendLog(){ | |||||
| uni.request({ | |||||
| url: config.service.addLog, | |||||
| method: "POST", | |||||
| header: { | |||||
| 'content-type': 'application/json', | |||||
| 'Authorization': 'Bearer ' + uni.getStorageSync('weapp_session_login_data').token | |||||
| }, | |||||
| data: { | |||||
| houseId: this.buildingID, | |||||
| serviceId:"test" | |||||
| }, | |||||
| success: (data) => { | |||||
| console.log(data) | |||||
| } | |||||
| }) | |||||
| }, | |||||
| //时间选择 | //时间选择 | ||||
| tabtimetap(index,str){ | tabtimetap(index,str){ | ||||
| this.timeshow=false; | this.timeshow=false; | ||||
| @@ -15,15 +15,15 @@ | |||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| <view class="settingGroup box"> | <view class="settingGroup box"> | ||||
| <navigator class="line" url="/pages/mine/messageList"> | |||||
| <!-- <navigator class="line" url="/pages/mine/messageList"> | |||||
| <view class="title"> | <view class="title"> | ||||
| <!-- <image src="/static/images/studyhot.png" style="width: 36rpx;height: 36rpx;" mode=""></image> --> | |||||
| <image src="/static/images/studyhot.png" style="width: 36rpx;height: 36rpx;" mode=""></image> | |||||
| 消息 | 消息 | ||||
| </view> | </view> | ||||
| <view class="right"> | <view class="right"> | ||||
| <image src="/static/images/arrow.png" style="width: 18rpx;height: 32rpx;" mode=""></image> | <image src="/static/images/arrow.png" style="width: 18rpx;height: 32rpx;" mode=""></image> | ||||
| </view> | </view> | ||||
| </navigator> | |||||
| </navigator> --> | |||||
| <navigator class="line" url="/pages/mine/Myprofile"> | <navigator class="line" url="/pages/mine/Myprofile"> | ||||
| <view class="title"> | <view class="title"> | ||||
| <image src="/static/images/setting.png" style="width: 36rpx;height: 36rpx;" mode=""></image> | <image src="/static/images/setting.png" style="width: 36rpx;height: 36rpx;" mode=""></image> | ||||
| @@ -126,7 +126,7 @@ | |||||
| success: function(result) { | success: function(result) { | ||||
| var data = result.data; //console.log("登陆信息", data); | var data = result.data; //console.log("登陆信息", data); | ||||
| if (data.data == true) { | if (data.data == true) { | ||||
| app.Closewebsocke() | |||||
| // app.Closewebsocke() | |||||
| uni.clearStorageSync(); //清除缓存 | uni.clearStorageSync(); //清除缓存 | ||||
| uni.showToast({ | uni.showToast({ | ||||
| icon: "none", | icon: "none", | ||||
| @@ -9,7 +9,7 @@ | |||||
| 您好, | 您好, | ||||
| </view> | </view> | ||||
| <view class="text-2"> | <view class="text-2"> | ||||
| 欢迎登录智控管家~ | |||||
| 欢迎登录AI销管~ | |||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| <view class="cwjs-cells item-flex" style="margin-top: 80rpx;"> | <view class="cwjs-cells item-flex" style="margin-top: 80rpx;"> | ||||
| @@ -9,7 +9,7 @@ | |||||
| 您好, | 您好, | ||||
| </view> | </view> | ||||
| <view class="text-2"> | <view class="text-2"> | ||||
| 欢迎登录智控管家~ | |||||
| 欢迎登录AI销管~ | |||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| <view class="cwjs-cells item-flex" style="margin-top: 80rpx;"> | <view class="cwjs-cells item-flex" style="margin-top: 80rpx;"> | ||||
| @@ -102,7 +102,25 @@ | |||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| <view class="contentInfo"> | <view class="contentInfo"> | ||||
| <view class="info">{{conversionTiame(item.bg/1000)}}</view> | |||||
| <view class="info"> | |||||
| <text v-if="item.speaker == 1" class="AudioUserName">A</text> | |||||
| <text v-if="item.speaker == 2" class="AudioUserName">B</text> | |||||
| <text v-if="item.speaker == 3" class="AudioUserName">C</text> | |||||
| <text v-if="item.speaker == 4" class="AudioUserName">D</text> | |||||
| <text v-if="item.speaker == 5" class="AudioUserName">E</text> | |||||
| <text v-if="item.speaker == 6" class="AudioUserName">F</text> | |||||
| <text v-if="item.speaker == 7" class="AudioUserName">G</text> | |||||
| <text v-if="item.speaker == 8" class="AudioUserName">H</text> | |||||
| <text v-if="item.speaker == 9" class="AudioUserName">I</text> | |||||
| <text v-if="item.speaker == 10" class="AudioUserName">J</text> | |||||
| <text v-if="item.speaker == 11" class="AudioUserName">K</text> | |||||
| <text v-if="item.speaker == 12" class="AudioUserName">L</text> | |||||
| <text v-if="item.speaker == 13" class="AudioUserName">M</text> | |||||
| <text v-if="item.speaker == 14" class="AudioUserName">N</text> | |||||
| <text v-if="item.speaker == 15" class="AudioUserName">O</text> | |||||
| <text v-if="item.speaker == 16" class="AudioUserName">P</text> | |||||
| <text>{{conversionTiame(item.bg/1000)}}</text> | |||||
| </view> | |||||
| <view class="contentMain"> | <view class="contentMain"> | ||||
| <view class="content"> | <view class="content"> | ||||
| <view @longpress="changanxiaoguo(item,index,i)" v-html="item.onebest"></view> | <view @longpress="changanxiaoguo(item,index,i)" v-html="item.onebest"></view> | ||||
| @@ -128,7 +146,6 @@ | |||||
| <image @click="clickbofang(dialog.backindex,item)" class="play" src="../../static/images/recordingManagement/play.png"></image> | <image @click="clickbofang(dialog.backindex,item)" class="play" src="../../static/images/recordingManagement/play.png"></image> | ||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| </scroll-view> | </scroll-view> | ||||
| @@ -2350,6 +2367,30 @@ | |||||
| } | } | ||||
| .scroll-Y .text[data-speaker="2"], | |||||
| .scroll-Y .text[data-speaker="4"], | |||||
| .scroll-Y .text[data-speaker="6"] { | |||||
| .contentInfo{ | |||||
| .info{ | |||||
| .AudioUserName{ | |||||
| margin-left: 10rpx; | |||||
| } | |||||
| display: flex; | |||||
| flex-direction: row-reverse; | |||||
| } | |||||
| } | |||||
| } | |||||
| .scroll-Y .text{ | |||||
| .contentInfo{ | |||||
| .info{ | |||||
| .AudioUserName{ | |||||
| margin-right: 10rpx; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| .scroll-Y .text .avatar { | .scroll-Y .text .avatar { | ||||
| width: 64upx; | width: 64upx; | ||||
| @@ -100,7 +100,7 @@ | |||||
| <!-- <view class="red"></view> --> | <!-- <view class="red"></view> --> | ||||
| </view> | </view> | ||||
| <view class="right"> | <view class="right"> | ||||
| <view class="title">智控管家(2022-01-22)升级公告</view> | |||||
| <view class="title">(2022-01-22)升级公告</view> | |||||
| <view class="time">2021-01-12 12:23:01</view> | <view class="time">2021-01-12 12:23:01</view> | ||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| @@ -109,7 +109,7 @@ | |||||
| <view class="red"></view> | <view class="red"></view> | ||||
| </view> | </view> | ||||
| <view class="right"> | <view class="right"> | ||||
| <view class="title">智控管家(2022-01-11)升级公告</view> | |||||
| <view class="title">(2022-01-11)升级公告</view> | |||||
| <view class="time">2021-01-12 12:23:01</view> | <view class="time">2021-01-12 12:23:01</view> | ||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| @@ -1,8 +1,8 @@ | |||||
| // const base = 'http://39.97.167.65' ;// 测试站 | // const base = 'http://39.97.167.65' ;// 测试站 | ||||
| // const base = 'http://8kdmng.natappfree.cc' ;// 佳豪 | // const base = 'http://8kdmng.natappfree.cc' ;// 佳豪 | ||||
| // const base = 'http://192.168.31.134:9999' ;// 佳豪 | // const base = 'http://192.168.31.134:9999' ;// 佳豪 | ||||
| // const base = 'http://192.168.31.167:9999' // 长龙 | |||||
| const base = 'https://zanyong.hfju.com';// 正式 | |||||
| const base = 'http://192.168.31.167:9999' // 长龙 | |||||
| // const base = 'https://zanyong.hfju.com';// 正式 | |||||
| // http.js使用 | // http.js使用 | ||||
| const baseUrl = `${base}/autoSR/api`; | const baseUrl = `${base}/autoSR/api`; | ||||
| @@ -10,11 +10,14 @@ const baseUrl = `${base}/autoSR/api`; | |||||
| const host = `${base}/autoSR/api`; | const host = `${base}/autoSR/api`; | ||||
| const hosts = `${base}/`; | const hosts = `${base}/`; | ||||
| const admin = "http://192.168.31.167:9999"; | |||||
| const iMServiceHost = 'https://im.quhouse.com/'; //IM的后端地址正式 | const iMServiceHost = 'https://im.quhouse.com/'; //IM的后端地址正式 | ||||
| export { | export { | ||||
| baseUrl, | baseUrl, | ||||
| host, | host, | ||||
| hosts, | hosts, | ||||
| iMServiceHost | |||||
| admin, | |||||
| iMServiceHost, | |||||
| base | |||||
| } | } | ||||