Commit cea1b34b authored by qinhaitao's avatar qinhaitao

refactor: 💡 format

parent 7da670d1
...@@ -38,9 +38,7 @@ ...@@ -38,9 +38,7 @@
<select value="{{searchInfo.prizeDataType}}" onChange="handleInputChange" data-name='prizeDataType'> <select value="{{searchInfo.prizeDataType}}" onChange="handleInputChange" data-name='prizeDataType'>
<option value="">全部</option> <option value="">全部</option>
<% for(var i = 0; i < formatPrize.length; ++i) {%> <% for(var i = 0; i < formatPrize.length; ++i) {%>
<%- ` <%- `<option value="${formatPrize[i].prizeDataType}">${formatPrize[i].name}</option> `
<option value="${formatPrize[i].prizeDataType}">${formatPrize[i].name}</option>
`
%><% } %> %><% } %>
</select> </select>
</form-item> </form-item>
...@@ -72,9 +70,7 @@ ...@@ -72,9 +70,7 @@
<table-column title="发奖来源" dataIndex="prizeDataType"> <table-column title="发奖来源" dataIndex="prizeDataType">
<view slot-scope="x"> <view slot-scope="x">
<% for(var i = 0; i < formatPrize.length; ++i) {%> <% for(var i = 0; i < formatPrize.length; ++i) {%>
<%- ` <%- `<text a:if="{{x.record.prizeDataType == ${formatPrize[i].prizeDataType}}}">${formatPrize[i].name}</text> `
<text a:if="{{x.record.prizeDataType == ${formatPrize[i].prizeDataType}}}">${formatPrize[i].name}</text>
`
%><% } %> %><% } %>
</view> </view>
</table-column> </table-column>
......
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