agreement.vue 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <view class="main">
  3. <!-- <rich-text nodes=""></rich-text> -->
  4. <view class="margin-lr-xl" style="line-height: 60rpx;">
  5. <text>{{ configDatas.assessment_service }}</text>
  6. </view>
  7. <view class="bg-white padding-sm" style="position: fixed;bottom: 0;">
  8. <checkbox-group @change="checkboxChange">
  9. <label class="flex align-center justify-center">
  10. <checkbox :checked="show" style="transform:scale(0.8)" /><text class="margin-left-sm">我已完全阅读完成聚联诚集团相关用户协议,并同意聚联诚集团使用我的个人征信报告等资料</text>
  11. </label>
  12. </checkbox-group>
  13. <view class="cu-bar bg-white flex align-center justify-center">
  14. <view class="submit nextbtn" @click="submitorder">
  15. 下一步
  16. </view>
  17. </view>
  18. </view>
  19. <view class="cu-tabbar-height"></view>
  20. <view class="cu-tabbar-height"></view>
  21. <view class="cu-tabbar-height"></view>
  22. <!-- <view class="cu-tabbar-height"></view> -->
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. data() {
  28. return {
  29. orderinfo: {},
  30. show: false,
  31. configDatas: {}
  32. }
  33. },
  34. onLoad(option) {
  35. this.configDatas = uni.getStorageSync("configDatas")
  36. console.log('www=',this.configDatas)
  37. this.orderinfo = JSON.parse(option.data)
  38. console.log(this.orderinfo)
  39. },
  40. mounted() {
  41. },
  42. methods: {
  43. checkboxChange(e) {
  44. this.show = !this.show
  45. console.log(this.show)
  46. },
  47. async submitorder() {
  48. if (!this.show) {
  49. uni.showToast({
  50. title: "请先同意协议",
  51. icon: "none"
  52. })
  53. return false
  54. }
  55. let res = await this.$request.post('/api/order/sumbitOrder', this.orderinfo, false);
  56. if (res.code == 200) {
  57. uni.redirectTo({
  58. url: '/pages/mine/detail?id=' + res.data.order_id
  59. })
  60. }
  61. if (res.code != 200) {
  62. uni.showModal({
  63. title: '错误信息',
  64. content: res.message,
  65. showCancel: false
  66. });
  67. return;
  68. }
  69. }
  70. }
  71. }
  72. </script>
  73. <style scoped>
  74. .nextbtn {
  75. background-color: rgb(251, 198, 0);
  76. color: #fff;
  77. width: 600rpx;
  78. padding: 20rpx;
  79. text-align: center;
  80. border-radius: 50rpx;
  81. }
  82. </style>