| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674 |
- <template>
- <view>
- <block v-if="loginStyle == 0">
- <view style="width:100vw;height:500upx;display:flex;align-items:center;justify-content:center;">
- <button class="admin-button-com big blue" @click="pageTo({url:'/admin/home/login'})">点我登录</button>
- <view style="position:absolute;top:380upx;font-size:36upx;color:green;text-decoration: underline;" @click="pageTo({url:'/pagesClient/official/apply'})">注册账号</view>
- </view>
- </block>
- <block v-else>
- <view class="app-main app-content" v-if="loginStyle == 2">
- <template v-if="lookMoney == 1">
- <view class="today-overview-card">
- <view class="today-header">
- <view class="today-title">今日概况</view>
- </view>
-
- <view class="today-income-section" @click="pageTo({url:'/admin/stat/kdIncome'})">
- <view class="income-label">收入</view>
- <view class="income-value">
- <text class="income-number">{{ $util.numberFormat(data.todayData.income) }}</text>
- </view>
- </view>
-
- <view class="today-stats" @click="pageTo({url:'/admin/custom/visit'})">
- <view class="stat-item">
- <view class="stat-content">
- <view class="stat-label">访客</view>
- <view class="stat-value">{{ $util.numberFormat(data.todayData.visit) || 0 }}</view>
- </view>
- </view>
-
- <navigator url="/admin/home/order" open-type="switchTab" class="stat-item">
- <view class="stat-content">
- <view class="stat-label">订单</view>
- <view class="stat-value">{{ $util.numberFormat(data.todayData.order) || 0 }}</view>
- </view>
- </navigator>
-
- <view class="stat-item">
- <view class="stat-content">
- <view class="stat-label">昨日收入</view>
- <view class="stat-value">{{ $util.numberFormat(yesterdayIncome) || 0 }}</view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <view class="module-com news-wrap">
- <view class="news-list" v-for="(item, index) in data.notice" :key="index" @click="noticeFn(item)" >
- <view class="news-left">
- <i class="iconfont iconxiaoxi2 ling"></i>
- <span>{{ item.title }}</span>
- </view>
- <view class="news-right">
- <span>{{ item.action }}</span>
- <i class="iconfont iconxiangyou"></i>
- </view>
- </view>
- </view>
- <view style="text-align: center;font-size:42upx;font-weight:bold;color:red;margin-bottom:20upx;" @click="setRecharge" v-if="shopInfo.rechargeWeal == 0">
- 请先设置充值活动的规则
- <text style="color:#3385ff;text-decoration: underline;margin-left:10upx;">去设置</text>
- </view>
- <view v-if="!$util.isEmpty(data.warning)" style="color:red;font-size:36upx;font-weight:bold;text-align: center;margin-bottom:15upx;">{{ data.warning }}</view>
- <view class="module-com flower-module">
- <!-- 花束花礼 -->
- <view class="flower-section">
- <view class="section-header">
- <view class="header-line"></view>
- <view class="header-title">花束花礼</view>
- <view class="header-line"></view>
- </view>
- <view class="icon-grid">
- <view class="icon-item" @click="showMallOptions(1)">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/shop2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text">商城</view>
- </view>
- <view class="icon-item" @click="showMallOptions(2)">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/shop2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text">相册</view>
- </view>
- <view class="icon-item" @click="goHsKd">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/shop2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text" style="color:#3385FF;font-weight:bold;">开单</view>
- </view>
- <view class="icon-item" @click="goHsKjKd">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/shop2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text" style="color:#3385FF;font-weight:bold;">快捷开单</view>
- </view>
- <view class="icon-item" @click="goPage({url: '/admin/work/list'})">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/shop2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text">任务</view>
- </view>
- <view class="icon-item" @click="goPage({url: '/admin/order/workOrder'})">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/shop2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text">接花束</view>
- </view>
- <view class="icon-item" @click="goPage({url: '/admin/goods/list'})">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/shop2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text">花束列表</view>
- </view>
- <view class="icon-item" @click="goPage({url: '/admin/goods/add'})">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/shop2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text">添加</view>
- </view>
- </view>
- </view>
-
- <!-- 绿植花材 -->
- <view class="flower-section">
- <view class="section-header">
- <view class="header-line"></view>
- <view class="header-title">绿植花材</view>
- <view class="header-line"></view>
- </view>
- <view class="icon-grid">
- <view class="icon-item" @click="showMallOptions(3)">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/shop2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text">商城</view>
- </view>
- <view class="icon-item" @click="goPage({url: '/admin/changePrice/list2'})">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/shop2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text">改价</view>
- </view>
- <view class="icon-item" @click="goItemKd()">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/shop2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text" style="color:#3385FF;font-weight:bold;">开单</view>
- </view>
- <view class="icon-item" @click="goItemKjKd()">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/shop2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text" style="color:#3385FF;font-weight:bold;">快捷开单</view>
- </view>
- <view class="icon-item" @click="goPage({url: '/admin/part/list'})">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/kcyjs2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text">拆散</view>
- </view>
- <view class="icon-item" @click="goPage({url: '/admin/breakage/list'})">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/kcyjs2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text">损耗</view>
- </view>
- <view class="icon-item" @click="goPage({url: '/admin/item/list2'})">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/shop2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text">花材列表</view>
- </view>
- <view class="icon-item" @click="goPage({url: '/pagesPurchase/order'})">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/shop2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text">买花</view>
- </view>
- <view class="icon-item" @click="goPage({url: '/pagesPurchase/shopping'})">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/shop2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text">买花记录</view>
- </view>
- <view class="icon-item" @click="goPage({url: '/admin/itemClass/list'})">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/hcgl2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text">分类</view>
- </view>
- </view>
- </view>
- <view class="flower-section">
- <view class="section-header">
- <view class="header-line"></view>
- <view class="header-title">更多</view>
- <view class="header-line"></view>
- </view>
- <view class="icon-grid">
- <view class="icon-item" @click.stop="">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/shop2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text">支出</view>
- </view>
- <view class="icon-item" @click="goPage({url: '/admin/staff/list'})">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/yggl2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text">员工</view>
- </view>
- <view class="icon-item" @click="goPage({url: '/admin/stat/profit'})">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/shop2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text">利润表</view>
- </view>
- <view class="icon-item" @click="goPage({url: '/admin/picText/picTextList'})">
- <view class="icon-wrapper">
- <image class="icon-image" :src="`${constant.hostUrl}/image/ghs/home/shop2.png`" mode="aspectFit"></image>
- </view>
- <view class="icon-text">图文</view>
- </view>
- </view>
- </view>
- </view>
- <template v-if="lookMoney == 1">
- <view class="module-com overview-module">
- <view class="overview-header">
- <view class="overview-title">总览</view>
- </view>
- <view class="overview-grid">
- <view class="overview-item" v-for="(item, index) in overview" :key="index" @click="pageTo(item)">
- <view class="item-value">{{ $util.numberFormat(item.value) }}</view>
- <view class="item-label">{{ item.name }}</view>
- </view>
- </view>
- </view>
- </template>
- </view>
- <view class="order-page" v-else>
- <view class="ghs_list_page flex-col">
- <view style="background-color:white;margin-bottom:20upx;">
- <button class="admin-button-com mini-btn blue" style="margin-left:11upx;padding-top:17upx;padding-bottom:17upx;" @click="pageTo({url:'/admin/shop/myShop'})">我的门店</button>
- <button class="admin-button-com mini-btn blue" style="margin-left:11upx;padding-top:17upx;padding-bottom:17upx;" @click="pageTo({url:'/admin/staff/list'})">我的员工</button>
- <button class="admin-button-com mini-btn blue" style="margin-left:11upx;padding-top:17upx;padding-bottom:17upx;" @click="pageTo({url:'/admin/shop/add?id='+loginInfo.shopId})">我的地址</button>
- <button class="admin-button-com mini-btn blue" style="margin-left:11upx;padding-top:17upx;padding-bottom:17upx;" @click="pageTo({url:'/admin/stat/cgItem'})">采购统计</button>
- <button class="admin-button-com mini-btn blue" style="margin-left:11upx;padding-top:17upx;padding-bottom:17upx;" @click="goMore()">更多</button>
- </view>
- <view style="text-align:center;font-size:29upx;">您好,{{ loginInfo.admin && loginInfo.admin.name ? loginInfo.admin.name : '' }} {{ loginInfo.admin && loginInfo.admin.mobile ? loginInfo.admin.mobile : '' }}</view>
- <view v-if="!$util.isEmpty(data.warning)" style="color:red;font-size:36upx;font-weight:bold;text-align: center;margin-bottom:15upx;margin-top:20upx;">{{ data.warning }}</view>
- <template v-if="!$util.isEmpty(ad)">
- <block v-for="(adInfo, adIndex) in ad" :key="adIndex">
- <view style="text-align:center;" @click.stop="pageTo({url:adInfo.url})">
- <image :src="adInfo.banner" mode="widthFix" style="width:97%;margin:0 auto;"></image>
- </view>
- </block>
- </template>
- <template v-if="!$util.isEmpty(supplierList)">
- <view class="ghs_list_area flex-col justify-end">
- <view class="ghs_box flex-col justify-end" v-for="(ghsInfo, index) in supplierList" :key="index">
- <view class="image-text_7 flex-row justify-between">
- <view class="section_1 flex-col">
- <image class="logo" :src="ghsInfo.smallAvatar" @click="enterShop(ghsInfo)" />
- </view>
- <view class="text-group_7 flex-col justify-between" @click="enterShop(ghsInfo)">
- <text class="text_8">{{ghsInfo.name}}</text>
- <text class="text_9">
- <block v-if="ghsInfo.cutStyle && ghsInfo.cutStyle == 1">
- <block v-if="ghsInfo.meetNum == 1 || ghsInfo.meetAmount == 1">
- <block v-if="ghsInfo.meetNum && ghsInfo.meetNum>0 && ghsInfo.cutAmount>0">
- <text style="color:red;font-weight:bold;">
- 全场{{ghsInfo.cutAmount?parseFloat(ghsInfo.cutAmount*100).toString().replace(/0/g,''):0}}折
- </text>
- </block>
- <block v-else>
- <text v-if="ghsInfo.meetAmount && ghsInfo.meetAmount>0 && ghsInfo.cutAmount>0" style="color:red;font-weight:bold;">
- 全场{{ghsInfo.cutAmount?parseFloat(ghsInfo.cutAmount*100).toString().replace(/0/g,''):0}}折
- </text>
- </block>
- </block>
- <block v-else>
- <block v-if="ghsInfo.meetNum && ghsInfo.meetNum>0 && ghsInfo.cutAmount>0">
- <text style="color:red;font-weight:bold;">
- 满{{ghsInfo.meetNum?ghsInfo.meetNum:0}}扎{{ghsInfo.cutAmount?parseFloat(ghsInfo.cutAmount*100).toString().replace(/0/g,''):0}}折
- </text>
- </block>
- <block v-else>
- <text v-if="ghsInfo.meetAmount && ghsInfo.meetAmount>0 && ghsInfo.cutAmount>0" style="color:red;font-weight:bold;">
- 满{{ghsInfo.meetAmount?ghsInfo.meetAmount:0}}元{{ghsInfo.cutAmount?parseFloat(ghsInfo.cutAmount*100).toString().replace(/0/g,''):0}}折
- </text>
- </block>
- </block>
- </block>
- <block v-else>
- <block v-if="ghsInfo.meetNum && ghsInfo.meetNum>0 && ghsInfo.cutAmount>0">
- <text style="color:red;font-weight:bold;">
- 满{{ghsInfo.meetNum?ghsInfo.meetNum:0}}扎优惠{{ghsInfo.cutAmount?parseFloat(ghsInfo.cutAmount):0}}元
- </text>
- </block>
- <block v-else>
- <text v-if="ghsInfo.meetAmount && ghsInfo.meetAmount>0 && ghsInfo.cutAmount>0" style="color:red;font-weight:bold;">
- 满{{ghsInfo.meetAmount?ghsInfo.meetAmount:0}}元优惠{{ghsInfo.cutAmount?parseFloat(ghsInfo.cutAmount):0}}元
- </text>
- </block>
- </block>
- </text>
- </view>
- </view>
- <view class="box_4 flex-col"></view>
- <view class="box_9">
- <view class="tag_2" @click="pageTo({ url: '/admin/ghs/debtChange?ghsId='+ghsInfo.id})"> <text>欠款变动记录</text> </view>
- <view class="tag_2" @click="pageTo({ url: '/admin/clear/list?ghsId='+ghsInfo.id})"> <text>结账记录</text> </view>
- <view class="tag_2" @click="pageTo({url:'/pagesPurchase/shopping?ghsId='+ghsInfo.id+'&ghsName='+ghsInfo.name})"> <text>买花记录</text> </view>
- <view class="tag_2" @click.stop="callUp(ghsInfo)" style="color:green;font-weight:bold;"> <text>联系我们</text> </view>
- </view>
- <view class="box_6 flex-row" @click="settleAccounts(ghsInfo)" v-if="Number(ghsInfo.debtAmount)>0">
- <view class="show_clear_area flex-row justify-between">
- <text class="waite_clear_order">
- 待结订单 {{ghsInfo.debtNum}}笔 合计¥{{ghsInfo.debtAmount?parseFloat(ghsInfo.debtAmount):0}}
- <text style="margin-left:30upx;" v-if="ghsInfo.remainDebtAmount>0">选订单结 》</text>
- </text>
- </view>
- </view>
- <block v-if="Number(ghsInfo.balance)>0">
- <view class="box_6 flex-row" v-if="ghsInfo.remainDebtAmount>0" @click.stop="recharge(ghsInfo)">
- <view class="show_clear_area flex-row justify-between">
- <text class="waite_clear_order" style="color:#3385ff;">
- <text v-if="Number(ghsInfo.balance)>0">减去余额¥{{ ghsInfo.balance ? parseFloat(ghsInfo.balance) : 0 }}</text>
- <text v-if="ghsInfo.remainDebtAmount>0" style="margin-left:15upx;">实欠¥{{ ghsInfo.remainDebtAmount }}</text>
- <text style="margin-left:30upx;">按金额结 》</text>
- </text>
- </view>
- </view>
- <view class="box_6 flex-row" v-if="ghsInfo.remainDebtAmount<0" @click.stop="recharge(ghsInfo)">
- <view class="show_clear_area flex-row justify-between">
- <text class="waite_clear_order" style="color:#3385ff;">
- <text>账户余额¥{{ Math.abs(ghsInfo.remainDebtAmount) }}</text>
- <text style="margin-left:30upx;">已结清</text>
- </text>
- </view>
- </view>
- </block>
- <block v-if="ghsInfo.live == 1">
- <view class="button_7 flex-col" @click.stop="goKmCg(ghsInfo)" v-if="ghsInfo.openKmCg && ghsInfo.openKmCg == 1"><text class="text_13">昆明直采</text></view>
- <view class="button_4 flex-col" v-if="ghsInfo.isOpen == 1" @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
- <view class="button_5 flex-col" v-else @click="enterShop(ghsInfo)"><text class="text_13">买花</text></view>
- </block>
- <block v-else>
- <view class="button_6 flex-col" @click="fillCg(ghsInfo)"><text class="text_13">买花</text></view>
- </block>
- <text style="position:absolute;left:677upx;top:17upx;color:#CCCCCC;" @click.stop="getMore(ghsInfo)">更多</text>
- </view>
- </view>
- </template>
- <block v-else>
- <view style="margin:60upx auto 40upx auto;font-weight:bold;font-size:36upx;text-align: center;">暂无供货商</view>
- </block>
- <view style="text-align:center;margin-top:50upx;margin-bottom:182upx;color:#827171;font-size:28upx;">
- <text style="margin-right:20upx;">中花汇提供技术支持</text>
- <text style="margin-right:20upx;">|</text>
- <text @click="toPhone()">联系软件公司</text>
- </view>
- </view>
- </view>
- </block>
- <uni-popup ref="toShowMore" background-color="#fff" type="center" :animation="true" class="class-popup-style">
- <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;">
- <view style="width:100vw;margin-top:8upx;"><button @click="rechargeChange()">充值记录</button></view>
- <view style="width:100vw;margin-top:8upx;"><button @click="balanceChange()">余额变动</button></view>
- <view style="width:100vw;margin-top:8upx;"><button @click="bpSj()">屏蔽此商家</button></view>
- <view style="width:100vw;margin-top:30upx;"><button @click="closeToShow()">取消</button></view>
- </view>
- </uni-popup>
- <!-- 多供货商提示弹框 -->
- <uni-popup ref="supplierNoticePopup" background-color="#fff" type="center" :animation="true" class="supplier-notice-popup">
- <view class="supplier-notice-container">
- <!-- 头部 -->
- <view class="supplier-notice-header">
- <text class="supplier-notice-title">您已有多个供货商</text>
- </view>
-
- <!-- 中间供货商列表 -->
- <view class="supplier-notice-content">
- <view class="supplier-list">
- <view class="supplier-item" v-for="(supplier, index) in displaySupplierList" :key="index">
- <view class="supplier-icon">🏪</view>
- <text class="supplier-name">{{ supplier.name }}</text>
- </view>
- </view>
- </view>
-
- <!-- 底部提示 -->
- <view class="supplier-notice-footer">
- <text class="supplier-notice-tip">买花时注意区分,避免下错</text>
- <view class="supplier-notice-buttons">
- <button class="admin-button-com default" @click="remindLater">下次提醒</button>
- <button class="admin-button-com blue" @click="closeSupplierNotice">知道了</button>
- </view>
- </view>
- </view>
- </uni-popup>
-
- <!-- 商城选项弹框 -->
- <uni-popup ref="mallOptionsPopup" type="center" mask-background-color="rgba(0,0,0,0.4)">
- <view class="mall-options-container">
- <view class="mall-options-buttons">
- <view class="mall-option-btn" @click="copyMallLink">
- <view class="option-icon">📋</view>
- <text class="option-text">复制链接</text>
- </view>
- <view class="mall-option-btn" @click="openMallDirect">
- <view class="option-icon">🚀</view>
- <text class="option-text">直接打开</text>
- </view>
- </view>
- </view>
- </uni-popup>
- </view>
- </template>
- <script>
- import { mapGetters } from "vuex";
- import { getWeixinId } from "@/api/invite";
- import { getShortUrl } from "@/api/main";
- import { getStat,getStrokeCount } from '@/api/console'
- import { consoleIndex } from "@/api/workbench";
- import NotLogin from "@/components/not-login";
- import autoUpdateMixins from "@/mixins/autoUpdate";
- import { ghsList } from "@/api/purchase";
- import { changeDelStatus,hasMoreGhs } from "@/api/ghs";
- import {currentShop} from "@/api/shop";
- import { clearLogin,hasNotice } from "@/api/admin";
- export default {
- name: "workbench",
- components: { NotLogin },
- mixins: [autoUpdateMixins],
- data () {
- return {
- overview:[],
- ad:[],
- showAd:1,
- constant: this.$constant,
- getappIdList: {},
- data: {
- admin: {},
- asset: {},
- notice: {},
- todayData: { income:0.00, order:0, custom:0, expend:0.00, visit:0 },
- isMini:0
- },
- yesterdayIncome: 0,
- lskd1: `${this.$constant.imgUrl}/ghs/home/lskd001.jpg`,
- lskd2: `${this.$constant.imgUrl}/ghs/home/lskd002.jpg`,
- lskd3: `${this.$constant.imgUrl}/ghs/home/lskd003.jpg`,
- supplierList: [],
- //登录状态 0未登录 1登录仅用到了采购 2登录用到完整功能
- loginStyle :0,
- backAction:'',
- countStat:{systemIncome:0,systemCount:0,debtCount:0,debtIncome:0,kfWxCount:0,kfWxIncome:0},
- lookMoney:1,
- currentGhs:{},
- displaySupplierList: [],// 用于显示在弹框中的供货商列表
- shopInfo:[],
- urlNo:1,
- shortUrlList:[]
- };
- },
- computed: {
- ...mapGetters({ loginInfo: "getLoginInfo",dictInfo:"getDictionariesInfo",myShopInfo:"getMyShopInfo" })
- },
- watch: {
- //只需要采购花材的花店不显示底部菜单
- loginInfo(newVal) {
- if(!this.$util.isEmpty(newVal.admin) && newVal.admin.currentShopId > 0){
- if(!this.$util.isEmpty(newVal.onlyCg)){
- if(Number(newVal.onlyCg) == 1){
- this.loginStyle = 1
- uni.hideTabBar()
- this.toRemindCustom()
- }else{
- this.loginStyle = 2
- uni.showTabBar()
- this.getMallData()
- }
- }
- }
- }
- },
- onPullDownRefresh () {
- this.init();
- uni.stopPullDownRefresh();
- },
- onShow () {
- if(this.backAction == 'login'){
- this.init()
- }
- if(this.backAction == 'cacelMask'){
- this.init()
- this.backAction = ''
- }
- if(!this.$util.isEmpty(this.loginInfo.admin) && this.loginInfo.admin.currentShopId > 0){
- if(!this.$util.isEmpty(this.loginInfo.onlyCg)){
- if(Number(this.loginInfo.onlyCg) == 1){
- this.loginStyle = 1
- uni.hideTabBar()
- this.toRemindCustom()
- }else{
- this.loginStyle = 2
- uni.showTabBar()
- this.getMallData()
- }
- }
- }
- this.showShopName()
- },
- onShareAppMessage(res) {
- return {
- title: "花掌柜,花店管家婆",
- desc: "",
- imageUrl: "",
- path: "admin/home/workbench",
- }
- },
- methods: {
- getMallData(){
- getWeixinId().then(res => {
- this.getappIdList = res.data
- })
- getShortUrl().then(res=>{
- if(res.code == 1){
- this.shortUrlList = res.data?res.data:[]
- }
- })
- },
- goItemKjKd(){
- if(this.myShopInfo && Number(this.myShopInfo.defaultCustomId)>0){
- this.$util.pageTo({url:'/admin/billing/index2?customId='+this.myShopInfo.defaultCustomId})
- }else{
- this.$msg('请设置快捷开单的对应客户')
- }
- },
- goItemKd(){
- this.$util.pageTo({url:'/admin/custom/selectCustom'})
- },
- goHsKjKd(){
- if(this.myShopInfo && Number(this.myShopInfo.defaultCustomId)>0){
- this.$util.pageTo({url:'/admin/billing/hs?customId='+this.myShopInfo.defaultCustomId})
- }else{
- this.$msg('请设置快捷开单的对应客户')
- }
- },
- goHsKd(){
- this.$util.pageTo({url:'/admin/custom/selectCustom?style=3'})
- },
- setRecharge(){
- this.$util.pageTo({url:'/admin/recharge/discount'})
- },
- closeToShow(){
- this.$refs.toShowMore.close()
- },
- // 显示供货商提示弹框
- showSupplierNotice() {
- // 设置要显示的供货商列表,最多显示5个
- this.displaySupplierList = this.supplierList.filter(item => item.name).slice(0, 5)
- this.$refs.supplierNoticePopup.open('center')
- },
- // 关闭供货商提示弹框
- closeSupplierNotice() {
- this.$refs.supplierNoticePopup.close()
- // 调用已有的接口标记已通知
- hasNotice().then(res => { })
- },
- // 下次提醒
- remindLater() {
- this.$refs.supplierNoticePopup.close()
- // 不调用hasNotice接口,保持提醒状态
- },
- getMore(info){
- this.currentGhs = info
- this.$refs.toShowMore.open('top')
- },
- callUp (ghs) {
- let mobileList = []
- if (!this.$util.isEmpty(ghs.telephone)){
- mobileList.push(ghs.telephone)
- }
- if (!this.$util.isEmpty(ghs.telephone2)){
- mobileList.push(ghs.telephone2)
- }
- if(this.$util.isEmpty(mobileList)){
- this.$msg('没有联系电话')
- return false
- }
- uni.showActionSheet({
- itemList: mobileList,
- success: function (respond) {
- let currentIndex = respond.tapIndex
- let mobile = mobileList[currentIndex]
- uni.makePhoneCall({ phoneNumber: mobile })
- }
- })
- },
- toPhone(){
- this.$util.pageTo({url: '/pagesPurchase/contact'})
- },
- showShopName(){
- currentShop().then(res => {
- if(res.code == 1){
- let sjName = res.data.merchantName ? res.data.merchantName : ''
- let shopName = res.data.shopName ? res.data.shopName : ''
- let title = shopName == '首店' ? sjName : sjName+' '+shopName
- uni.setNavigationBarTitle({ title: title })
- this.shopInfo = res.data?res.data:[]
- }
- })
- },
- goMore(){
- let that = this
- let shopkeeper = this.loginInfo.staff && this.loginInfo.staff.founder == 2 //判断店主(老板)
- let items = ['已屏蔽商家', '我已离职', '开关商城', '也要一个此商城', '修改密码', '退出登录'];
- if(shopkeeper) {
- items = ['已屏蔽商家', '改进建议', '开关商城', '也要一个此商城', '修改密码', '退出登录'];
- }
- uni.showActionSheet({
- itemList: items,
- success: function (res) {
- if(res.tapIndex == 0){
- that.$util.pageTo({url: '/pagesPurchase/pb'})
- }
- if(res.tapIndex == 1){
- if(shopkeeper){
- // 店主显示改进建议
- that.suggest()
- }else{
- // 员工显示离职
- that.$util.pageTo({url: '/admin/staff/dimission'})
- }
- }
- if(res.tapIndex == 2){
- that.$util.pageTo({url:'/pagesPurchase/open'})
- }
- if(res.tapIndex == 3){
- that.openPfShop()
- }
- if(res.tapIndex == 4){
- that.$util.pageTo({url:'/admin/shop/password'})
- }
- if(res.tapIndex == 5){
- that.$util.confirmModal({content:'确认退出?'},() => {
- // #ifdef APP-PLUS
- uni.clearStorage()
- that.$store.commit("setLoginInfo", {})
- plus.runtime.restart()
- // #endif
- // #ifdef MP-WEIXIN
- clearLogin().then(res=>{
- if(res.code == 1){
- uni.clearStorage()
- that.$store.commit("setLoginInfo", {})
- uni.reLaunch({url:'/admin/home/workbench'})
- }
- })
- // #endif
- })
- }
- }
- });
- },
- openPfShop(){
- let that = this
- that.$util.confirmModal({content:'请添加客服微信申请:15280215347',okText:'复制微信'},() => {
- uni.setClipboardData({
- data: '15280215347',
- success: function() {
- that.$msg("复制成功")
- }
- })
- })
- },
- suggest(){
- let that = this
- that.$util.confirmModal({content:'请添加客服微信反馈:15280215347',okText:'复制微信'},() => {
- uni.setClipboardData({
- data: '15280215347',
- success: function() {
- that.$msg("复制成功")
- }
- })
- })
- },
- bookItem(item){
- const { id } = item
- this.pageTo({url: '/pagesPurchase/bookProduct?id='+id})
- },
- goBalanceChange(info){
- this.closeToShow()
- this.pageTo({url: '/admin/ghs/balanceChange?ghsId='+info.id})
- },
- rechargeChange(){
- this.closeToShow()
- this.pageTo({url: '/admin/ghs/rechargeChange?ghsId='+this.currentGhs.id})
- },
- balanceChange(){
- this.closeToShow()
- this.pageTo({url: '/admin/ghs/balanceChange?ghsId='+this.currentGhs.id})
- },
- bpSj(){
- let that = this
- that.$util.confirmModal({content:'确认屏蔽此商家?',okText:'确认'},() => {
- that.confirmPb(that.currentGhs)
- })
- },
- recharge(currentGhs){
- this.pageTo({url: '/admin/ghs/pay?id='+currentGhs.id+'&salt='+currentGhs.salt})
- },
- confirmPb(ghs){
- let that = this
- changeDelStatus({delStatus:1,ghsId:ghs.id}).then(res=>{
- if(res.code == 1){
- that.closeToShow()
- that.getGHSList()
- }
- })
- },
- fillCg(item){
- this.pageTo({url:'/pagesPurchase/addCg?ghsId='+item.id+'&ghsName='+item.name})
- },
- goKmCg(currentGhs){
- let self = this
- // #ifdef MP-WEIXIN
- uni.navigateToMiniProgram({
- appId: currentGhs.kmCgAppId,
- path: currentGhs.kmCgUrl,
- //develop 开发版 trial 体验版 release 正式版
- envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
- extraData: {},
- success (res) {}
- })
- // #endif
- // #ifdef APP-PLUS
- self.$msg('开发中')
- // #endif
- },
- enterShop(item) {
- let that = this
- if(item.isOpen == 0){
- this.$msg('已休店,请选择其它门店')
- return false
- }
- that.pageTo({url: '/pagesPurchase/ghsProduct?id='+item.id})
- },
- enterShop2(item) {
- let that = this
- if(item.isOpen == 0){
- this.$msg('已休店,请选择其它门店')
- return false
- }
- that.pageTo({url: '/pagesPurchase/ghsProduct2?id='+item.id})
- },
- whyHave(){
- this.$util.confirmModal({content:'付款金额不足消欠款单时,存为余额下次使用'},() => {})
- },
- settleAccounts (item) {
- this.pageTo({ url: '/pagesPurchase/gathering?id='+item.id})
- },
- gotoDetails (val) {
- this.pageTo({ url: '/pagesPurchase/purDetails?status=' + val.status + '&id=' + val.id, type:2 })
- },
- getGHSList () {
- return ghsList().then(res => {
- this.supplierList = res.data.list
- this.ad = res.data.ad ? res.data.ad : []
- this.showAd = res.data.showAd ? res.data.showAd : 0
- })
- },
- goPage (item) {
- if(this.getLoginInfo.pfShopId && Number(this.getLoginInfo.pfShopId)>0){
- if(item.pf == 0){
- this.$msg('请在批发端操作')
- return false
- }
- }
- this.$util.pageTo(item)
- },
- init () {
- this.getGHSList()
- // #ifdef MP-WEIXIN
- this.isMini = 1
- // #endif
- let that = this
- consoleIndex({isMini:this.isMini}).then(res => {
- this.data = res.data
- this.lookMoney = res.data.lookMoney
- })
- getStrokeCount().then(res=>{
- if(res.code == 1){
- this.countStat = res.data
- }
- })
- getStat().then(res=>{
- if(res.code == 1){
- that.overview = res.data.overview
- }
- })
- this.showShopName()
- },
- toRemindCustom(){
- if(this.loginStyle==1){
- hasMoreGhs().then(ret=>{
- if(ret.data.needNotice == 1){
- this.showSupplierNotice()
- }
- })
- }
- },
- noticeFn (item) {
- this.$util.pageTo({ url: item.page })
- },
- goToWastage () {
- this.$util.pageTo({url:'/admin/breakage/list'})
- },
- goToKindStat(){
- this.$util.pageTo({url:'/admin/stat/kind'})
- },
- goToProfit () {
- this.$util.pageTo({url:'/admin/stat/profit'})
- },
- // 显示商城选项弹框
- showMallOptions(no) {
- this.urlNo = no
- this.$refs.mallOptionsPopup.open('center')
- },
- // 关闭商城选项弹框
- closeMallOptions() {
- this.$refs.mallOptionsPopup.close()
- },
- // 直接打开商城
- openMallDirect() {
- this.closeMallOptions()
- let url = ''
- //花束商城
- if(this.urlNo == 1){
- url = 'pages/home/category'
- }
- //相册
- if(this.urlNo == 2){
- url = 'pages/home/mall'
- }
- //绿植花材商城
- if(this.urlNo == 3){
- url = 'pages/item/item'
- }
- this.goToMallPt(url)
- },
- // 复制商城链接
- copyMallLink() {
- this.closeMallOptions()
- let currentShortUrl = ''
- let text = ""
- //花束商城
- if(this.urlNo == 1){
- currentShortUrl = this.shortUrlList['goodsUrl']
- text = "点击下面链接,打开商城\n\n"+currentShortUrl
- }
- //相册
- if(this.urlNo == 2){
- currentShortUrl = this.shortUrlList['imgUrl']
- text = "点击下面链接,打开相册\n\n"+currentShortUrl
- }
- //绿植花材商城
- if(this.urlNo == 3){
- currentShortUrl = this.shortUrlList['itemUrl']
- text = "点击下面链接,打开商城\n\n"+currentShortUrl
- }
- uni.setClipboardData({
- data: text,
- success: () => {
- this.$msg('已复制')
- },
- fail: () => {
- this.$msg('复制失败')
- }
- })
- },
- goToMallPt (url) {
- // #ifdef MP-WEIXIN
- let self = this
- uni.navigateToMiniProgram({
- appId: this.getappIdList.mall.miniAppId,
- path: url + '?account=' + self.loginInfo.shopId,
- //develop 开发版 trial 体验版 release 正式版
- envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
- extraData: {
- 'hdShopAdminId': self.loginInfo.shopAdminId
- },
- success (res) {}
- })
- // #endif
- // #ifdef APP-PLUS
- let that = this
- if(plus.runtime.isApplicationExist({pname:'com.tencent.mm',action:'weixin://'})){
- plus.share.getServices(function(s){
- var sweixin
- for (var i = 0; i < s.length; i++) {
- var t = s[i];
- if (t.id == 'weixin') {
- sweixin = t;
- }
- }
- if (sweixin && sweixin.nativeClient) {
- let miniOriginalId = that.dictInfo.miniOriginalId && that.dictInfo.miniOriginalId.current && that.dictInfo.miniOriginalId.current.mall ? that.dictInfo.miniOriginalId.current.mall : ''
- console.log(miniOriginalId)
- sweixin.launchMiniProgram({
- id: miniOriginalId,
- path: '/'+url+'?account='+that.loginInfo.shopId,
- type: 0
- });
- } else {
- that.$msg("没有找到微信服务")
- //that.$msg("获取微信失败:" + e.message)
- console.log(JSON.stringify(e));
- }
- }, function(e){
- that.$msg("没有找到微信服务哦")
- //that.$msg("获取微信失败:" + e.message)
- console.log(JSON.stringify(e));
- });
- } else {
- this.$msg("即将跳转小程序,请安装微信")
- return false
- }
- // #endif
- }
- }
- };
- </script>
- <style lang="scss" scoped>
- .app-content {
- padding-bottom: 10upx;
- }
- .module-com {
- margin-bottom: 20upx;
- background-color: #fff;
- }
- // 今日概况卡片
- .today-overview-card {
- background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
- padding: 0;
- margin: 0 0 20upx 0;
- overflow: hidden;
-
- .today-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 30upx 30upx 20upx;
-
- .today-title {
- font-size: 34upx;
- font-weight: 600;
- color: #ffffff;
- }
- }
-
- .today-income-section {
- padding: 20upx 30upx 40upx 30upx;
- text-align: center;
- position: relative;
-
- &:active {
- background: rgba(0, 0, 0, 0.05);
- }
-
- .income-label {
- font-size: 26upx;
- color: rgba(255, 255, 255, 0.9);
- margin-bottom: 16upx;
- }
-
- .income-value {
- display: flex;
- align-items: baseline;
- justify-content: center;
- margin-bottom: 12upx;
-
- .currency-symbol {
- font-size: 32upx;
- color: #ffffff;
- font-weight: 500;
- margin-right: 8upx;
- }
-
- .income-number {
- font-size: 56upx;
- font-weight: 700;
- color: #ffffff;
- line-height: 1;
- }
- }
-
- .income-hint {
- font-size: 24upx;
- color: rgba(255, 255, 255, 0.9);
- display: flex;
- align-items: center;
- justify-content: center;
-
- &::after {
- content: '>';
- margin-left: 8upx;
- font-weight: 600;
- }
- }
- }
-
- .today-stats {
- display: flex;
- padding: 0;
-
- .stat-item {
- flex: 1;
- padding: 10upx 0 50upx 0;
- position: relative;
- text-align: center;
-
- &:not(:last-child)::after {
- content: '';
- position: absolute;
- right: 0;
- top: 50%;
- transform: translateY(-50%);
- width: 1upx;
- height: 60upx;
- background: rgba(255, 255, 255, 0.2);
- }
-
- &:active {
- background: rgba(0, 0, 0, 0.1);
- }
-
- .stat-content {
- text-align: center;
-
- .stat-label {
- font-size: 26upx;
- color: rgba(255, 255, 255, 0.9);
- margin-bottom: 8upx;
- }
-
- .stat-value {
- font-size: 36upx;
- font-weight: 600;
- color: #ffffff;
- }
- }
- }
- }
- }
- .user-wrap {
- padding: 20upx 30upx 34upx 30upx;
- color: #fff;
- text-align: center;
- background-size: 100% 380upx;
- background-repeat: no-repeat;
- .user-top {
- @include disFlex(center, space-between);
- .open-bt_bx {
- display: flex;
- align-items: center;
- line-height: 1upx;
- & > button {
- padding: 0;
- line-height: auto;
- background-color: transparent;
- border: 1px solid #ffffff;
- border-radius: 22upx;
- padding: 10upx 17upx !important;
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 400;
- color: #ffffff;
- & > .iconfont {
- font-size: 25upx;
- padding-right: 10upx;
- }
- }
- }
- }
- .income-amount {
- margin-top: 36upx;
- margin-bottom: 37upx;
- .price {
- font-size: 50upx;
- font-weight: bold;
- margin-top: 4upx;
- }
- }
- .user-bottom {
- @include disFlex(center, space-around);
- .info-list-name {
- color: white;
- }
- .info-list-value {
- font-size: 36upx;
- font-weight: bold;
- margin-top: 4upx;
- }
- }
- }
- // 消息
- .news-wrap {
- .news-list {
- @include disFlex(center, space-between);
- padding: 30upx 24upx 30upx 30upx;
- border-bottom: 1px solid $borderColor;
- font-size: 26upx;
- color: $fontColor2;
- &:active {
- background-color: $backColor;
- }
- & > div {
- @include disFlex(center, flex-start);
- }
- .news-left {
- .iconfont {
- color: $mainColor;
- margin-right: 10upx;
- }
- .ling {
- font-size: 28upx;
- }
- span{
- font-size:29upx;
- }
- }
- .news-right {
- font-size: 26upx;
- color: $mainColor;
- transform: scale(0.9);
- @include disFlex(flex-end, flex-start);
- .iconfont {
- font-size: 24upx;
- margin-left: 10upx;
- margin-bottom: 6upx;
- }
- }
- }
- }
- // 数据总览模块
- .overview-module {
- background: #ffffff;
- border-radius: 16upx;
- padding: 0;
- overflow: hidden;
-
- .overview-header {
- background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
- padding: 30upx 30upx 20upx;
- border-bottom: 1upx solid #f0f0f0;
-
- .overview-title {
- font-size: 32upx;
- font-weight: 600;
- color: #333;
- margin-bottom: 8upx;
- }
-
- .overview-subtitle {
- font-size: 24upx;
- color: #999;
- }
- }
-
- .overview-grid {
- display: flex;
- flex-wrap: wrap;
- padding: 10upx;
-
- .overview-item {
- width: 33.33%;
- padding: 30upx 0;
- text-align: center;
- position: relative;
- transition: all 0.3s ease;
-
- &:not(:nth-child(3n)) {
- &::after {
- content: '';
- position: absolute;
- right: 0;
- top: 50%;
- transform: translateY(-50%);
- width: 1upx;
- height: 60upx;
- background: #f0f0f0;
- }
- }
-
- &:nth-child(n+4) {
- &::before {
- content: '';
- position: absolute;
- left: 15%;
- right: 15%;
- top: 0;
- height: 1upx;
- background: #f0f0f0;
- }
- }
-
- &:active {
- background: #f8fafb;
- }
-
- .item-value {
- font-size: 36upx;
- font-weight: 600;
- color: #105a2b;
- margin-bottom: 10upx;
- line-height: 1;
- }
-
- .item-label {
- font-size: 26upx;
- color: #666;
- line-height: 1;
- }
- }
- }
- }
- // 新的花束花礼和绿植花材样式
- .flower-module {
- padding: 0;
-
- .flower-section {
- padding: 30upx 20upx;
-
-
- .section-header {
- display: flex;
- align-items: center;
- justify-content: center;
- margin-bottom: 30upx;
-
- .header-line {
- flex: 1;
- height: 1upx;
- background: linear-gradient(to right, transparent, #e0e0e0);
-
- &:last-child {
- background: linear-gradient(to left, transparent, #e0e0e0);
- }
- }
-
- .header-title {
- padding: 0 30upx;
- font-size: 32upx;
- font-weight: 600;
- color: #333;
- }
- }
-
- .icon-grid {
- display: flex;
- flex-wrap: wrap;
- margin: -10upx;
-
- .icon-item {
- width: 25%;
- padding: 10upx;
- text-align: center;
-
- .icon-wrapper {
- width: 120upx;
- height: 120upx;
- margin: 0 auto 4upx;
- display: flex;
- align-items: center;
- justify-content: center;
- transition: all 0.3s ease;
-
- &:active {
- transform: scale(0.95);
- }
-
- .icon-image {
- width: 95upx;
- height: 95upx;
- }
- }
-
- .icon-text {
- font-size: 26upx;
- color: #333;
- line-height: 1.2;
- }
- }
- }
- }
- }
- .order-page {
- .ghs_list_page {
- background-color: rgba(255, 255, 255, 1);
- position: relative;
- width: 750upx;
- overflow: hidden;
- .flex-col {
- display: flex;
- flex-direction: column;
- }
- .flex-row {
- display: flex;
- flex-direction: row;
- }
- .justify-end {
- display: flex;
- justify-content: flex-end;
- }
- .justify-between {
- display: flex;
- justify-content: space-between;
- }
- .ghs_list_area {
- width: 750upx;
- background-color: #ece5e5;
- .ghs_box {
- background-color: rgba(255, 255, 255, 1);
- position: relative;
- width: 750upx;
- height: auto;
- margin-bottom:35upx;
- .image-text_7 {
- width: 674upx;
- height: 120upx;
- margin: 40upx 0 0 31upx;
- .section_1 {
- width: 120upx;
- height: 120upx;
- .logo{
- width:120upx;
- height:120upx;
- border-radius:10upx;
- }
- }
- .text-group_7 {
- width: 533upx;
- height: 99upx;
- margin-top: 5upx;
- .text_8 {
- display:inline-block;
- width: 550upx;
- height: 38upx;
- color: rgba(51, 51, 51, 1);
- font-size: 36upx;
- font-weight:bold;
- text-align: left;
- white-space: nowrap;
- line-height:38upx;
- overflow:hidden;
- }
- .text_9 {
- width: 533upx;
- height: 25upx;
- overflow-wrap: break-word;
- color: rgba(153, 153, 153, 1);
- font-size: 28upx;
- text-align: left;
- white-space: nowrap;
- line-height: 24upx;
- margin-top: 10upx;
- }
- }
- }
- .box_4 {
- background-color: rgba(238, 238, 238, 1);
- width: 750upx;
- height: 1upx;
- margin-top: 40upx;
- }
- .box_9 {
- width: 100%;
- height: 60upx;
- margin: 23upx 0 22upx 15upx;
- .tag_2 {
- background-color: rgba(255, 255, 255, 1);
- border-radius: 8px;
- height: 60upx;
- line-height:60upx;
- border: 2px solid rgba(221, 221, 221, 1);
- color: rgba(51, 51, 51, 1);
- font-size: 30upx;
- margin:0 16upx 0 0;
- text-align:center;
- float:left;
- padding-left:15upx;
- padding-right:15upx;
- }
- }
- .box_6 {
- background-color: rgb(248, 242, 242);
- width: 750upx;
- height:95upx;
- .show_clear_area {
- width: 247upx;
- height: 29upx;
- margin: 26upx 0 0 30upx;
- .waite_clear_order {
- width: 214upx;
- height: 29upx;
- overflow-wrap: break-word;
- color: rgba(255, 40, 66, 1);
- font-size: 31upx;
- font-weight:bold;
- text-align: left;
- white-space: nowrap;
- line-height: 29upx;
- }
- }
- }
- .button_4 {
- height: 80upx;
- line-height:80upx;
- text-align:center;
- background-color:#09C567;
- background-size: 137upx 137upx;
- width: 130upx;
- position: absolute;
- left: 570upx;
- top: 95upx;
- border-radius:39upx;
- .text_13 {
- color: rgba(255, 255, 255, 1);
- font-size: 30upx;
- font-weight:bold;
- }
- }
- .button_5 {
- height: 80upx;
- line-height:80upx;
- text-align:center;
- background-color:#CCCCCC;
- background-size: 137upx 137upx;
- width: 130upx;
- position: absolute;
- left: 570upx;
- top: 95upx;
- border-radius:39upx;
- .text_13 {
- color: rgba(255, 255, 255, 1);
- font-size: 30upx;
- font-weight:bold;
- }
- }
- .button_6 {
- height: 80upx;
- line-height:80upx;
- text-align:center;
- background-color:rgb(152, 153, 197);
- background-size: 137upx 137upx;
- width: 170upx;
- position: absolute;
- left: 540upx;
- top: 95upx;
- border-radius:39upx;
- .text_13 {
- color: rgba(255, 255, 255, 1);
- font-size: 30upx;
- font-weight:bold;
- }
- }
- .button_7 {
- height: 80upx;
- line-height:80upx;
- text-align:center;
- background-color:#09C567;
- background-size: 137upx 137upx;
- width: 180upx;
- position: absolute;
- left: 330upx;
- top: 95upx;
- border-radius:39upx;
- .text_13 {
- color: rgba(255, 255, 255, 1);
- font-size: 30upx;
- font-weight:bold;
- }
- }
- }
- }
- }
- }
- /* 商城选项弹框样式 */
- .mall-options-container {
- width: 600upx;
- background-color: #fff;
- border-radius: 24upx;
- overflow: hidden;
- animation: popup-in 0.3s ease-out;
-
- .mall-options-buttons {
- padding: 50upx 40upx 50upx;
- display: flex;
- flex-direction: column;
- gap: 40upx;
- align-items: center;
-
- .mall-option-btn {
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 32upx 40upx;
- background-color: #f8f9fa;
- border-radius: 20upx;
- transition: all 0.2s ease;
- width: 100%;
-
- &:active {
- background-color: #e9ecef;
- transform: scale(0.98);
- }
-
- .option-icon {
- font-size: 56upx;
- margin-right: 30upx;
- width: 70upx;
- text-align: center;
- }
-
- .option-text {
- font-size: 42upx;
- color: #333;
- font-weight: 500;
- }
- }
- }
- }
- @keyframes popup-in {
- 0% {
- opacity: 0;
- transform: scale(0.8) translateY(20upx);
- }
- 100% {
- opacity: 1;
- transform: scale(1) translateY(0);
- }
- }
- /* 供货商提示弹框样式 */
- .supplier-notice-popup {
- .supplier-notice-container {
- width: 650upx;
- background-color: #fff;
- border-radius: 20upx;
- overflow: hidden;
-
- .supplier-notice-header {
- padding: 40upx 30upx 20upx;
- text-align: center;
- background-color: #f8f9fa;
- border-bottom: 1upx solid #e9ecef;
-
- .supplier-notice-title {
- font-size: 36upx;
- font-weight: bold;
- color: #333;
- }
- }
-
- .supplier-notice-content {
- padding: 20upx 0;
-
- .supplier-list {
- padding: 0 30upx;
-
- .supplier-item {
- display: flex;
- align-items: center;
- padding: 20upx 0;
- border-bottom: 1upx solid #f0f0f0;
-
- &:last-child {
- border-bottom: none;
- }
-
- .supplier-icon {
- width: 60upx;
- height: 60upx;
- background-color: #e3f2fd;
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 32upx;
- margin-right: 20upx;
- }
-
- .supplier-name {
- font-size: 32upx;
- color: #333;
- flex: 1;
- font-weight: 500;
- }
- }
- }
- }
-
- .supplier-notice-footer {
- padding: 30upx;
- text-align: center;
- background-color: #f8f9fa;
- border-top: 1upx solid #e9ecef;
-
- .supplier-notice-tip {
- display: block;
- font-size: 40upx;
- font-weight: bold;
- color: red;
- margin-bottom: 30upx;
- line-height: 1.4;
- }
-
- .supplier-notice-buttons {
- display: flex;
- justify-content: space-between;
- gap: 20upx;
-
- .admin-button-com {
- flex: 1;
- margin: 0;
- padding: 20upx 0;
- height: auto;
- line-height: normal;
- font-size: 34upx;
- font-weight: bold;
- }
- }
- }
- }
- }
- </style>
|