banner优化
This commit is contained in:
parent
548b548f82
commit
f955acb850
@ -387,11 +387,11 @@ class VicinityItemBean {
|
|||||||
interests: interests,
|
interests: interests,
|
||||||
images: List<String>.from(json['images']),
|
images: List<String>.from(json['images']),
|
||||||
avatarThumb: json['avatar_thumb'],
|
avatarThumb: json['avatar_thumb'],
|
||||||
genderName: json['genderName'],
|
genderName: json['gender_name'],
|
||||||
roleName: json['roleName'],
|
roleName: json['role_name'],
|
||||||
orientationName: json['orientationName'],
|
orientationName: json['orientation_name'],
|
||||||
bgPicUrl: json['bgPicUrl'],
|
bgPicUrl: json['bg_picUrl'],
|
||||||
onlineFlag: json['onlineFlag'],
|
onlineFlag: json['online_flag'],
|
||||||
isOnline: json['isOnline'],
|
isOnline: json['isOnline'],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -318,17 +318,13 @@ class _CirclePageState extends State<CirclePage>
|
|||||||
const Spacer(),
|
const Spacer(),
|
||||||
Container(
|
Container(
|
||||||
margin: EdgeInsets.only(right: 8.sp),
|
margin: EdgeInsets.only(right: 8.sp),
|
||||||
child: item.isOnline == 1
|
child: Text(
|
||||||
? Text(
|
item.onlineFlag.toString(),
|
||||||
"当前在线",
|
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color:
|
color: const Color.fromRGBO(247, 250, 250, 1.0),
|
||||||
const Color.fromRGBO(247, 250, 250, 1.0),
|
|
||||||
fontSize: 12.sp,
|
fontSize: 12.sp,
|
||||||
),
|
),
|
||||||
)
|
)),
|
||||||
: Container(),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -491,10 +487,10 @@ class _CirclePageState extends State<CirclePage>
|
|||||||
child: Swiper(
|
child: Swiper(
|
||||||
autoplay: logic.bannerList.length > 1,
|
autoplay: logic.bannerList.length > 1,
|
||||||
controller: logic.swiperController,
|
controller: logic.swiperController,
|
||||||
|
autoplayDelay: 6000,
|
||||||
loop: logic.bannerList.length > 1 ? true : false,
|
loop: logic.bannerList.length > 1 ? true : false,
|
||||||
// index:logic.index,
|
// index:logic.index,
|
||||||
itemBuilder: (BuildContext context, int index) {
|
itemBuilder: (BuildContext context, int index) {
|
||||||
print(logic.bannerList[index].picUrl);
|
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
// print(logic.bannerList[index].param);
|
// print(logic.bannerList[index].param);
|
||||||
@ -517,10 +513,10 @@ class _CirclePageState extends State<CirclePage>
|
|||||||
margin: EdgeInsets.all(5.0.sp), // 设置外边距
|
margin: EdgeInsets.all(5.0.sp), // 设置外边距
|
||||||
alignment: Alignment.bottomCenter,
|
alignment: Alignment.bottomCenter,
|
||||||
builder: DotSwiperPaginationBuilder(
|
builder: DotSwiperPaginationBuilder(
|
||||||
color: Colors.white, // 小圆点的颜色
|
color: Color(0x00FFFFFF), // 小圆点的颜色
|
||||||
activeColor: logic.bannerList.length == 1
|
activeColor: logic.bannerList.length == 1
|
||||||
? Color(0x00FFFFFF)
|
? Color(0x00FFFFFF)
|
||||||
: Color(0xFFFF4D7C), // 当前索引小圆点的颜色
|
: Color(0x00FFFFFF), // 当前索引小圆点的颜色
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// control: new SwiperControl(), //左右的那个箭头,在某模拟器中会出现蓝线
|
// control: new SwiperControl(), //左右的那个箭头,在某模拟器中会出现蓝线
|
||||||
|
|||||||
@ -29,7 +29,7 @@ class MinefragmentLogic extends GetxController {
|
|||||||
|
|
||||||
String enterHomeInfoMsg = "进入主页";
|
String enterHomeInfoMsg = "进入主页";
|
||||||
String joinedCircle = "";
|
String joinedCircle = "";
|
||||||
String vipMsg = "九大专属特权等你领取";
|
String vipMsg = "十几种专属特权等你领取";
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void onInit() async {
|
void onInit() async {
|
||||||
|
|||||||
@ -83,7 +83,7 @@ class Open_vip_tipPage extends StatelessWidget {
|
|||||||
Positioned(
|
Positioned(
|
||||||
top: 24.sp,
|
top: 24.sp,
|
||||||
child: Text(
|
child: Text(
|
||||||
'会员九大特权',
|
'十几种专属会员特权',
|
||||||
style: TextStyle(color: Colors.white, fontSize: 16.sp),
|
style: TextStyle(color: Colors.white, fontSize: 16.sp),
|
||||||
)),
|
)),
|
||||||
Positioned(
|
Positioned(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user