App.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. },
  5. onShow: function() {
  6. console.log('App Show');
  7. },
  8. onShareAppMessage() {
  9. return {
  10. title: '一起来学习吧',
  11. path: `/pages/index/index`
  12. };
  13. },
  14. onHide: function() {
  15. console.log('App Hide');
  16. }
  17. };
  18. </script>
  19. <style lang="scss">
  20. .u-button {
  21. width: 690rpx;
  22. background: #ed742e;
  23. margin-top: 100rpx;
  24. .u-button__text {
  25. color: #fff;
  26. }
  27. }
  28. .u-button--info {
  29. width: 690rpx;
  30. background: #ed742e;
  31. margin-top: 100rpx;
  32. color: #fff;
  33. }
  34. .defaultBtn {
  35. margin: 0;
  36. padding: 0;
  37. }
  38. /* 骨架屏替代方案 */
  39. .Skeleton {
  40. background: #f3f3f3;
  41. padding: 20upx 0;
  42. border-radius: 8upx;
  43. }
  44. /*边框*/
  45. .b-b:after,
  46. .b-t:after {
  47. position: absolute;
  48. z-index: 3;
  49. left: 0;
  50. right: 0;
  51. height: 0;
  52. content: '';
  53. transform: scaleY(0.5);
  54. border-bottom: 1px solid $bordermain;
  55. }
  56. .b-b:after {
  57. bottom: 0;
  58. }
  59. .b-t:after {
  60. top: 0;
  61. }
  62. /* input 样式 */
  63. .input-placeholder {
  64. color: #c6cadb;
  65. }
  66. .placeholder {
  67. color: #c6cadb;
  68. }
  69. .selIcon {
  70. width: 28rpx;
  71. height: 28rpx;
  72. margin: 0 12rpx;
  73. }
  74. .clickbtn {
  75. width: 690rpx;
  76. height: 90rpx;
  77. line-height: 90rpx;
  78. background: #ed742e;
  79. font-size: 32rpx;
  80. text-align: center;
  81. margin: 40rpx auto 20rpx;
  82. letter-spacing: 2rpx;
  83. color: #fff;
  84. border-radius: 45rpx;
  85. }
  86. .bold {
  87. font-weight: 600;
  88. }
  89. .center {
  90. width: 100%;
  91. text-align: center;
  92. }
  93. .bb {
  94. border-bottom: 1px solid #eeeded;
  95. }
  96. //选中规格详情
  97. .selAttr {
  98. font-size: 28rpx;
  99. // min-width: 124rpx;
  100. height: 52rpx;
  101. padding: 0 10rpx;
  102. line-height: 52rpx;
  103. background: #f9f9f9;
  104. border-radius: 6rpx;
  105. color: #999;
  106. margin-bottom: 15rpx;
  107. }
  108. //原价
  109. .del {
  110. font-size: 24rpx;
  111. color: $textgrey;
  112. text-decoration: line-through;
  113. }
  114. .scrollx {
  115. display: -webkit-box;
  116. overflow-x: auto;
  117. }
  118. .scrollx::-webkit-scrollbar {
  119. display: none;
  120. }
  121. .flex1 {
  122. flex: 1;
  123. }
  124. /* 一行 */
  125. .oneelli {
  126. overflow: hidden;
  127. white-space: nowrap;
  128. /* 文字超出宽度则显示ellipsis省略号 */
  129. text-overflow: ellipsis;
  130. }
  131. /* 两行,超出...表示 */
  132. .elli {
  133. text-overflow: -o-ellipsis-lastline;
  134. overflow: hidden;
  135. text-overflow: ellipsis;
  136. display: -webkit-box;
  137. -webkit-line-clamp: 2;
  138. line-clamp: 2;
  139. -webkit-box-orient: vertical;
  140. }
  141. .nodata,
  142. .moredata {
  143. width: 100%;
  144. padding: 30rpx 0;
  145. text-align: center;
  146. color: $textgrey;
  147. align-items: center;
  148. justify-content: center;
  149. }
  150. .fixBox {
  151. position: fixed;
  152. bottom: 0;
  153. left: 0;
  154. height: 100rpx;
  155. width: 100%;
  156. background-color: #fff;
  157. }
  158. .status {
  159. height: 0;
  160. /* #ifdef APP-PLUS */
  161. height: var(--status-bar-height); //覆盖样式
  162. /* #endif */
  163. }
  164. /* 常用样式 */
  165. .dfsb {
  166. display: flex;
  167. flex-direction: row;
  168. justify-content: space-between;
  169. align-items: center;
  170. }
  171. .dfsa {
  172. display: flex;
  173. flex-direction: row;
  174. justify-content: space-around;
  175. align-items: center;
  176. }
  177. .dffs {
  178. display: flex;
  179. flex-direction: row;
  180. justify-content: flex-start;
  181. align-items: center;
  182. }
  183. .dffd {
  184. display: flex;
  185. flex-direction: column;
  186. justify-content: space-between;
  187. align-items: flex-start;
  188. }
  189. /*每个页面公共css */
  190. page {
  191. background: #f8f9fe;
  192. }
  193. .priceDan {
  194. font-size: 38rpx;
  195. font-family: DINPro-Bold, DINPro;
  196. font-weight: bold;
  197. color: #f16630;
  198. line-height: 33rpx;
  199. display: flex;
  200. flex-direction: row;
  201. &::before {
  202. content: '¥';
  203. font-size: 26rpx;
  204. }
  205. }
  206. .mt20 {
  207. margin-top: 20rpx;
  208. }
  209. .mt30 {
  210. margin-top: 30rpx;
  211. }
  212. .pd30 {
  213. padding: 30rpx;
  214. }
  215. .custom-style {
  216. background-color: #0bb291;
  217. color: #fff;
  218. width: 690rpx;
  219. margin-top: 40rpx;
  220. }
  221. view,
  222. scroll-view,
  223. swiper,
  224. swiper-item,
  225. cover-view,
  226. cover-image,
  227. icon,
  228. text,
  229. rich-text,
  230. progress,
  231. button,
  232. checkbox,
  233. form,
  234. input,
  235. label,
  236. radio,
  237. slider,
  238. switch,
  239. textarea,
  240. navigator,
  241. audio,
  242. camera,
  243. image,
  244. video {
  245. color: $textmain;
  246. font-family: PingFangSC-Regular, PingFang SC;
  247. box-sizing: border-box;
  248. font-size: 32rpx;
  249. }
  250. </style>