index.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <view>
  3. <navbar :config="config" backColor="#999999"></navbar>
  4. <view class="regional-agency">
  5. <view class="ql-editor-box" v-html="content"></view>
  6. <view class="regional-agency-btn" @click.stop="reserveBtn()">
  7. <view class="reserve-btn">立即预定</view>
  8. </view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. data() {
  15. return {
  16. content:'',
  17. config: {
  18. back: true, //false是tolbar页面 是则不写
  19. title: '区域代理',
  20. color: '#1A1A1A',
  21. // autoBack:true,
  22. //背景颜色;参数一:透明度(0-1);参数二:背景颜色(array则为线性渐变,string为单色背景)
  23. backgroundColor: [1, "#fff"],
  24. statusBarFontColor: '#1A1A1A'
  25. }
  26. }
  27. },
  28. created() {
  29. // this.getCode()
  30. },
  31. onShow() {
  32. this.getProtocol()
  33. },
  34. methods: {
  35. getProtocol(){
  36. this.$http.get(`/protocolConfig/info/area-agent`)
  37. .then(res => {
  38. if(res.code==200){
  39. this.content = res.data.content
  40. }
  41. })
  42. },
  43. // 区域代理
  44. reserveBtn() {
  45. uni.navigateTo({
  46. url:'/pages/user/regional-agency/reserve'
  47. })
  48. },
  49. }
  50. }
  51. </script>
  52. <style lang="scss" scoped>
  53. .regional-agency{
  54. width: 100%;
  55. padding: 48rpx 39rpx 160rpx;
  56. .regional-agency-btn{
  57. position: fixed;
  58. bottom: 0;
  59. left: 0;
  60. width: 100%;
  61. padding: 40rpx;
  62. background-color: #fff;
  63. font-size: 32rpx;
  64. font-family: PingFang SC, PingFang SC-Regular;
  65. font-weight: 400;
  66. color: #ffffff;
  67. .reserve-btn {
  68. width: 100%;
  69. height: 80rpx;
  70. text-align: center;
  71. line-height: 80rpx;
  72. border-radius: 40rpx;
  73. background-color: #FA6138;
  74. }
  75. }
  76. }
  77. </style>