sleepEvaluation.wxml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. <view style="width: 100vw;height: 100vh; background: #CCEDF5;">
  2. <scroll-view scroll-y="true" style="height: 100vh;background: #CCEDF5;" scroll-into-view="{{mInputId}}">
  3. <view class="container">
  4. <image src="/subpages/images/testb_banner.png" style="display: block;width: 100vw;" mode="widthFix"></image>
  5. <wxs module="jstools" src="/subpages/wxs/includes.wxs"></wxs>
  6. <!-- 基本信息 -->
  7. <view class="section-top">
  8. <image src="/subpages/images/testb_bg.png" style="display: block;width: 100%;" mode="widthFix"></image>
  9. <text
  10. class="tips">您好!非常感谢您在百忙之中填写这份问卷。为了更好地了解您的入住体验,并根据您的建议进行持续完善。我们特此开展此次调查。请您根据自己的实际情况如实回答,所有数据将严格保密,仅用于研究分析。本问卷大约需要5-10分钟时间,请您耐心完成。您的意见对于我们而言至关重要。</text>
  11. </view>
  12. <view class='title_1'>一、基本信息</view>
  13. <view class="section" id="age">
  14. <text>1.您的年龄:</text>
  15. <van-radio-group value="{{ age }}" bind:change="bindAgeChange">
  16. <van-radio wx:for="{{ageOptions}}" wx:key="index" name="{{item.value}}" checked-color="#0ABCA4"
  17. custom-class="custom-radio-class" use-icon-slot>
  18. <view class="radio-view">
  19. <image class="radio-icon" slot="icon" src="{{ age === item.value ? activeIcon : normalIcon }}" />
  20. <text class="radio-title"
  21. style="{{ age === item.value ? activeColor : normalColor }}">{{item.label}}</text>
  22. </view>
  23. </van-radio>
  24. </van-radio-group>
  25. </view>
  26. <view class="section" id="career">
  27. <text>2.您的职业:</text>
  28. <van-radio-group value="{{ career }}" bind:change="bindCareerChange">
  29. <van-radio wx:for="{{careerOptions}}" wx:key="index" name="{{item.value}}" checked-color="#0ABCA4"
  30. custom-class="custom-radio-class" use-icon-slot>
  31. <view class="radio-view">
  32. <image class="radio-icon" slot="icon" src="{{ career === item.value ? activeIcon : normalIcon }}" />
  33. <text class="radio-title"
  34. style="{{ career === item.value ? activeColor : normalColor }}">{{item.label}}</text>
  35. </view>
  36. </van-radio>
  37. </van-radio-group>
  38. <input type="text" placeholder="请填写您的职业" bindinput="bindCareerInputInput" />
  39. </view>
  40. <view class="section" id="gender">
  41. <text>3.您的性别:</text>
  42. <van-radio-group value="{{ gender }}" bind:change="bindGenderChange">
  43. <van-radio name='0' checked-color="#0ABCA4" custom-class="custom-radio-class" use-icon-slot>
  44. <view class="radio-view">
  45. <image class="radio-icon" slot="icon" src="{{ gender === '0' ? activeIcon : normalIcon }}" />
  46. <text class="radio-title" style="{{ gender === '0' ? activeColor : normalColor }}">男</text>
  47. </view>
  48. </van-radio>
  49. <van-radio name='1' checked-color="#0ABCA4" custom-class="custom-radio-class" use-icon-slot>
  50. <view class="radio-view">
  51. <image class="radio-icon" slot="icon" src="{{ gender === '1' ? activeIcon : normalIcon }}" />
  52. <text class="radio-title" style="{{ gender === '1' ? activeColor : normalColor }}">女</text>
  53. </view>
  54. </van-radio>
  55. <van-radio name='2' checked-color="#0ABCA4" custom-class="custom-radio-class" use-icon-slot>
  56. <view class="radio-view">
  57. <image class="radio-icon" slot="icon" src="{{ gender === '2' ? activeIcon : normalIcon }}" />
  58. <text class="radio-title" style="{{ gender === '2' ? activeColor : normalColor }}">不愿透露</text>
  59. </view>
  60. </van-radio>
  61. </van-radio-group>
  62. </view>
  63. <view class="section" id="channel">
  64. <text>4、您是通过什么渠道预定到的本酒店睡眠房?</text>
  65. <van-radio-group value="{{ channel }}" bind:change="bindChannelChange">
  66. <van-radio name='0' checked-color="#0ABCA4" custom-class="custom-radio-class" use-icon-slot>
  67. <view class="radio-view">
  68. <image class="radio-icon" slot="icon" src="{{ channel === '0' ? activeIcon : normalIcon }}" />
  69. <text class="radio-title" style="{{ channel === '0' ? activeColor : normalColor }}">酒店散客</text>
  70. </view>
  71. </van-radio>
  72. <van-radio name='1' checked-color="#0ABCA4" custom-class="custom-radio-class" use-icon-slot>
  73. <view class="radio-view">
  74. <image class="radio-icon" slot="icon" src="{{ channel === '1' ? activeIcon : normalIcon }}" />
  75. <text class="radio-title" style="{{ channel === '1' ? activeColor : normalColor }}">朋友推荐</text>
  76. </view>
  77. </van-radio>
  78. <van-radio name='2' checked-color="#0ABCA4" custom-class="custom-radio-class" use-icon-slot>
  79. <view class="radio-view">
  80. <image class="radio-icon" slot="icon" src="{{ channel === '2' ? activeIcon : normalIcon }}" />
  81. <text class="radio-title"
  82. style="{{ channel === '2' ? activeColor : normalColor }}">第三方平台(如携程、去哪儿网、飞猪、同程等)</text>
  83. </view>
  84. </van-radio>
  85. </van-radio-group>
  86. <input type="text" placeholder="请填写第三方平台" bindinput="bindThirdPlatformsInputInput" />
  87. </view>
  88. <view class='title_1'>二、用户体验</view>
  89. <!-- 睡眠环境评价 -->
  90. <view class="section" id="stayExper">
  91. <text>5、睡眠房的入住体验怎么样?</text>
  92. <van-radio-group value="{{ stayExper }}" bind:change="bindStayExperOptions">
  93. <van-radio wx:for="{{stayExperOptions}}" wx:key="index" name="{{item.value}}" checked-color="#0ABCA4"
  94. custom-class="custom-radio-class" use-icon-slot>
  95. <view class="radio-view">
  96. <image class="radio-icon" slot="icon" src="{{ stayExper === item.value ? activeIcon : normalIcon }}" />
  97. <text class="radio-title"
  98. style="{{ stayExper === item.value ? activeColor : normalColor }}">{{item.label}}</text>
  99. </view>
  100. </van-radio>
  101. </van-radio-group>
  102. </view>
  103. <view class="section" id="satisfied">
  104. <text>6、入住之后,您觉得哪些方面让您比较满意?(多选)</text>
  105. <van-checkbox-group value="{{ satisfied }}" bind:change="bindSatisfied">
  106. <van-checkbox wx:for="{{satisfiedOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  107. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  108. <view class="radio-view">
  109. <image class="radio-icon" slot="icon"
  110. src="{{ jstools.includes(satisfied,item.value) ? activeIcon : normalIcon }}" />
  111. <text class="radio-title"
  112. style="{{ jstools.includes(satisfied,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  113. </view>
  114. </van-checkbox>
  115. </van-checkbox-group>
  116. </view>
  117. <view class="section" id="noSatisfied">
  118. <text>7、让您对本次睡眠房入住体验不满意的原因是?</text>
  119. <van-radio-group value="{{ noSatisfied }}" bind:change="bindNoSatisfiedChange">
  120. <van-radio wx:for="{{noSatisfiedOptions}}" wx:key="index" name="{{item.value}}" checked-color="#0ABCA4"
  121. custom-class="custom-radio-class" use-icon-slot>
  122. <view class="radio-view">
  123. <image class="radio-icon" slot="icon" src="{{ noSatisfied === item.value ? activeIcon : normalIcon }}" />
  124. <text class="radio-title"
  125. style="{{ noSatisfied === item.value ? activeColor : normalColor }}">{{item.label}}</text>
  126. </view>
  127. </van-radio>
  128. </van-radio-group>
  129. <input type="text" placeholder="请填写体验不满意的原因" bindinput="bindNoSatisfiedInput" />
  130. </view>
  131. <view class="section" id="improvementSleep">
  132. <text>8、您通常采取什么措施来改善睡眠?(多选)</text>
  133. <van-checkbox-group value="{{ improvementSleep }}" bind:change="bindImprovementSleep">
  134. <van-checkbox wx:for="{{improvementSleepOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  135. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  136. <view class="radio-view">
  137. <image class="radio-icon" slot="icon"
  138. src="{{ jstools.includes(improvementSleep,item.value) ? activeIcon : normalIcon }}" />
  139. <text class="radio-title"
  140. style="{{ jstools.includes(improvementSleep,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  141. </view>
  142. </van-checkbox>
  143. </van-checkbox-group>
  144. </view>
  145. <view class="section" id="wayImprovementSleep">
  146. <text>9、您倾向于下面哪些方式来帮助改善睡眠?(多选)</text>
  147. <van-checkbox-group value="{{ wayImprovementSleep }}" bind:change="bindWayImprovementSleep">
  148. <van-checkbox wx:for="{{wayImprovementSleepOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  149. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  150. <view class="radio-view">
  151. <image class="radio-icon" slot="icon"
  152. src="{{ jstools.includes(wayImprovementSleep,item.value) ? activeIcon : normalIcon }}" />
  153. <text class="radio-title"
  154. style="{{ jstools.includes(wayImprovementSleep,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  155. </view>
  156. </van-checkbox>
  157. </van-checkbox-group>
  158. <input type="text" placeholder="请填写帮助改善睡眠方式" bindinput="bindWayImprovementSleepInput" />
  159. </view>
  160. <view class="section" id="getSleepHealth">
  161. <text>10、您通常从哪里获取关于睡眠健康的信息?(多选)</text>
  162. <van-checkbox-group value="{{ getSleepHealth }}" bind:change="bindGetSleepHealth">
  163. <van-checkbox wx:for="{{getSleepHealthOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  164. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  165. <view class="radio-view">
  166. <image class="radio-icon" slot="icon"
  167. src="{{ jstools.includes(getSleepHealth,item.value) ? activeIcon : normalIcon }}" />
  168. <text class="radio-title"
  169. style="{{ jstools.includes(getSleepHealth,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  170. </view>
  171. </van-checkbox>
  172. </van-checkbox-group>
  173. <input type="text" placeholder="请填写从哪里获取关于睡眠健康的信息" bindinput="bindGetSleepHealthInput" />
  174. </view>
  175. <view class='title_1'>三、影响睡眠的因素</view>
  176. <view class="section" id="influenceSleep">
  177. <text>11、您认为以下哪些因素会影响您的睡眠?(多选)</text>
  178. <van-checkbox-group value="{{ influenceSleep }}" bind:change="bindInfluenceSleep">
  179. <van-checkbox wx:for="{{influenceSleepOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  180. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  181. <view class="radio-view">
  182. <image class="radio-icon" slot="icon"
  183. src="{{ jstools.includes(influenceSleep,item.value) ? activeIcon : normalIcon }}" />
  184. <text class="radio-title"
  185. style="{{ jstools.includes(influenceSleep,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  186. </view>
  187. </van-checkbox>
  188. </van-checkbox-group>
  189. <input type="text" placeholder="请填写影响您的睡眠因素" bindinput="bindInfluenceSleepInput" />
  190. </view>
  191. <view class="section" id="improvSleepMethods">
  192. <text>12、您通常使用什么方法来改善睡眠质量?(多选)</text>
  193. <van-checkbox-group value="{{ improvSleepMethods }}" bind:change="bindImprovSleepMethods">
  194. <van-checkbox wx:for="{{improvSleepMethodsOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  195. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  196. <view class="radio-view">
  197. <image class="radio-icon" slot="icon"
  198. src="{{ jstools.includes(improvSleepMethods,item.value) ? activeIcon : normalIcon }}" />
  199. <text class="radio-title"
  200. style="{{ jstools.includes(improvSleepMethods,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  201. </view>
  202. </van-checkbox>
  203. </van-checkbox-group>
  204. <input type="text" placeholder="请填写改善睡眠质量方法" bindinput="bindImprovSleepMethodsInput" />
  205. </view>
  206. <view class='title_1'>四、其他意见和建议</view>
  207. <!-- 文本输入问题示例 -->
  208. <view class="section" id="suggestion">
  209. <text>13. 关于本次睡眠房的入住体验,您最希望哪些方面可以进行改善优化</text>
  210. <textarea class="full-width-textarea" type="text" placeholder="请填写您的建议" bindinput="bindSuggestionInput" />
  211. </view>
  212. <!-- 提交按钮 -->
  213. <text class="commit-btn" bindtap="submitSurvey">提交问卷</text>
  214. <view style="height: 80rpx;"></view>
  215. <!-- <view class="bottom-view">
  216. <text style="font-weight:600">感谢您的参与和支持!</text>
  217. <text
  218. style="font-size: 28rpx;margin-top: 30rpx;color: #666666;">通过这份问卷,我们可以更好地了解受访者的睡眠状况及其影响因素,从而为他们提供更有效的改善建议。希望您能如实填写,以便我们为您提供更好的服务。</text>
  219. </view> -->
  220. </view>
  221. </scroll-view>
  222. </view>