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