Commit 2a36cb3e authored by zhengke's avatar zhengke

修改问题

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