Commit 42d122ba by xhw

更新

parent 028ad081
...@@ -1008,6 +1008,10 @@ export default { ...@@ -1008,6 +1008,10 @@ export default {
// this.total_val.unshift() // this.total_val.unshift()
this.total_val = this.total_val.splice(1,this.total_val.length) this.total_val = this.total_val.splice(1,this.total_val.length)
console.log(text,this.total_val) console.log(text,this.total_val)
//更新头像
const int = this.total_val[0].split('')[0]
console.log(int)
this.reloadGetPhoto(int)
// console.log('finalVal',finalVal) // console.log('finalVal',finalVal)
// console.log('ISLIU_content',ISLIU_content,'text',text,'total_val',res[1].data.results) // console.log('ISLIU_content',ISLIU_content,'text',text,'total_val',res[1].data.results)
...@@ -1230,19 +1234,19 @@ export default { ...@@ -1230,19 +1234,19 @@ export default {
}) })
}, },
reloadGetPhoto(){ reloadGetPhoto(int){
uni.request({ uni.request({
url:`https://admin.mindepoch.com:8089/worlds/${this.currentPageData.worldName}.png` ? url:`https://admin.mindepoch.com:8089/worlds/${int}.png` ?
`https://admin.mindepoch.com:8089/worlds/${this.currentPageData.worldName}.png` : `https://admin.mindepoch.com:8089/worlds/${int}.png` :
`https://admin.mindepoch.com:8089/worlds/${this.currentPageData.worldName}.jpg` ? `https://admin.mindepoch.com:8089/worlds/${int}.jpg` ?
`https://admin.mindepoch.com:8089/worlds/${this.currentPageData.worldName}.jpg` : `https://admin.mindepoch.com:8089/worlds/${int}.jpg` :
`https://admin.mindepoch.com:8089/worlds/${this.currentPageData.worldName}.gif` ? `https://admin.mindepoch.com:8089/worlds/${int}.gif` ?
`https://admin.mindepoch.com:8089/worlds/${this.currentPageData.worldName}.gif` : `https://admin.mindepoch.com:8089/worlds/${int}.gif` :
`/images/ai1.png`, `/images/ai1.png`,
method: 'GET', method: 'GET',
responseType: 'arraybuffer', responseType: 'arraybuffer',
data: { data: {
id: this.currentPageData.worldName, id: int,
}, },
responseType: 'arraybuffer', responseType: 'arraybuffer',
header: { header: {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -1190,6 +1190,10 @@ var _default = ...@@ -1190,6 +1190,10 @@ var _default =
// this.total_val.unshift() // this.total_val.unshift()
_this5.total_val = _this5.total_val.splice(1, _this5.total_val.length); _this5.total_val = _this5.total_val.splice(1, _this5.total_val.length);
console.log(text, _this5.total_val); console.log(text, _this5.total_val);
//更新头像
var int = _this5.total_val[0].split('')[0];
console.log(int);
_this5.reloadGetPhoto(int);
// console.log('finalVal',finalVal) // console.log('finalVal',finalVal)
// console.log('ISLIU_content',ISLIU_content,'text',text,'total_val',res[1].data.results) // console.log('ISLIU_content',ISLIU_content,'text',text,'total_val',res[1].data.results)
...@@ -1412,16 +1416,16 @@ var _default = ...@@ -1412,16 +1416,16 @@ var _default =
}); });
}, },
reloadGetPhoto: function reloadGetPhoto() {var _uni$request,_this8 = this; reloadGetPhoto: function reloadGetPhoto(int) {var _uni$request,_this8 = this;
uni.request((_uni$request = { uni.request((_uni$request = {
url: true ? "https://admin.mindepoch.com:8089/worlds/".concat( url: true ? "https://admin.mindepoch.com:8089/worlds/".concat(
this.currentPageData.worldName, ".png") : int, ".png") :
undefined, undefined,
method: 'GET', method: 'GET',
responseType: 'arraybuffer', responseType: 'arraybuffer',
data: { data: {
id: this.currentPageData.worldName } }, _defineProperty(_uni$request, "responseType", id: int } }, _defineProperty(_uni$request, "responseType",
'arraybuffer'), _defineProperty(_uni$request, "header", 'arraybuffer'), _defineProperty(_uni$request, "header",
{ {
......
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