Commit fd1e24ee by Ken Nakahira

提交更新代码

parent 8d79ac4a
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -607,7 +607,6 @@ var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runt
//
//
//
//
// import FullScreenLoading from '../../components/FullScreenLoading.vue';
var recorderManager = uni.getRecorderManager();
......@@ -708,6 +707,8 @@ var _default = {
Allvoice: [],
worldParameter: [],
total_val: [],
fontSize: 0,
boxHeight: 210,
quotedData: []
};
},
......@@ -770,6 +771,7 @@ var _default = {
//获取历史聊天记录 根据历史记录处理决定 websocket 的连接
this.getHistory();
this.calcFontSize(26);
//讲完话以后 向服务器发送数据
recorderManager.onStop(function (res) {
......@@ -932,14 +934,24 @@ var _default = {
},
scrollToBottom_pangbai: function scrollToBottom_pangbai() {
var _this3 = this;
uni.createSelectorQuery().in(this).select('#scrollView').boundingClientRect(function (res) {
// console.log('res1',res)
this.$nextTick(function () {
uni.createSelectorQuery().in(_this3).select('#scrollView').boundingClientRect(function (res) {
if (res) {
_this3.scrollTop_pangbai = res.height * 2;
} else {
// this.scrollTop_pangbai=this.historyRecord.length*1000;
//this.scrollTop_pangbai = this.historyRecord.length * 1000;
}
}).exec();
});
},
calcFontSize: function calcFontSize(size) {
var windowInfo = wx.getWindowInfo();
var FontSizeRPX = size * (428 / 750);
var FontSizePX = FontSizeRPX / (windowInfo.windowWidth / 750);
var pangbaiHeightRPX = 210 * (428 / 750);
var pangbaiHeightPX = pangbaiHeightRPX / (windowInfo.windowWidth / 750);
this.fontSize = FontSizePX;
this.height = 210;
},
splitString: function splitString(str) {
var result = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment