上代码: 1.index.wxml
<view class="container-out">
<view class="circle" wx:for="{
{
circleList}}" style="top:{
{
item.topCircle}}rpx;left:{
{
item.leftCircle}}rpx;background-color: {
{(index%2==0)?colorCircleFirst:colorCircleSecond}};"></view>
<view class="container-in">
<view class="content-out" wx:for="{
{
awardList}}" style="top:{
{
item.topAward}}rpx;left:{
{
item.leftAward}}rpx;background-color: {
{(index==indexSelect)?colorAwardSelect:colorAwardDefault}};">
<image class="award-image" src="{
{
item.imageAward}}"></image>
</view>
<view class="start-btn" bindtap="startGame" style=" background-color:{
{
isRunning?'#e7930a':'#ffe400'}}">START</view>
</view>
</view>