pay-success.wxml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <import src="../public-view.wxml" />
  2. <view class="top">
  3. <image src="../../../icon/public/pay_success.png"></image>
  4. <text>恭喜您~支付成功</text>
  5. <text>服务专员将会在24小时内为您服务
  6. 如有问题请致电400-881-9211</text>
  7. </view>
  8. <!-- 分享 -->
  9. <block wx:if="{{type=='share'}}">
  10. <view class="share">
  11. <button open-type="share" hover-class="none" plain="true" style="border-color: rgba(0, 0, 0, 0)">分享给好友</button>
  12. </view>
  13. </block>
  14. <!-- 需要补缴 -->
  15. <block wx:elif="{{type=='pay'}}">
  16. <view class="interval"></view>
  17. <text>亲,你还有费用未补缴哦!</text>
  18. <text>为确保能正常缴费,请尽快补缴差额</text>
  19. <view bindtap="pay">立即补缴</view>
  20. <view bindtap="doNotPay">稍后补缴</view>
  21. </block>
  22. <!-- 支付流水 -->
  23. <block wx:elif="{{type=='salary'}}">
  24. <view class="interval"></view>
  25. <text>还有社保流水费待支付</text>
  26. <text>为确保能正常参保,请及时支付社保流水以便产生流水记录,
  27. 支付后由平台返还至你的银行账户</text>
  28. <view bindtap="salary">立即支付</view>
  29. </block>
  30. <!-- 添加银行卡 -->
  31. <block wx:elif="{{type=='addCard' || type=='tipsCard'}}">
  32. <view class="interval"></view>
  33. <view class="addCard">
  34. <text>离返还流水费还差一步</text>
  35. <text>请及时添加银行卡</text>
  36. <text>已缴纳的社保流水费用,将返还于添加的银行卡号上</text>
  37. <view wx:if="{{type=='addCard'}}" bindtap="addCard">立即添加</view>
  38. </view>
  39. </block>
  40. <!-- 调查问卷 -->
  41. <block wx:elif="{{type=='survey'}}">
  42. <view class="survey-button" bindtap="survey">填问卷拿福利</view>
  43. </block>
  44. <view class="survey-view" hidden="{{survey.hidden}}" bindtap="hiddenSurveyView">
  45. <view class="survey-bottom-view" animation="{{survey.animation}}"></view>
  46. <view animation="{{survey.animation}}">
  47. <view>
  48. <view></view>
  49. <text>首单有奖问卷调查</text>
  50. <image src="../../../icon/public/delete.png" bindtap="hiddenSurveyView"></image>
  51. </view>
  52. <view></view>
  53. <view class="{{survey.bgvc}}" animation="{{survey.scrollAnimation}}">
  54. <view class='survey-answer-view' wx:for="{{survey.answers}}" wx:key="" wx:for-index="i">
  55. <view class="survey-question-view">
  56. <text>{{survey.questions[i]}}</text>
  57. <text hidden="{{survey.questions.length - i == 1}}">(可多选)</text>
  58. </view>
  59. <scroll-view scroll-y class="survey-answer-scroll-view">
  60. <block wx:for="{{survey.answers[i]}}" wx:for-item="answer" wx:for-index="j" wx:key="">
  61. <view class="survey-answer-item" bindtap="surveyChooseAction" id="{{j}}">
  62. <image src="../../../icon/public/{{tools.getImage(survey.chose[i], j)}}.png"></image>
  63. <text>{{answer}}</text>
  64. </view>
  65. <view></view>
  66. </block>
  67. <view class="survey-answer-bottom"></view>
  68. </scroll-view>
  69. <view bindtap="surveyAction" class="survey-button-view">
  70. <view bindtap="surveyAction">{{tools.getButton(survey.questions, i)}}</view>
  71. </view>
  72. </view>
  73. <view class='survey-result-view'>
  74. <view>
  75. <image src="../../../icon/public/pay_success.png"></image>
  76. <text>感谢参与有奖问卷调查,您的反馈让我们\n能够为你带来更好的使用体验!</text>
  77. </view>
  78. <view>
  79. <view>恭喜你,获得一张专享优惠券,可用于下次下单时抵扣</view>
  80. <image src="../../../icon/public/servey_jiao.png"></image>
  81. </view>
  82. <template is="discount-item" data="{{...survey.result, id: 0, type: 'show', chose: [], canUse: '1', imagePath: '../../../icon/public/'}}"/>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. <wxs module="tools">
  88. var getImage = function(a,i) {
  89. return a.indexOf(i) >= 0 ? 'filter_s' : 'filter_n'
  90. }
  91. var getButton = function(a, i) {
  92. var buttonT = i == a.length - 1 ? ' 提交' : ' 下一题'
  93. return (i + 1) + '/' + a.length + buttonT
  94. }
  95. module.exports.getImage = getImage
  96. module.exports.getButton = getButton
  97. </wxs>