This commit is contained in:
cansnow
2025-12-05 16:10:52 +08:00
parent 29be534f22
commit 69a61178e1
64 changed files with 2575 additions and 1141 deletions
@@ -53,15 +53,15 @@
<!-- :value="address.name" :value-style="customValueStyle" :label="address.address" -->
<u-cell bg-color="#ffffff"
:title="address.chooseFlag?(address.name):'所在位置'" :title-style="customTitleStyle"
:label="address.chooseFlag?(address.address):'请选择'"
:value="address.chooseFlag?(address.address):'请选择'" isLink
@click="toChooseLocation()">
<view slot="icon" class="u-flex u-row-center u-col-center">
<u-icon name="map" size="32" :color="address.chooseFlag?'#19be6b':'#606266'"></u-icon>
</view>
</u-cell>
<u-cell bg-color="#ffffff" title="提醒谁看" :title-style="customTitleStyle" @click="toRemind()">
<u-cell bg-color="#ffffff" title="提醒谁看" :title-style="customTitleStyle" @click="toRemind">
<view slot="icon" class="u-flex u-row-center u-col-center">
<u-icon name="/static/images/friendCircle/at.png" width="32" height="32" color="#606266"></u-icon>
<u-icon name="/static/images/friendCircle/at.png" width="24" height="24" color="#606266"></u-icon>
</view>
</u-cell>
<u-cell bg-color="#ffffff" @click="toSetPromission()"
@@ -90,6 +90,11 @@
components:{
videoPlayer
},
computed: {
circleData() {
return this.$store.getters.storeCircleData;
}
},
data() {
return {
winWidth:0,
@@ -173,18 +178,24 @@
if (this.releaseType == 2) {
this.navbarTitle = "发表视频";
}
if (option.tempFilePaths != null && option.tempFilePaths != undefined && option.tempFilePaths.length > 0) {
this.tempFilePaths = JSON.parse(option.tempFilePaths);
if(this.releaseType!=0){
//console.log("不是纯文字")
this.submitFlag=false; //可以直接发布
const _this = this;
const eventChannel = this.getOpenerEventChannel();
// 注意在 onUnload 取消监听,避免监听常驻内存
eventChannel.on('successEvent', function(data) {
console.log(data)
if (data.tempFilePaths != null && data.tempFilePaths != undefined && data.tempFilePaths.length > 0) {
_this.tempFilePaths = data.tempFilePaths;
if(_this.releaseType!=0){
//console.log("不是纯文字")
_this.submitFlag=false; //可以直接发布
}
for (var i = 0; i < _this.tempFilePaths.length; i++) {
let url= _this.tempFilePaths[i];
_this.tempUploadFilePath.push({url:url});
}
//console.log("准备发朋友圈的临时文件", _this.tempUploadFilePath);
}
for (var i = 0; i < this.tempFilePaths.length; i++) {
let url= this.tempFilePaths[i];
this.tempUploadFilePath.push({url:url});
}
//console.log("准备发朋友圈的临时文件", this.tempUploadFilePath);
}
})
},
@@ -202,6 +213,14 @@
}
});
},
onUnload() {
try {
const eventChannel = this.getOpenerEventChannel();
eventChannel.off('successEvent');
} catch (error) {
//TODO handle the exception
}
},
methods: {
cdn:util.cdn,
@@ -214,7 +233,7 @@
//监听输入
inputing:function(e){
let content=e.detail.value.trim();
//console.log("content",content);
console.log("content",content);
if(content.length>0){
this.submitFlag=false;
}else{
@@ -225,11 +244,7 @@
//如果不是纯文字
else{
//附件列表没有
if(this.tempFilePaths.length<1){
this.submitFlag=true;
}else{
this.submitFlag=false;
}
this.submitFlag = this.tempFilePaths.length<1;
}
}
},
@@ -247,11 +262,7 @@
//如果不是纯文字
else{
//附件列表没有
if(this.tempFilePaths.length<1){
this.submitFlag=true;
}else{
this.submitFlag=false;
}
this.submitFlag = this.tempFilePaths.length<1;
}
}
},
@@ -432,7 +443,7 @@
else{
newCircle.comment=[];
}
let circleDataList=this.circleData;
let circleDataList=[...this.circleData];
circleDataList.unshift(newCircle);
that.$u.vuex('circleData', circleDataList);
that.btnLoading = false;