sleepEvaluation.wxml 14 KB

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