index.vue 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492
  1. <template>
  2. <view class="home">
  3. <view class="top_view">
  4. <u-navbar :title-bold="true" :border-bottom="false"
  5. :background="{ background: `rgba(14, 9, 21, ${scroll_top / 100})` }" :is-back="false" title=" ">
  6. <view class="title">{{ enterprise.enterpriseName || '工作台' }}</view>
  7. </u-navbar>
  8. <!-- <uniStatusBar></uniStatusBar> -->
  9. <!-- <view class="title">{{ enterprise.enterpriseName || '--' }}</view> -->
  10. <view class="user_img clearfix">
  11. <view class="img" @click="setYg()">
  12. <image :src="enterprise.logo" mode="aspectFill"></image>
  13. <span class="img_title">{{ userInfo.name }}</span>
  14. </view>
  15. <view class="Icon">
  16. <view class="btn-li" @click="goPage('/pages/enterprise/index', 'reLaunch')">
  17. <u-icon name="qiehuan-" custom-prefix="custom-icon" size="36" color="#4076D6"></u-icon>
  18. </view>
  19. <view class="btn-li" @click="overview('reset')">
  20. <u-icon name="shuaxin" size="36" color="#4076D6" custom-prefix="custom-icon"></u-icon>
  21. </view>
  22. <view class="btn-li" @click="goPage('/pages/index/WxCode')">
  23. <u-icon name="erweima" size="32" custom-prefix="custom-icon" color="#4076D6"></u-icon>
  24. </view>
  25. <view class="btn-li" @click="goPage('/pagesT/notice/notice')">
  26. <u-icon name="bell" size="36" color="#4076D6"></u-icon>
  27. </view>
  28. <view class="btn-li" @click="logout">
  29. <u-icon name="zhuxiao" custom-prefix="custom-icon" size="34" color="#4076D6"></u-icon>
  30. </view>
  31. </view>
  32. </view>
  33. <!-- <view class="top_money clearfix" v-if="$accessCheck($Access.overview)">
  34. <view class="float_left" style="font-weight: 400;">
  35. <u-icon name="jinbi" size="36" color="#ffffff" margin-left="12" label-color="#ffffff" label-size="24" label="应收账款" custom-prefix="custom-icon"></u-icon>
  36. </view>
  37. <view class="float_right">
  38. <text class="rmb-icon">¥</text>
  39. {{ $utils.formatNub(now.totalShouldReceive) }}
  40. </view>
  41. </view> -->
  42. </view>
  43. <!-- <view class="top_bottom" v-if="$accessCheck($Access.overview)">
  44. <view class="money-li">
  45. <view>
  46. <u-icon name="jinbi" size="36" color="#f69844" margin-left="12" label-color="#BABBC6" label-size="24" label="应付账款" custom-prefix="custom-icon"></u-icon>
  47. </view>
  48. <view class="num">
  49. ¥
  50. <text class="written">{{ $utils.formatNub(now.totalShouldPay) }}</text>
  51. </view>
  52. </view>
  53. <view class="money-li">
  54. <navigator open-type="switchTab" url="/pages/customer/CustomerList">
  55. <view>
  56. <u-icon
  57. name="customer"
  58. size="36"
  59. color="#7a15ff"
  60. margin-left="12"
  61. label-color="#BABBC6"
  62. label-size="24"
  63. label="当前客户数"
  64. custom-prefix="custom-icon"
  65. ></u-icon>
  66. <view class="num">
  67. <text class="written">{{ Number(now.customerTotalNum) || 0 }}</text>
  68. </view>
  69. </view>
  70. </navigator>
  71. </view>
  72. <view class="money-li">
  73. <view>
  74. <u-icon
  75. name="shangpin1"
  76. size="36"
  77. color="#3f64d9"
  78. margin-left="12"
  79. label-color="#BABBC6"
  80. label-size="24"
  81. label="库存商品数"
  82. custom-prefix="custom-icon"
  83. ></u-icon>
  84. </view>
  85. <view class="num">
  86. <text class="written">{{ Number(now.numberOfProductsInStock) || 0 }}</text>
  87. </view>
  88. </view>
  89. <view class="money-li">
  90. <view>
  91. <u-icon name="jine" size="36" color="#f54957" margin-left="12" label-color="#BABBC6" label-size="24" label="库存总金额" custom-prefix="custom-icon"></u-icon>
  92. </view>
  93. <view class="num">
  94. ¥
  95. <text class="written">{{ $utils.formatNub(now.totalMoneyOfInventory) }}</text>
  96. </view>
  97. </view>
  98. </view> -->
  99. <!-- 内容 -->
  100. <view class="content" >
  101. <!-- 工作台 -->
  102. <view class="content_main" style="margin-top: 0;" v-if="roleType == 2">
  103. <view class="content_top clearfix"
  104. style="background: linear-gradient(270deg, #FDFFFE 0%, #EAFEEE 100%);">
  105. <image src="../../static/img/ic-work.png" class="img"></image>
  106. <text class="title-text">工作台</text>
  107. <!-- <view class="edit-btn float_right" @click="goPage('/pages/app/index')">
  108. <u-icon name="edit-pen-fill" color="#4076D6" label-color="#4076D6" size="28" label="编辑"
  109. label-size="28"></u-icon>
  110. </view> -->
  111. </view>
  112. <view class="cont">
  113. <swiper class="swiper" indicator-color="#B8C0C8" indicator-active-color="#4076D6" :autoplay="false"
  114. :interval="2000" :duration="500">
  115. <swiper-item v-for="(item, index) in nav_list_yg" :key="index">
  116. <view class="app-ul">
  117. <block v-for="(app, appi) in item" :key="appi">
  118. <!-- <view class="app-li" @click="goPage(app.url)"
  119. v-if="$accessCheck($Access[app.access])"> -->
  120. <view class="app-li" @click="goPage(app.url)"
  121. >
  122. <view class="icon-view" :style="{ background: app.color }"><text
  123. :class="[app.icon]" class="custom-icon"></text></view>
  124. <view class="label ellipsis">{{ app.label }}</view>
  125. </view>
  126. </block>
  127. </view>
  128. </swiper-item>
  129. </swiper>
  130. </view>
  131. </view>
  132. <view class="content_main" style="margin-top: 0;" v-if="roleType != 2">
  133. <view class="content_top clearfix"
  134. style="background: linear-gradient(270deg, #FDFFFE 0%, #EAFEEE 100%);">
  135. <image src="../../static/img/ic-work.png" class="img"></image>
  136. <text class="title-text">工作台</text>
  137. <!-- <view class="edit-btn float_right" @click="goPage('/pages/app/index')">
  138. <u-icon name="edit-pen-fill" color="#4076D6" label-color="#4076D6" size="28" label="编辑"
  139. label-size="28"></u-icon>
  140. </view> -->
  141. </view>
  142. <view class="cont">
  143. <swiper class="swiper" indicator-color="#B8C0C8" indicator-active-color="#4076D6" :autoplay="false"
  144. :interval="2000" :duration="500">
  145. <swiper-item v-for="(item, index) in nav_list" :key="index">
  146. <view class="app-ul">
  147. <block v-for="(app, appi) in item" :key="appi">
  148. <view class="app-li" @click="goPage(app.url)"
  149. v-if="$accessCheck($Access[app.access])">
  150. <view class="icon-view" :style="{ background: app.color }"><text
  151. :class="[app.icon]" class="custom-icon"></text></view>
  152. <view class="label ellipsis">{{ app.label }}</view>
  153. </view>
  154. </block>
  155. </view>
  156. </swiper-item>
  157. </swiper>
  158. </view>
  159. </view>
  160. <view class="content_main" v-if="$accessCheck($Access.overview) && roleType != 2">
  161. <view class="content_top">
  162. <image src="../../static/img/ic-jy.png" class="img" mode="aspectFill"></image>
  163. <text class="title-text">经营概况</text>
  164. </view>
  165. <!-- 经营概况 -->
  166. <view class="content_text">
  167. <ul class="content-ul">
  168. <li class="li-list">
  169. <view class="order_money">下单金额</view>
  170. <view class="num">{{ businessOverview.orderTotalMoney }}</view>
  171. <!-- <view class='txt'>同比<span style='margin-left: 3rpx;color: #2CB244;'>+10%</span><span>
  172. <image src="../../static/img/ic-sh.png" style="width: 16rpx;height: 16rpx;">
  173. </image>
  174. </span></view> -->
  175. <!-- <view class="time">
  176. 昨日
  177. <span style="margin-left: 4rpx;">13409.00</span>
  178. </view> -->
  179. </li>
  180. <li class="li-list">
  181. <view class="order_money">营业金额</view>
  182. <view class="num">{{ businessOverview.orderConfirmedMoney }}</view>
  183. <!-- <view class='txt'>同比<span style='margin-left: 8rpx;color: #FA6400;'>+10%</span><span>
  184. <image src="../../static/img/ic-xd.png" style="width: 16rpx;height: 16rpx;">
  185. </image>
  186. </span></view> -->
  187. <!-- <view class="time">
  188. 昨日
  189. <span style="margin-left: 4rpx;">13409.00</span>
  190. </view> -->
  191. </li>
  192. <li class="li-list">
  193. <view class="order_money">今日毛利</view>
  194. <view class="num">{{ businessOverview.todayGrossProfit }}</view>
  195. <!-- <view class='txt'>同比<span style='margin-left: 3rpx;color: #2CB244;'>+10%</span><span>
  196. <image src="../../static/img/ic-sh.png" style="width: 16rpx;height: 16rpx;">
  197. </image>
  198. </span></view> -->
  199. <!-- <view class="time">
  200. 昨日
  201. <span style="margin-left: 4rpx;">13409.00</span>
  202. </view> -->
  203. </li>
  204. <li class="li-list bottom-li">
  205. <view class="order_money">今日收款</view>
  206. <view class="num">{{ businessOverview.todayReceivedMoney }}</view>
  207. <!-- <view class='txt'>同比<span style='margin-left: 3rpx;color: #2CB244;'>+10%</span><span>
  208. <image src="../../static/img/ic-sh.png" style="width: 16rpx;height: 16rpx;">
  209. </image>
  210. </span></view> -->
  211. <!-- <view class="time">
  212. 昨日
  213. <span style="margin-left: 4rpx;">13409.00</span>
  214. </view> -->
  215. </li>
  216. <li class="li-list bottom-li">
  217. <view class="order_money">今日新增客户数</view>
  218. <view class="num">{{ businessOverview.todayNewCustomerNum }}</view>
  219. <!-- <view class='txt'>同比<span style='margin-left: 3rpx;color: #2CB244;'>+10%</span><span>
  220. <image src="../../static/img/ic-sh.png" style="width: 16rpx;height: 16rpx;">
  221. </image>
  222. </span></view> -->
  223. <!-- <view class="time">
  224. 昨日
  225. <span style="margin-left: 4rpx;">13409.00</span>
  226. </view> -->
  227. </li>
  228. </ul>
  229. </view>
  230. </view>
  231. <!-- 订单概况 -->
  232. <view class="content_main" v-if="$accessCheck($Access.overview) && roleType != 2">
  233. <view class="content_top clearfix"
  234. style="background: linear-gradient(270deg, #FFFFFF 0%, #FDF6E8 100%); ">
  235. <view class="float_left">
  236. <image src="../../static/img/ic-jyh3.png" class="img" mode="aspectFill"></image>
  237. <text class="title-text">订单概况</text>
  238. </view>
  239. <!-- <view class="float_right" style="color: #B8C0C8;">选择店铺</view> -->
  240. </view>
  241. <view class="content_text">
  242. <ul class="content-ul">
  243. <li class="li-list">
  244. <view class="order_money">今日订单</view>
  245. <view class="num">{{ businessOverview.todayConfirmedOrderNum }}</view>
  246. <!-- <view class='txt'>同比<span style='margin-left: 3rpx;color: #2CB244;'>+10%</span><span>
  247. <image src="../../static/img/ic-sh.png" style="width: 16rpx;height: 16rpx;">
  248. </image>
  249. </span></view> -->
  250. <!-- <view class="time">
  251. 昨日
  252. <span style="margin-left: 4rpx;">13409.00</span>
  253. </view> -->
  254. </li>
  255. <li class="li-list">
  256. <view class="order_money">下单客户</view>
  257. <view class="num">{{ businessOverview.todayConfirmedOrderCustomerNum }}</view>
  258. <!-- <view class='txt'>同比<span style='margin-left: 8rpx;color: #FA6400;'>+10%</span><span>
  259. <image src="../../static/img/ic-xd.png" style="width: 16rpx;height: 16rpx;">
  260. </image>
  261. </span></view> -->
  262. <!-- <view class="time">
  263. 昨日
  264. <span style="margin-left: 4rpx;">13409.00</span>
  265. </view> -->
  266. </li>
  267. <li class="li-list">
  268. <view class="order_money">今日客单价</view>
  269. <view class="num">{{ businessOverview.customerAverageMoney }}</view>
  270. <!-- <view class='txt'>同比<span style='margin-left: 3rpx;color: #2CB244;'>+10%</span><span>
  271. <image src="../../static/img/ic-sh.png" style="width: 16rpx;height: 16rpx;">
  272. </image>
  273. </span></view> -->
  274. <!-- <view class="time">
  275. 昨日
  276. <span style="margin-left: 4rpx;">13409.00</span>
  277. </view> -->
  278. </li>
  279. <li class="li-list bottom-li">
  280. <view class="order_money">未出库订单</view>
  281. <view class="num">{{ businessOverview.orderNumOfNotOutOfStock }}</view>
  282. <!-- <view class='txt'>同比<span style='margin-left: 3rpx;color: #2CB244;'>+10%</span><span>
  283. <image src="../../static/img/ic-sh.png" style="width: 16rpx;height: 16rpx;">
  284. </image>
  285. </span></view> -->
  286. <!-- <view class="time">
  287. 昨日
  288. <span style="margin-left: 4rpx;">13409.00</span>
  289. </view> -->
  290. </li>
  291. <li class="li-list bottom-li">
  292. <view class="order_money">今日取消订单</view>
  293. <view class="num">{{ businessOverview.todayCanceledOrder }}</view>
  294. <!-- <view class='txt'>同比<span style='margin-left: 3rpx;color: #2CB244;'>+10%</span><span>
  295. <image src="../../static/img/ic-sh.png" style="width: 16rpx;height: 16rpx;">
  296. </image>
  297. </span></view> -->
  298. <!-- <view class="time">
  299. 昨日
  300. <span style="margin-left: 4rpx;">13409.00</span>
  301. </view> -->
  302. </li>
  303. </ul>
  304. </view>
  305. </view>
  306. <!-- 近7日交易统计图 -->
  307. <view class="content_main" v-if="$accessCheck($Access.overview) && roleType != 2">
  308. <view class="content_top" style="background: linear-gradient(270deg, #FDFFFF 0%, #EAFAFE 100%);">
  309. <image src="../../static/img/ic-jyh2.png" class="img" style="vertical-align: middle;"></image>
  310. <text class="title-text">近7日交易趋势</text>
  311. </view>
  312. <view class="charts-box">
  313. <qiun-data-charts type="area" :chartData="chartData" :echartsH5="true" :echartsApp="true"
  314. background="none" :animation="false" />
  315. </view>
  316. </view>
  317. <!-- tab -->
  318. <view class="content_main" v-if="$accessCheck($Access.overview) && roleType != 2">
  319. <view class="content_top tabs-ul">
  320. <ul class="ul_tag">
  321. <li v-for="(item, index) in tag" :key="index" @click="changeTag(item.value)" class="ul_tag_item"
  322. :class="[item.value === rank_on ? 'hover' : '']">
  323. {{ item.label }}
  324. </li>
  325. </ul>
  326. </view>
  327. <view class="content_bottom">
  328. <view class="bottom_top clearfix">
  329. <view class="float_left">
  330. <text class="sale" @click="changeSel(1)"
  331. :class="[ranking_sel === 1 ? 'show-on' : '']">销额</text>
  332. <text
  333. style="width: 1rpx;height: 24rpx;display: inline-block;border-left: 1rpx solid #ECF0F7;"></text>
  334. <text class="sale_num" @click="changeSel(2)"
  335. :class="[ranking_sel === 2 ? 'show-on' : '']">销量</text>
  336. </view>
  337. <view v-if="false" class="float_right" @click="goPage('/pagesT/shop/selShop')">
  338. <u-icon name="arrow-down-fill" color="#B8C0C8" margin-right="20" label-size="28rpx"
  339. label-color="#B8C0C8" size="14" label="选择店铺" label-pos="left"></u-icon>
  340. </view>
  341. </view>
  342. <view style="margin-top:40rpx">
  343. <ul class="progress-ul" v-if="rank_on === 1">
  344. <li class="clearfix progress-li" v-for="(item, index) in ranking.categoryRanking"
  345. :key="index">
  346. <view class="float_left label ellipsis">{{ item.categoryName }}</view>
  347. <view class="float_left line">
  348. <u-line-progress active-color="#4076D6" :percent="item.percent"
  349. :show-percent="false" height="16prx" width="423prx" :round="true">
  350. </u-line-progress>
  351. </view>
  352. <view class="float_right num">{{ item.numberOrMoney }}</view>
  353. </li>
  354. </ul>
  355. <ul class="progress-ul" v-if="rank_on === 2">
  356. <li class="clearfix progress-li" v-for="(item, index) in ranking.goodsRanking" :key="index">
  357. <view class="float_left label ellipsis">{{ item.goodsName || '未设置' }}</view>
  358. <view class="float_left line">
  359. <u-line-progress active-color="#4076D6" :percent="item.percent"
  360. :show-percent="false" height="16prx" width="423prx" :round="true">
  361. </u-line-progress>
  362. </view>
  363. <view class="float_right num">{{ item.numberOrMoney }}</view>
  364. </li>
  365. </ul>
  366. <ul class="progress-ul" v-if="rank_on === 3">
  367. <li class="clearfix progress-li" v-for="(item, index) in ranking.customerRanking"
  368. :key="index">
  369. <view style="width: 450rpx;border: 0;" class="float_left label ellipsis">
  370. {{ item.customerName}}
  371. </view>
  372. <view style="width: 200rpx;text-align: left;" class="float_right num">
  373. {{ item.numberOrMoney }}
  374. </view>
  375. </li>
  376. </ul>
  377. <ul class="progress-ul" v-if="rank_on === 4">
  378. <li class="clearfix progress-li ellipsis" v-for="(item, index) in ranking.supplierRanking"
  379. :key="index">
  380. <view style="width: 450rpx;border: 0;" class="float_left label">{{ item.supplierName }}
  381. </view>
  382. <view style="width: 200rpx;text-align: left;" class="float_right num">
  383. {{ item.numberOrMoney }}
  384. </view>
  385. </li>
  386. </ul>
  387. </view>
  388. </view>
  389. </view>
  390. <!-- 员工订单 -->
  391. <view class="ygdd" v-if="ygYyList.length > 0">
  392. <view class="dd-tit">
  393. <view class="tit-left">
  394. <view class="sx">
  395. </view>
  396. <view class="">
  397. 我的订单
  398. </view>
  399. </view>
  400. <view class="tit-right" @click="goPage('/pagesS/order/allorder')">
  401. 全部订单
  402. <image src="../../static/img/down-right-w.png" mode=""></image>
  403. </view>
  404. </view>
  405. <view class="dd-wrap" v-for="yyitem in ygYyList" @click="goPage('/pagesS/order/orderinfo?id=' + yyitem.id)">
  406. <view class="dd-id-status">
  407. <view class="dd-stata">
  408. {{yyitem.status == 1 ? '已完成': '待服务'}}
  409. </view>
  410. <view class="dd-id">
  411. {{yyitem.order_id}}
  412. </view>
  413. <view class="dd-status">
  414. 已预约
  415. </view>
  416. </view>
  417. <view class="dd-info" style="margin-top: 20rpx;">
  418. 客户名称<text>{{yyitem.customer | showname }}</text>
  419. </view>
  420. <view class="dd-info">
  421. 下单时间<text>{{$utils.formatDate(yyitem.createTime)}}</text>
  422. </view>
  423. <view class="dd-info">
  424. 预约时间<text class="chs" style="color:#FF5600;">{{$utils.formatDate(yyitem.time)}}</text>
  425. </view>
  426. <view class="dd-btm">
  427. <view class="btm-price">
  428. 订单金额: <text>¥{{yyitem.to_price}}</text>
  429. </view>
  430. <!-- <view class="btm-btn" @click.stop="goCall(yyitem.customer_mobile)">
  431. 联系客户
  432. </view> -->
  433. </view>
  434. <!-- <view class="add-dd" @click.stop="goPage('/pagesS/order/addorder?id=' + yyitem.id)" v-if="yyitem.status == 0">
  435. <image src="../../static/img/add-dd.png" mode=""></image>
  436. <view class="">
  437. 添加项目
  438. </view>
  439. </view> -->
  440. </view>
  441. </view>
  442. </view>
  443. <u-popup v-model="noticePop" border-radius="18" mode="center" height="905" :custom-style="{
  444. background: 'rgba(0,0,0,0)'
  445. }">
  446. <view class="mag-view">
  447. <view class="mag-top">
  448. <image class="notice-i" src="../../static/img/notice-i.png" mode=""></image>
  449. </view>
  450. <view class="msg-cont">
  451. <image class="msg-yun" src="../../static/img/notice-bg.png" mode=""></image>
  452. <view class="mag-tit">{{ notice_data.title }}</view>
  453. <scroll-view class="mag-main" scroll-y>{{ notice_data.content }}</scroll-view>
  454. </view>
  455. <view class="confirm-btn primary-btn-pain" @click="noticePop = false">我知道了</view>
  456. </view>
  457. </u-popup>
  458. <!-- 底部tabbar -->
  459. <Tabbar v-model="tabbar_current"></Tabbar>
  460. </view>
  461. </template>
  462. <script>
  463. import {
  464. mapActions
  465. } from 'vuex';
  466. import uniStatusBar from '../../components/uni-status-bar.vue';
  467. export default {
  468. data() {
  469. return {
  470. tabbar_current: 0,
  471. notice_data: {
  472. title: '',
  473. content: ''
  474. },
  475. noticePop: false,
  476. shopData: '',
  477. ranking: [],
  478. now: {}, //
  479. type: true,
  480. businessOverview: {},
  481. active: false,
  482. rank_on: 1,
  483. list: ['快销品', '包装食品', '饼干糕点', '保健品', '营养保健品', '速冻面店', '办公器材', '美容化妆'],
  484. tag: [{
  485. value: 1,
  486. label: '类目排行',
  487. active: true
  488. },
  489. {
  490. value: 2,
  491. label: '商品排行',
  492. active: false
  493. },
  494. {
  495. value: 3,
  496. label: '客户排行',
  497. active: false
  498. },
  499. {
  500. value: 4,
  501. label: '供应商排行',
  502. active: false
  503. }
  504. ],
  505. chartData: {
  506. categories: [],
  507. series: []
  508. },
  509. tabs_current: 0,
  510. tabs_list: [{
  511. name: '订单金额'
  512. },
  513. {
  514. name: '客户统计'
  515. },
  516. {
  517. name: '资金统计'
  518. },
  519. {
  520. name: '订单数'
  521. }
  522. ],
  523. ranking_sel: 1,
  524. nav_list_yg: [
  525. [
  526. {
  527. url: '/pagesT/customer/StaffList',
  528. label: '销售排行',
  529. icon: 'custom-icon-paihangbang',
  530. color: '#f29611',
  531. access: 'salesRanking'
  532. },
  533. {
  534. url: '/pagesS/yg/dkdetail?type=yg',
  535. label: '考勤记录',
  536. icon: 'custom-icon-liulanjilu-tianchong',
  537. color: '#7747EE',
  538. access: 'salesRanking'
  539. },
  540. {
  541. url: '/pagesS/yg/gqdetail',
  542. label: '股权管理',
  543. icon: 'custom-icon-group_fill',
  544. color: '#4076D6',
  545. access: 'OrderAdd'
  546. },
  547. {
  548. url: '/pagesS/yg/yjjl',
  549. label: '业绩奖励',
  550. icon: 'custom-icon-xiaoshouyuce',
  551. color: '#5c6aff',
  552. access: 'OrderAdd'
  553. },
  554. {
  555. // url: '/pagesS/yg/gztx',
  556. url: '/pagesS/yg/gzdetail?type=yg',
  557. label: '工资提现',
  558. icon: 'custom-icon-mingxi',
  559. color: '#5c6aff',
  560. access: 'OrderAdd'
  561. },
  562. {
  563. url: '/pagesS/yg/ygdetail?type=yg',
  564. label: '我的评价',
  565. icon: 'custom-icon-quehuoshangpinshu',
  566. color: '#5c6aff',
  567. access: 'OrderAdd'
  568. },
  569. {
  570. url: '/pagesS/yg/myteam',
  571. label: '我的转介绍',
  572. icon: 'custom-icon-tiaobodanguanli',
  573. color: '#7747EE',
  574. access: 'OrderAdd'
  575. }
  576. ]
  577. ],
  578. nav_list: [
  579. [{
  580. url: '/pagesT/customer/StaffList',
  581. label: '销售排行',
  582. icon: 'custom-icon-paihangbang',
  583. color: '#f29611',
  584. access: 'salesRanking'
  585. },
  586. {
  587. url: '/pagesT/customer/selCustomert',
  588. label: '客户拜访',
  589. icon: 'custom-icon-baifang',
  590. color: '#5c6aff',
  591. access: 'CustomerListvisitedLogs'
  592. },
  593. {
  594. url: '/pagesS/goods/xhplist',
  595. label: '消耗品管理',
  596. icon: 'custom-icon-shangpin2',
  597. color: '#f29611',
  598. access: 'CustomerListvisitedLogs'
  599. },
  600. {
  601. url: '/pagesS/goods/valetbuy',
  602. label: '代客预约',
  603. icon: 'custom-icon-tuikuan',
  604. color: '#e8443c',
  605. access: 'CustomerListvisitedLogs'
  606. },
  607. {
  608. url: '/pagesS/yg/dklist',
  609. label: '员工打卡',
  610. icon: 'custom-icon-liulanjilu-tianchong',
  611. color: '#7747EE',
  612. access: 'CustomerListvisitedLogs'
  613. },
  614. {
  615. url: '/pagesS/yg/yglist?type=yg',
  616. label: '门店员工',
  617. icon: 'custom-icon-quehuoshangpinshu',
  618. color: '#5c6aff',
  619. access: 'CustomerListvisitedLogs'
  620. },
  621. {
  622. url: '/pagesS/yg/yglist?type=gz',
  623. label: '工资表',
  624. icon: 'custom-icon-yue',
  625. color: '#7747EE',
  626. access: 'CustomerListvisitedLogs'
  627. },
  628. {
  629. url: '/pages/order/OrderAdd',
  630. label: '代客下单',
  631. icon: 'custom-icon-shoukuandanguanli',
  632. color: '#5c6aff',
  633. access: 'OrderAdd'
  634. }
  635. ]
  636. ],
  637. scroll_top: 0,
  638. ygYyList: [],
  639. roleType: 1,
  640. };
  641. },
  642. onPageScroll(e) {
  643. this.scroll_top = e.scrollTop;
  644. },
  645. components: {
  646. uniStatusBar
  647. },
  648. computed: {
  649. hasLogin() {
  650. return this.$store.state.hasLogin;
  651. },
  652. userInfo() {
  653. return this.$store.state.userInfo;
  654. },
  655. enterprise() {
  656. return this.$store.state.enterprise;
  657. }
  658. },
  659. watch: {
  660. shopData(val) {}
  661. },
  662. async onLoad() {
  663. // this.noticePop=true
  664. if (!this.hasLogin) {
  665. this.logout();
  666. return;
  667. }
  668. await this.overview();
  669. await this.getupStatusAnnouncementInfo();
  670. await this.getBasicSetup();
  671. },
  672. async onShow() {
  673. this.roleType = uni.getStorageSync('roleType')
  674. if(this.roleType == 2) {
  675. this.getYgYyList()
  676. }
  677. // await this.getCommonAppInfo();
  678. },
  679. async onPullDownRefresh() {
  680. await this.overview();
  681. await this.getupStatusAnnouncementInfo();
  682. await this.getBasicSetup();
  683. },
  684. onShareAppMessage(res) {},
  685. filters: {
  686. showname(val) {
  687. function maskString(inputString) {
  688. const length = inputString.length;
  689. const visiblePart = length > 4 ? inputString.slice(-4) : inputString;
  690. const maskedPart = "*".repeat(length - visiblePart.length);
  691. return maskedPart + visiblePart;
  692. }
  693. const originalString = val + '';
  694. const maskedString = maskString(originalString);
  695. return maskedString
  696. // console.log(maskedString); // 输出:******7890
  697. }
  698. },
  699. methods: {
  700. setYg() {
  701. let roleType = uni.getStorageSync('roleType')
  702. if(roleType == 2) {
  703. this.goPage('/pagesS/yg/setInfo')
  704. }
  705. },
  706. goCall(phone) {
  707. console.log(phone,'打电话');
  708. uni.makePhoneCall({
  709. phoneNumber: phone
  710. })
  711. },
  712. getYgYyList() {
  713. this.$u.api.getYgYyList({
  714. "page": 1, //分页页码,数字类型
  715. "pageSize": 3,
  716. "name": "", //搜索条件
  717. "type": ''
  718. }).then(({
  719. data
  720. }) => {
  721. console.log(data, '员工订单')
  722. this.ygYyList = data
  723. })
  724. },
  725. ...mapActions({
  726. logout: 'logout'
  727. }),
  728. setChartData(timeData, orderMoney, goodsNum, orderNum) {
  729. this.chartData = {
  730. categories: timeData,
  731. series: [{
  732. name: '金额',
  733. data: orderMoney,
  734. // pointShape: 'circle',
  735. legendShape: 'line'
  736. },
  737. {
  738. name: '商品数量',
  739. data: goodsNum,
  740. // pointShape: 'circle',
  741. legendShape: 'line'
  742. },
  743. {
  744. name: '订单数量',
  745. data: orderNum,
  746. // pointShape: 'circle',
  747. legendShape: 'line'
  748. }
  749. ]
  750. };
  751. },
  752. changeTag(val) {
  753. this.rank_on = val;
  754. },
  755. changeSel(val) {
  756. this.ranking_sel = val;
  757. this.overview();
  758. },
  759. async overview(isReset) {
  760. if (isReset) {
  761. uni.showLoading({
  762. title: '加载中...'
  763. });
  764. }
  765. await this.$u.api
  766. .overview({
  767. ranking: this.ranking_sel, // "1销量排行 2销额排行",
  768. businessOverviewShopId: '', // "经营概况按店铺筛选:为空则筛选全店",
  769. categoryRankingShopId: '', // "类目排行按店铺筛选:为空则筛选全店",
  770. goodsRankingShopId: '', // "商品排行按店铺筛选:为空则筛选全店",
  771. supplierRankingShopId: '' // 供应商排行按店铺筛选:为空则筛选全店"
  772. })
  773. .then(res => {
  774. uni.stopPullDownRefresh();
  775. uni.hideLoading();
  776. this.businessOverview = res.data.businessOverview;
  777. this.now = res.data.aggregateStatistics;
  778. this.ranking = res.data.ranking;
  779. const timeData = [];
  780. const goodsNumData = [];
  781. const orderMoneyData = [];
  782. const orderNumData = [];
  783. this.$nextTick(() => {
  784. res.data.chartData.forEach(value => {
  785. const arr = value.date.split('-');
  786. timeData.push(arr[1] + '-' + arr[2]);
  787. goodsNumData.push(Number(value.goodsNum));
  788. orderMoneyData.push(Number(value.orderMoney));
  789. orderNumData.push(Number(value.orderNum));
  790. });
  791. this.setChartData(timeData, orderMoneyData, goodsNumData, orderNumData);
  792. });
  793. })
  794. .catch(err => {
  795. uni.hideLoading();
  796. uni.stopPullDownRefresh();
  797. });
  798. },
  799. async getupStatusAnnouncementInfo() {
  800. await this.$u.api.getupStatusAnnouncementInfo().then(res => {
  801. if (res.data.upStatus === 5) {
  802. this.noticePop = true;
  803. this.notice_data.title = res.data.title;
  804. this.notice_data.content = res.data.content;
  805. } else {
  806. this.noticePop = false;
  807. }
  808. });
  809. },
  810. async getCommonAppInfo() {
  811. await this.$u.api.getCommonAppInfo(this.userInfo.userCenterId).then(res => {
  812. if (res.data.jsonKey) {
  813. const jsonKey = res.data.jsonKey;
  814. if (jsonKey[0].icon.indexOf('ibon') > -1) {
  815. return;
  816. }
  817. //可对一个数进行上舍入
  818. let num = Math.ceil(jsonKey.length / 8);
  819. let arr = [];
  820. for (let i = 0; i < num; i++) {
  821. arr[i] = jsonKey.slice(i * 8, i * 8 + 8);
  822. }
  823. this.nav_list = arr;
  824. }
  825. });
  826. },
  827. // 获取基本设置
  828. async getBasicSetup() {
  829. await this.$u.api.getBasicSetup().then(res => {
  830. if (res.data.basicData) {
  831. this.$store.commit('commit_basicSet', res.data.basicData);
  832. }
  833. });
  834. }
  835. }
  836. };
  837. </script>
  838. <style lang="scss" scoped>
  839. .charts-box {
  840. width: 710rpx;
  841. height: 530rpx;
  842. padding: 24rpx 24rpx 0 0;
  843. background-color: #ffffff;
  844. }
  845. .show {
  846. color: #2d405e;
  847. }
  848. .home {
  849. font-family: DIN-Medium;
  850. height: 100vh;
  851. background-color: #0e0915;
  852. .top_bottom {
  853. width: 686rpx;
  854. margin: 0 auto;
  855. background-color: #ffffff;
  856. border-radius: 8rpx;
  857. display: flex;
  858. padding: 32rpx;
  859. flex-wrap: wrap;
  860. transform: translateY(-146rpx);
  861. .money-li {
  862. padding-left: 42rpx;
  863. width: 50%;
  864. color: #2d405e;
  865. padding-top: 20rpx;
  866. &:nth-child(odd) {
  867. border-right: 1px solid #ecf0f7;
  868. }
  869. &:nth-child(2) {
  870. padding-top: 0;
  871. border-bottom: 1px solid #ecf0f7;
  872. }
  873. &:first-child {
  874. padding-top: 0;
  875. border-bottom: 1px solid #ecf0f7;
  876. }
  877. .num {
  878. padding-top: 8px;
  879. font-size: 24rpx;
  880. font-weight: 500;
  881. color: #2d405e;
  882. line-height: 50rpx;
  883. .written {
  884. font-size: 40rpx;
  885. }
  886. }
  887. }
  888. }
  889. .top_view {
  890. padding: 0 32rpx 164rpx;
  891. // height: calc(500rpx + var(--status-bar-height));
  892. // background: linear-gradient(#4076d6, #4076d6, #4076d6, #4076d6, #f5f5f6 100%);
  893. .title {
  894. padding-left: 32rpx;
  895. font-size: 32rpx;
  896. font-weight: 500;
  897. color: #ffffff;
  898. }
  899. .user_img {
  900. margin-top: 52rpx;
  901. .img {
  902. float: left;
  903. image {
  904. margin-right: 8rpx;
  905. vertical-align: middle;
  906. width: 68rpx;
  907. height: 68rpx;
  908. border-radius: 100%;
  909. border: 4rpx solid #ffffff;
  910. background-color: #ffffff;
  911. }
  912. .img_title {
  913. line-height: 68rpx;
  914. vertical-align: middle;
  915. font-size: 28rpx;
  916. font-weight: 500;
  917. color: #ffffff;
  918. }
  919. }
  920. .Icon {
  921. float: right;
  922. line-height: 72rpx;
  923. .btn-li {
  924. font-weight: bold;
  925. width: 50rpx;
  926. height: 50rpx;
  927. background-color: #ffffff;
  928. display: inline-block;
  929. text-align: center;
  930. vertical-align: middle;
  931. margin-left: 30rpx;
  932. line-height: 50rpx;
  933. border-radius: 6rpx;
  934. }
  935. }
  936. }
  937. .top_money {
  938. color: #ffffff;
  939. margin-top: 52rpx;
  940. .float_right {
  941. font-size: 34rpx;
  942. font-weight: 400;
  943. font-family: DINPro-Regular;
  944. .rmb-icon {
  945. margin-right: 4rpx;
  946. font-size: 24rpx;
  947. }
  948. }
  949. }
  950. .txst {
  951. width: 141rpx;
  952. height: 33px;
  953. font-size: 24px;
  954. font-weight: 400;
  955. color: #2d405e;
  956. line-height: 33px;
  957. }
  958. }
  959. .content {
  960. transform: translateY(-120rpx);
  961. .content_main {
  962. margin: 24rpx auto;
  963. width: 710rpx;
  964. border-radius: 12rpx;
  965. overflow: hidden;
  966. .content_top {
  967. background: linear-gradient(270deg, #fcfdff 0%, #e2ebff 100%);
  968. line-height: 40rpx;
  969. height: 80rpx;
  970. line-height: 80rpx;
  971. padding: 0 24rpx;
  972. overflow: hidden;
  973. .img {
  974. width: 40rpx;
  975. height: 40rpx;
  976. display: inline-block;
  977. margin-right: 16rpx;
  978. vertical-align: middle;
  979. }
  980. .title-text {
  981. font-size: 32rpx;
  982. font-weight: 600;
  983. color: #2d405e;
  984. vertical-align: middle;
  985. }
  986. .edit-btn {
  987. margin-left: 20rpx;
  988. display: inline-block;
  989. }
  990. &.tabs-ul {
  991. overflow: auto;
  992. height: 88rpx;
  993. padding: 0rpx;
  994. background: transparent;
  995. .ul_tag {
  996. display: flex;
  997. width: 710rpx;
  998. height: 72rpx;
  999. line-height: 72rpx;
  1000. transform: translateY(16rpx);
  1001. background: linear-gradient(217deg, #ffffff 0%, #ecf0f7 100%);
  1002. .ul_tag_item {
  1003. flex: 4;
  1004. width: 177rpx;
  1005. text-align: center;
  1006. font-size: 24rpx;
  1007. font-weight: 400;
  1008. color: #62738e;
  1009. }
  1010. .hover {
  1011. font-weight: 400;
  1012. height: 88rpx;
  1013. line-height: 88rpx;
  1014. background-color: #4076d6;
  1015. color: #ffffff;
  1016. font-size: 28rpx;
  1017. transform: translateY(-16rpx);
  1018. border-radius: 8rpx 8rpx 0rpx 0rpx;
  1019. }
  1020. }
  1021. }
  1022. }
  1023. .content_bottom {
  1024. width: 710rpx;
  1025. background-color: #ffffff;
  1026. padding-top: 38rpx;
  1027. .bottom_top {
  1028. padding: 0 32rpx;
  1029. height: 50rpx;
  1030. line-height: 50rpx;
  1031. font-size: 28rpx;
  1032. .float_right {
  1033. width: 210rpx;
  1034. height: 50rpx;
  1035. border-radius: 25rpx;
  1036. border: 2rpx solid #b8c0c8;
  1037. text-align: center;
  1038. line-height: 36rpx;
  1039. }
  1040. .sale {
  1041. font-size: 28rpx;
  1042. width: 56rpx;
  1043. height: 40rpx;
  1044. color: #b8c0c8;
  1045. margin-left: 32rpx;
  1046. margin-right: 20rpx;
  1047. }
  1048. .sale_num {
  1049. font-size: 28rpx;
  1050. width: 56rpx;
  1051. font-weight: 400;
  1052. color: #b8c0c8;
  1053. margin-left: 20rpx;
  1054. }
  1055. .show-on {
  1056. font-size: 28rpx;
  1057. font-weight: 500;
  1058. color: #2d405e;
  1059. }
  1060. .sel {
  1061. padding: 10rpx;
  1062. font-size: 28rpx;
  1063. width: 210rpx;
  1064. border-radius: 25rpx;
  1065. border: 2rpx solid #b8c0c8;
  1066. margin-left: 320rpx;
  1067. color: #b8c0c8;
  1068. }
  1069. }
  1070. }
  1071. .content_text {
  1072. background-color: #ffffff;
  1073. .content-ul {
  1074. display: flex;
  1075. flex-wrap: wrap;
  1076. padding: 0 24rpx;
  1077. .li-list {
  1078. width: 33.3333%;
  1079. text-align: center;
  1080. margin-top: 10rpx;
  1081. padding-bottom: 32rpx;
  1082. padding-top: 40rpx;
  1083. border-bottom: 1px solid #ecf0f7;
  1084. position: relative;
  1085. &::after {
  1086. content: '';
  1087. display: block;
  1088. width: 1px;
  1089. height: 120rpx;
  1090. position: absolute;
  1091. background-color: #ecf0f7;
  1092. right: 0;
  1093. top: 50%;
  1094. transform: translateY(-48%);
  1095. }
  1096. &:nth-child(5),
  1097. &:nth-child(4) {
  1098. padding-top: 32rpx;
  1099. padding-bottom: 40rpx;
  1100. border-bottom: 0;
  1101. }
  1102. &:nth-child(3),
  1103. &:last-child {
  1104. &::after {
  1105. height: 0;
  1106. width: 0;
  1107. }
  1108. }
  1109. .num {
  1110. font-size: 44rpx;
  1111. font-weight: 500;
  1112. color: #2d405e;
  1113. line-height: 56rpx;
  1114. height: 56rpx;
  1115. padding-top: 12rpx;
  1116. }
  1117. .order_money {
  1118. font-size: 24rpx;
  1119. font-weight: 400;
  1120. color: #b8c0c8;
  1121. line-height: 33rpx;
  1122. }
  1123. .txt {
  1124. font-size: 20rpx;
  1125. font-weight: 400;
  1126. color: #62738e;
  1127. line-height: 28rpx;
  1128. }
  1129. .time {
  1130. font-size: 20rpx;
  1131. font-weight: 400;
  1132. color: #62738e;
  1133. line-height: 45rpx;
  1134. }
  1135. &.bottom-li {
  1136. width: 50%;
  1137. }
  1138. }
  1139. }
  1140. }
  1141. }
  1142. }
  1143. }
  1144. .cont {
  1145. .swiper {
  1146. width: 710rpx;
  1147. height: 400rpx;
  1148. .app-ul {
  1149. padding: 40rpx 0 0;
  1150. display: flex;
  1151. flex-wrap: wrap;
  1152. background-color: #ffffff;
  1153. height: 400rpx;
  1154. .app-li {
  1155. text-align: center;
  1156. width: 25%;
  1157. margin-bottom: 40rpx;
  1158. .icon-view {
  1159. width: 72rpx;
  1160. height: 72rpx;
  1161. line-height: 72rpx;
  1162. border-radius: 30rpx;
  1163. margin: 0 auto;
  1164. .custom-icon {
  1165. font-size: 42rpx;
  1166. color: #ffffff;
  1167. }
  1168. }
  1169. .label {
  1170. font-size: 26rpx;
  1171. line-height: 36rpx;
  1172. padding-top: 16rpx;
  1173. color: #2d405e;
  1174. }
  1175. }
  1176. }
  1177. }
  1178. }
  1179. .progress-ul {
  1180. padding-bottom: 40rpx;
  1181. .progress-li {
  1182. line-height: 90rpx;
  1183. .label {
  1184. width: 152rpx;
  1185. text-align: right;
  1186. border-right: 1px solid #dddddd;
  1187. padding-right: 12rpx;
  1188. color: #2d405e;
  1189. font-size: 24rpx;
  1190. font-weight: 400;
  1191. }
  1192. .line {
  1193. width: 400rpx;
  1194. }
  1195. .num {
  1196. color: #5c79b0;
  1197. font-size: 24rpx;
  1198. margin-right: 30rpx;
  1199. }
  1200. }
  1201. }
  1202. .mag-view {
  1203. text-align: center;
  1204. transform: translateY(100rpx);
  1205. background-color: #ffffff;
  1206. width: 612rpx;
  1207. border-radius: 18rpx;
  1208. padding-bottom: 46rpx;
  1209. .mag-top {
  1210. height: 242rpx;
  1211. border-radius: 18rpx;
  1212. background-color: $uni-color-primary;
  1213. width: 100%;
  1214. position: relative;
  1215. .notice-i {
  1216. width: 422rpx;
  1217. height: 312rpx;
  1218. position: absolute;
  1219. top: -100rpx;
  1220. left: 140rpx;
  1221. }
  1222. }
  1223. .msg-cont {
  1224. padding: 0 50rpx;
  1225. padding-top: 56rpx;
  1226. position: relative;
  1227. .msg-yun {
  1228. position: absolute;
  1229. width: 622rpx;
  1230. height: 215rpx;
  1231. left: 0;
  1232. top: -116rpx;
  1233. z-index: 1;
  1234. }
  1235. .mag-main {
  1236. height: 200rpx;
  1237. }
  1238. .mag-tit {
  1239. position: relative;
  1240. z-index: 9;
  1241. font-size: 38upx;
  1242. font-weight: bold;
  1243. padding-bottom: 30rpx;
  1244. }
  1245. }
  1246. .confirm-btn {
  1247. line-height: 90rpx;
  1248. height: 90rpx;
  1249. font-size: 34rpx;
  1250. width: 506rpx;
  1251. margin: 30rpx auto 0;
  1252. border: 1px solid $uni-color-primary;
  1253. color: $uni-color-primary;
  1254. border-radius: 12rpx;
  1255. }
  1256. }
  1257. .ygdd {
  1258. width: 100%;
  1259. background-color: #0c0a16;
  1260. padding-bottom: 20rpx;
  1261. .dd-tit {
  1262. padding: 0 37rpx;
  1263. height: 95rpx;
  1264. display: flex;
  1265. justify-content: space-between;
  1266. align-items: center;
  1267. .tit-left,
  1268. .tit-right {
  1269. display: flex;
  1270. align-items: center;
  1271. }
  1272. .tit-left {
  1273. color: #e3c4a5;
  1274. font-size: 30rpx;
  1275. font-weight: bold;
  1276. .sx {
  1277. background-color: #e3c4a5;
  1278. width: 7rpx;
  1279. height: 36rpx;
  1280. border-radius: 4rpx;
  1281. margin-right: 20rpx;
  1282. }
  1283. }
  1284. .tit-right {
  1285. font-size: 24rpx;
  1286. font-weight: 500;
  1287. color: #FFFFFF;
  1288. image {
  1289. width: 22rpx;
  1290. height: 22rpx;
  1291. }
  1292. }
  1293. }
  1294. .dd-wrap {
  1295. margin: auto;
  1296. width: 713rpx;
  1297. height: 314rpx;
  1298. border-radius: 20rpx;
  1299. background-color: #fff;
  1300. padding-top: 35rpx;
  1301. position: relative;
  1302. margin-bottom: 27rpx;
  1303. .dd-id-status {
  1304. height: 40rpx;
  1305. display: flex;
  1306. align-items: center;
  1307. width: 100%;
  1308. font-size: 24rpx;
  1309. padding: 0 23rpx 0 43rpx;
  1310. .dd-stata {
  1311. flex-shrink: 0;
  1312. width: 123rpx;
  1313. height: 39rpx;
  1314. background: #FF5600;
  1315. border-radius: 5rpx;
  1316. text-align: center;
  1317. line-height: 39rpx;
  1318. font-weight: 400;
  1319. color: #FFFFFF;
  1320. }
  1321. .dd-id {
  1322. margin-left: 15rpx;
  1323. flex-grow: 1;
  1324. color: #1e395a;
  1325. }
  1326. .dd-status {
  1327. flex-shrink: 0;
  1328. font-weight: 400;
  1329. color: #FCA930;
  1330. }
  1331. }
  1332. .dd-info {
  1333. font-size: 28rpx;
  1334. font-weight: 500;
  1335. color: #A0A0A0;
  1336. padding-left: 42rpx;
  1337. text {
  1338. padding-left: 32rpx;
  1339. font-size: 26rpx;
  1340. font-weight: 500;
  1341. color: #173456;
  1342. }
  1343. }
  1344. .dd-btm {
  1345. position: absolute;
  1346. bottom: 0;
  1347. height: 90rpx;
  1348. width: 713rpx;
  1349. background: linear-gradient(to right, #fbf5eb, #ffffff);
  1350. border-radius: 0 0 20rpx 20rpx;
  1351. display: flex;
  1352. justify-content: flex-start;
  1353. align-items: center;
  1354. padding: 0 20rpx 0 42rpx;
  1355. .btm-price {
  1356. font-size: 26rpx;
  1357. color: #56687f;
  1358. text {
  1359. color: #ff1e00;
  1360. }
  1361. }
  1362. .btm-btn {
  1363. width: 126rpx;
  1364. height: 48rpx;
  1365. line-height: 48rpx;
  1366. background: #ebccae;
  1367. border-radius: 10rpx;
  1368. font-size: 24rpx;
  1369. font-weight: 400;
  1370. color: #0C0A15;
  1371. text-align: center;
  1372. }
  1373. }
  1374. .add-dd {
  1375. position: absolute;
  1376. bottom: 90rpx;
  1377. right: 20rpx;
  1378. width: 110rpx;
  1379. height: 100rpx;
  1380. font-size: 24rpx;
  1381. font-weight: 500;
  1382. color: #FF5600;
  1383. text-align: center;
  1384. image {
  1385. display: block;
  1386. margin: auto;
  1387. width: 36rpx;
  1388. height: 45rpx;
  1389. }
  1390. }
  1391. }
  1392. }
  1393. </style>