settleIn.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <template>
  2. <view class="container-settle">
  3. <navbar :config="config" backColor="#666666"></navbar>
  4. <view class="top ql-editor-box" v-html="content"></view>
  5. <view class="footer">
  6. <view class="online-btn btn" @click="jumpSettle(0)">线上商家入驻</view>
  7. <view class="btn" @click="jumpSettle(1)">联盟商家入驻</view>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. data() {
  14. return {
  15. config: {
  16. back: true, //false是tolbar页面 是则不写
  17. title: '商家入驻',
  18. color: '#1A1A1A',
  19. //背景颜色;参数一:透明度(0-1);参数二:背景颜色(array则为线性渐变,string为单色背景)
  20. backgroundColor: [1, "#fff"],
  21. statusBarFontColor: '#1A1A1A',
  22. // backPage: "/pages/index/personal"
  23. // backPage:"/pages/entrepreneurshipZone/index"
  24. },
  25. content: '',
  26. }
  27. },
  28. onLoad(options) {
  29. this.getShopConfig(options.type)
  30. },
  31. methods: {
  32. // 获取商家入驻协议
  33. getShopConfig(type) {
  34. // this.$http.get('/protocolConfig/info/tenants-agreement').then(res => {
  35. // if (res.code == 200) {
  36. // this.content = res.data.content
  37. // }
  38. // })
  39. this.$yghttp.get('/protocol/info',{
  40. code: type
  41. })
  42. .then(res => {
  43. if (res && res.code == 200) {
  44. this.content = res.data.protocolContent
  45. }
  46. })
  47. },
  48. jumpSettle(settleMode) {
  49. this.$http.get("/yxt/shopapply/shopApplyInfo",{
  50. union_business: settleMode == 0 ? false : true
  51. }).then(res => {
  52. if (res && res.code == 200) {
  53. if (res.data == null) {
  54. uni.navigateTo({
  55. url: `/pages/user/merchant/registerAndAudit?settleMode=${settleMode}`
  56. })
  57. } else {
  58. if (settleMode == 0) {
  59. uni.navigateTo({
  60. url: "/pages/user/merchant/audit"
  61. })
  62. } else {
  63. uni.navigateTo({
  64. url: "/pages/workbench/shop/audit"
  65. })
  66. }
  67. }
  68. }
  69. })
  70. }
  71. }
  72. }
  73. </script>
  74. <style lang="scss" scoped>
  75. .container-settle {
  76. .top {
  77. padding: 30rpx;
  78. padding-bottom: 200rpx;
  79. .content {
  80. padding: 0 14rpx 26rpx 14rpx;
  81. font-size: 24rpx;
  82. color: #666666;
  83. font-weight: 500;
  84. line-height: 48rpx;
  85. }
  86. }
  87. .footer {
  88. width: 100%;
  89. padding: 30rpx 60rpx;
  90. position: fixed;
  91. bottom: 0;
  92. display: flex;
  93. align-items: center;
  94. justify-content: space-between;
  95. background-color: #fff;
  96. .btn {
  97. width: 298rpx;
  98. color: #fff;
  99. text-align: center;
  100. line-height: 85rpx;
  101. border: 1rpx solid #FA6138;
  102. border-radius: 44rpx;
  103. background-color: #FA6138;
  104. font-size: 28rpx;
  105. font-family: PingFang SC, PingFang SC-Regular;
  106. font-weight: 400;
  107. text-align: center;
  108. }
  109. .online-btn {
  110. color: #FA6138;
  111. border: 1rpx solid #FA6138;
  112. background-color: #fff;
  113. }
  114. }
  115. }
  116. </style>