workbench.vue 65 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087
  1. <template>
  2. <view>
  3. <block v-if="loginStyle == 0">
  4. <view style="width:100vw;text-align: center;">
  5. <!-- #ifdef MP-WEIXIN -->
  6. <view style="margin-top:50upx;font-size:34upx;margin-bottom:30upx;">个人买花</view>
  7. <view><button class="admin-button-com big blue" style="width:240upx;" @click="buyItem">去买花</button></view>
  8. <!-- #endif -->
  9. <view style="margin-top:100upx;font-size:34upx;margin-bottom:30upx;">花店登录</view>
  10. <view><button class="admin-button-com big blue" style="width:240upx;" @click="pageTo({url:'/admin/home/login'})">去登录</button></view>
  11. <view style="font-size:40upx;color:green;text-decoration: underline;margin-top:60upx;" @click="pageTo({url:'/pagesClient/official/apply'})">花店注册</view>
  12. </view>
  13. </block>
  14. <block v-else>
  15. <view class="app-main app-content" v-if="loginStyle == 2">
  16. <template v-if="lookMoney == 1">
  17. <view class="today-overview-card">
  18. <view class="bubble-header">
  19. <view class="bubble-title">📊 数据看板</view>
  20. <view class="message-btn" @click="pageTo({url:'/admin/chat/list'})">
  21. <view class="msg-icon">💬</view>
  22. <view class="red-mind" v-if="unReadMsgNum>0">{{ unReadMsgNum>9?'9+':unReadMsgNum }}</view>
  23. </view>
  24. </view>
  25. <view class="bubble-grid">
  26. <!-- 今日收入 - 主气泡 -->
  27. <view class="bubble bubble-primary" @click.stop="pageTo({url:'/admin/stat/kdIncome'})">
  28. <view class="bubble-inner">
  29. <view class="bubble-label">今日收入</view>
  30. <view class="bubble-value">{{ $util.numberFormat(data.todayData.income) }}</view>
  31. </view>
  32. </view>
  33. <!-- 访客 -->
  34. <view class="bubble bubble-secondary" @click.stop="pageTo({url:'/admin/custom/visit'})">
  35. <view class="bubble-inner">
  36. <view class="bubble-label">访客</view>
  37. <view class="bubble-value">{{ $util.numberFormat(data.todayData.visit) || 0 }}</view>
  38. </view>
  39. </view>
  40. <!-- 订单 -->
  41. <navigator
  42. url="/admin/home/order"
  43. open-type="switchTab"
  44. class="bubble bubble-secondary"
  45. @click.stop="pageTo({url:'/admin/home/order'})"
  46. >
  47. <view class="bubble-inner">
  48. <view class="bubble-label">订单</view>
  49. <view class="bubble-value">{{ $util.numberFormat(data.todayData.order) || 0 }}</view>
  50. </view>
  51. </navigator>
  52. <!-- 昨日收入 -->
  53. <view class="bubble bubble-secondary" @click.stop="">
  54. <view class="bubble-inner">
  55. <view class="bubble-label">昨日收入</view>
  56. <view class="bubble-value">{{ $util.numberFormat(data.yesterdayIncome) || 0 }}</view>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </template>
  62. <template v-else>
  63. <view class="today-overview-card">
  64. <view class="today-header">
  65. <view class="today-title">今日概况</view>
  66. <zui-svg-icon icon="home-message" color="#FFFFFF" :width="32" :height="29" @click.native="pageTo({url:'/admin/chat/list'})" />
  67. <view class="red-mind" v-if="unReadMsgNum>0">{{ unReadMsgNum>9?'9+':unReadMsgNum }}</view>
  68. </view>
  69. <view class="today-stats" @click="pageTo({url:'/admin/custom/visit'})">
  70. <view class="stat-item">
  71. <view class="stat-content">
  72. <view class="stat-label">访客</view>
  73. <view class="stat-value">{{ $util.numberFormat(data.todayData.visit) || 0 }}</view>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. </template>
  79. <view class="module-com news-wrap">
  80. <view class="news-list" v-for="(item, index) in data.notice" :key="index" @click="noticeFn(item)" >
  81. <view class="news-left">
  82. <i class="iconfont iconxiaoxi2 ling"></i>
  83. <span>{{ item.title }}</span>
  84. </view>
  85. <view class="news-right">
  86. <span>{{ item.action }}</span>
  87. <i class="iconfont iconxiangyou"></i>
  88. </view>
  89. </view>
  90. </view>
  91. <view v-if="!$util.isEmpty(data.warning)" class="alert-card alert-card-error">
  92. <view class="alert-content">
  93. <view class="alert-text">{{ data.warning }}</view>
  94. </view>
  95. </view>
  96. <view class="module-com flower-module">
  97. <!-- 花束 -->
  98. <view class="flower-section">
  99. <view class="section-header">
  100. <view class="header-title">🌹 绿植花束</view>
  101. </view>
  102. <view class="icon-grid">
  103. <view class="icon-item" @click="goPage({url: '/admin/cg/mall'})">
  104. <view class="icon-wrapper">
  105. <view class="icon-emoji">🏪</view>
  106. </view>
  107. <view class="icon-text">商城</view>
  108. </view>
  109. <view class="icon-item" @click="goPage({url: '/admin/work/list'})">
  110. <view class="icon-wrapper">
  111. <view class="icon-emoji">✅</view>
  112. </view>
  113. <view class="icon-text">任务</view>
  114. </view>
  115. <view class="icon-item" @click="goHsKd">
  116. <view class="icon-wrapper">
  117. <view class="icon-emoji">📝</view>
  118. </view>
  119. <view class="icon-text">开单</view>
  120. </view>
  121. <view class="icon-item" @click="goHsKjKd">
  122. <view class="icon-wrapper">
  123. <view class="icon-emoji">⚡</view>
  124. </view>
  125. <view class="icon-text">快捷开单</view>
  126. </view>
  127. <view class="icon-item" @click="goPage({url: '/admin/goods/category'})">
  128. <view class="icon-wrapper">
  129. <view class="icon-emoji">📂</view>
  130. </view>
  131. <view class="icon-text">分类</view>
  132. </view>
  133. <view class="icon-item" @click="goPage({url: '/admin/goods/categorySort'})">
  134. <view class="icon-wrapper">
  135. <view class="icon-emoji">↕️</view>
  136. </view>
  137. <view class="icon-text">排序</view>
  138. </view>
  139. <view class="icon-item" @click="goPage({url: '/admin/goods/list'})">
  140. <view class="icon-wrapper">
  141. <view class="icon-emoji">🌸</view>
  142. </view>
  143. <view class="icon-text">绿植花束</view>
  144. </view>
  145. <view class="icon-item" @click="goPage({url: '/admin/goods/add'})">
  146. <view class="icon-wrapper">
  147. <view class="icon-emoji">➕</view>
  148. </view>
  149. <view class="icon-text">新增</view>
  150. </view>
  151. </view>
  152. </view>
  153. <!-- 花材 -->
  154. <view class="flower-section">
  155. <view class="section-header">
  156. <view class="header-title">🌿 花材</view>
  157. </view>
  158. <view class="icon-grid">
  159. <view class="icon-item" @click="goPage({url: '/admin/cg/item'})">
  160. <view class="icon-wrapper">
  161. <view class="icon-emoji">🏪</view>
  162. </view>
  163. <view class="icon-text">商城</view>
  164. </view>
  165. <view class="icon-item" @click="goPage({url: '/admin/item/list2'})">
  166. <view class="icon-wrapper">
  167. <view class="icon-emoji">🌿</view>
  168. </view>
  169. <view class="icon-text">花材</view>
  170. </view>
  171. <view class="icon-item" @click="goItemKd()">
  172. <view class="icon-wrapper">
  173. <view class="icon-emoji">📝</view>
  174. </view>
  175. <view class="icon-text">开单</view>
  176. </view>
  177. <view class="icon-item" @click="goItemKjKd()">
  178. <view class="icon-wrapper">
  179. <view class="icon-emoji">⚡</view>
  180. </view>
  181. <view class="icon-text">快捷开单</view>
  182. </view>
  183. <view class="icon-item" @click="goPage({url: '/admin/part/list'})">
  184. <view class="icon-wrapper">
  185. <view class="icon-emoji">✂️</view>
  186. </view>
  187. <view class="icon-text">拆散</view>
  188. </view>
  189. <view class="icon-item" @click="goPage({url: '/admin/changePrice/list2'})">
  190. <view class="icon-wrapper">
  191. <view class="icon-emoji">💰</view>
  192. </view>
  193. <view class="icon-text">改价</view>
  194. </view>
  195. <view class="icon-item" @click="goPage({url: '/pagesPurchase/shopping'})">
  196. <view class="icon-wrapper">
  197. <view class="icon-emoji">📊</view>
  198. </view>
  199. <view class="icon-text">买花记录</view>
  200. </view>
  201. <view class="icon-item" @click="goPage({url: '/pagesPurchase/order'})">
  202. <view class="icon-wrapper">
  203. <view class="icon-emoji">🛍️</view>
  204. </view>
  205. <view class="icon-text">买花</view>
  206. </view>
  207. <view class="icon-item" @click="goPage({url: '/admin/breakage/list'})">
  208. <view class="icon-wrapper">
  209. <view class="icon-emoji">🗑️</view>
  210. </view>
  211. <view class="icon-text">报损</view>
  212. </view>
  213. <view class="icon-item" @click="goPage({url: '/admin/itemClass/list'})">
  214. <view class="icon-wrapper">
  215. <view class="icon-emoji">📂</view>
  216. </view>
  217. <view class="icon-text">分类</view>
  218. </view>
  219. </view>
  220. </view>
  221. <!-- 更多 -->
  222. <view class="flower-section">
  223. <view class="section-header">
  224. <view class="header-title">⚙️ 更多功能</view>
  225. </view>
  226. <view class="icon-grid">
  227. <view class="icon-item" @click="goPage({url: '/admin/order/expend'})">
  228. <view class="icon-wrapper">
  229. <view class="icon-emoji">💰</view>
  230. </view>
  231. <view class="icon-text">支出</view>
  232. </view>
  233. <view class="icon-item" @click="goPage({url: '/admin/staff/list'})">
  234. <view class="icon-wrapper">
  235. <view class="icon-emoji">👥</view>
  236. </view>
  237. <view class="icon-text">员工</view>
  238. </view>
  239. <view class="icon-item" @click="goPage({url: '/admin/stat/profit'})">
  240. <view class="icon-wrapper">
  241. <view class="icon-emoji">📈</view>
  242. </view>
  243. <view class="icon-text">利润表</view>
  244. </view>
  245. <view class="icon-item" @click="goPage({url: '/admin/picText/picTextList'})">
  246. <view class="icon-wrapper">
  247. <view class="icon-emoji">🖼️</view>
  248. </view>
  249. <view class="icon-text">图文</view>
  250. </view>
  251. <view class="icon-item" @click="goPage({url: '/admin/order/scanPay'})">
  252. <view class="icon-wrapper">
  253. <view class="icon-emoji">📱</view>
  254. </view>
  255. <view class="icon-text">收款码流水</view>
  256. </view>
  257. <view class="icon-item" @click="goPage({url: '/admin/cg/code'})">
  258. <view class="icon-wrapper">
  259. <view class="icon-emoji">💳</view>
  260. </view>
  261. <view class="icon-text">收款码</view>
  262. </view>
  263. </view>
  264. </view>
  265. </view>
  266. <template v-if="lookMoney == 1">
  267. <view class="module-com overview-module">
  268. <view class="overview-header">
  269. <view class="overview-title">📊 数据总览</view>
  270. </view>
  271. <view class="overview-grid">
  272. <view class="overview-item" v-for="(item, index) in overview" :key="index" @click="pageTo(item)">
  273. <view class="item-value">{{ $util.numberFormat(item.value) }}</view>
  274. <view class="item-label">{{ item.name }}</view>
  275. </view>
  276. </view>
  277. </view>
  278. </template>
  279. </view>
  280. <!-- ========== 简化功能界面 ========== -->
  281. <view class="order-page" v-else>
  282. <view class="ghs_list_page flex-col">
  283. <view class="profile-section">
  284. <view class="profile-header">
  285. <view class="avatar-container">
  286. <button
  287. class="avatar-button"
  288. open-type="chooseAvatar"
  289. @chooseavatar="onChooseAvatar"
  290. >
  291. <image
  292. class="avatar"
  293. :src="shopAvatar()"
  294. mode="aspectFill"
  295. />
  296. </button>
  297. </view>
  298. <view class="user-info">
  299. <text class="username">{{ (shopInfo && shopInfo.shopName == '首店') ? (shopInfo.merchantName || '') : (((shopInfo && shopInfo.merchantName) ? shopInfo.merchantName : '') + (shopInfo && shopInfo.shopName ? (' ' + shopInfo.shopName) : '')) }}</text>
  300. <text class="user-id">ID {{ shopInfo && shopInfo.id ? shopInfo.id : '' }}</text>
  301. </view>
  302. <view class="more-icon">
  303. <zui-svg-icon icon="home-more" :width="26" color="#FFFFFF" />
  304. </view>
  305. </view>
  306. <view class="function-grid function-grid--overlay" style="padding: 25upx 0upx 30upx 0upx; display: flex; justify-content: space-around; gap: 12upx;">
  307. <view class="function-item function-item--overlay" style="flex: 1; text-align: center; border: 1upx solid rgba(255,255,255,0.5); border-radius: 16upx; padding: 15upx 0;" @click="pageTo({url:'/admin/shop/myShop'})">
  308. <view class="function-icon" style="font-size: 38upx; margin-bottom: 8upx;">
  309. 🏪
  310. </view>
  311. <text class="function-text function-text--overlay" style="font-size: 22upx;">店铺管理</text>
  312. </view>
  313. <view class="function-item function-item--overlay" style="flex: 1; text-align: center; border: 1upx solid rgba(255,255,255,0.5); border-radius: 16upx; padding: 15upx 0;" @click="pageTo({url:'/admin/staff/list'})">
  314. <view class="function-icon" style="font-size: 38upx; margin-bottom: 8upx;">
  315. 👥
  316. </view>
  317. <text class="function-text function-text--overlay" style="font-size: 22upx;">我的员工</text>
  318. </view>
  319. <view class="function-item function-item--overlay" style="flex: 1; text-align: center; border: 1upx solid rgba(255,255,255,0.5); border-radius: 16upx; padding: 15upx 0;" @click="pageTo({url:'/admin/shop/add?id='+loginInfo.shopId})">
  320. <view class="function-icon" style="font-size: 38upx; margin-bottom: 8upx;">
  321. 📍
  322. </view>
  323. <text class="function-text function-text--overlay" style="font-size: 22upx;">我的地址</text>
  324. </view>
  325. <view class="function-item function-item--overlay" style="flex: 1; text-align: center; border: 1upx solid rgba(255,255,255,0.5); border-radius: 16upx; padding: 15upx 0;" @click="pageTo({url:'/admin/stat/cgItem'})">
  326. <view class="function-icon" style="font-size: 38upx; margin-bottom: 8upx;">
  327. 📊
  328. </view>
  329. <text class="function-text function-text--overlay" style="font-size: 22upx;">采购统计</text>
  330. </view>
  331. <view class="function-item function-item--overlay" style="flex: 1; text-align: center; border: 1upx solid rgba(255,255,255,0.5); border-radius: 16upx; padding: 15upx 0;" @click="goMore()">
  332. <view class="function-icon" style="font-size: 38upx; margin-bottom: 8upx;">
  333. </view>
  334. <text class="function-text function-text--overlay" style="font-size: 22upx;">更多</text>
  335. </view>
  336. </view>
  337. </view>
  338. <view style="text-align:center;font-size:28upx;color:#666;padding:16upx 30upx;margin:0 20upx;background:white;border-radius:30upx;">
  339. <view style="display:inline-flex;align-items:center;background:#fff;padding:10upx 25upx;border-radius:20upx;box-shadow:0 2upx 8upx rgba(0,0,0,0.05);">
  340. <text style="color:#333;font-weight:500;font-size:28upx;">{{ loginInfo.admin && loginInfo.admin.name ? loginInfo.admin.name : '' }}</text>
  341. <text style="margin:0 15upx;color:#eee;">|</text>
  342. <text style="color:#666;font-size:28upx;">{{ loginInfo.admin && loginInfo.admin.mobile ? loginInfo.admin.mobile : '' }}</text>
  343. </view>
  344. </view>
  345. <view v-if="!$util.isEmpty(data.warning)" class="warning-banner">{{ data.warning }}</view>
  346. <template v-if="!$util.isEmpty(ad)">
  347. <block v-for="(adInfo, adIndex) in ad" :key="adIndex">
  348. <view style="text-align:center;" @click.stop="pageTo({url:adInfo.url})">
  349. <image :src="adInfo.banner" mode="widthFix" style="width:97%;margin:0 auto;"></image>
  350. </view>
  351. </block>
  352. </template>
  353. <template v-if="!$util.isEmpty(supplierList)">
  354. <view class="ghs_list_area flex-col justify-end">
  355. <view class="ghs_box flex-col justify-end" v-for="(ghsInfo, index) in supplierList" :key="index">
  356. <view class="image-text_7 flex-row justify-between">
  357. <view class="section_1 flex-col">
  358. <image class="logo" :src="ghsInfo.smallAvatar" @click="enterShop(ghsInfo)" />
  359. </view>
  360. <view class="text-group_7 flex-col justify-between" @click="enterShop(ghsInfo)">
  361. <text class="text_8">{{ghsInfo.name}}</text>
  362. <text class="text_9">
  363. <block v-if="ghsInfo.cutStyle && ghsInfo.cutStyle == 1">
  364. <block v-if="ghsInfo.meetNum == 1 || ghsInfo.meetAmount == 1">
  365. <block v-if="ghsInfo.meetNum && ghsInfo.meetNum>0 && ghsInfo.cutAmount>0">
  366. <text style="color:red;font-weight:bold;">
  367. 全场{{ghsInfo.cutAmount?parseFloat(ghsInfo.cutAmount*100).toString().replace(/0/g,''):0}}折
  368. </text>
  369. </block>
  370. <block v-else>
  371. <text v-if="ghsInfo.meetAmount && ghsInfo.meetAmount>0 && ghsInfo.cutAmount>0" style="color:red;font-weight:bold;">
  372. 全场{{ghsInfo.cutAmount?parseFloat(ghsInfo.cutAmount*100).toString().replace(/0/g,''):0}}折
  373. </text>
  374. </block>
  375. </block>
  376. <block v-else>
  377. <block v-if="ghsInfo.meetNum && ghsInfo.meetNum>0 && ghsInfo.cutAmount>0">
  378. <text style="color:red;font-weight:bold;">
  379. 满{{ghsInfo.meetNum?ghsInfo.meetNum:0}}扎{{ghsInfo.cutAmount?parseFloat(ghsInfo.cutAmount*100).toString().replace(/0/g,''):0}}折
  380. </text>
  381. </block>
  382. <block v-else>
  383. <text v-if="ghsInfo.meetAmount && ghsInfo.meetAmount>0 && ghsInfo.cutAmount>0" style="color:red;font-weight:bold;">
  384. 满{{ghsInfo.meetAmount?ghsInfo.meetAmount:0}}元{{ghsInfo.cutAmount?parseFloat(ghsInfo.cutAmount*100).toString().replace(/0/g,''):0}}折
  385. </text>
  386. </block>
  387. </block>
  388. </block>
  389. <block v-else>
  390. <block v-if="ghsInfo.meetNum && ghsInfo.meetNum>0 && ghsInfo.cutAmount>0">
  391. <text style="color:red;font-weight:bold;">
  392. 满{{ghsInfo.meetNum?ghsInfo.meetNum:0}}扎优惠{{ghsInfo.cutAmount?parseFloat(ghsInfo.cutAmount):0}}元
  393. </text>
  394. </block>
  395. <block v-else>
  396. <text v-if="ghsInfo.meetAmount && ghsInfo.meetAmount>0 && ghsInfo.cutAmount>0" style="color:red;font-weight:bold;">
  397. 满{{ghsInfo.meetAmount?ghsInfo.meetAmount:0}}元优惠{{ghsInfo.cutAmount?parseFloat(ghsInfo.cutAmount):0}}元
  398. </text>
  399. </block>
  400. </block>
  401. </text>
  402. </view>
  403. </view>
  404. <view class="box_4 flex-col"></view>
  405. <view class="box_9">
  406. <view class="tag_2" @click="pageTo({ url: '/admin/ghs/debtChange?ghsId='+ghsInfo.id})"> <text>欠款变动记录</text> </view>
  407. <view class="tag_2" @click="pageTo({ url: '/admin/clear/list?ghsId='+ghsInfo.id})"> <text>结账记录</text> </view>
  408. <view class="tag_2" @click="pageTo({url:'/pagesPurchase/shopping?ghsId='+ghsInfo.id+'&ghsName='+ghsInfo.name})"> <text>买花记录</text> </view>
  409. <view class="tag_2" @click.stop="callUp(ghsInfo)" style="color:green;font-weight:bold;"> <text>联系我们</text> </view>
  410. </view>
  411. <view class="box_6 flex-row" @click="settleAccounts(ghsInfo)" v-if="Number(ghsInfo.debtAmount)>0">
  412. <view class="show_clear_area flex-row justify-between">
  413. <text class="waite_clear_order">
  414. 待结订单 {{ghsInfo.debtNum}}笔 合计¥{{ghsInfo.debtAmount?parseFloat(ghsInfo.debtAmount):0}}
  415. <text style="margin-left:30upx;" v-if="ghsInfo.remainDebtAmount>0">选订单结 》</text>
  416. </text>
  417. </view>
  418. </view>
  419. <block v-if="Number(ghsInfo.balance)>0">
  420. <view class="box_6 flex-row" v-if="ghsInfo.remainDebtAmount>0" @click.stop="recharge(ghsInfo)">
  421. <view class="show_clear_area flex-row justify-between">
  422. <text class="waite_clear_order" style="color:#3385ff;">
  423. <text v-if="Number(ghsInfo.balance)>0">减去余额¥{{ ghsInfo.balance ? parseFloat(ghsInfo.balance) : 0 }}</text>
  424. <text v-if="ghsInfo.remainDebtAmount>0" style="margin-left:15upx;">实欠¥{{ ghsInfo.remainDebtAmount }}</text>
  425. <text style="margin-left:30upx;">按金额结 》</text>
  426. </text>
  427. </view>
  428. </view>
  429. <view class="box_6 flex-row" v-if="ghsInfo.remainDebtAmount<0" @click.stop="recharge(ghsInfo)">
  430. <view class="show_clear_area flex-row justify-between">
  431. <text class="waite_clear_order" style="color:#3385ff;">
  432. <text>账户余额¥{{ Math.abs(ghsInfo.remainDebtAmount) }}</text>
  433. <text style="margin-left:30upx;">已结清</text>
  434. </text>
  435. </view>
  436. </view>
  437. </block>
  438. <block v-if="ghsInfo.live == 1">
  439. <view class="button_7 flex-col" @click.stop="goKmCg(ghsInfo)" v-if="ghsInfo.openKmCg && ghsInfo.openKmCg == 1"><text class="text_13">昆明直采</text></view>
  440. <view class="button_4 flex-col" v-if="ghsInfo.isOpen == 1" @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
  441. <view class="button_5 flex-col" v-else @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
  442. </block>
  443. <block v-else>
  444. <view class="button_6 flex-col" @click="fillCg(ghsInfo)"><text class="text_13">买花</text></view>
  445. </block>
  446. <text style="position:absolute;left:677upx;top:17upx;color:#CCCCCC;" @click.stop="getMore(ghsInfo)">更多</text>
  447. </view>
  448. </view>
  449. </template>
  450. <block v-else>
  451. <view style="margin:60upx auto 40upx auto;font-weight:bold;font-size:36upx;text-align: center;">暂无供货商</view>
  452. </block>
  453. <view style="text-align:center;margin-top:50upx;margin-bottom:182upx;color:#827171;font-size:30upx;">
  454. <text style="margin-right:20upx;" @click="toPhone()">厦门中花汇技术支持</text>
  455. <text style="margin-right:20upx;">|</text>
  456. <text @click="toPhone()">联系软件公司</text>
  457. </view>
  458. </view>
  459. </view>
  460. </block>
  461. <uni-popup ref="toShowMore" background-color="#fff" type="center" :animation="true" class="class-popup-style">
  462. <view style="display:flex;width:100vw;padding:20upx 20upx 40upx 20upx;height:auto;justify-content: space-between;align-items:center;flex-wrap:wrap;max-height:100vh;overflow:auto;">
  463. <view style="width:100vw;margin-top:8upx;"><button @click="rechargeChange()">充值记录</button></view>
  464. <view style="width:100vw;margin-top:8upx;"><button @click="balanceChange()">余额变动</button></view>
  465. <view style="width:100vw;margin-top:8upx;"><button @click="bpSj()">删除</button></view>
  466. <view style="width:100vw;margin-top:30upx;"><button @click="closeToShow()">取消</button></view>
  467. </view>
  468. </uni-popup>
  469. <!-- 多供货商提示弹框 -->
  470. <uni-popup ref="supplierNoticePopup" background-color="#fff" type="center" :animation="true" class="supplier-notice-popup">
  471. <view class="supplier-notice-container">
  472. <!-- 头部 -->
  473. <view class="supplier-notice-header">
  474. <text class="supplier-notice-title">您已有多个供货商</text>
  475. </view>
  476. <!-- 中间供货商列表 -->
  477. <view class="supplier-notice-content">
  478. <view class="supplier-list">
  479. <view class="supplier-item" v-for="(supplier, index) in displaySupplierList" :key="index">
  480. <view class="supplier-icon">🏪</view>
  481. <text class="supplier-name">{{ supplier.name }}</text>
  482. </view>
  483. </view>
  484. </view>
  485. <!-- 底部提示 -->
  486. <view class="supplier-notice-footer">
  487. <text class="supplier-notice-tip">买花时注意区分,避免下错</text>
  488. <view class="supplier-notice-buttons">
  489. <button class="admin-button-com default" @click="remindLater">下次提醒</button>
  490. <button class="admin-button-com blue" @click="closeSupplierNotice">知道了</button>
  491. </view>
  492. </view>
  493. </view>
  494. </uni-popup>
  495. <!-- 商城选项弹框 -->
  496. <uni-popup ref="mallOptionsPopup" type="center" mask-background-color="rgba(0,0,0,0.4)">
  497. <view class="mall-options-container">
  498. <view class="mall-options-buttons">
  499. <view class="mall-option-btn" @click="copyMallLink">
  500. <view class="option-icon">📋</view>
  501. <text class="option-text">复制链接</text>
  502. </view>
  503. <view class="mall-option-btn" @click="openMallDirect">
  504. <view class="option-icon">🚀</view>
  505. <text class="option-text">直接打开</text>
  506. </view>
  507. </view>
  508. </view>
  509. </uni-popup>
  510. </view>
  511. </template>
  512. <script>
  513. import { mapGetters } from "vuex";
  514. import { getWeixinId } from "@/api/invite";
  515. import { getShortUrl } from "@/api/main";
  516. import { getStat } from '@/api/console' //getStrokeCount 已弃用
  517. import { consoleIndex } from "@/api/workbench";
  518. import autoUpdateMixins from "@/mixins/autoUpdate";
  519. import { ghsList } from "@/api/purchase";
  520. import { changeDelStatus,hasMoreGhs } from "@/api/ghs";
  521. import {currentShop, uploadShopAvatar} from "@/api/shop";
  522. import { clearLogin,hasNotice } from "@/api/admin";
  523. import { unReadMsgCount } from "@/api/chat";
  524. import { APIHOST,CURRENT_ENV } from "@/config";
  525. export default {
  526. name: "workbench",
  527. mixins: [autoUpdateMixins],
  528. data () {
  529. return {
  530. overview:[],
  531. ad:[],
  532. showAd:1,
  533. constant: this.$constant,
  534. getappIdList: {},
  535. data: {
  536. admin: {},
  537. asset: {},
  538. notice: {},
  539. todayData: { income:0.00, order:0, custom:0, expend:0.00, visit:0 },
  540. isMini:0
  541. },
  542. yesterdayIncome: 0,
  543. supplierList: [],
  544. //登录状态 0未登录 1登录仅用到了采购 2登录用到完整功能
  545. loginStyle :0,
  546. backAction:'',
  547. lookMoney:1,
  548. currentGhs:{},
  549. displaySupplierList: [],// 用于显示在弹框中的供货商列表
  550. shopInfo:[],
  551. urlNo:1,
  552. shortUrlList:[],
  553. unReadMsgNum:0, //未读消息数
  554. currentDate: '', // 当前日期信息 如:12月26号 周五
  555. };
  556. },
  557. computed: {
  558. ...mapGetters({ loginInfo: "getLoginInfo",dictInfo:"getDictionariesInfo",myShopInfo:"getMyShopInfo" })
  559. },
  560. watch: {
  561. //只需要采购花材的花店不显示底部菜单
  562. loginInfo(newVal) {
  563. if(!this.$util.isEmpty(newVal.admin) && newVal.admin.currentShopId > 0){
  564. if(!this.$util.isEmpty(newVal.onlyCg)){
  565. this.handleLoginStyle(newVal.onlyCg)
  566. }
  567. }
  568. }
  569. },
  570. onPullDownRefresh () {
  571. this.init();
  572. uni.stopPullDownRefresh();
  573. },
  574. onLoad(){
  575. getWeixinId().then(res => {
  576. this.getappIdList = res.data
  577. })
  578. this.updateCurrentDate()
  579. },
  580. onShow () {
  581. this.unReadMsgNum = 0; // 重置未读消息数
  582. this.init();
  583. // if(this.backAction == 'login'){
  584. // this.init()
  585. // }
  586. // if(this.backAction == 'cacelMask'){
  587. // this.init()
  588. // this.backAction = ''
  589. // }
  590. // 判断是否登录
  591. if(!this.$util.isEmpty(this.loginInfo.admin) && this.loginInfo.admin.currentShopId > 0){
  592. if(!this.$util.isEmpty(this.loginInfo.onlyCg)){
  593. this.handleLoginStyle(this.loginInfo.onlyCg)
  594. }
  595. // this.getUnReadMsgCount()
  596. this.showShopName()
  597. }
  598. },
  599. onShareAppMessage(res) {
  600. return {
  601. title: "花掌柜,花店管家婆",
  602. desc: "",
  603. imageUrl: "",
  604. path: "admin/home/workbench",
  605. }
  606. },
  607. methods: {
  608. onChooseAvatar(e){
  609. if(this.loginInfo && this.loginInfo.staff && this.loginInfo.staff.founder != 2){
  610. this.$msg('门店LOGO请老板修改')
  611. return
  612. }
  613. if(e && e.detail && e.detail.avatarUrl){
  614. let avatarUrl = e.detail.avatarUrl
  615. this.updateShopAvatar(avatarUrl)
  616. }else{
  617. this.$msg('获取头像失败')
  618. }
  619. },
  620. updateShopAvatar(avatarUrl){
  621. let token = uni.getStorageSync('token') || ''
  622. let url = APIHOST + '/upload/save-file'
  623. uni.uploadFile({
  624. url: url,
  625. filePath: avatarUrl,
  626. name: 'file',
  627. header: { token: token },
  628. formData: {},
  629. success: (res) => {
  630. try{
  631. const ret = JSON.parse(res.data)
  632. if(ret.code == 1){
  633. this.shopInfo.avatar = ret.data.shortUrl
  634. this.$msg('头像已更新')
  635. uni.setStorageSync('shopAvatar', this.shopInfo.avatar)
  636. //请后端,上传新的头像地址,同步更新xhGhsCustom里面的头像地址
  637. uploadShopAvatar({ id: this.shopInfo.id, avatar: ret.data.shortUrl }).then(res => {
  638. if(res.code == 1){
  639. // this.$msg('头像上传成功')
  640. }else{
  641. // this.$msg(res.msg || '上传失败')
  642. console.log(res.msg || '上传失败')
  643. }
  644. })
  645. }else{
  646. this.$msg(ret.msg || '上传失败')
  647. }
  648. }catch(err){
  649. this.$msg('服务异常')
  650. }
  651. },
  652. fail: () => {
  653. this.$msg('上传失败')
  654. }
  655. })
  656. },
  657. shopAvatar(){
  658. const avatar = (this.shopInfo && this.shopInfo.avatar) ? this.shopInfo.avatar : '/hhb_small.png?x-oss-process=image/resize,m_fill,h_130,w_130'
  659. if(!avatar){
  660. return ''
  661. }
  662. if(/^https?:\/\//i.test(avatar)){
  663. return avatar
  664. }
  665. return this.$constant.imgUrl + (avatar.indexOf('/') === 0 ? avatar : ('/' + avatar))
  666. },
  667. buyItem() {
  668. let that = this
  669. // #ifdef MP-WEIXIN
  670. uni.navigateToMiniProgram({
  671. //姜枫-2021.04.13
  672. appId: that.getappIdList.mall.miniAppId,
  673. path: 'pages/home/recent',
  674. //develop 开发版 trial 体验版 release 正式版
  675. envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
  676. extraData: {},
  677. success (res) {
  678. }
  679. })
  680. // #endif
  681. // #ifdef APP-PLUS
  682. that.$msg("请用微信打开")
  683. // #endif
  684. },
  685. init () {
  686. this.getGHSList()
  687. // #ifdef MP-WEIXIN
  688. this.isMini = 1
  689. // #endif
  690. consoleIndex({isMini:this.isMini}).then(res => {
  691. this.data = res.data
  692. this.lookMoney = res.data.lookMoney
  693. })
  694. getStat().then(res=>{
  695. if(res.code == 1){
  696. this.overview = res.data.overview
  697. }
  698. })
  699. this.showShopName()
  700. this.getUnReadMsgCount()
  701. },
  702. handleLoginStyle(onlyCg){
  703. if(Number(onlyCg) == 1){
  704. this.loginStyle = 1
  705. uni.hideTabBar()
  706. this.toRemindCustom()
  707. }else{
  708. this.loginStyle = 2
  709. uni.showTabBar()
  710. this.getMallData()
  711. }
  712. },
  713. getMallData(){
  714. getShortUrl().then(res=>{
  715. if(res.code == 1){
  716. this.shortUrlList = res.data?res.data:[]
  717. }
  718. })
  719. },
  720. goItemKjKd(){
  721. if(this.myShopInfo && Number(this.myShopInfo.defaultCustomId)>0){
  722. this.$util.pageTo({url:'/admin/billing/index2?customId='+this.myShopInfo.defaultCustomId})
  723. }else{
  724. this.$msg('请设置快捷开单的对应客户')
  725. }
  726. },
  727. goItemKd(){
  728. this.$util.pageTo({url:'/admin/custom/selectCustom'})
  729. },
  730. goHsKjKd(){
  731. if(this.myShopInfo && Number(this.myShopInfo.defaultCustomId)>0){
  732. this.$util.pageTo({url:'/admin/billing/hs?customId='+this.myShopInfo.defaultCustomId})
  733. }else{
  734. this.$msg('请设置快捷开单的对应客户')
  735. }
  736. },
  737. goHsKd(){
  738. this.$util.pageTo({url:'/admin/custom/selectCustom?style=3'})
  739. },
  740. setRecharge(){
  741. this.$util.pageTo({url:'/admin/recharge/discount'})
  742. },
  743. setMemberLevel(){
  744. this.$util.pageTo({url:'/admin/member/level'})
  745. },
  746. closeToShow(){
  747. this.$refs.toShowMore.close()
  748. },
  749. // 显示供货商提示弹框
  750. showSupplierNotice() {
  751. // 设置要显示的供货商列表,最多显示5个
  752. this.displaySupplierList = this.supplierList.filter(item => item.name).slice(0, 5)
  753. this.$refs.supplierNoticePopup.open('center')
  754. },
  755. // 关闭供货商提示弹框
  756. closeSupplierNotice() {
  757. this.$refs.supplierNoticePopup.close()
  758. // 调用已有的接口标记已通知
  759. hasNotice().then(res => { })
  760. },
  761. // 下次提醒
  762. remindLater() {
  763. this.$refs.supplierNoticePopup.close()
  764. // 不调用hasNotice接口,保持提醒状态
  765. },
  766. getMore(info){
  767. this.currentGhs = info
  768. this.$refs.toShowMore.open('top')
  769. },
  770. callUp (ghs) {
  771. let mobileList = []
  772. if (!this.$util.isEmpty(ghs.telephone)){
  773. mobileList.push(ghs.telephone)
  774. }
  775. if (!this.$util.isEmpty(ghs.telephone2)){
  776. mobileList.push(ghs.telephone2)
  777. }
  778. if(this.$util.isEmpty(mobileList)){
  779. this.$msg('没有联系电话')
  780. return false
  781. }
  782. uni.showActionSheet({
  783. itemList: mobileList,
  784. success: function (respond) {
  785. let currentIndex = respond.tapIndex
  786. let mobile = mobileList[currentIndex]
  787. uni.makePhoneCall({ phoneNumber: mobile })
  788. }
  789. })
  790. },
  791. toPhone(){
  792. this.$util.pageTo({url: '/pagesPurchase/contact'})
  793. },
  794. showShopName(){
  795. currentShop().then(res => {
  796. if(res.code == 1){
  797. let sjName = res.data.merchantName ? res.data.merchantName : ''
  798. let shopName = res.data.shopName ? res.data.shopName : ''
  799. let title = shopName == '首店' ? sjName : sjName+' '+shopName
  800. uni.setNavigationBarTitle({ title: title })
  801. this.shopInfo = res.data?res.data:[]
  802. if(this.shopInfo.avatar) {
  803. uni.setStorageSync('shopAvatar', this.shopInfo.avatar);
  804. }else{
  805. uni.setStorageSync('shopAvatar', '');
  806. }
  807. }
  808. })
  809. },
  810. goMore(){
  811. let that = this
  812. let shopkeeper = this.loginInfo.staff && this.loginInfo.staff.founder == 2 //判断店主(老板)
  813. let items = shopkeeper ? ['已删除商家', '改进建议', '开关商城', '想要这样的商城', '修改密码', '退出登录'] : ['已删除商家', '我已离职', '开关商城', '想要这样的商城', '修改密码', '退出登录'];
  814. uni.showActionSheet({
  815. itemList: items,
  816. success: function (res) {
  817. if(res.tapIndex == 0){
  818. that.$util.pageTo({url: '/pagesPurchase/pb'})
  819. }
  820. if(res.tapIndex == 1){
  821. if(shopkeeper){
  822. // 店主显示改进建议
  823. that.suggest()
  824. }else{
  825. // 员工显示离职
  826. that.$util.pageTo({url: '/admin/staff/dimission'})
  827. }
  828. }
  829. if(res.tapIndex == 2){
  830. that.$util.pageTo({url:'/pagesPurchase/open'})
  831. }
  832. if(res.tapIndex == 3){
  833. that.openPfShop()
  834. }
  835. if(res.tapIndex == 4){
  836. that.$util.pageTo({url:'/admin/shop/password'})
  837. }
  838. if(res.tapIndex == 5){
  839. that.$util.confirmModal({content:'确认退出?'},() => {
  840. // #ifdef APP-PLUS
  841. uni.clearStorage()
  842. that.$store.commit("setLoginInfo", {})
  843. plus.runtime.restart()
  844. // #endif
  845. // #ifdef MP-WEIXIN
  846. clearLogin().then(res=>{
  847. if(res.code == 1){
  848. uni.clearStorage()
  849. that.$store.commit("setLoginInfo", {})
  850. uni.reLaunch({url:'/admin/home/workbench'})
  851. }
  852. })
  853. // #endif
  854. })
  855. }
  856. }
  857. });
  858. },
  859. openPfShop(){
  860. this.pageTo({url: '/pagesPurchase/contact'})
  861. },
  862. suggest(){
  863. this.pageTo({url: '/pagesPurchase/contact'})
  864. },
  865. bookItem(item){
  866. const { id } = item
  867. this.pageTo({url: '/pagesPurchase/bookProduct?id='+id})
  868. },
  869. goBalanceChange(info){
  870. this.closeToShow()
  871. this.pageTo({url: '/admin/ghs/balanceChange?ghsId='+info.id})
  872. },
  873. rechargeChange(){
  874. this.closeToShow()
  875. this.pageTo({url: '/admin/ghs/rechargeChange?ghsId='+this.currentGhs.id})
  876. },
  877. balanceChange(){
  878. this.closeToShow()
  879. this.pageTo({url: '/admin/ghs/balanceChange?ghsId='+this.currentGhs.id})
  880. },
  881. bpSj(){
  882. let that = this
  883. that.$util.confirmModal({content:'确认删除?删除后你不能再跟此批发店买花!!!!',okText:'确认'},() => {
  884. that.confirmPb(that.currentGhs)
  885. })
  886. },
  887. recharge(currentGhs){
  888. this.pageTo({url: '/admin/ghs/pay?id='+currentGhs.id+'&salt='+currentGhs.salt})
  889. },
  890. confirmPb(ghs){
  891. let that = this
  892. changeDelStatus({delStatus:1,ghsId:ghs.id}).then(res=>{
  893. if(res.code == 1){
  894. that.closeToShow()
  895. that.getGHSList()
  896. }
  897. })
  898. },
  899. fillCg(item){
  900. this.pageTo({url:'/pagesPurchase/addCg?ghsId='+item.id+'&ghsName='+item.name})
  901. },
  902. goKmCg(currentGhs){
  903. let self = this
  904. // #ifdef MP-WEIXIN
  905. uni.navigateToMiniProgram({
  906. appId: currentGhs.kmCgAppId,
  907. path: currentGhs.kmCgUrl,
  908. //develop 开发版 trial 体验版 release 正式版
  909. envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
  910. extraData: {},
  911. success (res) {}
  912. })
  913. // #endif
  914. // #ifdef APP-PLUS
  915. self.$msg('开发中')
  916. // #endif
  917. },
  918. enterShop(item) {
  919. let that = this
  920. if(item.isOpen == 0){
  921. this.$msg('已休店,请选择其它门店')
  922. return false
  923. }
  924. that.pageTo({url: '/pagesPurchase/ghsProduct?id='+item.id})
  925. },
  926. enterShop2(item) {
  927. let that = this
  928. if(item.isOpen == 0){
  929. this.$msg('已休店,请选择其它门店')
  930. return false
  931. }
  932. that.pageTo({url: '/pagesPurchase/ghsProduct2?id='+item.id})
  933. },
  934. whyHave(){
  935. this.$util.confirmModal({content:'付款金额不足消欠款单时,存为余额下次使用'},() => {})
  936. },
  937. settleAccounts (item) {
  938. this.pageTo({ url: '/pagesPurchase/gathering?id='+item.id})
  939. },
  940. gotoDetails (val) {
  941. this.pageTo({ url: '/pagesPurchase/purDetails?status=' + val.status + '&id=' + val.id, type:2 })
  942. },
  943. getGHSList () {
  944. return ghsList().then(res => {
  945. this.supplierList = res.data.list
  946. this.ad = res.data.ad ? res.data.ad : []
  947. this.showAd = res.data.showAd ? res.data.showAd : 0
  948. })
  949. },
  950. goPage (item) {
  951. if(this.getLoginInfo.pfShopId && Number(this.getLoginInfo.pfShopId)>0){
  952. if(item.pf == 0){
  953. this.$msg('开发中')
  954. return false
  955. }
  956. }
  957. this.$util.pageTo(item)
  958. },
  959. toRemindCustom(){
  960. if(this.loginStyle==1){
  961. hasMoreGhs().then(ret=>{
  962. if(ret.data.needNotice == 1){
  963. this.showSupplierNotice()
  964. }
  965. })
  966. }
  967. },
  968. noticeFn (item) {
  969. this.$util.pageTo({ url: item.page })
  970. },
  971. goToWastage () {
  972. this.$util.pageTo({url:'/admin/breakage/list'})
  973. },
  974. goToKindStat(){
  975. this.$util.pageTo({url:'/admin/stat/kind'})
  976. },
  977. goToProfit () {
  978. this.$util.pageTo({url:'/admin/stat/profit'})
  979. },
  980. // 显示商城选项弹框
  981. showMallOptions(no) {
  982. this.urlNo = no
  983. this.$refs.mallOptionsPopup.open('center')
  984. },
  985. // 关闭商城选项弹框
  986. closeMallOptions() {
  987. this.$refs.mallOptionsPopup.close()
  988. },
  989. // 直接打开商城
  990. openMallDirect() {
  991. this.closeMallOptions()
  992. let url = ''
  993. //花束商城
  994. if(this.urlNo == 1){
  995. url = 'pages/home/category'
  996. }
  997. //相册
  998. if(this.urlNo == 2){
  999. url = 'pages/home/mall'
  1000. }
  1001. //绿植花材商城
  1002. if(this.urlNo == 3){
  1003. url = 'pages/item/item'
  1004. }
  1005. this.goToMallPt(url)
  1006. },
  1007. // 复制商城链接
  1008. copyMallLink() {
  1009. this.closeMallOptions()
  1010. let currentShortUrl = ''
  1011. let text = ""
  1012. //花束商城
  1013. if(this.urlNo == 1){
  1014. currentShortUrl = this.shortUrlList['goodsUrl']
  1015. text = "点击下面链接,打开商城\n\n"+currentShortUrl+"\n\n链接是我们小程序,放心点击"
  1016. }
  1017. //相册
  1018. if(this.urlNo == 2){
  1019. currentShortUrl = this.shortUrlList['imgUrl']
  1020. text = "点击下面链接,打开相册\n\n"+currentShortUrl+"\n\n链接是我们小程序,放心点击"
  1021. }
  1022. //绿植花材商城
  1023. if(this.urlNo == 3){
  1024. currentShortUrl = this.shortUrlList['itemUrl']
  1025. text = "点击下面链接,打开商城\n\n"+currentShortUrl+"\n\n链接是我们小程序,放心点击"
  1026. }
  1027. uni.setClipboardData({
  1028. data: text,
  1029. success: () => {
  1030. this.$msg('已复制')
  1031. },
  1032. fail: () => {
  1033. this.$msg('复制失败')
  1034. }
  1035. })
  1036. },
  1037. goToMallPt (url) {
  1038. // #ifdef MP-WEIXIN
  1039. let self = this
  1040. uni.navigateToMiniProgram({
  1041. appId: this.getappIdList.mall.miniAppId,
  1042. path: url + '?account=' + self.loginInfo.shopId,
  1043. //develop 开发版 trial 体验版 release 正式版
  1044. envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
  1045. extraData: {
  1046. 'hdShopAdminId': self.loginInfo.shopAdminId
  1047. },
  1048. success (res) {}
  1049. })
  1050. // #endif
  1051. // #ifdef APP-PLUS
  1052. let that = this
  1053. if(plus.runtime.isApplicationExist({pname:'com.tencent.mm',action:'weixin://'})){
  1054. plus.share.getServices(function(s){
  1055. var sweixin
  1056. for (var i = 0; i < s.length; i++) {
  1057. var t = s[i];
  1058. if (t.id == 'weixin') {
  1059. sweixin = t;
  1060. }
  1061. }
  1062. if (sweixin && sweixin.nativeClient) {
  1063. let miniOriginalId = that.dictInfo.miniOriginalId && that.dictInfo.miniOriginalId.current && that.dictInfo.miniOriginalId.current.mall ? that.dictInfo.miniOriginalId.current.mall : ''
  1064. console.log(miniOriginalId)
  1065. sweixin.launchMiniProgram({
  1066. id: miniOriginalId,
  1067. path: '/'+url+'?account='+that.loginInfo.shopId,
  1068. type: 0
  1069. });
  1070. } else {
  1071. that.$msg("没有找到微信服务")
  1072. //that.$msg("获取微信失败:" + e.message)
  1073. console.log(JSON.stringify(e));
  1074. }
  1075. }, function(e){
  1076. that.$msg("没有找到微信服务哦")
  1077. //that.$msg("获取微信失败:" + e.message)
  1078. console.log(JSON.stringify(e));
  1079. });
  1080. } else {
  1081. this.$msg("即将跳转小程序,请安装微信")
  1082. return false
  1083. }
  1084. // #endif
  1085. },
  1086. getUnReadMsgCount(){
  1087. unReadMsgCount().then(res=>{
  1088. if(res.code == 1){
  1089. this.unReadMsgNum = res.data.msg_count
  1090. }
  1091. })
  1092. },
  1093. updateCurrentDate(){
  1094. const now = new Date()
  1095. const month = now.getMonth() + 1
  1096. const date = now.getDate()
  1097. const weekDays = ['星期天', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
  1098. const week = weekDays[now.getDay()]
  1099. this.currentDate = `${month}-${date} ${week}`
  1100. }
  1101. }
  1102. };
  1103. </script>
  1104. <style lang="scss" scoped>
  1105. .app-content {
  1106. padding-bottom: 10upx;
  1107. }
  1108. .module-com {
  1109. margin-bottom: 37upx;
  1110. background-color: #fff;
  1111. }
  1112. // 功能网格部分 - 删除
  1113. // 今日概况卡片 - 圆形气泡布局
  1114. .today-overview-card {
  1115. background: linear-gradient(to right, #1ba85e 0%, #22C55E 50%, #16A34A 100%);
  1116. padding: 0;
  1117. margin: 0 0 -20upx 0;
  1118. overflow: visible;
  1119. border-radius: 0;
  1120. .bubble-header {
  1121. display: flex;
  1122. justify-content: space-between;
  1123. align-items: center;
  1124. padding: 20upx 24upx 24upx;
  1125. .bubble-title {
  1126. font-size: 28upx;
  1127. font-weight: 700;
  1128. color: #ffffff;
  1129. letter-spacing: 0.5upx;
  1130. }
  1131. .message-btn {
  1132. position: relative;
  1133. width: 44upx;
  1134. height: 44upx;
  1135. display: flex;
  1136. align-items: center;
  1137. justify-content: center;
  1138. background: rgba(255, 255, 255, 0.2);
  1139. border-radius: 50%;
  1140. transition: all 0.3s ease;
  1141. &:active {
  1142. background: rgba(255, 255, 255, 0.35);
  1143. transform: scale(0.95);
  1144. }
  1145. .msg-icon {
  1146. font-size: 24upx;
  1147. line-height: 1;
  1148. }
  1149. .red-mind {
  1150. position: absolute;
  1151. top: -6upx;
  1152. right: -6upx;
  1153. width: 32upx;
  1154. height: 32upx;
  1155. line-height: 28upx;
  1156. font-size: 20upx;
  1157. font-weight: 700;
  1158. text-align: center;
  1159. color: white;
  1160. background-color: #ff2842;
  1161. border: 2upx solid #ffffff;
  1162. border-radius: 50%;
  1163. display: flex;
  1164. align-items: center;
  1165. justify-content: center;
  1166. }
  1167. }
  1168. }
  1169. .bubble-grid {
  1170. display: flex;
  1171. flex-wrap: wrap;
  1172. gap: 20upx;
  1173. padding: 20upx 24upx 30upx;
  1174. align-items: center;
  1175. justify-content: center;
  1176. .bubble {
  1177. position: relative;
  1178. display: flex;
  1179. align-items: center;
  1180. justify-content: center;
  1181. border-radius: 50%;
  1182. cursor: pointer;
  1183. transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  1184. box-shadow: 0 8upx 20upx rgba(0, 0, 0, 0.15);
  1185. &:active {
  1186. transform: scale(0.92);
  1187. box-shadow: 0 4upx 12upx rgba(0, 0, 0, 0.2);
  1188. }
  1189. .bubble-inner {
  1190. width: 100%;
  1191. height: 100%;
  1192. border-radius: 50%;
  1193. display: flex;
  1194. flex-direction: column;
  1195. align-items: center;
  1196. justify-content: center;
  1197. padding: 20upx;
  1198. box-sizing: border-box;
  1199. }
  1200. &.bubble-primary {
  1201. width: 180upx;
  1202. height: 180upx;
  1203. background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  1204. .bubble-inner {
  1205. .bubble-label {
  1206. font-size: 28upx;
  1207. color: rgba(255, 255, 255, 0.9);
  1208. font-weight: 600;
  1209. margin-bottom: 12upx;
  1210. }
  1211. .bubble-value {
  1212. font-size: 44upx;
  1213. font-weight: 800;
  1214. color: #ffffff;
  1215. line-height: 1;
  1216. max-width: 160upx;
  1217. white-space: nowrap;
  1218. overflow: hidden;
  1219. text-overflow: ellipsis;
  1220. }
  1221. }
  1222. }
  1223. &.bubble-secondary {
  1224. width: 140upx;
  1225. height: 140upx;
  1226. background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  1227. backdrop-filter: blur(10px);
  1228. border: 2upx solid rgba(255, 255, 255, 0.3);
  1229. .bubble-inner {
  1230. .bubble-label {
  1231. font-size: 24upx;
  1232. color: rgba(255, 255, 255, 0.9);
  1233. font-weight: 600;
  1234. margin-bottom: 8upx;
  1235. }
  1236. .bubble-value {
  1237. font-size: 32upx;
  1238. font-weight: 700;
  1239. color: #ffffff;
  1240. line-height: 1;
  1241. max-width: 130upx;
  1242. white-space: nowrap;
  1243. overflow: hidden;
  1244. text-overflow: ellipsis;
  1245. }
  1246. }
  1247. }
  1248. }
  1249. }
  1250. }
  1251. .user-wrap {
  1252. padding: 20upx 30upx 34upx 30upx;
  1253. color: #fff;
  1254. text-align: center;
  1255. background-size: 100% 380upx;
  1256. background-repeat: no-repeat;
  1257. .user-top {
  1258. @include disFlex(center, space-between);
  1259. .open-bt_bx {
  1260. display: flex;
  1261. align-items: center;
  1262. line-height: 1upx;
  1263. & > button {
  1264. padding: 0;
  1265. line-height: auto;
  1266. background-color: transparent;
  1267. border: 1px solid #ffffff;
  1268. border-radius: 22upx;
  1269. padding: 10upx 17upx !important;
  1270. font-size: 24upx;
  1271. font-family: PingFang SC;
  1272. font-weight: 400;
  1273. color: #ffffff;
  1274. & > .iconfont {
  1275. font-size: 25upx;
  1276. padding-right: 10upx;
  1277. }
  1278. }
  1279. }
  1280. }
  1281. .income-amount {
  1282. margin-top: 36upx;
  1283. margin-bottom: 37upx;
  1284. .price {
  1285. font-size: 50upx;
  1286. font-weight: bold;
  1287. margin-top: 4upx;
  1288. }
  1289. }
  1290. .user-bottom {
  1291. @include disFlex(center, space-around);
  1292. .info-list-name {
  1293. color: white;
  1294. }
  1295. .info-list-value {
  1296. font-size: 36upx;
  1297. font-weight: bold;
  1298. margin-top: 4upx;
  1299. }
  1300. }
  1301. }
  1302. // 消息
  1303. .news-wrap {
  1304. .news-list {
  1305. @include disFlex(center, space-between);
  1306. padding: 30upx 24upx 30upx 30upx;
  1307. border-bottom: 1px solid $borderColor;
  1308. font-size: 26upx;
  1309. color: $fontColor2;
  1310. &:active {
  1311. background-color: $backColor;
  1312. }
  1313. & > div {
  1314. @include disFlex(center, flex-start);
  1315. }
  1316. .news-left {
  1317. .iconfont {
  1318. color: $mainColor;
  1319. margin-right: 10upx;
  1320. }
  1321. .ling {
  1322. font-size: 28upx;
  1323. }
  1324. span{
  1325. font-size:29upx;
  1326. }
  1327. }
  1328. .news-right {
  1329. font-size: 26upx;
  1330. color: $mainColor;
  1331. transform: scale(0.9);
  1332. @include disFlex(flex-end, flex-start);
  1333. .iconfont {
  1334. font-size: 24upx;
  1335. margin-left: 10upx;
  1336. margin-bottom: 6upx;
  1337. }
  1338. }
  1339. }
  1340. }
  1341. // 数据总览模块
  1342. .overview-module {
  1343. background: #ffffff;
  1344. border-radius: 16upx;
  1345. padding: 0;
  1346. overflow: hidden;
  1347. .overview-header {
  1348. background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
  1349. padding: 30upx 30upx 20upx;
  1350. border-bottom: 1upx solid #f0f0f0;
  1351. .overview-title {
  1352. font-size: 32upx;
  1353. font-weight: 600;
  1354. color: #333;
  1355. margin-bottom: 8upx;
  1356. }
  1357. .overview-subtitle {
  1358. font-size: 24upx;
  1359. color: #999;
  1360. }
  1361. }
  1362. .overview-grid {
  1363. display: grid;
  1364. grid-template-columns: repeat(2, 1fr);
  1365. padding: 20upx;
  1366. gap: 16upx;
  1367. .overview-item {
  1368. padding: 28upx 24upx;
  1369. text-align: center;
  1370. position: relative;
  1371. transition: all 0.3s ease;
  1372. background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  1373. border-radius: 14upx;
  1374. border: 1upx solid #f0f0f0;
  1375. box-shadow: 0 2upx 8upx rgba(0, 0, 0, 0.04);
  1376. &:not(:nth-child(2n)) {
  1377. &::after {
  1378. content: '';
  1379. position: absolute;
  1380. right: 0;
  1381. top: 0;
  1382. transform: none;
  1383. width: 0;
  1384. height: 0;
  1385. background: transparent;
  1386. }
  1387. }
  1388. &:nth-child(n+3) {
  1389. &::before {
  1390. content: '';
  1391. position: absolute;
  1392. left: 0;
  1393. right: 0;
  1394. top: 0;
  1395. height: 0;
  1396. background: transparent;
  1397. }
  1398. }
  1399. &:active {
  1400. background: linear-gradient(135deg, #f0f8f5 0%, #e8f5f1 100%);
  1401. transform: translateY(-4upx);
  1402. box-shadow: 0 4upx 12upx rgba(0, 0, 0, 0.08);
  1403. }
  1404. .item-value {
  1405. font-size: 40upx;
  1406. font-weight: 700;
  1407. color: #049E2C;
  1408. margin-bottom: 12upx;
  1409. line-height: 1;
  1410. }
  1411. .item-label {
  1412. font-size: 26upx;
  1413. color: #666;
  1414. line-height: 1;
  1415. font-weight: 500;
  1416. }
  1417. }
  1418. }
  1419. }
  1420. // 新的花束花礼和绿植花材样式
  1421. .flower-module {
  1422. padding: 0;
  1423. .flower-section {
  1424. padding: 24upx 20upx;
  1425. background: #ffffff;
  1426. border-bottom: 12upx solid #f5f5f5;
  1427. &:last-child {
  1428. border-bottom: none;
  1429. }
  1430. .section-header {
  1431. display: flex;
  1432. align-items: center;
  1433. justify-content: flex-start;
  1434. margin-bottom: 24upx;
  1435. padding-left: 0;
  1436. .header-line {
  1437. display: none;
  1438. }
  1439. .header-title {
  1440. padding: 0;
  1441. font-size: 28upx;
  1442. font-weight: 700;
  1443. color: #333;
  1444. letter-spacing: 1upx;
  1445. }
  1446. }
  1447. .icon-grid {
  1448. display: grid;
  1449. grid-template-columns: repeat(4, 1fr);
  1450. gap: 16upx;
  1451. max-width: 100%;
  1452. .icon-item {
  1453. width: 100%;
  1454. padding: 12upx;
  1455. text-align: center;
  1456. display: flex;
  1457. flex-direction: column;
  1458. align-items: center;
  1459. gap: 8upx;
  1460. .icon-wrapper {
  1461. width: 100upx;
  1462. height: 100upx;
  1463. display: flex;
  1464. align-items: center;
  1465. justify-content: center;
  1466. background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  1467. border-radius: 20upx;
  1468. .icon-emoji {
  1469. font-size: 48upx;
  1470. line-height: 1;
  1471. }
  1472. .icon-image {
  1473. width: 85upx;
  1474. height: 85upx;
  1475. }
  1476. }
  1477. .icon-text {
  1478. font-size: 25upx;
  1479. color: #333;
  1480. line-height: 1.4;
  1481. font-weight: 500;
  1482. }
  1483. }
  1484. }
  1485. }
  1486. }
  1487. .order-page {
  1488. .ghs_list_page {
  1489. background-color: rgba(255, 255, 255, 1);
  1490. position: relative;
  1491. width: 750upx;
  1492. overflow: hidden;
  1493. .profile-section {
  1494. background-color: #09C567;
  1495. padding: 30upx 30upx 0upx 30upx;
  1496. border-radius: 0;
  1497. .profile-header {
  1498. display: flex;
  1499. align-items: center;
  1500. .avatar-container {
  1501. width: 120upx;
  1502. height: 120upx;
  1503. border-radius: 60upx;
  1504. overflow: hidden;
  1505. background-color: rgba(255,255,255,0.2);
  1506. border: 1upx solid #ffffff;
  1507. .avatar-button {
  1508. background: none !important;
  1509. border: none !important;
  1510. padding: 0 !important;
  1511. margin: 0 !important;
  1512. line-height: 1;
  1513. display: block;
  1514. width: 120upx;
  1515. height: 120upx;
  1516. color: transparent !important;
  1517. &::after { border: none !important; }
  1518. }
  1519. .avatar {
  1520. width: 120upx;
  1521. height: 120upx;
  1522. border-radius: 60upx;
  1523. }
  1524. }
  1525. .user-info {
  1526. flex: 1;
  1527. margin-left: 24upx;
  1528. .username {
  1529. display: block;
  1530. font-size: 36upx;
  1531. font-weight: bold;
  1532. color: #ffffff;
  1533. }
  1534. .user-id {
  1535. display: block;
  1536. margin-top: 6upx;
  1537. font-size: 26upx;
  1538. color: #ffffff;
  1539. }
  1540. }
  1541. .more-icon {
  1542. margin-left: 12upx;
  1543. width: 60upx;
  1544. height: 60upx;
  1545. border-radius: 30upx;
  1546. align-items: center;
  1547. justify-content: center;
  1548. display: flex;
  1549. // background: rgba(255,255,255,0.15);
  1550. // border: 1upx solid rgba(255,255,255,0.35);
  1551. }
  1552. }
  1553. .function-grid--overlay {
  1554. background: transparent;
  1555. }
  1556. .function-item--overlay {
  1557. border-color: rgba(255,255,255,0.5);
  1558. background: rgba(255,255,255,0.12);
  1559. }
  1560. .function-text--overlay {
  1561. color: #ffffff;
  1562. }
  1563. }
  1564. .flex-col {
  1565. display: flex;
  1566. flex-direction: column;
  1567. }
  1568. .flex-row {
  1569. display: flex;
  1570. flex-direction: row;
  1571. }
  1572. .justify-end {
  1573. display: flex;
  1574. justify-content: flex-end;
  1575. }
  1576. .justify-between {
  1577. display: flex;
  1578. justify-content: space-between;
  1579. }
  1580. .ghs_list_area {
  1581. width: 750upx;
  1582. background-color: #ece5e5;
  1583. .ghs_box {
  1584. background-color: rgba(255, 255, 255, 1);
  1585. position: relative;
  1586. width: 750upx;
  1587. height: auto;
  1588. margin-bottom:35upx;
  1589. .image-text_7 {
  1590. width: 674upx;
  1591. height: 120upx;
  1592. margin: 40upx 0 0 31upx;
  1593. .section_1 {
  1594. width: 120upx;
  1595. height: 120upx;
  1596. .logo{
  1597. width:120upx;
  1598. height:120upx;
  1599. border-radius:10upx;
  1600. }
  1601. }
  1602. .text-group_7 {
  1603. width: 533upx;
  1604. height: 99upx;
  1605. margin-top: 5upx;
  1606. .text_8 {
  1607. display:inline-block;
  1608. width: 550upx;
  1609. height: 38upx;
  1610. color: rgba(51, 51, 51, 1);
  1611. font-size: 36upx;
  1612. font-weight:bold;
  1613. text-align: left;
  1614. white-space: nowrap;
  1615. line-height:38upx;
  1616. overflow:hidden;
  1617. }
  1618. .text_9 {
  1619. width: 533upx;
  1620. height: 25upx;
  1621. overflow-wrap: break-word;
  1622. color: rgba(153, 153, 153, 1);
  1623. font-size: 28upx;
  1624. text-align: left;
  1625. white-space: nowrap;
  1626. line-height: 24upx;
  1627. margin-top: 10upx;
  1628. }
  1629. }
  1630. }
  1631. .box_4 {
  1632. background-color: rgba(238, 238, 238, 1);
  1633. width: 750upx;
  1634. height: 1upx;
  1635. margin-top: 40upx;
  1636. }
  1637. .box_9 {
  1638. width: 100%;
  1639. height: 60upx;
  1640. margin: 23upx 0 22upx 15upx;
  1641. .tag_2 {
  1642. background-color: rgba(255, 255, 255, 1);
  1643. border-radius: 8px;
  1644. height: 60upx;
  1645. line-height:60upx;
  1646. border: 2px solid rgba(221, 221, 221, 1);
  1647. color: rgba(51, 51, 51, 1);
  1648. font-size: 30upx;
  1649. margin:0 16upx 0 0;
  1650. text-align:center;
  1651. float:left;
  1652. padding-left:15upx;
  1653. padding-right:15upx;
  1654. }
  1655. }
  1656. .box_6 {
  1657. background-color: rgb(248, 242, 242);
  1658. width: 750upx;
  1659. height:95upx;
  1660. .show_clear_area {
  1661. width: 247upx;
  1662. height: 29upx;
  1663. margin: 26upx 0 0 30upx;
  1664. .waite_clear_order {
  1665. width: 214upx;
  1666. height: 29upx;
  1667. overflow-wrap: break-word;
  1668. color: rgba(255, 40, 66, 1);
  1669. font-size: 31upx;
  1670. font-weight:bold;
  1671. text-align: left;
  1672. white-space: nowrap;
  1673. line-height: 29upx;
  1674. }
  1675. }
  1676. }
  1677. .button_4 {
  1678. height: 80upx;
  1679. line-height:80upx;
  1680. text-align:center;
  1681. background-color:#09C567;
  1682. background-size: 137upx 137upx;
  1683. width: 130upx;
  1684. position: absolute;
  1685. left: 570upx;
  1686. top: 95upx;
  1687. border-radius:39upx;
  1688. .text_13 {
  1689. color: rgba(255, 255, 255, 1);
  1690. font-size: 30upx;
  1691. font-weight:bold;
  1692. }
  1693. }
  1694. .button_5 {
  1695. height: 80upx;
  1696. line-height:80upx;
  1697. text-align:center;
  1698. background-color:#CCCCCC;
  1699. background-size: 137upx 137upx;
  1700. width: 130upx;
  1701. position: absolute;
  1702. left: 570upx;
  1703. top: 95upx;
  1704. border-radius:39upx;
  1705. .text_13 {
  1706. color: rgba(255, 255, 255, 1);
  1707. font-size: 30upx;
  1708. font-weight:bold;
  1709. }
  1710. }
  1711. .button_6 {
  1712. height: 80upx;
  1713. line-height:80upx;
  1714. text-align:center;
  1715. background-color:rgb(152, 153, 197);
  1716. background-size: 137upx 137upx;
  1717. width: 170upx;
  1718. position: absolute;
  1719. left: 540upx;
  1720. top: 95upx;
  1721. border-radius:39upx;
  1722. .text_13 {
  1723. color: rgba(255, 255, 255, 1);
  1724. font-size: 30upx;
  1725. font-weight:bold;
  1726. }
  1727. }
  1728. .button_7 {
  1729. height: 80upx;
  1730. line-height:80upx;
  1731. text-align:center;
  1732. background-color:#09C567;
  1733. background-size: 137upx 137upx;
  1734. width: 180upx;
  1735. position: absolute;
  1736. left: 330upx;
  1737. top: 95upx;
  1738. border-radius:39upx;
  1739. .text_13 {
  1740. color: rgba(255, 255, 255, 1);
  1741. font-size: 30upx;
  1742. font-weight:bold;
  1743. }
  1744. }
  1745. }
  1746. }
  1747. }
  1748. }
  1749. /* 商城选项弹框样式 */
  1750. .mall-options-container {
  1751. width: 600upx;
  1752. background-color: #fff;
  1753. border-radius: 24upx;
  1754. overflow: hidden;
  1755. animation: popup-in 0.3s ease-out;
  1756. .mall-options-buttons {
  1757. padding: 50upx 40upx 50upx;
  1758. display: flex;
  1759. flex-direction: column;
  1760. gap: 40upx;
  1761. align-items: center;
  1762. .mall-option-btn {
  1763. display: flex;
  1764. align-items: center;
  1765. justify-content: center;
  1766. padding: 32upx 40upx;
  1767. background-color: #f8f9fa;
  1768. border-radius: 20upx;
  1769. transition: all 0.2s ease;
  1770. width: 100%;
  1771. &:active {
  1772. background-color: #e9ecef;
  1773. transform: scale(0.98);
  1774. }
  1775. .option-icon {
  1776. font-size: 56upx;
  1777. margin-right: 30upx;
  1778. width: 70upx;
  1779. text-align: center;
  1780. }
  1781. .option-text {
  1782. font-size: 42upx;
  1783. color: #333;
  1784. font-weight: 500;
  1785. }
  1786. }
  1787. }
  1788. }
  1789. @keyframes popup-in {
  1790. 0% {
  1791. opacity: 0;
  1792. transform: scale(0.8) translateY(20upx);
  1793. }
  1794. 100% {
  1795. opacity: 1;
  1796. transform: scale(1) translateY(0);
  1797. }
  1798. }
  1799. /* 供货商提示弹框样式 */
  1800. .supplier-notice-popup {
  1801. .supplier-notice-container {
  1802. width: 650upx;
  1803. background-color: #fff;
  1804. border-radius: 20upx;
  1805. overflow: hidden;
  1806. .supplier-notice-header {
  1807. padding: 40upx 30upx 20upx;
  1808. text-align: center;
  1809. background-color: #f8f9fa;
  1810. border-bottom: 1upx solid #e9ecef;
  1811. .supplier-notice-title {
  1812. font-size: 36upx;
  1813. font-weight: bold;
  1814. color: #333;
  1815. }
  1816. }
  1817. .supplier-notice-content {
  1818. padding: 20upx 0;
  1819. .supplier-list {
  1820. padding: 0 30upx;
  1821. .supplier-item {
  1822. display: flex;
  1823. align-items: center;
  1824. padding: 20upx 0;
  1825. border-bottom: 1upx solid #f0f0f0;
  1826. &:last-child {
  1827. border-bottom: none;
  1828. }
  1829. .supplier-icon {
  1830. width: 60upx;
  1831. height: 60upx;
  1832. background-color: #e3f2fd;
  1833. border-radius: 50%;
  1834. display: flex;
  1835. align-items: center;
  1836. justify-content: center;
  1837. font-size: 32upx;
  1838. margin-right: 20upx;
  1839. }
  1840. .supplier-name {
  1841. font-size: 32upx;
  1842. color: #333;
  1843. flex: 1;
  1844. font-weight: 500;
  1845. }
  1846. }
  1847. }
  1848. }
  1849. .supplier-notice-footer {
  1850. padding: 30upx;
  1851. text-align: center;
  1852. background-color: #f8f9fa;
  1853. border-top: 1upx solid #e9ecef;
  1854. .supplier-notice-tip {
  1855. display: block;
  1856. font-size: 40upx;
  1857. font-weight: bold;
  1858. color: red;
  1859. margin-bottom: 30upx;
  1860. line-height: 1.4;
  1861. }
  1862. .supplier-notice-buttons {
  1863. display: flex;
  1864. justify-content: space-between;
  1865. gap: 20upx;
  1866. .admin-button-com {
  1867. flex: 1;
  1868. margin: 0;
  1869. padding: 20upx 0;
  1870. height: auto;
  1871. line-height: normal;
  1872. font-size: 34upx;
  1873. font-weight: bold;
  1874. }
  1875. }
  1876. }
  1877. }
  1878. }
  1879. .red-mind{
  1880. width: 42upx;
  1881. height: 42upx;
  1882. line-height: 38upx;
  1883. font-size: 28upx;
  1884. font-weight: 700;
  1885. text-align: center;
  1886. position: absolute;
  1887. right: 16upx;
  1888. top: 10upx;
  1889. color: white;
  1890. background-color: red;
  1891. border: 1upx solid red;
  1892. border-radius: 26upx;
  1893. display: inline-block;
  1894. }
  1895. // 警告提示区域样式
  1896. .alert-card {
  1897. margin: 15upx 10upx;
  1898. border-radius: 16upx;
  1899. overflow: hidden;
  1900. box-shadow: 0 4upx 12upx rgba(0, 0, 0, 0.08);
  1901. transition: all 0.3s ease;
  1902. border: 3upx solid;
  1903. &:active {
  1904. transform: translateY(2upx);
  1905. box-shadow: 0 2upx 8upx rgba(0, 0, 0, 0.06);
  1906. }
  1907. .alert-content {
  1908. display: flex;
  1909. align-items: center;
  1910. justify-content: space-between;
  1911. padding: 30upx 18upx;
  1912. min-height: 100upx;
  1913. .alert-title {
  1914. font-size: 38upx;
  1915. font-weight: 600;
  1916. flex: 1;
  1917. line-height: 1.4;
  1918. }
  1919. .alert-action {
  1920. font-size: 32upx;
  1921. font-weight: 600;
  1922. white-space: nowrap;
  1923. margin-left: 20upx;
  1924. padding: 12upx 24upx;
  1925. border-radius: 8upx;
  1926. transition: all 0.2s ease;
  1927. &:active {
  1928. background-color: rgba(255, 255, 255, 0.6);
  1929. }
  1930. }
  1931. .alert-text {
  1932. font-size: 36upx;
  1933. font-weight: 600;
  1934. line-height: 1.6;
  1935. text-align: center;
  1936. width: 100%;
  1937. }
  1938. }
  1939. }
  1940. .alert-card-warning {
  1941. background: #fffbf0;
  1942. border-color: #fffbf0;
  1943. .alert-content {
  1944. .alert-title {
  1945. color: #d48806;
  1946. }
  1947. .alert-action {
  1948. color: #ffa940;
  1949. border: 2upx solid #ffa940;
  1950. }
  1951. }
  1952. }
  1953. .alert-card-error {
  1954. background-color: #ff6b6b;
  1955. border-color: #ff6b6b;
  1956. .alert-content {
  1957. .alert-text {
  1958. font-size:32upx;
  1959. color: white;
  1960. }
  1961. }
  1962. }
  1963. .warning-banner {
  1964. background-color: #ff6b6b;
  1965. border-radius: 8upx;
  1966. margin: 0upx 10upx 20upx 10upx;
  1967. padding: 20upx 24upx;
  1968. color: #ffffff;
  1969. font-size: 32upx;
  1970. font-weight: 600;
  1971. text-align: center;
  1972. line-height: 1.4;
  1973. }
  1974. </style>