index.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <template>
  2. <view class="service-main" :style="{height:Authorize?'auto':'100vh'}">
  3. <view class="navBarBox">
  4. <view class="statusBar" :style="{ paddingTop: statusBarHeight + 'px' }"></view>
  5. <view class="navBar">
  6. <view class="navBar-title">产品列表</view>
  7. </view>
  8. </view>
  9. <view class="service-place"></view>
  10. <view class="service-main-content">
  11. <view class="content-left">
  12. <view class="content-left-items" v-for="(item, index) in dataList" :key="idnex">
  13. <view :class="currIndex === index ? 'content-left-item-active' : 'content-left-item'" @click="itemClick(item.title, index)">
  14. {{item.title}}
  15. </view>
  16. </view>
  17. </view>
  18. <view class="content-right">
  19. <view class="right-text" v-if="currIndex === 0">
  20. <view class="right-text-items" v-for="(item, index) in businessList" :key="index" @click="gotoCommit(item)">
  21. <image src="@/static/images/system/duizhang.png" mode="" class="text-items-img"></image>
  22. <view class="text-items-content">
  23. <view class="text-items-content-container">
  24. <view class="text-items-content-title">
  25. {{item.title}}
  26. </view>
  27. <view class="text-items-content-price">
  28. ¥{{item.amount}}
  29. </view>
  30. </view>
  31. <view class="text-items-content-remark">
  32. {{ item.remark }}
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. <!-- <tab-bar></tab-bar> -->
  40. </view>
  41. </template>
  42. <script>
  43. export default {
  44. data() {
  45. return {
  46. // 状态栏高度
  47. statusBarHeight: 0,
  48. // 导航栏高度
  49. navBarHeight: 82+11,
  50. dataList: [
  51. {title: '商标业务'},
  52. {title: '专利业务'},
  53. {title: '商标转让'},
  54. {title: '商标数据api'},
  55. {title: '定制开发'},
  56. ],
  57. currIndex: 0,
  58. dataForm: {
  59. title: null,
  60. },
  61. businessList: [
  62. {title: '智能注册', amount: '310.0', remark: '智能系统快速提交,自助申请'},
  63. {title: '顾问注册', amount: '690.0', remark: '顾问服务,全程代办,提高通过率'},
  64. {title: '商标注册+logo设计', amount: '690.0', remark: '顾问一对一服务,专享商标注册+logo设计套餐'},
  65. ],
  66. }
  67. },
  68. onShow() {
  69. },
  70. onLoad() {
  71. this.statusBarHeight = uni.getSystemInfoSync()['statusBarHeight'];
  72. let systemInfoSync = uni.getSystemInfoSync();
  73. this.screenHeight = systemInfoSync.screenHeight - 500;
  74. },
  75. mounted() {
  76. },
  77. methods: {
  78. //左侧tab选中
  79. itemClick(title, index) {
  80. this.currIndex = index;
  81. this.dataForm.title = title;
  82. },
  83. //跳转注册页面
  84. gotoCommit(item) {
  85. if (this.$storage.getJson("token")) {
  86. uni.navigateTo({
  87. url: '/pages/service/submission?title=' + item.title,
  88. });
  89. } else {
  90. uni.navigateTo({
  91. url: '/pages/public/login?topage=submission',
  92. });
  93. }
  94. // uni.navigateTo({
  95. // url: '/pages/service/submission?title=' + item.title,
  96. // })
  97. }
  98. }
  99. }
  100. </script>
  101. <style lang="scss" scoped>
  102. .service-main {
  103. // background-color: #F2F3F5;
  104. // background: linear-gradient(180deg, #FFFFFF 0%, #F2F3F5 400rpx);
  105. height: 100%;
  106. position: relative;
  107. box-sizing: border-box;
  108. padding-bottom: calc(100rpx + env(safe-area-inset-bottom));
  109. background-color: $uni-bg-color;
  110. // background-color: #FFFFFF;
  111. .service-place {
  112. height: 180rpx;
  113. background: #FFFFFF;
  114. }
  115. .service-main-content {
  116. // margin-top: 30rpx;
  117. display: flex;
  118. .content-left {
  119. width: 25%;
  120. background: #FFFFFF;
  121. height: calc(100vh - 180rpx);
  122. .content-left-items {
  123. .content-left-item {
  124. height: 120rpx;
  125. line-height: 120rpx;
  126. width: 100%;
  127. background: #FFFFFF;
  128. text-align: center;
  129. font-size: 30rpx;
  130. font-family: PingFang SC-Medium, PingFang SC;
  131. font-weight: 500;
  132. color: #000000;
  133. }
  134. .content-left-item-active {
  135. height: 120rpx;
  136. line-height: 120rpx;
  137. width: 100%;
  138. background: #F2F3F5;
  139. text-align: center;
  140. font-size: 30rpx;
  141. font-family: PingFang SC-Medium, PingFang SC;
  142. font-weight: 500;
  143. color: #000000;
  144. }
  145. }
  146. }
  147. .content-right {
  148. width: 75%;
  149. background: #F2F3F5;
  150. height: calc(100vh - 180rpx);
  151. .right-text {
  152. padding: 0 20rpx;
  153. .right-text-items {
  154. height: 180rpx;
  155. background: #FFFFFF;
  156. border-radius: 8rpx;
  157. display: flex;
  158. margin-top: 10rpx;
  159. .text-items-img {
  160. height: 60rpx;
  161. width: 60rpx;
  162. margin-top: 40rpx;
  163. margin-left: 10rpx;
  164. }
  165. .text-items-content {
  166. width: calc(100% - 90rpx);
  167. margin-left: 20rpx;
  168. .text-items-content-container {
  169. display: flex;
  170. margin-top: 40rpx;
  171. position: relative;
  172. .text-items-content-title {
  173. height: 40rpx;
  174. line-height: 40rpx;
  175. font-size: 30rpx;
  176. font-family: PingFang SC-Medium, PingFang SC;
  177. font-weight: 700;
  178. color: #000000;
  179. }
  180. .text-items-content-price {
  181. height: 40rpx;
  182. line-height: 40rpx;
  183. font-size: 28rpx;
  184. font-family: PingFang SC-Medium, PingFang SC;
  185. font-weight: 400;
  186. color: #ff6666;
  187. position: absolute;
  188. right: 10rpx;
  189. }
  190. }
  191. .text-items-content-remark {
  192. height: 40rpx;
  193. line-height: 40rpx;
  194. font-size: 20rpx;
  195. font-family: PingFang SC-Medium, PingFang SC;
  196. font-weight: 400;
  197. color: #ADADAD;
  198. margin-top: 20rpx;
  199. }
  200. }
  201. }
  202. }
  203. }
  204. }
  205. }
  206. .navBarBox{position: fixed;}
  207. .navBarBox .statusBar {}
  208. .navBarBox .navBar {
  209. padding: 3rpx 50rpx;
  210. padding-bottom: 8rpx;
  211. display: flex;
  212. flex-direction: row;
  213. justify-content: center;
  214. align-items: center;
  215. position: fixed;
  216. .navBar-title {
  217. height: 48rpx;
  218. font-size: 34rpx;
  219. font-family: PingFang SC-Medium, PingFang SC;
  220. font-weight: 500;
  221. color: #000000;
  222. line-height: 48rpx;
  223. }
  224. }
  225. .navBarBox .navBar .logo {
  226. width: 82rpx;
  227. height: 82rpx;
  228. margin-right: 10rpx;
  229. }
  230. </style>