Commit 072df52d authored by Mac's avatar Mac

修改

parent 6e678ad5
...@@ -27,7 +27,12 @@ ...@@ -27,7 +27,12 @@
<view style="width: calc(100vw - 30px - 40px);"> <view style="width: calc(100vw - 30px - 40px);">
<view style="display: flex;align-items: center;justify-content: space-between;width: 100%;"> <view style="display: flex;align-items: center;justify-content: space-between;width: 100%;">
<view style="font-size: 10px;color: #B2B2B2;">{{x.ForumName}}</view> <view style="font-size: 10px;color: #B2B2B2;">{{x.ForumName}}</view>
<u-icon name="delete" :size="35" color="111" @click.native.stop='cancel(x,i)'></u-icon> <view style="display: flex;align-items: center;">
<image @click.native.stop='xiugai(x,i)' src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/xiangq-xg.png" style="width: 35rpx;height: 35rpx;margin-right: 15rpx;"></image>
<image @click.native.stop='cancel(x,i)' src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/xiangq-sc.png" style="width: 35rpx;height: 35rpx"></image>
</view>
</view> </view>
<view style="font-size: 14px;color: #111111;line-height: 18px;margin-top: 5px;"> <view style="font-size: 14px;color: #111111;line-height: 18px;margin-top: 5px;">
{{x.ActivityTitle}} {{x.ActivityTitle}}
...@@ -139,7 +144,35 @@ export default { ...@@ -139,7 +144,35 @@ export default {
} }
}, },
methods: { methods: {
Children(Id){
this.request2(
{
url: '/api/AppletMiai/GetActivityPageList',
data: {
pageIndex: 1,
pageSize:10,
ForumId:0,
UserId:this.msg.UserId,
Id:Id
},
},
res => {
if(res.resultCode==1){
let data = res.data.pageData[0]
this.g.map((x,i)=>{
if(x.Id == data.Id){
console.log(this.g[i])
console.log(data)
this.g[i] = data
this.$forceUpdate()
return
}
})
}
}
);
},
init() { init() {
this.request2( this.request2(
...@@ -186,6 +219,11 @@ export default { ...@@ -186,6 +219,11 @@ export default {
this.show=true this.show=true
}, },
xiugai(x,i){
uni.navigateTo({
url: '/pages/blindDate/postPublishing?ForumId=' + x.ForumId+'&Id='+x.Id
})
},
//图片预览 //图片预览
previewImage(index, images) { previewImage(index, images) {
uni.previewImage({ uni.previewImage({
......
...@@ -161,7 +161,6 @@ ...@@ -161,7 +161,6 @@
:active-color="mainColor" :active-color="mainColor"
icon-size='34' icon-size='34'
label-size='24' label-size='24'
> >
{{item.name}} {{item.name}}
</u-radio> </u-radio>
...@@ -361,6 +360,9 @@ export default { ...@@ -361,6 +360,9 @@ export default {
if(option && option.ForumId){ if(option && option.ForumId){
this.addMsg.ForumId= option.ForumId this.addMsg.ForumId= option.ForumId
} }
if(option && option.Id){
this.getActivityInfo(option.Id)
}
this.u = uni.getStorageSync("mall_UserInfo"); this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) { if (!this.u) {
this.u = { this.u = {
...@@ -396,6 +398,18 @@ export default { ...@@ -396,6 +398,18 @@ export default {
} }
}, },
getActivityInfo(Id){
this.request2(
{
url: '/api/AppletMiai/GetActivityInfo',
data: {ActivityId:Id}
},
res => {
this.addMsg = res.data
}
);
},
tagClick(i){ tagClick(i){
this.addMsg.LabelList.splice(i,1) this.addMsg.LabelList.splice(i,1)
}, },
...@@ -563,7 +577,12 @@ export default { ...@@ -563,7 +577,12 @@ export default {
setTimeout(()=>{ setTimeout(()=>{
uni.navigateBack({ uni.navigateBack({
success: function() { success: function() {
if(that.addMsg.Id==0){//新增
beforePage.$vm.Children(that.addMsg.ForumId); // 执行前一个页面的方法 beforePage.$vm.Children(that.addMsg.ForumId); // 执行前一个页面的方法
}else{//修改
beforePage.$vm.Children(that.addMsg.Id); // 执行前一个页面的方法
}
} }
}); });
},1000) },1000)
......
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
</view> </view>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth='gbAuth'></auth> <auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth='gbAuth'></auth>
<u-modal v-model="rzshow" :content="showtext" :show-cancel-button='true' @confirm='queren'></u-modal>
</view> </view>
</div> </div>
</template> </template>
...@@ -295,6 +295,9 @@ ...@@ -295,6 +295,9 @@
Messagecount:0, Messagecount:0,
playindex:0, playindex:0,
controls:false, controls:false,
isAttestation:0,
showtext:'去认证',
rzshow:false,
} }
}, },
created() { created() {
...@@ -304,6 +307,7 @@ ...@@ -304,6 +307,7 @@
this.secondary = this.$uiConfig.secondary; this.secondary = this.$uiConfig.secondary;
this.pricecolor = this.$uiConfig.pricecolor; this.pricecolor = this.$uiConfig.pricecolor;
this.windowWidth = this.$utils.SystemInfo().windowWidth; this.windowWidth = this.$utils.SystemInfo().windowWidth;
this.isAttestation = basedata.user_info.isAttestation?basedata.user_info.isAttestation:0;
}, },
mounted() { mounted() {
let currentPages = getCurrentPages(); let currentPages = getCurrentPages();
...@@ -362,19 +366,50 @@ ...@@ -362,19 +366,50 @@
}, },
btnclick(item) { btnclick(item) {
// if (item.type == 2) {
// this.upvideo() let IsOpenMiAi = uni.getStorageSync("basedata")?uni.getStorageSync("basedata").mall.setting.is_show_miai:0;//是否开启相亲模式
// } else { if(IsOpenMiAi==1){
// uni.navigateTo({ if(this.isAttestation == 1){
// url: '/pages/friendcircle/release?type=' + item.type
// })
// innerAudioContext.stop();
// }
uni.navigateTo({ uni.navigateTo({
url: '/pages/friendcircle/release' url: '/pages/friendcircle/release'
}) })
}else if(this.isAttestation == 0){
this.rzshow = true
this.showtext = '还未认证,是否去认证?'
}else if(this.isAttestation == 2){
this.rzshow = true
this.showtext = '还未上传身份证信息,是否去上传?'
}
}else{
uni.navigateTo({
url: '/pages/friendcircle/release'
})
}
innerAudioContext.stop(); innerAudioContext.stop();
},
queren(){
let mall_UserInfo = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo"):null;
if(mall_UserInfo!=null){
uni.navigateTo({
url: '/pages/blindDate/editData?UserId='+ mall_UserInfo.UserId+'&Jumptype=2'
});
}
},
getisAttestation(){//认证成功
this.request2({
url: "/api/Mall/GetHome",
data: {page_id: 0,open_school: 0,StoreId: 0},
},
(res) => {
uni.setStorageSync("basedata", res.data);
let basedata = wx.getStorageSync("basedata")
this.isAttestation = basedata.user_info.isAttestation?basedata.user_info.isAttestation:0
},
(error) => {}
);
}, },
upvideo() { upvideo() {
let that = this let that = this
......
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