App.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. <script>
  2. import commonFun from './commonFun.js'
  3. import commonData from './commonData.js'
  4. export default {
  5. onLaunch: function() {
  6. console.log('App Launch')
  7. let bizWorker = uni.getStorageSync('bizWorker')
  8. let bizTrader = uni.getStorageSync('bizTrader')
  9. wx.getSystemInfo({
  10. success: res => {
  11. console.log('isIphoneX', res.safeArea.top)
  12. uni.setStorageSync('isIphoneX', res.safeArea.top > 20 ? 1 : 0)
  13. }
  14. })
  15. },
  16. onShow: function() {
  17. console.log('App Show')
  18. },
  19. onHide: function() {
  20. console.log('App Hide')
  21. },
  22. globalData: {
  23. imService: null
  24. }
  25. }
  26. </script>
  27. <style>
  28. /*每个页面公共css */
  29. * {
  30. /* font-size: 24upx !important; */
  31. }
  32. view,
  33. text,
  34. button {
  35. font-size: 28upx;
  36. }
  37. button::after {
  38. border: none;
  39. }
  40. .article_title {
  41. color: #333333;
  42. font-size: 38upx;
  43. text-align: center;
  44. margin: 20upx 0;
  45. }
  46. .article_text {
  47. color: #999999;
  48. font-size: 32upx;
  49. line-height: 45upx;
  50. text-indent: 64upx;
  51. }
  52. .loading_text {
  53. text-align: center;
  54. color: #4B597D;
  55. line-height: 60upx;
  56. }
  57. .main_btn {
  58. background: linear-gradient(90deg, #26daad 0%, #68d7c4 100%);
  59. color: white;
  60. line-height: 90upx;
  61. text-align: center;
  62. border-radius: 15upx;
  63. }
  64. .main_btn_m {
  65. background: linear-gradient(90deg, #00bdc2 0%, #01c8b3 100%);
  66. color: white;
  67. line-height: 90upx;
  68. text-align: center;
  69. border-radius: 15upx;
  70. }
  71. .main_width {
  72. width: 710upx;
  73. margin-left: 20upx;
  74. }
  75. .nowrap {
  76. white-space: nowrap;
  77. overflow: hidden;
  78. text-overflow: ellipsis;
  79. }
  80. .text_in_width {
  81. width: 94%;
  82. margin-left: 3%;
  83. }
  84. .top_bg_detail {
  85. width: 750upx;
  86. height: 325upx;
  87. background-size: 750upx 325upx;
  88. background-position: 0 0;
  89. }
  90. view {
  91. color: #1e2130;
  92. }
  93. .main_text {
  94. color: #666666;
  95. line-height: 40rpx;
  96. }
  97. .main_text_view text {
  98. color: #666666;
  99. }
  100. .main_text {
  101. color: #666666;
  102. }
  103. .bot_fixed {
  104. height: 110upx;
  105. width: 100%;
  106. background-color: #4CD964;
  107. position: fixed;
  108. bottom: 0;
  109. left: 0;
  110. display: flex;
  111. flex-direction: row;
  112. }
  113. .bot_fixed_con {
  114. text-align: center;
  115. height: 100%;
  116. display: flex;
  117. align-items: center;
  118. justify-content: center;
  119. }
  120. .bot_fixed_con .text {
  121. color: white;
  122. margin-left: 20upx;
  123. }
  124. .page_title {
  125. font-size: 36upx;
  126. line-height: 40upx;
  127. padding: 30upx 0;
  128. }
  129. .page_title_price {
  130. font-size: 36upx;
  131. color: #ee5023;
  132. }
  133. .line_grey {
  134. height: 10upx;
  135. width: 100%;
  136. background-color: #F6f6f6;
  137. }
  138. .page_title2 {
  139. font-size: 36upx;
  140. line-height: 70upx;
  141. }
  142. .main_text_area {
  143. height: 200upx;
  144. color: #8f8f91 !important;
  145. line-height: 50upx;
  146. width: 94%;
  147. margin: 20upx auto;
  148. overflow: auto;
  149. /* background-color: #f5f5f5; */
  150. }
  151. .form_item {
  152. display: flex;
  153. flex-direction: row;
  154. justify-content: space-between;
  155. border-bottom: 1px solid #D2D2D2;
  156. padding-top: 40upx;
  157. padding-bottom: 40upx;
  158. align-items: center;
  159. }
  160. .form_item input {
  161. text-align: right;
  162. margin-right: 30upx;
  163. color: #8f8f91;
  164. }
  165. .form_item .rht {
  166. color: #262626;
  167. margin-left: 20upx;
  168. font-size: 30upx;
  169. }
  170. .modal_box {
  171. background-color: #ffffff;
  172. width: 90%;
  173. margin-left: 5%;
  174. margin-top: 80upx;
  175. border-radius: 15upx;
  176. }
  177. .modal_btn {
  178. display: flex;
  179. width: 90%;
  180. margin-left: 5%;
  181. height: 120upx;
  182. align-items: center;
  183. justify-content: space-between;
  184. padding-bottom: 10upx;
  185. }
  186. .modal_btn view {
  187. width: 48%;
  188. height: 70upx;
  189. line-height: 70upx;
  190. text-align: center;
  191. border-radius: 8upx;
  192. }
  193. .modal_box textarea {
  194. padding: 20upx 0;
  195. width: 90%;
  196. margin-left: 5%;
  197. height: 225upx;
  198. background-color: #f7f7f7;
  199. }
  200. .modal_btn_cancel {
  201. background-color: #dadada;
  202. color: #666666;
  203. }
  204. .modal_btn_confirm {
  205. background-color: #01bcc3;
  206. color: #ffffff;
  207. }
  208. .danger {
  209. text-align: center;
  210. color: white;
  211. background: linear-gradient(90deg, #ff121a 0%, #cc0f12 100%);
  212. padding: 10upx 15upx;
  213. border-radius: 10upx;
  214. border: 1upx solid #d61013;
  215. }
  216. .confirm {
  217. text-align: center;
  218. color: white;
  219. background: #01bcc3;
  220. padding: 10upx 15upx;
  221. border-radius: 10upx;
  222. border: 1upx solid #01bcc3;
  223. }
  224. .cancel {
  225. text-align: center;
  226. color: #7A849D;
  227. background: #EDEFF5;
  228. padding: 10upx 15upx;
  229. border-radius: 10upx;
  230. border: 1upx solid #C5CBD9;
  231. }
  232. .bot_btn view {
  233. text-align: center;
  234. line-height: 90upx;
  235. width: 250upx;
  236. height: 90upx;
  237. border-radius: 45upx;
  238. box-sizing: border-box;
  239. }
  240. .bot_btn {
  241. display: flex;
  242. justify-content: space-evenly;
  243. padding: 30upx 0;
  244. }
  245. .type_child {
  246. color: #797d86;
  247. }
  248. .type_child_focus {
  249. color: #01bcc3;
  250. border-bottom: 4upx solid #01bcc3;
  251. padding-bottom: 8upx;
  252. font-weight: bold;
  253. }
  254. .type_child2 {
  255. color: #797d86;
  256. text-align: center;
  257. }
  258. .type_child_focus2 {
  259. color: #01bcc3;
  260. padding-bottom: 2upx;
  261. font-weight: bold;
  262. text-align: center;
  263. }
  264. .type_child_box {
  265. display: flex;
  266. justify-content: space-around;
  267. padding: 20upx 0;
  268. }
  269. .type_child_box view {
  270. font-size: 24upx !important;
  271. }
  272. .order_box {
  273. background-color: #FFFFFF;
  274. width: 92%;
  275. padding: 2%;
  276. }
  277. .order_btn_box {
  278. display: flex;
  279. justify-content: space-around;
  280. padding: 20upx 0 10upx;
  281. }
  282. .tab_status_box {
  283. display: flex;
  284. justify-content: space-around;
  285. align-items: center;
  286. line-height: 60upx;
  287. }
  288. .tab_status_box_focus {
  289. color: #00c7b2;
  290. font-weight: bold;
  291. border-bottom: 6upx solid #00c7b2;
  292. }
  293. .tab_status_box_no_focus {
  294. color: #999999;
  295. }
  296. .to_login {
  297. margin-top: 200upx;
  298. width: 90%;
  299. margin-left: 5%;
  300. }
  301. .share_style {
  302. display: flex;
  303. align-items: center;
  304. justify-content: center;
  305. width: 160upx;
  306. height: 70upx;
  307. background-color: #fff2dc;
  308. border-radius: 70upx 0 0 70upx;
  309. /* border-color: #fff2dc; */
  310. outline: none;
  311. }
  312. .gpt {
  313. width: 100%;
  314. height: 40upx;
  315. background-color: transparent;
  316. outline: none;
  317. border: none;
  318. color: #ffffff;
  319. line-height: 40upx;
  320. padding: 0;
  321. }
  322. .bar_view {
  323. font-size: 30upx;
  324. color: #B7BECF;
  325. text-align: center;
  326. position: relative;
  327. }
  328. .bar_view_num {
  329. position: absolute;
  330. width: 40upx;
  331. height: 40upx;
  332. background: #FF0000;
  333. border-radius: 50%;
  334. color: #ffffff;
  335. text-align: center;
  336. line-height: 40upx;
  337. font-size: 22upx !important;
  338. right: 0upx;
  339. top: -10upx;
  340. }
  341. .mention {
  342. width: 90%;
  343. margin-left: 5%;
  344. color: #9c9c9c;
  345. }
  346. .mention view {
  347. padding-bottom: 20upx;
  348. display: flex;
  349. }
  350. .mention view navigator {
  351. color: #01bcc3;
  352. }
  353. .choose_add {
  354. background-color: #01bcc3;
  355. color: #ffffff;
  356. width: 130upx !important;
  357. border-radius: 8upx !important;
  358. text-align: center;
  359. line-height: 50upx;
  360. }
  361. .choose_add_break {
  362. background-color: #01bcc3;
  363. color: #ffffff;
  364. width: 190upx !important;
  365. border-radius: 8upx !important;
  366. text-align: center;
  367. line-height: 50upx;
  368. }
  369. .has_signed{
  370. margin-left: 4upx;
  371. }
  372. .has_signed image {
  373. width: 45upx;
  374. height: 45upx;
  375. margin-left: -15upx;
  376. margin-right: 0 !important;
  377. border-radius: 50%;
  378. border: 4upx solid #ffffff;
  379. }
  380. </style>