Commit 00d9a62e by chenwq

优化FourthStep和index组件,新增glsx-image组件引用并调整步骤图标逻辑

1 parent 12a12730
{ {
"component": true, "component": true,
"usingComponents": { "usingComponents": {
"van-icon": "@vant/weapp/icon/index" "van-icon": "@vant/weapp/icon/index",
"glsx-image": "/components/image/index"
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"second-step": "../components/SecondStep/SecondStep", "second-step": "../components/SecondStep/SecondStep",
"third-step": "../components/ThirdStep/ThirdStep", "third-step": "../components/ThirdStep/ThirdStep",
"fourth-step": "../components/FourthStep/FourthStep", "fourth-step": "../components/FourthStep/FourthStep",
"van-sticky": "@vant/weapp/sticky/index" "van-sticky": "@vant/weapp/sticky/index",
"glsx-image": "/components/image/index"
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -12,7 +12,8 @@ ...@@ -12,7 +12,8 @@
<block wx:for="{{stepList}}" wx:key="step"> <block wx:for="{{stepList}}" wx:key="step">
<view class="step-item"> <view class="step-item">
<view class="step-number-circle {{currentStep >= item.step ? 'active' : ''}}"> <view class="step-number-circle {{currentStep >= item.step ? 'active' : ''}}">
<view class="step-number">{{item.step}}</view> <glsx-image wx:if="{{currentStep > item.step}}" src="/index/icon-ok.png" style="width: 44rpx; height: 44rpx; display: block;" />
<view wx:else class="step-number">{{item.step}}</view>
</view> </view>
<view class="step-name {{currentStep >= item.step ? 'active' : ''}}">{{item.name}}</view> <view class="step-name {{currentStep >= item.step ? 'active' : ''}}">{{item.name}}</view>
</view> </view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!