index.vue 38 KB

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