index.axml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <view class="page" onTap="clickAudio">
  2. <!-- catchTap="closeMask"-->
  3. <view class="{{isPortraitScreen?'portrait-main':'main'}}">
  4. <top-title urlPath='../../../' titleText="基本设置" />
  5. <view class="basic-content">
  6. <view a:for="{{ radioList }}" a:for-index="radioIndex" class="form-box">
  7. <text>{{item.name}}</text>
  8. <view class="radio-group">
  9. <view
  10. a:for="{{item.chooseItem}}"
  11. a:for-index="radioBoxIndex"
  12. a:for-item="radioBoxItem"
  13. class="radio"
  14. data-checkIndex="{{radioIndex}}"
  15. data-item="{{item}}"
  16. data-index="{{radioBoxIndex}}"
  17. onTap="onRadioChange"
  18. >
  19. <view class="{{radioBoxItem.checked ? 'radioBox-checked':'radioBox-unchecked'}}" />
  20. <text class="radioBox-text">{{radioBoxItem.name}}</text>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="form-box"></view>
  25. <!-- 通用 -->
  26. <view class="form-box">
  27. <text>启用通用二维码</text>
  28. <view
  29. class="cus-switch"
  30. data-checked="{{form.generalQrcode}}"
  31. data-fieldKey="generalQrcode"
  32. onTap="onSwitchChange"
  33. >
  34. <view class="switch-main {{form.generalQrcode?'checked':''}} capsule">
  35. </view>
  36. </view>
  37. </view>
  38. <view a:if="{{form.generalQrcode}}" class="form-box">
  39. <text>通用二维码标题</text>
  40. <input
  41. class="form-input"
  42. onInput="getVal"
  43. data-key="generalQrcodeTitle"
  44. value="{{form.generalQrcodeTitle}}"
  45. />
  46. </view>
  47. <view a:else class="form-box"></view>
  48. <!-- 梯控 -->
  49. <view class="form-box">
  50. <text>启用梯控二维码</text>
  51. <view
  52. class="cus-switch"
  53. data-checked="{{form.ethQrcode}}"
  54. data-fieldKey="ethQrcode"
  55. onTap="onSwitchChange"
  56. >
  57. <view class="switch-main {{form.ethQrcode?'checked':''}} capsule">
  58. </view>
  59. </view>
  60. </view>
  61. <view a:if="{{form.ethQrcode}}" class="form-box">
  62. <text>梯控二维码标题</text>
  63. <input
  64. class="form-input"
  65. onInput="getVal"
  66. data-key="ethQrcodeTitle"
  67. value="{{form.ethQrcodeTitle}}"
  68. />
  69. </view>
  70. <view a:if="{{form.ethQrcode}}" class="form-box wid">
  71. <text>梯控二维码接口</text>
  72. <input
  73. class="form-input"
  74. onInput="getVal"
  75. data-key="ethQrcodeUrl"
  76. value="{{form.ethQrcodeUrl}}"
  77. />
  78. <view class="more-box" catchTap="openMask" data-key="TK">
  79. <image
  80. mode="scaleToFill"
  81. src="https://tx.hz-hanghui.com:8088/yx-fyzd/file/upload/imagesnew/static/settings/more.png"
  82. class="more-icon"
  83. />
  84. </view>
  85. <view a:if="{{ isShowTK }}" class="select-area">
  86. <view
  87. a:for="{{ TKList }}"
  88. class="item"
  89. onTap="getVal"
  90. data-key="TK"
  91. data-val="{{item}}"
  92. >
  93. {{item}}
  94. </view>
  95. </view>
  96. </view>
  97. <view a:else class="form-box"></view>
  98. <view a:for="{{ checkBoxList }}" a:for-index="checkIndex" class="form-box wid">
  99. <text>{{item.name}}</text>
  100. <view class="checkbox-group">
  101. <view
  102. a:for="{{item.chooseItem}}"
  103. a:for-index="checkboxIndex"
  104. a:for-item="checkboxItem"
  105. class="checkbox"
  106. data-checkIndex="{{checkIndex}}"
  107. data-item="{{item}}"
  108. data-index="{{checkboxIndex}}"
  109. onTap="onCheckBoxChange"
  110. >
  111. <view class="{{checkboxItem.checked ? 'checkbox-checked':'checkbox-unchecked'}}" />
  112. <text class="checkbox-text">{{checkboxItem.name}}</text>
  113. </view>
  114. </view>
  115. </view>
  116. <block a:if="{{form.reminderAuth}}">
  117. <!-- 标语页确定倒计时 -->
  118. <view class="form-box">
  119. <text>标语页确定倒计时</text>
  120. <view
  121. class="cus-switch"
  122. data-checked="{{form.confirmCountdownSwitch}}"
  123. data-fieldKey="confirmCountdownSwitch"
  124. onTap="onSwitchChange"
  125. >
  126. <view class="switch-main {{form.confirmCountdownSwitch?'checked':''}} capsule">
  127. </view>
  128. </view>
  129. </view>
  130. <view a:if="{{form.confirmCountdownSwitch}}" class="form-box">
  131. <text>倒计时时长(s)</text>
  132. <view class="left" onTap="minus">-</view>
  133. <input
  134. class="form-input number-input"
  135. data-key="confirmCountdownTime"
  136. value="{{form.confirmCountdownTime}}"
  137. onInput="getVal"
  138. type="number"
  139. />
  140. <view class="right" onTap="add">+</view>
  141. </view>
  142. </block>
  143. <bottom-parnel suerName="{{'确定'}}" onSure="sure" logOut="/pages/settings/index/index" />
  144. </view>
  145. </view>
  146. </view>