混凝土运输管理微信小程序、替班
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

317 lines
8.4 KiB

2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
2 months ago
2 months ago
1 week ago
2 months ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
2 months ago
1 week ago
  1. <template>
  2. <view class="content">
  3. <view class="banner sticky">
  4. <view class="head-div" :class="{'iooo': isSticky, 'box-shadow-light': isSticky}">
  5. <view class="flex">
  6. <view><uni-icons type="location" color="#333" size="22"/></view>
  7. <view>{{ area }}</view>
  8. <view><uni-icons type="down" color="#333" size="16"/></view>
  9. </view>
  10. </view>
  11. </view>
  12. <view class="banner-div">
  13. <image style="width: 690rpx;height: 268rpx;border-radius: 10rpx;" src="/static/re/banner.png"></image>
  14. </view>
  15. <view class="notify-div flex" @click="clickNotify">
  16. <view class="mr10"><uni-icons type="notification" color="#FF0000" size="38rpx"></uni-icons></view>
  17. <view class="ellipsis">公告{{notice.title}}</view>
  18. </view>
  19. <view class="content-div">
  20. <view class="font-title mt32">砼聚人小程序全新上线啦</view>
  21. <view class="font-subtitle m20">深度开放共创共赢</view>
  22. <view>
  23. 砼聚人平台隶属于长沙市砼聚人科技有限公司平台专注于为混凝土行业的设备提供灵活用工现主营业务为泵车车载泵搅拌车提供代驾服务致力于解决行业用工成本及用工风险的行业痛点帮助客户降低成本提升市场竞争力同时提升泵车操作手应有的技术价值实现工作自由度高劳动强度低收入高结算快的未来工作场景我们的梦想是让行业的兄弟活得更有尊严
  24. </view>
  25. <view class="flex m20 font-botton">
  26. <view class="flex" style="width: 50%;" @click="clickDriver()">
  27. <image src="/static/re/ideic3.png" class="square40 mr10"/>
  28. <view style="line-height: 40rpx;">泵司入驻</view>
  29. </view>
  30. <view class="flex" style="width: 50%;" @click="clickEnter()">
  31. <image src="/static/re/ideic4.png" class="square40 mr10"/>
  32. <view style="line-height: 40rpx;">企业入驻</view>
  33. </view>
  34. </view>
  35. <view>
  36. 随着疫情到来全民进入消费降级时代行业进入寒冬许多企业面临困境并关闭然而在这个
  37. <image style="float: right; width: 480rpx; height: 378rpx;" src="/static/re/ide1.png"></image>
  38. 挑战中人们开始重视居家生活质量和健康促进了需求量上升行业逐渐适应新常态加强线上销售和定制服务不断创新和改进产品逆境中孕育机遇希望新的一年能带来行业的复苏和发展
  39. </view>
  40. <view class="flex m36">
  41. <view class="flex" style="width: 50%;">
  42. <image src="/static/re/ideic1.png" class="square80 mr10"/>
  43. <view>
  44. <view style="line-height: 60rpx;font-size: 60rpx;color: #F40000;font-weight: bolder;">{{ num2 }}</view>
  45. <view style="line-height: 20rpx;font-size: 20rpx;color: #aaa">企业入驻</view>
  46. </view>
  47. </view>
  48. <view class="flex" style="width: 50%;">
  49. <image src="/static/re/ideic2.png" class="square80 mr10"/>
  50. <view>
  51. <view style="line-height: 60rpx;font-size: 60rpx;color: #F40000;font-weight: bolder;">{{ num1 }}</view>
  52. <view style="line-height: 20rpx;font-size: 20rpx;color: #aaa;">司机入驻</view>
  53. </view>
  54. </view>
  55. </view>
  56. <view @click="menubar">
  57. <view class="m10">更多精彩更在视频介绍</view>
  58. <!-- <image style="width: 690rpx;height: 572rpx;" src="/static/re/ide2.png"></image> -->
  59. <video style="width: 690rpx;height: 1272rpx;" src="https://relief.oss-cn-hangzhou.aliyuncs.com/home.mp4" autoplay="true"></video>
  60. </view>
  61. </view>
  62. </view>
  63. </template>
  64. <script>
  65. export default {
  66. data() {
  67. return {
  68. area: "长沙",
  69. isSticky: false,
  70. num1: "",
  71. num2: "",
  72. notice: {}
  73. }
  74. },
  75. onShow() {
  76. //this.loadArea()
  77. this.loadData()
  78. const intersectionObserver = uni.createIntersectionObserver(this);
  79. intersectionObserver.relativeToViewport({ top: 0 }).observe('.banner-div', (res) => {
  80. if (res.intersectionRatio <= 0) {
  81. this.isSticky = true
  82. } else {
  83. this.isSticky = false
  84. }
  85. });
  86. if (uni.getStorageSync("role") === '1'){
  87. uni.setStorageSync("role", "1")
  88. } else if (uni.getStorageSync("role") === '2'){
  89. uni.setStorageSync("role", "2")
  90. } else if (uni.getStorageSync("role") === '3'){
  91. uni.setStorageSync("role", "3")
  92. } else if (uni.getStorageSync("role") === '4'){
  93. uni.setStorageSync("role", "4")
  94. } else {
  95. uni.setStorageSync("role", "0")
  96. }
  97. console.log("role", uni.getStorageSync("role"));
  98. this.area = uni.getStorageSync("area");
  99. },
  100. methods: {
  101. clickNotify(){
  102. uni.navigateTo({ url: `/pages/base/notify`})
  103. },
  104. clickDriver(){
  105. uni.navigateTo({ url: '/pages/login/driver'})
  106. },
  107. clickEnter(){
  108. uni.navigateTo({ url: '/pages/login/enter'})
  109. },
  110. loadArea(){
  111. this.$httpGet("/api/area/get", {}, (res) => {
  112. console.log('[/area/get]', res);
  113. if(res.data){
  114. this.area=res.data
  115. }
  116. })
  117. },
  118. loadData(){
  119. this.$httpGet("/api/index/count", {}, (res) => {
  120. console.log('[/index/count]', res);
  121. if(res.data){
  122. this.num1=res.data.num1
  123. this.num2=res.data.num2
  124. }
  125. })
  126. this.$httpGet("/api/admin/notice", {}, (res) => {
  127. console.log('[/admin/notice]', res);
  128. if(res.data){
  129. this.notice=res.data
  130. }
  131. })
  132. },
  133. }
  134. }
  135. </script>
  136. <style>
  137. body{
  138. background-color: #FFF;
  139. }
  140. .iooo {
  141. background-color: #FFF;
  142. }
  143. .banner {
  144. width: 100vw;
  145. height: 344rpx;
  146. background: radial-gradient(200% 100% at 49% 0%, rgba(205, 0, 0, 0.2) 0%, rgba(233, 244, 252, 0) 100%);
  147. }
  148. .head-div{
  149. width: 690rpx;
  150. height: 88rpx;
  151. padding: 88rpx 30rpx 0rpx;
  152. line-height: 88rpx;
  153. font-size: 32rpx;
  154. color: #000000;
  155. }
  156. .banner-div{
  157. width: 690rpx;
  158. height: 260rpx;
  159. margin: -160rpx auto 10rpx;
  160. }
  161. .notify-div{
  162. width: 690rpx;
  163. margin: 30rpx auto 10rpx;
  164. font-size: 24rpx;
  165. line-height: 36rpx;
  166. color: #1C1C1C;
  167. }
  168. .content-div{
  169. width: 690rpx;
  170. margin: 0 auto;
  171. margin-top: 10rpx;
  172. font-size: 28rpx;
  173. line-height: 52rpx;
  174. color: rgba(51, 51, 51, 0.85);
  175. }
  176. .head-input{
  177. width: 448rpx;
  178. height: 64rpx;
  179. line-height: 64rpx;
  180. background: #ffffff;
  181. border-radius: 32rpx;
  182. line-height: 64rpx;
  183. font-size: 20rpx;
  184. font-family: PingFang SC, PingFang SC-Medium;
  185. font-weight: 500;
  186. text-align: left;
  187. color: #333;
  188. padding-left: 258rpx;
  189. }
  190. .head-address{
  191. width: 100rpx;
  192. font-size: 24rpx;
  193. line-height: 64rpx;
  194. font-family: PingFang SC, PingFang SC-Bold;
  195. font-weight: 700;
  196. text-align: left;
  197. color: #292929;
  198. }
  199. .search-button{
  200. width: 96rpx;
  201. height: 52rpx;
  202. line-height: 52rpx;
  203. background: #60bda2;
  204. border-radius: 26rpx;
  205. font-size: 20rpx;
  206. font-family: PingFang SC, PingFang SC-Medium;
  207. font-weight: 500;
  208. text-align: center;
  209. color: #ffffff;
  210. }
  211. .banner-font{
  212. width: 292rpx;
  213. height: 142rpx;
  214. font-size: 72rpx;
  215. line-height: 66rpx;
  216. font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  217. font-weight: 400;
  218. text-align: left;
  219. color: #ffffff;
  220. letter-spacing: -1;
  221. text-shadow: 0px 6px 6px 0px rgba(0,165,141,0.70);
  222. position: absolute;
  223. left: 52rpx;
  224. top: 34rpx;
  225. }
  226. .font-3{
  227. height: 28rpx;
  228. line-height: 28rpx;
  229. font-size: 24rpx;
  230. font-family: PingFang SC, PingFang SC-Regular;
  231. font-weight: 400;
  232. text-align: left;
  233. color: #ffffff;
  234. text-shadow: 0px 4px 6px 0px rgba(0,165,141,0.70);
  235. position: absolute;
  236. left: 52rpx;
  237. top: 178rpx;
  238. }
  239. .banner-button{
  240. width: 240rpx;
  241. height: 56rpx;
  242. line-height: 56rpx;
  243. background: #ffdb75;
  244. border-radius: 24rpx;
  245. box-shadow: 0px 6px 6px 0px rgba(17,106,93,0.23);
  246. position: absolute;
  247. left: 52rpx;
  248. top: 220rpx;
  249. font-size: 24rpx;
  250. font-family: PingFang SC, PingFang SC-Bold;
  251. font-weight: 700;
  252. text-align: center;
  253. color: #26c591;
  254. }
  255. .item-card{
  256. width: 666rpx;
  257. height: 156rpx;
  258. padding: 22rpx;
  259. background: #ffffff;
  260. border-radius: 16rpx;
  261. margin: 0 auto;
  262. margin-bottom: 20rpx;
  263. }
  264. .item-font{
  265. font-size: 20rpx;
  266. font-family: PingFang SC, PingFang SC-Regular;
  267. font-weight: 400;
  268. text-align: left;
  269. color: #b8b8b8;
  270. line-height: 34rpx;
  271. }
  272. .item-button{
  273. width: 160rpx;
  274. height: 52rpx;
  275. line-height: 52rpx;
  276. background: linear-gradient(178deg,#4fd3bc 0%, #60c285 99%);
  277. border-radius: 26px;
  278. box-shadow: 0px 4px 6px 0px rgba(0,0,0,0.16);
  279. font-size: 24rpx;
  280. font-family: PingFang SC, PingFang SC-Regular;
  281. font-weight: 400;
  282. text-align: center;
  283. color: #ffffff;
  284. position: absolute;
  285. top: 74rpx;
  286. right: 22rpx;
  287. }
  288. </style>