Commit 2a36cb3e authored by zhengke's avatar zhengke

修改问题

parent 43abc5f1
......@@ -37,12 +37,12 @@
<scroll-view :scroll-y="true" :enable-back-to-top="true" :enable-flex="true" @scrolltolower="lower" :style="{ height: '100%' }">
<!-- <view style="display: flex;flex-direction: column;align-items: center;"> -->
<view>
<u-swipe-action :show="item.show" :disabled="item.disabled" :index="index" v-for="(item, index) in g" :key="item.id" @click="click" @open="open"
<u-swipe-action :show="item.show" :disabled="item.disabled" :index="index" v-for="(item, index) in g" @content-click="goUrl" :key="item.id" @click="click" @open="open"
:options="options">
<view class="share_Item u-border-bottom">
<!-- <u-avatar :src="item.Photo" size="64"></u-avatar> -->
<!-- 此层wrap在此为必写的,否则可能会出现标题定位错误 -->
<view class="title-wrap" style="width:100%;" @click="goUrl(item.UserId)">
<view class="title-wrap" style="width:100%;">
<view class="box_top">
<u-avatar :src="item.Photo" size="64"></u-avatar>
<view class="box_r">
......@@ -101,7 +101,7 @@
pageSize: 10,
GradeId: 1
},
titleDirect:1,
titleDirect:0,
msg2: {
pageIndex: 1,
pageSize: 10,
......@@ -143,7 +143,7 @@
GradeName: '普通会员'
}, ] //设置默认值
this.getUserMyTeamTitelListForFX()
// this.init2()
} else {
this.init()
}
......@@ -165,7 +165,6 @@
},
methods: {
open() {
},
getDirest() {
if (this.isCheckIn) {
......@@ -175,7 +174,7 @@
}
this.titleDirect=this.msg2.IsDirect
this.getUserMyTeamTitelListForFX();
this.init2(1);
},
getUserMyTeamTitelListForFX() {
uni.showLoading({
......@@ -192,7 +191,8 @@
uni.hideLoading();
this.list = res.data;
this.msg2.FXGradeId = this.list[0].Id;
this.init2()
this.current=0;
this.init2(1);
}
);
},
......@@ -214,6 +214,7 @@
}
this.init2(1);
},
//获取数据
init2(num) {
if (num == 1) {
this.g = [];
......@@ -298,7 +299,8 @@
}
},
//跳转详情
goUrl(UserId) {
goUrl(index) {
let UserId = this.g[index].UserId
uni.navigateTo({
url: '/pages/share-team/share-detail?UserId=' + UserId
});
......@@ -315,18 +317,25 @@
(res) => {
this.request2({
url: '/api/AppletUser/GerUserMyTeamTitelListForFX',
data: {}
data: {
IsDirect:this.titleDirect
}
},
(res) => {
this.list = res.data;
}
);
this.init2(1)
this.getNewTitle();
// this.init2(1)
}
);
this.g[index].show = false;
},
getNewTitle(){
this.msg2.FXGradeId = this.list[this.current].Id;
this.init2(1);
},
open(index) {
// 先将正在被操作的swipeAction标记为打开状态,否则由于props的特性限制,
// 原本为'false',再次设置为'false'会无效
......
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