shopHomePage.vue 71 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851
  1. <template>
  2. <view class="shop_homepage">
  3. <!-- 透明遮罩层 -->
  4. <view class="transparent_mask" v-if="transparent_mask" @tap="hideMask"></view>
  5. <view class="content">
  6. <!-- 搜索 -->
  7. <view class="fixed_top_status_bar" v-if="!searchShow"></view>
  8. <view class="search" v-if="!searchShow">
  9. <!-- #ifdef H5 || APP-PLUS -->
  10. <image class="top_w_b top_w_b_not " @tap="go_back" v-if="!shop_open" :src="imgUrl+'/to_right.png'"></image>
  11. <image class="top_w_b" @tap="go_back" v-else :src="imgUrl+'store/white_arrow_l.png'"></image>
  12. <!-- #endif -->
  13. <view v-if="shop_open" class="search_input" @tap="goSearch">
  14. <image :src="imgUrl+'store/shop_list_search.png'"></image>
  15. <input :placeholder="$L('搜索店铺内商品')" disabled="true"></input>
  16. </view>
  17. <view v-if="shop_open" class="more_tips">
  18. <image class="more" :src="imgUrl+'store/more1.png'" @tap="moreTips"></image>
  19. <block v-if="tips_show">
  20. <view class="triangle-up"> </view>
  21. <view class="tips">
  22. <button v-for="(item, index) in tips" :key="index" class="tips_pre" @tap="handleLink" :data-link="item.tips_link"
  23. :open-type="item.type" :data-type="item.type" plain="true">
  24. <image :src="item.tips_img"></image>
  25. <text>{{item.tips_name}}</text>
  26. </button>
  27. </view>
  28. </block>
  29. </view>
  30. </view>
  31. <!-- 搜索 -->
  32. <view class="fixed_top_status_bar" :style="'opacity:'+scrollTopH/100"></view>
  33. <view class="search1" v-if="(!homePage || searchShow)&&shop_open">
  34. <!-- #ifdef H5 || APP-PLUS -->
  35. <image class="top_w_b" @tap="go_back" :src="imgUrl+'store/to_right.png'"></image>
  36. <!-- #endif -->
  37. <view class="search_input" @tap="goSearch">
  38. <image :src="imgUrl+'store/shop_list_search.png'"></image>
  39. <input :placeholder="$L('搜索店铺内商品')" disabled="true"></input>
  40. </view>
  41. <view class="more_tips">
  42. <image class="more" :src="imgUrl+'store/more_black.png'" @tap="moreTips"></image>
  43. <block v-if="tips_show">
  44. <view class="triangle-up"> </view>
  45. <view class="tips">
  46. <button v-for="(item, index) in tips" :key="index" class="tips_pre" @tap="handleLink" :data-link="item.tips_link"
  47. :open-type="item.type" :data-type="item.type" plain="true">
  48. <image :src="item.tips_img"></image>
  49. <text>{{item.tips_name}}</text>
  50. </button>
  51. </view>
  52. </block>
  53. </view>
  54. </view>
  55. <!-- 店铺信息-->
  56. <view class="shop_des" v-if="shop_open" :style="'background-image:url(' + ((homePage || !searchShow) ? store_banner : '') + ');background-size:100% 100%;background-repeat:no-repeat;'">
  57. <view class="des_top" v-if="homePage">
  58. <view class="shop_info" :style="'opacity:'+(1-(scrollTopH)/60)">
  59. <view class="info_left" @tap="handleStoreIntroduction" :data-vid="vender_detail.storeId">
  60. <image class="avat" :src="vender_detail.storeLogoUrl" mode="aspectFill"></image>
  61. <view class="info_des">
  62. <view class="info_top">
  63. <text>{{vender_detail.storeName}}</text>
  64. <image :src="imgUrl+'store/rightdown.png'"></image>
  65. <text v-if="vender_detail.isOwnShop == 1">{{$L('自营')}}</text>
  66. </view>
  67. <view class="info_bot">
  68. <image :src="imgUrl+'store/renqizhi.png'"></image>
  69. <text>人气:{{vender_detail.followNumber}}</text>
  70. </view>
  71. </view>
  72. </view>
  73. <view :class="is_favorites == 'false' ? 'info_right' : 'info_right1'" @tap="collect">{{is_favorites == 'false' ? '关注' : '已关注'}}</view>
  74. </view>
  75. <!-- 店铺首页,全部分类,商品上新,优惠券 -->
  76. <view class="select_nav" v-if="!fenlei && !no_content_decor" :style="'opacity:'+(1-(scrollTopH)/160)">
  77. <view v-for="(item, idx) in navList" :key="idx" class="nav_item" @tap="tabItemTap(idx)" :data-idx="idx">
  78. <image :src="idx == currentTabIndex || (currentTabIndex == 0 && index == 0) && isSelect ? item.selImgUrl : item.imgUrl"></image>
  79. <text>{{item.name}}</text>
  80. </view>
  81. </view>
  82. <!-- 店铺未装修不显示店铺首页 -->
  83. <view class="select_nav" v-if="!fenlei && no_content_decor" :style="'opacity:'+(1-(scrollTopH)/160)">
  84. <view v-for="(item, idx) in navList1" :key="idx" class="nav_item" @tap="tabItemTap(idx)" :data-idx="idx">
  85. <image :src="idx == currentTabIndex || (currentTabIndex == 0 && index == 0) && isSelect ? item.selImgUrl : item.imgUrl"></image>
  86. <text>{{item.name}}</text>
  87. </view>
  88. </view>
  89. </view>
  90. <view :class="homePage ? 'des_con' : 'des_con1'" v-if="!fenlei" :style="'overflow:' + ((no_content_decor || no_content_productList || no_content_newProductList || no_content_coupon) ? 'hidden' : 'auto')">
  91. <!-- 店铺首页 -->
  92. <view class="home_decoration" v-if="home_decoration && !no_content_decor&& is_load_home_dec">
  93. <home-deco :deco_info="deco_data" :store_width='width' :store_height='height' is_show_top='is_show_top'
  94. :store_page_img='home_page_img' :home_is_show_top_cat="home_is_show_top_cat" :is_from_found="false" :store_id='vid'></home-deco>
  95. <!-- <view class="no_content" wx:if="{{no_content_decor}}">
  96. <image src="{{imgUrl + 'site/no_content.png'}}"></image>
  97. <text>店铺暂未装修~</text>
  98. </view> -->
  99. </view>
  100. <!-- 全部商品 -->
  101. <view class="all_commodities" v-if="all_commodities">
  102. <view :class="'all_commodities_nav ' + (searchShow ? 'nav1' : '')" v-if="all_commodities">
  103. <view class="comprehensive" @tap="commoditiesNav" data-index="0">
  104. <text :class="'pre_title ' + (commodNavIdx == 0 ? 'active' : '')">{{$L('综合')}}</text>
  105. </view>
  106. <view :class="'sales_volume ' + (commodNavIdx == 1 ? 'active' : '')" @tap="commoditiesNav" data-index="1"
  107. data-isAscendingOrder="0">{{$L('销量')}}</view>
  108. <view class="price" @tap="commoditiesNav" data-index="2">
  109. <text :class="'pre_title ' + (commodNavIdx == 2 ? 'active' : '')">{{$L('价格')}}</text>
  110. <view class="price_switch">
  111. <image class="xiala_up" :src="commodNavIdx == 2 && isAscendingOrder == 1 ? imgUrl+'store/xiala_up1.png' : imgUrl+'store/xiala_up.png'"></image>
  112. <image class="xiala_down" :src="commodNavIdx != 2 ? imgUrl+'store/xiala_down.png' : commodNavIdx == 2 && isAscendingOrder == 1 ? imgUrl+'store/xiala_down.png' : imgUrl+'store/xiala_down1.png'"></image>
  113. </view>
  114. </view>
  115. <view :class="'sales_volume ' + (commodNavIdx == 5 ? 'active' : '')" @tap="commoditiesNav" data-index="5">人气</view>
  116. <view class="layout" @tap="layoutSwitch">
  117. <image :src="grid_list ? imgUrl+'store/fenlei1.png' : imgUrl+'store/fenlei2.png'"></image>
  118. </view>
  119. </view>
  120. <block v-if="productList && productList.length">
  121. <!-- 商品列表 -->
  122. <view class>
  123. <view :class="(grid_list ? 'all_commodities_list' : 'list') + ' ' + (searchShow ? 'product1' : '')">
  124. <view v-for="(item, index) in productList" :key="index" class="list_pre" @tap="goods_detail(item.defaultProductId,item.goodsId)">
  125. <view class="pre_img">
  126. <image :src="item.goodsImage" mode="aspectFill"></image>
  127. </view>
  128. <view class="pre_des">
  129. <view class="des_name">{{item.goodsName}}</view>
  130. <view class="des_info">{{item.goodsBrief}}</view>
  131. <!-- <view class="time_limited_discount">限时折扣</view> -->
  132. <view v-for="(item1, index2) in item.activityList" :key="index2" class="time_limited">
  133. <view class="time_limited_discount" :style="'background:linear-gradient(to right,' + item1.color[0] + ',' + item1.color[1] + ');'"
  134. v-if="item1.name!='' && item1.color && item1.color[0] && item1.color[1]">{{item1.name}}</view>
  135. </view>
  136. <view class="des_desc">
  137. <view class="commodity_price"><text>¥</text><text>{{$getPartNumber(item.goodsPrice,'int')}}</text><text>{{$getPartNumber(item.goodsPrice,'decimal')}}</text></view>
  138. <text class="salenum" v-if="grid_list && item.goodsPrice < 999999.99">{{item.saleNum}}{{$L('人已付款')}}</text>
  139. <text class="salenum" v-if="!grid_list">{{item.saleNum}}{{$L('人已付款')}}</text>
  140. </view>
  141. </view>
  142. </view>
  143. </view>
  144. </view>
  145. <view class="is_more">{{hasmore ? '数据加载中...' : '数据加载完毕~'}}</view>
  146. </block>
  147. <!-- 无商品 -->
  148. <block v-if="no_content_productList">
  149. <view class="no_content">
  150. <image :src="imgUrl + 'store/no_content.png'"></image>
  151. <text>{{$L('暂无任何商品')}}~</text>
  152. </view>
  153. </block>
  154. </view>
  155. <!-- 商品上新 -->
  156. <view class="new_products" v-if="new_products">
  157. <block v-if="new_productList && new_productList.length">
  158. <!-- 商品列表 -->
  159. <view class>
  160. <view v-for="(item, index) in new_productList" :key="index" class="new_products_pre">
  161. <view class="new_products_top">
  162. <text class="line"></text>
  163. <view class="new_products_title">
  164. <image :src="imgUrl+'store/shijian_title.png'"></image>
  165. <text>{{item.onLineTime}}{{$L('上新')}}</text>
  166. </view>
  167. <text class="line"></text>
  168. </view>
  169. <view class="all_commodities_list">
  170. <view v-for="(item1, index2) in item.goodsVOList" :key="index2" class="list_pre" @tap="goods_detail(item1.productId,item1.goodsId)">
  171. <view class="pre_img">
  172. <image :src="item1.mainImage" mode='aspectFit'></image>
  173. </view>
  174. <view class="pre_des">
  175. <view class="des_name">{{item1.goodsName}}</view>
  176. <view class="des_info">{{item1.goodsBrief}}</view>
  177. <!-- <view class="time_limited_discount">限时折扣</view> -->
  178. <!-- <view v-for="(item2, index) in item1.limited_activities" :key="index" class="discount">
  179. <view class="time_limited_discount" :style="'background:linear-gradient(to right,' + item2.color[0] + ',' + item2.color[1] + ');'">{{item2.name}}</view>
  180. </view> -->
  181. <view class="des_desc">
  182. <view class="commodity_price"><text>¥</text><text>{{$getPartNumber(item1.goodsPrice,'int')}}</text><text>{{$getPartNumber(item1.goodsPrice,'decimal')}}</text></view>
  183. <text class="salenum" v-if="item1.goodsPrice < 999999.99">{{item1.actualSales}}{{$L('人已付款')}}</text>
  184. </view>
  185. </view>
  186. </view>
  187. </view>
  188. </view>
  189. </view>
  190. <view class="is_more" style="margin:10rpx 0 30rpx;">{{hasmore ? '数据加载中...' : '数据加载完毕~'}}</view>
  191. </block>
  192. <block v-if="no_content_newProductList">
  193. <view class="no_content">
  194. <image :src="imgUrl + 'store/no_content.png'"></image>
  195. <text>{{$L('暂无商品上新')}}~</text>
  196. </view>
  197. </block>
  198. </view>
  199. <!-- 优惠券 -->
  200. <view class="coupon" v-if="coupon">
  201. <block v-if="couponList && couponList.length">
  202. <!-- 优惠券列表 -->
  203. <view class>
  204. <view v-for="(item, index) in couponList" class="coupon_pre" :key="item.id">
  205. <view class="conpon_des" :style="'background-image:url(' + (imgUrl + 'store/coupon_bg.png') + '); background-size:100%'">
  206. <view class="conpon_des_top">
  207. <!-- <view class="{{item.receivedNum == item.limitReceive ? 'coupon_des_left1' : item.have == 0 ? 'coupon_des_left' : 'coupon_des_left1'}}">{{item.redinfo_money}}<text class="yuan">元</text></view> -->
  208. <view class="coupon_des_left">{{item.limitQuota}}<text class="yuan">元</text></view>
  209. <!-- <view v-else-if="item.have < item.red_rach_max" class="coupon_des_left">{{item.limitQuota}}<text class="yuan">元</text></view> -->
  210. <!-- <view v-else class="coupon_des_left1">{{item.limitQuota}}<text class="yuan">元</text></view> -->
  211. <view class="coupon_des_con">
  212. <!-- {{item.receivedNum != item.limitReceive && item.have == 0}} -->
  213. <view class="progress-box" style="display:flex" v-if="item.receivedNum != item.publishNum && item.have < item.red_rach_max">
  214. <progress :percent="item.per" backgroundColor="#FFFFFF" activeColor="#FF0000" font-size="22rpx"
  215. border-radius="5rpx" stroke-width="3" style="width:60%;height: 25%;border: 1rpx solid #FF0000; border-right:2rpx solid #FF0000;border-radius:5rpx"></progress>
  216. <text class="progress_text">{{$L('')}}已抢{{item.per}}%</text>
  217. </view>
  218. <view class="full_reduction">{{item.couponName}}</view>
  219. <view class="validity">{{$L('有效期')}}:{{item.publishStartTime}}-{{item.publishEndTime}}</view>
  220. </view>
  221. <!-- <view class="coupon_des_right {{item.receivedNum == item.limitReceive ? 'coupon_des_right1' : item.have == 0 ? '' : 'coupon_des_right1'}}" bindtap="receive" data-redid="{{item.id}}">
  222. <text>{{item.receivedNum == item.limitReceive ? '已抢完' : item.have < item.red_rach_max ? '立即领取' : '已领取'}}</text>
  223. <text>{{item.have == 0 && item.receivedNum != item.limitReceive ? '已领取' : item.receivedNum == item.limitReceive ? '已抢完' : item.have < item.red_rach_max ? '立即领取' : '' }}</text>
  224. </view> -->
  225. <view class="coupon_des_right1" v-if="item.isReceive == 3">
  226. <text>{{$L('已抢完')}}</text>
  227. </view>
  228. <view class="coupon_des_right" @tap="receive" :data-couponid="item.couponId" v-if="item.isReceive == 1">
  229. <text>{{$L('立即领取')}}</text>
  230. </view>
  231. <view class="coupon_des_right1" v-if="item.isReceive == 2">
  232. <text>{{$L('已领取')}}</text>
  233. </view>
  234. </view>
  235. <view class="conpon_des_bot">
  236. <view class="conpon_show" @tap="handleOpen">
  237. <view :class="'text ' + (conpon_show ? 'text2' : 'text1')"><text>{{$L('使用规则')}}</text>:{{item.useTypeValue}}</view>
  238. </view>
  239. </view>
  240. </view>
  241. </view>
  242. </view>
  243. <view class="is_more" style="margin-top:20rpx;">{{hasmore ? '数据加载中...' : '数据加载完毕~'}}</view>
  244. </block>
  245. <block v-if="no_content_coupon">
  246. <view class="no_content">
  247. <image :src="imgUrl + 'store/no_coupon.png'"></image>
  248. <text>{{$L('暂无优惠券')}}~</text>
  249. </view>
  250. </block>
  251. </view>
  252. </view>
  253. <!-- 分类 -->
  254. <view class="fenlei" v-if="fenlei">
  255. <view>
  256. <view class="fenlei_lists" v-if="classifyList && classifyList.length > 0">
  257. <view v-for="(item, index) in classifyList" :key="index" class="fenlei_pre">
  258. <view class="fenlei_pre_top" :data-stc_id="item.innerLabelId" :data-stc_name="item.innerLabelName" @tap="handleProClas">
  259. <view class="fenlei_pre_title">{{item.innerLabelName}}</view>
  260. <image src="store/right_bg.png"></image>
  261. </view>
  262. <view class="fenlei_list" v-if="item && item.children && item.children.length > 0">
  263. <text v-for="(item1, index2) in item.children" :key="index2" :data-stc_id="item1.innerLabelId" :data-stc_name="item1.innerLabelName"
  264. @tap="handleProClas">{{item1.innerLabelName}}</text>
  265. </view>
  266. </view>
  267. </view>
  268. <view class="fenlei_lists" v-if="no_content_fenlei">
  269. <view class="no_fenlei">
  270. <image :src="imgUrl + 'store/no_product.png'"></image>
  271. <text>{{$L('暂无商品分类')}}</text>
  272. </view>
  273. </view>
  274. </view>
  275. <!-- 推荐商品 -->
  276. <view class="all_commodities_list all_commodities_list1" v-if="recommend_productList && recommend_productList.length">
  277. <view class="commodities_list">
  278. <view v-for="(item, index) in recommend_productList" :key="index" class="list_pre" :data-gid="item.gid" @tap="goods_detail">
  279. <view class="pre_img">
  280. <image :src="item.goods_image_url" mode='aspectFit'></image>
  281. </view>
  282. <view class="pre_des">
  283. <view class="des_name">{{item.goods_name}}</view>
  284. <view class="des_info">{{item.goods_jingle}}</view>
  285. <!-- <view class="time_limited_discount">限时折扣</view> -->
  286. <view v-for="(item1, index2) in item.limited_activities" :key="index2" class="discount">
  287. <view class="time_limited_discount" :style="'background:linear-gradient(to right,' + item1.color[0] + ',' + item1.color[1] + ');'">{{item1.name}}</view>
  288. </view>
  289. <view class="des_desc">
  290. <view class="commodity_price"><text>¥</text><text>{{filters.toSplit(item.goods_price)[0]}}</text>.<text>{{filters.toSplit(item.goods_price)[1]}}</text></view>
  291. <text class="salenum" v-if="item.goods_price < 999999.99">{{item.goods_salenum}}{{$L('人已付款')}}</text>
  292. </view>
  293. </view>
  294. </view>
  295. </view>
  296. <view class="is_more">{{hasmore ? '数据加载中...' : '数据加载完毕~'}}</view>
  297. </view>
  298. </view>
  299. </view>
  300. <!-- 店铺不存在 -->
  301. <view class="empty_sort_page" v-if="!shop_open">
  302. <image :src="imgUrl+'index/empty.png'" mode="aspectFit" class="empty_img"></image>
  303. <view class="empty_text">{{$L('店铺不存在或已关闭')}}~</view>
  304. </view>
  305. </view>
  306. <!-- 底部tab栏 -->
  307. <view class="tabbar" v-if="shop_open" :style="'bottom:'+bottomSateArea">
  308. <view v-for="(item, idx) in tabBarList" :key="idx" class="tabbar_pre" @tap="hanbleTab" :data-idx="idx">
  309. <image :src="idx == tabcurrentTabIndex || index == 0 && tabisSelect ? item.selImgUrl : item.imgUrl"></image>
  310. <text :class="idx == tabcurrentTabIndex || index == 0 && tabisSelect ? 'pre_sel' : ''">{{item.name}}</text>
  311. </view>
  312. <view class="tabbar_pre" @tap="tokefu" :data-idx="idx">
  313. <image :src="imgUrl+'chat/chat_service.png'"></image>
  314. <text class="">客服</text>
  315. </view>
  316. </view>
  317. <!-- 分享 -->
  318. <view class="select-wrap" catchtouchmove="touchmoveshare" v-if="shareWrap2">
  319. <view class="share-mode">
  320. <!-- #ifdef APP-PLUS -->
  321. <view class="ul">
  322. <button @tap.stop="sldShare(0,'WXSceneSession')" class="item">
  323. <image :src="imgUrl+'store/wx_share.png'" mode="widthFix"></image>
  324. <text>{{$L('微信好友')}}</text>
  325. </button>
  326. <button @tap.stop="sldShare(0,'WXSenceTimeline')" class="item">
  327. <image :src="imgUrl+'store/pyq_share.png'" mode="widthFix"></image>
  328. <text>{{$L('微信朋友圈')}}</text>
  329. </button>
  330. </view>
  331. <!-- #endif -->
  332. <!-- #ifdef H5 -->
  333. <view class="is_h5_share" v-if="!iswx">
  334. <view class="share-img" @tap="prevImg">
  335. <image :src="share_img_h5" mode="widthFix"></image>
  336. </view>
  337. <image :src="imgUrl + 'store/fx_share_code.png'" mode="" class="h5_share_tips"></image>
  338. </view>
  339. <view class="is_h5_public_share" v-if="iswx" @tap="closeShare">
  340. <image :src="imgUrl+'wx_share_tip.png'" mode="widthFix" class="wx_share_img"></image>
  341. </view>
  342. <!-- #endif -->
  343. <!-- #ifdef H5 -->
  344. <view class="close" @tap="closeShare" v-if="!iswx">
  345. <image :src="imgUrl+'store/share_close2.png'"></image>
  346. </view>
  347. <!-- #endif -->
  348. <!-- #ifndef H5 -->
  349. <view class="close" @tap="closeShare">
  350. <image :src="imgUrl+'store/share_close2.png'"></image>
  351. </view>
  352. <!-- #endif -->
  353. </view>
  354. </view>
  355. <!-- 底部站位栏 -->
  356. <view class="iphone_view" :style="'height:'+bottomSateArea"></view>
  357. </view>
  358. </template>
  359. <script module="filters" lang="wxs" src="../../utils/filter.wxs"></script>
  360. <script>
  361. import HomeDeco from '@/components/home_deco.vue'
  362. let imgUrl = getApp().globalData.imgUrl; //引用全局变量,图片域名
  363. // 加载js
  364. //引用全局变量,图片域名
  365. // 加载js
  366. import {
  367. getSceneParam,
  368. isWeiXinBrower
  369. } from "../../utils/common";
  370. import {
  371. mapState,mapMutations
  372. } from 'vuex';
  373. export default {
  374. data() {
  375. return {
  376. // index: '',
  377. bid: '',
  378. vid: '',
  379. store_list: [],
  380. searchVal: '', //搜索框内的值
  381. searchList: [],
  382. show: false,
  383. searchShow: false,
  384. currentTabIndex: 0, //选项卡,默认综合排序
  385. isSelect: false,
  386. navList: [{
  387. "name": "店铺首页",
  388. "imgUrl": imgUrl + "store/qiyeyunicon.png",
  389. "selImgUrl": imgUrl + 'store/qiyeyunicon_sel.png'
  390. }, {
  391. "name": "全部商品",
  392. "imgUrl": imgUrl + "store/shangpin.png",
  393. "selImgUrl": imgUrl + 'store/shangpin_sel.png'
  394. }, {
  395. "name": "商品上新",
  396. "imgUrl": imgUrl + "store/iconfont37newtag.png",
  397. "selImgUrl": imgUrl + 'store/shangxin_sel.png'
  398. }, {
  399. "name": "优惠券",
  400. "imgUrl": imgUrl + 'store/youhuiquan1.png',
  401. "selImgUrl": imgUrl + 'store/youhuiquan.png'
  402. }],
  403. navList1: [{
  404. "name": "全部商品",
  405. "imgUrl": imgUrl + "store/shangpin.png",
  406. "selImgUrl": imgUrl + 'store/shangpin_sel.png'
  407. }, {
  408. "name": "商品上新",
  409. "imgUrl": imgUrl + "store/iconfont37newtag.png",
  410. "selImgUrl": imgUrl + 'store/shangxin_sel.png'
  411. }, {
  412. "name": "优惠券",
  413. "imgUrl": imgUrl + 'store/youhuiquan1.png',
  414. "selImgUrl": imgUrl + 'store/youhuiquan.png'
  415. }],
  416. tabBarList: [{
  417. "name": "首页",
  418. "imgUrl": imgUrl + 'store/bar1.png',
  419. "selImgUrl": imgUrl + 'store/bar1_sel.png'
  420. }, {
  421. "name": "商品",
  422. "imgUrl": imgUrl + 'store/dianpu.png',
  423. "selImgUrl": imgUrl + 'store/dianpu_sel.png'
  424. }, {
  425. "name": "分类",
  426. "imgUrl": imgUrl + 'store/fenlei.png',
  427. "selImgUrl": imgUrl + 'store/fenlei_sel.png'
  428. }],
  429. is_favorites: '0', //是否被收藏
  430. vender_detail: {}, //店铺详情
  431. home_decoration: true, //店铺首页
  432. productList: [], //全部商品列表
  433. current: '1', //默认第一页
  434. all_commodities: false, //全部商品是否显示
  435. commodNavIdx: '0', //商品列表nav默认第一项
  436. isAscendingOrder: 1, //是否升序
  437. grid_list: true, //是否是两列grid_list布局
  438. new_products: false, //全部上新
  439. new_productList: [], //全部上新列表
  440. coupon: false, //优惠券
  441. couponList: [], //优惠券列表
  442. conpon_show: false, //优惠券规则展开
  443. tabcurrentTabIndex: 0, //默认选中首页
  444. tabisSelect: false, //tabbar的状态
  445. homePage: true, //首页显示
  446. fenlei: false, //分类
  447. classifyList: [], //店铺分类
  448. isReceive: false, //优惠券是否已领取
  449. decorationData: [], //店铺装修数据
  450. imgUrl: getApp().globalData.imgUrl, //图片地址
  451. no_more: false, //没有更多数据了
  452. share_img: '', //点击右上角的分享,分享店铺图片
  453. share_name: '', //点击右上角分享,分享店铺的名称
  454. recommend_product: {}, //推荐商品
  455. recommend_productList: [], //推荐商品列表
  456. no_recomment_goods: false, //店铺无推荐商品
  457. no_content_decor: false, //店铺装修无数据
  458. no_content_productList: false, //店铺无商品列表数据
  459. no_content_newProductList: false, //店铺无上新列表数据
  460. no_content_coupon: false, //店铺无优惠券数据
  461. no_content_fenlei: false, //店铺无分类数据
  462. store_banner: '', //店铺首页banner图
  463. hasmore: true, //有无更多
  464. tips_show: false, //三点分享更多按钮
  465. tips: [{
  466. tips_img: imgUrl + 'store/shouye.png',
  467. tips_name: '首页',
  468. tips_link: '/pages/index/index',
  469. type: 'switchTab'
  470. }, {
  471. tips_img: imgUrl + 'store/leimupinleifenleileibie1.png',
  472. tips_name: '分类',
  473. tips_link: '/pages/category/category',
  474. type: 'switchTab'
  475. }, {
  476. tips_img: imgUrl + "store/shape.png",
  477. tips_name: '分享',
  478. tips_link: '',
  479. type: 'share'
  480. }, {
  481. tips_img: imgUrl + 'store/cart.png',
  482. tips_name: '购物车',
  483. tips_link: '/pages/cart/cart',
  484. type: 'switchTab'
  485. }, {
  486. tips_img: imgUrl + 'store/gerenzhongxin.png',
  487. tips_name: '个人中心',
  488. tips_link: '/pages/user/user',
  489. type: 'switchTab'
  490. }],
  491. transparent_mask: false,
  492. key: "",
  493. index: -1,
  494. scrollTopH: 0,
  495. bottomSateArea: getApp().globalData.bottomSateArea, //iphone手机底部一条黑线的高度
  496. shareWrap2: false, // 展示分享弹层
  497. iswx: false,
  498. share_img_h5: '',
  499. pageSize: 10,
  500. client: '',
  501. deco_data: [], //首页装修数据
  502. home_is_show_top_cat: false, //是否显示顶部分类,默认显示
  503. home_page_img: [],
  504. width: '',
  505. height: '',
  506. is_show_top: false,
  507. shop_open:true,
  508. is_load_home_dec:false,
  509. idx:''
  510. };
  511. },
  512. components: {
  513. HomeDeco
  514. },
  515. props: {},
  516. onShow() {
  517. this.venderDetail(); //店铺详情
  518. this.iswx = this.$isWeiXinBrower();
  519. },
  520. computed: {
  521. ...mapState(['userCenterData','hasLogin'])
  522. },
  523. async onLoad(options){
  524. if (options.scene) {
  525. let url = decodeURIComponent(options.scene);
  526. if (getSceneParam(url, 'vid')) {
  527. options.vid = getSceneParam(url, 'vid');
  528. }
  529. }
  530. let sc_name = options.sc_name;
  531. let vid = options.vid;
  532. this.searchVal = sc_name,
  533. this.vid = vid
  534. // this.isCollection(); //是否已被收藏
  535. await this.getShopHome(); //获取店铺首页装修
  536. this.iswx = this.$isWeiXinBrower();
  537. if (options.good_list) {
  538. if (this.no_content_decor) {
  539. this.tabItemTap(0)
  540. } else {
  541. this.tabItemTap(1)
  542. }
  543. }
  544. },
  545. // 加载更多
  546. onReachBottom(e) {
  547. let {
  548. all_commodities,
  549. new_products,
  550. coupon,
  551. fenlei,
  552. hasmore
  553. } = this;
  554. if (hasmore) {
  555. if (all_commodities) {
  556. this.getProductList(); //全部商品列表
  557. } else if (new_products) {
  558. this.getNewProductList(); //获取商品上新数据
  559. } else if (coupon) {
  560. this.getCouponList(); //获取优惠券列表
  561. } else if (fenlei) {
  562. this.getShopClassify(); //获取店铺分类
  563. // this.getRecommendProductList();
  564. }
  565. }
  566. },
  567. /**
  568. * 用户点击右上角分享
  569. */
  570. onShareAppMessage: function(options) {
  571. return {
  572. title: this.vender_detail.storeName,
  573. path: this.vender_detail.shareLink,
  574. imageUrl: this.vender_detail.storeLogoUrl
  575. };
  576. },
  577. methods: {
  578. ...mapMutations(['saveChatBaseInfo']),
  579. go_back() {
  580. uni.navigateBack({});
  581. },
  582. tokefu(){
  583. if(!this.hasLogin){
  584. this.$api.msg('请登录')
  585. return
  586. }
  587. let chatBaseInfo = {};
  588. chatBaseInfo.memberId = this.userCenterData.memberId;
  589. chatBaseInfo.memberName = this.userCenterData.memberName;
  590. chatBaseInfo.memberNickName = this.userCenterData.memberNickName;
  591. chatBaseInfo.memberAvatar = this.userCenterData.memberAvatar;
  592. chatBaseInfo.storeId = this.vender_detail.storeId;
  593. chatBaseInfo.storeLogo = this.vender_detail.storeLogoUrl;
  594. chatBaseInfo.storeName = this.vender_detail.storeName;
  595. chatBaseInfo.source = 'store';
  596. chatBaseInfo.showData = {}
  597. this.saveChatBaseInfo(chatBaseInfo);
  598. uni.navigateTo({
  599. url:'/pages/chat/detail?vid=' + this.vid
  600. })
  601. },
  602. //三点更多分享
  603. moreTips() {
  604. let {
  605. tips_show
  606. } = this;
  607. this.tips_show = !tips_show,
  608. this.transparent_mask = true
  609. },
  610. //隐藏透明遮罩层
  611. hideMask() {
  612. this.transparent_mask = false,
  613. this.tips_show = false
  614. },
  615. //三点更多分享
  616. moreTips() {
  617. let {
  618. tips_show
  619. } = this;
  620. this.tips_show = !tips_show,
  621. this.transparent_mask = true
  622. },
  623. //隐藏透明遮罩层
  624. hideMask() {
  625. this.transparent_mask = false,
  626. this.tips_show = false
  627. },
  628. //三点分享链接
  629. handleLink(e) {
  630. let link = e.currentTarget.dataset.link;
  631. let type = e.currentTarget.dataset.type;
  632. if (type != 'share') {
  633. uni.switchTab({
  634. url: link
  635. });
  636. } else { //点击了分享
  637. // #ifndef MP-WEIXIN
  638. this.shareWrap2 = true;
  639. this.$weiXinBrowerShare(1, {
  640. title: this.vender_detail.storeName,
  641. desc: '刚刚看到一个不错的店铺,快来看看~',
  642. link: this.vender_detail.shareLink,
  643. imgUrl: this.vender_detail.storeLogoUrl,
  644. });
  645. // #endif
  646. }
  647. this.tips_show = false
  648. },
  649. //分享 type:分享类型 0 图文 2图片,scene 场景 WXSceneSession:分享朋友 WXSenceTimeline:分享朋友圈
  650. sldShare: function(type, scene) {
  651. let shareData = {};
  652. if (type == 0) {
  653. shareData.href = this.vender_detail.shareLink;
  654. shareData.title = this.vender_detail.storeName;
  655. shareData.summary = '刚刚看到一个不错的店铺,快来看看~';
  656. shareData.imageUrl = this.vender_detail.storeLogoUrl;
  657. } else if (type == 2) {
  658. shareData.imageUrl = this.storeLogoUrl;
  659. }
  660. this.$weiXinAppShare(type, scene, shareData);
  661. this.closeShare(); //关闭分享
  662. },
  663. closeShare() {
  664. this.shareWrap2 = false
  665. },
  666. downloadImg() {
  667. let {
  668. shareImg
  669. } = this;
  670. wx.downloadFile({
  671. url: shareImg,
  672. success: res => {
  673. if (res.statusCode == 200) {
  674. wx.saveImageToPhotosAlbum({
  675. filePath: res.tempFilePath,
  676. success: result => {
  677. if (result.errMsg == 'saveImageToPhotosAlbum:ok') {
  678. wx.showToast({
  679. title: '已保存到本地',
  680. })
  681. this.closeShare();
  682. } else {
  683. wx.showToast({
  684. title: '保存失败',
  685. icon: 'none'
  686. })
  687. }
  688. }
  689. })
  690. } else {
  691. wx.showToast({
  692. title: '下载失败',
  693. icon: 'none'
  694. })
  695. }
  696. }
  697. })
  698. },
  699. prevImg() {
  700. wx.previewImage({
  701. urls: [this.shareImg],
  702. })
  703. },
  704. //获取滚动条的当前位置
  705. onPageScroll: function(e) {
  706. this.tips_show=false
  707. this.scrollTopH = e.scrollTop;
  708. if (e.scrollTop > 170) {
  709. this.searchShow = true
  710. } else if (this.fenlei && e.scrollTop > 80) {
  711. this.searchShow = true
  712. } else {
  713. this.searchShow = false
  714. }
  715. },
  716. //点击去搜索
  717. goSearch() {
  718. uni.navigateTo({
  719. url: '/pages/store/productSearch?vid=' + this.vid
  720. });
  721. },
  722. //清空搜索输入框内容
  723. cancel() {
  724. this.searchVal = '';
  725. this.searchShow = false;
  726. this.searchVal = '',
  727. this.searchShow = false
  728. this.getProductList();
  729. },
  730. //去商品介绍页
  731. handleStoreIntroduction(e) {
  732. let vid = e.currentTarget.dataset.vid;
  733. uni.navigateTo({
  734. url: '/pages/store/storeIntroduction?vid=' + vid
  735. });
  736. },
  737. //获取店铺首页装修
  738. async getShopHome() {
  739. // #ifdef H5
  740. this.client = 'h5'
  741. // #endif
  742. // #ifdef APP-PLUS
  743. switch (uni.getSystemInfoSync().platform) {
  744. case 'android':
  745. this.client = 'android'
  746. break;
  747. case 'ios':
  748. this.client = 'ios'
  749. break;
  750. default:
  751. break;
  752. }
  753. // #endif
  754. // #ifdef MP
  755. this.client = 'weixinXcx'
  756. // #endif
  757. let that = this;
  758. let {
  759. vid
  760. } = that;
  761. if (vid) {
  762. let param = {};
  763. param.data = {}
  764. param.data.storeId = vid
  765. param.data.os = this.client
  766. param.url = 'v3/system/front/deco/storeIndex';
  767. await this.$request(param).then(res => {
  768. this.is_load_home_dec = true
  769. if (res.state == 200) {
  770. if (res.data.data != '' && res.data.data) {
  771. this.deco_data = JSON.parse(res.data.data)
  772. this.no_content_decor = false
  773. } else {
  774. // this.tabItemTap(0)
  775. this.no_content_decor = true
  776. this.deco_data = null
  777. this.all_commodities = true
  778. this.getProductList()
  779. }
  780. if (res.data.showTip != null) {
  781. this.home_page_img = JSON.parse(res.data.showTip)
  782. const {
  783. windowWidth,
  784. windowHeight
  785. } = uni.getSystemInfoSync();
  786. this.width = this.home_page_img[0].width || windowWidth * 0.75 * 1.8;
  787. this.height = this.home_page_img[0].height || windowHeight * 0.56 * 1.8;
  788. }
  789. } else if(res.state == 257){
  790. this.shop_open=false
  791. } else {
  792. this.$api.msg(res.msg);
  793. }
  794. }).catch((e) => {
  795. //异常处理
  796. })
  797. }
  798. },
  799. // 获取全部商品列表
  800. getProductList() {
  801. let that = this
  802. let commodNavIdx = that.commodNavIdx
  803. let isAscendingOrder = that.isAscendingOrder
  804. let param = {}
  805. param.data = {}
  806. param.url = 'v3/goods/front/goods/goodsList'
  807. if (that.searchVal) {
  808. param.data.keyword = that.searchVal;
  809. }
  810. // isAscendingOrder
  811. param.data.current = that.current
  812. param.data.pageSize = this.pageSize
  813. if (commodNavIdx == 2) {
  814. if (isAscendingOrder == 1) {
  815. param.data.sort = 3
  816. } else {
  817. param.data.sort = 4
  818. }
  819. } else {
  820. param.data.sort = commodNavIdx
  821. }
  822. param.data.storeId = that.vid
  823. that.$request(param).then(res => {
  824. if (res.state == 200) {
  825. if (res.data.list.length == 0) {
  826. that.no_content_productList = true
  827. } else {
  828. if (that.current == 1) {
  829. that.productList = res.data.list
  830. } else {
  831. that.productList = that.productList.concat(res.data.list);
  832. }
  833. let hasmore = this.$checkPaginationHasMore(res.data.pagination); //是否还有数据
  834. if (hasmore) {
  835. that.current++;
  836. }
  837. that.hasmore = hasmore
  838. }
  839. }
  840. })
  841. },
  842. // 获取商品上新列表
  843. getNewProductList() {
  844. let that = this
  845. let param = {}
  846. param.data = {}
  847. param.url = 'v3/goods/front/goods/newGoods'
  848. param.data.pageSize = that.pageSize
  849. param.data.current = that.current
  850. param.data.storeId = that.vid
  851. if (this.searchVal) {
  852. data.keyword = this.searchVal;
  853. }
  854. that.$request(param).then(res => {
  855. if (res.state == 200) {
  856. if (res.data.list.length == 0) {
  857. that.no_content_newProductList = true
  858. } else {
  859. if (that.current == 1) {
  860. that.new_productList = res.data.list
  861. } else {
  862. that.new_productList = that.new_productList.concat(res.data.list);
  863. }
  864. let hasmore = this.$checkPaginationHasMore(res.data.pagination); //是否还有数据
  865. if (hasmore) {
  866. that.current++;
  867. }
  868. that.hasmore = hasmore
  869. }
  870. } else {
  871. this.$api.msg(res.msg)
  872. }
  873. })
  874. },
  875. //优惠券列表
  876. getCouponList() {
  877. let that = this
  878. let param = {}
  879. param.data = {}
  880. param.url = 'v3/promotion/front/coupon/storeCouponList'
  881. param.data.pageSize = that.pageSize
  882. param.data.current = that.current
  883. param.data.storeId = that.vid
  884. that.$request(param).then(res => {
  885. if (res.state == 200) {
  886. if (res.data.list.length == 0) {
  887. that.no_content_coupon = true
  888. } else {
  889. if (that.current == 1) {
  890. that.couponList = res.data.list
  891. } else {
  892. that.couponList = that.couponList.concat(res.data.list);
  893. }
  894. let hasmore = this.$checkPaginationHasMore(res.data.pagination); //是否还有数据
  895. if (hasmore) {
  896. that.current++;
  897. }
  898. that.hasmore = hasmore
  899. }
  900. } else {
  901. this.$api.msg(res.msg)
  902. }
  903. })
  904. },
  905. //领取优惠券
  906. receive(e) {
  907. let that = this
  908. let param = {}
  909. param.data = {}
  910. param.url = 'v3/promotion/front/coupon/receiveCoupon'
  911. param.data.couponId = e.currentTarget.dataset.couponid
  912. that.$request(param).then(res => {
  913. if (res.state == 200) {
  914. uni.showToast({
  915. title: '领取成功',
  916. icon: 'none',
  917. duration: 1500 //持续的时间
  918. });
  919. that.getCouponList();
  920. } else {
  921. this.$api.msg(res.msg)
  922. }
  923. })
  924. },
  925. //优惠券规则展开
  926. handleOpen() {
  927. this.conpon_show = !this.conpon_show
  928. },
  929. //选项卡切换
  930. tabItemTap(idx) {
  931. //记录上次点击的对象的序号
  932. var oldidx = this.currentTabIndex; //记录当前点击的对象的序号
  933. var currentIdx = idx;
  934. this.hasmore = true
  935. if (oldidx == currentIdx) {
  936. var isSelect = this.isSelect
  937. this.currentTabIndex = currentIdx
  938. this.isSelect = !isSelect
  939. } else {
  940. this.currentTabIndex = currentIdx
  941. this.isSelect = true
  942. if (this.no_content_decor) {
  943. //无装修数据时:不显示装修模块,从全部商品开始显示
  944. if (currentIdx == 0) {
  945. this.home_decoration = true
  946. this.homePage = true
  947. this.coupon = false
  948. this.all_commodities = this.no_content_decor ? true : false
  949. this.new_products = false
  950. this.fenlei = false
  951. this.currentTabIndex = '0'
  952. this.current = '1'
  953. this.getProductList(); //全部商品列表
  954. }
  955. if (currentIdx == 1) {
  956. this.home_decoration = false
  957. this.new_products = true
  958. this.all_commodities = false
  959. this.coupon = false
  960. this.current = '1'
  961. this.getNewProductList(); //获取商品上新数据
  962. } else if (currentIdx == 2) {
  963. this.home_decoration = false
  964. this.coupon = true
  965. this.all_commodities = false
  966. this.new_products = false
  967. this.current = '1'
  968. this.getCouponList(); //获取优惠券列表
  969. } else {
  970. this.home_decoration = true
  971. this.all_commodities = true
  972. this.new_products = false
  973. this.coupon = false
  974. this.current = '1'
  975. }
  976. } else {
  977. //有装修数据时,默认显示装修模块
  978. if (currentIdx == 0) {
  979. this.home_decoration = true
  980. this.new_products = false
  981. this.all_commodities = false
  982. this.coupon = false
  983. this.current = '1'
  984. }
  985. if (currentIdx == 1) {
  986. this.home_decoration = false
  987. this.all_commodities = true
  988. this.new_products = false
  989. this.coupon = false
  990. this.current = '1'
  991. this.getProductList(); //全部商品列表
  992. } else if (currentIdx == 2) {
  993. this.home_decoration = false
  994. this.new_products = true
  995. this.all_commodities = false
  996. this.coupon = false
  997. this.current = '1'
  998. this.getNewProductList(); //获取商品上新数据
  999. } else if (currentIdx == 3) {
  1000. this.home_decoration = false
  1001. this.coupon = true
  1002. this.all_commodities = false
  1003. this.new_products = false
  1004. this.current = '1'
  1005. this.getCouponList(); //获取优惠券列表
  1006. } else {
  1007. this.home_decoration = true
  1008. this.all_commodities = false
  1009. this.new_products = false
  1010. this.coupon = false
  1011. this.current = '1'
  1012. }
  1013. }
  1014. }
  1015. if(currentIdx==4){
  1016. }
  1017. },
  1018. //底部tabbar的切换
  1019. hanbleTab(e) {
  1020. this.hideMask();
  1021. this.current = 1
  1022. //切换时回到页面的顶部
  1023. if (uni.pageScrollTo) {
  1024. //判断这个方法是否可用
  1025. uni.pageScrollTo({
  1026. scrollTop: 0
  1027. });
  1028. } else {
  1029. uni.showModal({
  1030. title: '提示',
  1031. content: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
  1032. });
  1033. }
  1034. this.hasmore = true
  1035. //记录上次点击的对象的序号
  1036. var oldidx = this.tabcurrentTabIndex; //记录当前点击的对象的序号
  1037. var currentIdx = e.currentTarget.dataset.idx;
  1038. if (oldidx == currentIdx) {
  1039. var tabisSelect = this.tabisSelect;
  1040. this.tabcurrentTabIndex = currentIdx
  1041. this.tabisSelect = !tabisSelect
  1042. } else {
  1043. if (currentIdx != 3) {
  1044. this.tabcurrentTabIndex = currentIdx
  1045. this.tabisSelect = true
  1046. }
  1047. if (currentIdx == 0) {
  1048. this.home_decoration = true
  1049. this.homePage = true
  1050. this.coupon = false
  1051. this.all_commodities = this.no_content_decor ? true : false
  1052. this.new_products = false
  1053. this.fenlei = false
  1054. this.currentTabIndex = '0'
  1055. this.current = '1'
  1056. } else if (currentIdx == 1) {
  1057. this.home_decoration = false
  1058. this.homePage = false
  1059. this.coupon = false
  1060. this.all_commodities = true
  1061. this.new_products = false
  1062. this.fenlei = false
  1063. this.current = '1'
  1064. this.getProductList(); //全部商品列表
  1065. } else if (currentIdx == 2) {
  1066. this.homePage = true
  1067. this.coupon = false
  1068. this.all_commodities = false
  1069. this.new_products = false
  1070. this.fenlei = true
  1071. this.getShopClassify(); //获取店铺分类
  1072. }else {
  1073. // this.getRecommendProductList(); //获取店铺推荐商品
  1074. this.homePage = false
  1075. this.coupon = false
  1076. this.all_commodities = false
  1077. this.new_products = false
  1078. this.fenlei = false
  1079. }
  1080. }
  1081. },
  1082. //商品列表tab切换
  1083. commoditiesNav(e) {
  1084. this.hasmore = true //切换时回到页面的顶部
  1085. if (uni.pageScrollTo) {
  1086. //判断这个方法是否可用
  1087. uni.pageScrollTo({
  1088. scrollTop: 0
  1089. });
  1090. } else {
  1091. uni.showModal({
  1092. title: '提示',
  1093. content: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
  1094. });
  1095. }
  1096. let that = this,
  1097. commodNavIdx = e.currentTarget.dataset.index;
  1098. that.commodNavIdx = commodNavIdx
  1099. that.current = 1
  1100. if (commodNavIdx == 2) {
  1101. that.isAscendingOrder = that.isAscendingOrder == 1 ? 0 : 1
  1102. }
  1103. that.getProductList();
  1104. },
  1105. // 获取店铺分类
  1106. getShopClassify() {
  1107. let that = this,
  1108. vid = that.vid;
  1109. let param = {}
  1110. param.data = {}
  1111. param.data.storeId = vid
  1112. param.url = 'v3/seller/front/store/storeCategory'
  1113. this.$request(param).then(res => {
  1114. if (res.state == 200) {
  1115. if (res.data.length == 0) {
  1116. this.no_content_fenlei = true
  1117. } else {
  1118. //如果是初次加载,直接赋值,否则数据追加
  1119. if (that.current == '1') {
  1120. let classifyList = res.data;
  1121. this.classifyList = classifyList
  1122. } else {
  1123. let classifyList = res.data;
  1124. this.classifyList = that.classifyList.concat(classifyList)
  1125. }
  1126. }
  1127. } else {
  1128. this.$api.msg(res.msg);
  1129. }
  1130. }).catch((e) => {
  1131. //异常处理
  1132. })
  1133. },
  1134. //获取店铺推荐商品
  1135. // getRecommendProductList() {
  1136. // let that = this,
  1137. // vid = that.vid;
  1138. // let data = {
  1139. // page: 10,
  1140. // pn: that.pn,
  1141. // vid: vid,
  1142. // };
  1143. // uni.request({
  1144. // url: getApp().globalData.ser_url + '/index.php?app=store&mod=getWapRecGoods',
  1145. // method: 'POST',
  1146. // data,
  1147. // header: {
  1148. // 'Content-Type': 'application/x-www-form-urlencoded'
  1149. // },
  1150. // success: function(res) {
  1151. // if (res.data.code == 200) {
  1152. // if (res.data.datas.recomment_goods.goods_list.length == 0) {
  1153. // that.setData({
  1154. // no_recomment_goods: true
  1155. // });
  1156. // } else {
  1157. // //如果是初次加载,直接赋值,否则数据追加
  1158. // if (that.pn == '1') {
  1159. // let recommend_product = res.data.datas.recomment_goods;
  1160. // let recommend_productList = recommend_product !== null ? recommend_product.goods_list : [];
  1161. // that.setData({
  1162. // recommend_product: recommend_product,
  1163. // recommend_productList
  1164. // });
  1165. // } else {
  1166. // let recommend_productList = res.data.datas.recomment_goods.goods_list;
  1167. // that.setData({
  1168. // recommend_productList: that.recommend_productList.concat(recommend_productList)
  1169. // });
  1170. // }
  1171. // if (res.data.hasmore) {
  1172. // that.pn++;
  1173. // that.setData({
  1174. // hasmore: true
  1175. // });
  1176. // } else {
  1177. // that.setData({
  1178. // hasmore: false
  1179. // });
  1180. // }
  1181. // }
  1182. // }
  1183. // },
  1184. // error: function(err) {},
  1185. // complete: function() { // wx.hideLoading()
  1186. // }
  1187. // });
  1188. // },
  1189. //去商品分类列表
  1190. handleProClas(e) {
  1191. let stc_id = e.currentTarget.dataset.stc_id; // let stc_name = e.currentTarget.dataset.stc_name;
  1192. uni.navigateTo({
  1193. url: '/pages/store/productSearch?storeInnerLabelId=' + stc_id + '&vid=' + this.vid
  1194. });
  1195. },
  1196. //布局切换
  1197. layoutSwitch() {
  1198. this.grid_list = !this.grid_list
  1199. },
  1200. // 商品详情
  1201. goods_detail(productId, goodsId) {
  1202. uni.navigateTo({
  1203. url: '/pages/product/detail?productId=' + productId + '&goodsId=' + goodsId
  1204. })
  1205. },
  1206. // 商铺首页详情
  1207. venderDetail(e) {
  1208. let that = this;
  1209. let {
  1210. vid
  1211. } = that;
  1212. if (vid) {
  1213. let param = {};
  1214. param.data = {}
  1215. param.data.storeId = vid
  1216. param.url = 'v3/seller/front/store/detail';
  1217. this.$request(param).then(res => {
  1218. if (res.state == 200) {
  1219. let vender_detail = res.data;
  1220. this.vender_detail = vender_detail
  1221. this.share_img = vender_detail.storeLogoUrl
  1222. this.share_name = vender_detail.storeName
  1223. this.store_banner = vender_detail.storeBackdropUrl
  1224. this.share_img_h5 = 'data:image/png;base64,' + vender_detail.storeQRCode
  1225. this.is_favorites = vender_detail.isFollow
  1226. this.$weiXinBrowerShare(1, {
  1227. title: this.vender_detail.storeName,
  1228. desc: '刚刚看到一个不错的店铺,快来看看~',
  1229. link: this.vender_detail.shareLink,
  1230. imgUrl: this.vender_detail.storeLogoUrl,
  1231. });
  1232. } else {
  1233. this.$api.msg(res.msg);
  1234. }
  1235. }).catch((e) => {
  1236. //异常处理
  1237. })
  1238. }
  1239. },
  1240. //进入店铺首页
  1241. handleShopHomePage() {
  1242. uni.navigateTo({
  1243. url: '/pages/shopHomePage/shopHomePage'
  1244. });
  1245. },
  1246. // 收藏-取消收藏
  1247. collect(e) {
  1248. let that = this;
  1249. let {
  1250. vid,
  1251. is_favorites
  1252. } = that;
  1253. let param = {};
  1254. param.data = {}
  1255. param.data.storeIds = vid
  1256. param.data.isCollect = is_favorites == 'false' ? 'true' : 'false'
  1257. param.url = 'v3/member/front/followStore/edit';
  1258. param.method = 'POST'
  1259. this.$request(param).then(res => {
  1260. if (res.state == 200) {
  1261. this.$api.msg(res.msg);
  1262. this.is_favorites = this.is_favorites == 'false' ? 'true' : 'false';
  1263. this.vender_detail.followNumber = res.data.followNumber;
  1264. } else {
  1265. this.$api.msg(res.msg);
  1266. }
  1267. }).catch((e) => {
  1268. //异常处理
  1269. })
  1270. },
  1271. //获取搜索框内的值
  1272. searchInput(e) {
  1273. this.searchVal = e.detail.value
  1274. this.getProductList();
  1275. },
  1276. //搜索
  1277. search() {
  1278. this.getProductList();
  1279. },
  1280. getmore() {
  1281. let that = this;
  1282. if (!that.flag && that.search_hasmore) {
  1283. that.search();
  1284. }
  1285. },
  1286. back() {
  1287. this.searchList = []
  1288. this.show = false
  1289. this.searchPn = 1;
  1290. this.search_hasmore = true;
  1291. }
  1292. }
  1293. };
  1294. </script>
  1295. <style>
  1296. /* pages/shopHomePage/shopHomePage.wxss */
  1297. page {
  1298. width: 100%;
  1299. height: 100%;
  1300. background-color: #F5F5F5;
  1301. position: relative;
  1302. margin: 0 auto;
  1303. }
  1304. .shop_homepage {
  1305. width: 750rpx;
  1306. background: #F5F5F5;
  1307. height: 100%;
  1308. position: absolute;
  1309. }
  1310. /* 透明遮罩层 */
  1311. .transparent_mask {
  1312. width: 100%;
  1313. height: 100%;
  1314. position: fixed;
  1315. background-color: #FFFFFF;
  1316. top: 0;
  1317. left: 0;
  1318. opacity: 0;
  1319. z-index: 10;
  1320. }
  1321. .content {
  1322. width: 100%;
  1323. /* height: 754rpx; */
  1324. /* background: black; */
  1325. background-size: 100%;
  1326. }
  1327. /* 搜索框 */
  1328. .search {
  1329. width: 750rpx;
  1330. height: 88rpx;
  1331. display: flex;
  1332. align-items: center;
  1333. justify-content: space-between;
  1334. padding: 0 35rpx;
  1335. box-sizing: border-box;
  1336. position: fixed;
  1337. /* #ifndef APP-PLUS */
  1338. top: 0;
  1339. /* #endif */
  1340. /* #ifdef APP-PLUS */
  1341. top: var(--status-bar-height);
  1342. /* #endif */
  1343. z-index: 10;
  1344. }
  1345. .search_input {
  1346. width: 78%;
  1347. height: 65rpx;
  1348. display: flex;
  1349. align-items: center;
  1350. padding-left: 20rpx;
  1351. background: rgba(248, 248, 248, 1);
  1352. border-radius: 33px;
  1353. }
  1354. .search_input1 {
  1355. width: 78%;
  1356. height: 65rpx;
  1357. background: rgba(255, 255, 255, 1);
  1358. border: 2rpx solid rgba(255, 12, 12, 1);
  1359. border-radius: 33rpx;
  1360. }
  1361. .search_input image {
  1362. width: 30rpx;
  1363. height: 30rpx;
  1364. margin-right: 20rpx;
  1365. }
  1366. .search_input input {
  1367. font-size: 28rpx !important;
  1368. }
  1369. .search_input .cancel {
  1370. width: 47rpx;
  1371. height: 47rpx;
  1372. }
  1373. .search input {
  1374. width: 500rpx;
  1375. font-size: 24rpx;
  1376. font-family: PingFang SC;
  1377. font-weight: 400;
  1378. color: rgba(148, 148, 148, 1);
  1379. line-height: 32rpx;
  1380. }
  1381. /* 三点更多分享 */
  1382. .more_tips {
  1383. position: relative;
  1384. }
  1385. .more {
  1386. width: 50rpx;
  1387. height: 50rpx;
  1388. }
  1389. .triangle-up {
  1390. position: absolute;
  1391. right: 15rpx;
  1392. width: 0;
  1393. height: 0;
  1394. border-left: 15rpx solid transparent;
  1395. border-right: 15rpx solid transparent;
  1396. border-bottom: 20rpx solid #fcfcfc;
  1397. /* transform: rotate(120deg); */
  1398. transform: rotate(0deg);
  1399. box-shadow: -2rpx 2rpx -1rpx 0rpx rgba(102, 102, 102, 0.1);
  1400. z-index: 21;
  1401. }
  1402. .tips {
  1403. position: absolute;
  1404. z-index: 20;
  1405. top: 77rpx;
  1406. right: -15rpx;
  1407. width: 226rpx;
  1408. background: rgba(255, 255, 255, 1);
  1409. box-shadow: 0px 0px 10rpx 0px rgba(102, 102, 102, 0.2);
  1410. opacity: 0.94;
  1411. border-radius: 15rpx;
  1412. display: flex;
  1413. flex-direction: column;
  1414. }
  1415. .tips_pre {
  1416. width: 100%;
  1417. height: 88rpx;
  1418. display: flex;
  1419. align-items: center;
  1420. border-bottom: #e6e6e6;
  1421. padding-left: 20rpx;
  1422. box-sizing: border-box;
  1423. }
  1424. button::after {
  1425. border: none;
  1426. }
  1427. button[plain] {
  1428. border: none;
  1429. }
  1430. .tips_pre image {
  1431. width: 50rpx;
  1432. height: 50rpx;
  1433. margin-right: 8rpx;
  1434. }
  1435. .tips_pre text {
  1436. font-size: 26rpx;
  1437. font-family: PingFang SC;
  1438. font-weight: 500;
  1439. color: rgba(51, 51, 51, 1);
  1440. line-height: 32rpx;
  1441. }
  1442. /* 搜索框 */
  1443. .search1 {
  1444. width: 750rpx;
  1445. height: 88rpx;
  1446. display: flex;
  1447. align-items: center;
  1448. justify-content: space-between;
  1449. padding: 0 35rpx;
  1450. box-sizing: border-box;
  1451. position: fixed;
  1452. /* #ifdef APP-PLUS */
  1453. top: var(--status-bar-height);
  1454. /* #endif */
  1455. /* #ifndef APP-PLUS */
  1456. top: 0;
  1457. /* #endif */
  1458. z-index: 10;
  1459. background: #FFFFFF;
  1460. }
  1461. .search1 .search_input {
  1462. width: 77%;
  1463. height: 65rpx;
  1464. border: 2rpx solid rgba(225, 37, 27, 1);
  1465. border-radius: 33rpx;
  1466. display: flex;
  1467. align-items: center;
  1468. padding-left: 20rpx;
  1469. background: #FFFFFF;
  1470. }
  1471. .search1 .search_input image {
  1472. width: 30rpx;
  1473. height: 30rpx;
  1474. margin-right: 20rpx;
  1475. }
  1476. .search1 .search_input .cancel {
  1477. width: 47rpx;
  1478. height: 47rpx;
  1479. }
  1480. .search1 input {
  1481. width: 500rpx;
  1482. font-size: 24rpx;
  1483. font-family: PingFang SC;
  1484. font-weight: 400;
  1485. color: rgba(148, 148, 148, 1);
  1486. line-height: 32rpx;
  1487. }
  1488. .search1 .search_text {
  1489. font-size: 30rpx;
  1490. font-family: PingFang SC;
  1491. font-weight: 500;
  1492. color: rgba(45, 45, 45, 1);
  1493. line-height: 32rpx;
  1494. }
  1495. /* 店铺详情 */
  1496. .shop_des {
  1497. width: 100%;
  1498. color: rgba(255, 255, 255, 1);
  1499. /* #ifndef APP-PLUS */
  1500. padding-top: 88rpx;
  1501. /* #endif */
  1502. /* #ifdef APP-PLUS */
  1503. padding-top: calc(var(--status-bar-height) + 88rpx);
  1504. /* #endif */
  1505. box-sizing: border-box;
  1506. background-size: 100%;
  1507. }
  1508. .des_top {
  1509. width: 100%;
  1510. /* height: 449rpx; */
  1511. height: 290rpx;
  1512. }
  1513. .shop_info {
  1514. width: 100%;
  1515. display: flex;
  1516. align-items: center;
  1517. justify-content: space-between;
  1518. padding: 31rpx 20rpx 39rpx;
  1519. box-sizing: border-box;
  1520. }
  1521. .info_left {
  1522. width: 100%;
  1523. display: flex;
  1524. align-items: center;
  1525. }
  1526. .info_left .avat {
  1527. width: 80rpx;
  1528. height: 80rpx;
  1529. border-radius: 50%;
  1530. margin-right: 16rpx;
  1531. }
  1532. .info_des {
  1533. display: flex;
  1534. flex-direction: column;
  1535. justify-content: center;
  1536. align-items: space-between;
  1537. }
  1538. .info_top {
  1539. display: flex;
  1540. align-items: center;
  1541. }
  1542. .info_top text:nth-of-type(1) {
  1543. font-size: 30rpx;
  1544. font-family: PingFang SC;
  1545. font-weight: bold;
  1546. color: rgba(255, 255, 255, 1);
  1547. line-height: 32rpx;
  1548. }
  1549. .info_top image {
  1550. width: 40rpx;
  1551. height: 40rpx;
  1552. margin-right: 14rpx;
  1553. }
  1554. .info_top text:nth-of-type(2) {
  1555. width: 60rpx;
  1556. height: 30rpx;
  1557. background: rgba(252, 28, 28, 1);
  1558. border-radius: 15rpx;
  1559. font-size: 24rpx;
  1560. font-family: PingFang SC;
  1561. font-weight: 400;
  1562. color: rgba(255, 255, 255, 1);
  1563. line-height: 30rpx;
  1564. text-align: center;
  1565. }
  1566. .info_bot {
  1567. display: flex;
  1568. align-items: center;
  1569. margin-top: 13rpx;
  1570. }
  1571. .info_bot image {
  1572. width: 40rpx;
  1573. height: 40rpx;
  1574. margin-right: 8rpx;
  1575. }
  1576. .info_bot text {
  1577. font-size: 24rpx;
  1578. font-family: PingFang SC;
  1579. font-weight: 500;
  1580. color: rgba(255, 255, 255, 1);
  1581. line-height: 32rpx;
  1582. }
  1583. .info_right {
  1584. width: 110rpx;
  1585. height: 50rpx;
  1586. background: linear-gradient(-50deg, rgba(252, 28, 28, 1) 0%, rgba(255, 104, 3, 1) 100%);
  1587. box-shadow: 0rpx 3rpx 8rpx 0rpx rgba(252, 28, 28, 0.2);
  1588. border-radius: 25rpx;
  1589. font-size: 26rpx;
  1590. font-family: PingFang SC;
  1591. font-weight: 500;
  1592. color: rgba(255, 255, 255, 1);
  1593. display: flex;
  1594. align-items: center;
  1595. justify-content: center;
  1596. }
  1597. .info_right1 {
  1598. width: 110rpx;
  1599. height: 50rpx;
  1600. border: 4rpx solid rgba(255, 255, 255, 1);
  1601. box-shadow: 0rpx 3rpx 8rpx 0rpx rgba(252, 28, 28, 0.2);
  1602. border-radius: 25rpx;
  1603. font-size: 20rpx;
  1604. font-family: PingFang SC;
  1605. font-weight: 500;
  1606. color: rgba(255, 255, 255, 1);
  1607. line-height: 32rpx;
  1608. display: flex;
  1609. align-items: center;
  1610. justify-content: center;
  1611. }
  1612. .select_nav {
  1613. width: 100%;
  1614. display: flex;
  1615. justify-content: space-between;
  1616. align-items: center;
  1617. }
  1618. .nav_item {
  1619. width: 100%;
  1620. display: flex;
  1621. flex-direction: column;
  1622. align-items: center;
  1623. }
  1624. .nav_item image {
  1625. width: 64rpx;
  1626. height: 64rpx;
  1627. margin-bottom: 10rpx;
  1628. }
  1629. .nav_item text {
  1630. font-size: 30rpx;
  1631. font-family: PingFang SC;
  1632. font-weight: 400;
  1633. color: rgba(255, 255, 255, 1);
  1634. line-height: 32rpx;
  1635. }
  1636. .des_con {
  1637. /* margin-top: -155rpx; */
  1638. width: 100%;
  1639. /* height: calc(100vh - 449rpx); */
  1640. border-radius: 15rpx;
  1641. position: absolute;
  1642. z-index: 5;
  1643. background: #F5F5F5;
  1644. }
  1645. .des_con1 {
  1646. margin-top: 0;
  1647. width: 100%;
  1648. /* height: calc(100vh - 88rpx); */
  1649. background: rgba(255, 255, 255, 1);
  1650. border-radius: 15rpx;
  1651. position: absolute;
  1652. z-index: 5;
  1653. }
  1654. .all_commodities {
  1655. width: 100%;
  1656. box-sizing: border-box;
  1657. padding-bottom: 98rpx;
  1658. box-sizing: border-box;
  1659. border-radius: 15rpx 15rpx 0 0;
  1660. background: #F5F5F5;
  1661. }
  1662. .all_commodities_nav {
  1663. width: 750rpx;
  1664. height: 90rpx;
  1665. display: flex;
  1666. justify-content: space-between;
  1667. align-items: center;
  1668. padding-left: 40rpx;
  1669. box-sizing: border-box;
  1670. background: #FFFFFF;
  1671. border-radius: 15rpx 15rpx 0 0;
  1672. }
  1673. .nav1 {
  1674. position: fixed;
  1675. /* #ifdef APP-PLUS */
  1676. top: calc(var(--status-bar-height) + 88rpx);
  1677. /* #endif */
  1678. /* #ifndef APP-PLUS */
  1679. top: 88rpx;
  1680. /* #endif */
  1681. z-index: 5;
  1682. }
  1683. .comprehensive {
  1684. display: flex;
  1685. align-items: center;
  1686. }
  1687. .comprehensive .pre_title {
  1688. font-size: 28rpx;
  1689. font-family: PingFang SC;
  1690. color: rgba(45, 45, 45, 1);
  1691. line-height: 32rpx;
  1692. }
  1693. .all_commodities_nav .active {
  1694. font-size: 30rpx;
  1695. font-family: PingFang SC;
  1696. font-weight: bold;
  1697. color: rgba(243, 30, 30, 1);
  1698. line-height: 32rpx;
  1699. }
  1700. .comprehensive image {
  1701. width: 14rpx;
  1702. height: 9rpx;
  1703. margin-left: 10rpx;
  1704. }
  1705. .sales_volume {
  1706. font-size: 28rpx;
  1707. font-family: PingFang SC;
  1708. color: rgba(45, 45, 45, 1);
  1709. line-height: 32rpx;
  1710. display: flex;
  1711. align-items: center;
  1712. }
  1713. .price {
  1714. display: flex;
  1715. }
  1716. .price .pre_title {
  1717. font-size: 28rpx;
  1718. font-family: PingFang SC;
  1719. color: rgba(45, 45, 45, 1);
  1720. line-height: 32rpx;
  1721. }
  1722. .price .active {
  1723. font-size: 30rpx;
  1724. font-family: PingFang SC;
  1725. font-weight: bold;
  1726. color: rgba(243, 30, 30, 1);
  1727. line-height: 32rpx;
  1728. }
  1729. .price_switch {
  1730. display: flex;
  1731. flex-direction: column;
  1732. align-items: center;
  1733. justify-content: center;
  1734. margin-left: 10rpx;
  1735. }
  1736. .price_switch image {
  1737. width: 14rpx;
  1738. height: 9rpx;
  1739. }
  1740. .price_switch image:nth-child(1) {
  1741. margin-bottom: 5rpx;
  1742. }
  1743. .sales_volume {
  1744. font-size: 28rpx;
  1745. font-family: PingFang SC;
  1746. color: rgba(45, 45, 45, 1);
  1747. line-height: 32rpx;
  1748. }
  1749. .layout {
  1750. box-sizing: border-box;
  1751. position: relative;
  1752. padding: 0 26rpx 0 0;
  1753. box-sizing: border-box;
  1754. }
  1755. .layout::before {
  1756. content: "";
  1757. width: 1rpx;
  1758. height: 40rpx;
  1759. position: absolute;
  1760. top: 5rpx;
  1761. left: -26rpx;
  1762. background: rgba(187, 187, 187, 1);
  1763. }
  1764. .layout image {
  1765. width: 50rpx;
  1766. height: 50rpx;
  1767. }
  1768. /* 全部商品列表 */
  1769. /* list布局 */
  1770. .list {
  1771. width: 100%;
  1772. background: #F5F5F5;
  1773. padding: 20rpx 20rpx 102rpx;
  1774. box-sizing: border-box;
  1775. }
  1776. .list .list_pre {
  1777. width: 100%;
  1778. background: rgba(255, 255, 255, 1);
  1779. border-radius: 15rpx;
  1780. margin-right: 20rpx;
  1781. margin-bottom: 20rpx;
  1782. display: flex;
  1783. }
  1784. .list .pre_img {
  1785. width: 294rpx;
  1786. height: 294rpx;
  1787. border-radius: 15rpx 0 0 15rpx;
  1788. }
  1789. .list .pre_img image {
  1790. width: 294rpx;
  1791. height: 294rpx;
  1792. border-radius: 15rpx 0 0 15rpx;
  1793. }
  1794. .list .pre_des {
  1795. width: 394rpx;
  1796. }
  1797. .list .pre_des .time_limited_discount {
  1798. /* width:106rpx; */
  1799. padding: 0 11rpx;
  1800. box-sizing: border-box;
  1801. height: 30rpx;
  1802. /* background:linear-gradient(45deg,rgba(255,108,0,1) 0%,rgba(255,192,83,1) 100%); */
  1803. border-radius: 15rpx;
  1804. font-size: 22rpx;
  1805. font-family: PingFang SC;
  1806. font-weight: 500;
  1807. color: rgba(255, 255, 255, 1);
  1808. display: flex;
  1809. justify-content: center;
  1810. align-items: center;
  1811. margin-top: 18rpx;
  1812. }
  1813. .list .list_pre .des_desc {
  1814. margin-top: 43rpx;
  1815. display: flex;
  1816. justify-content: space-between;
  1817. align-items: center;
  1818. }
  1819. .list .list_pre .des_info {
  1820. font-size: 24rpx;
  1821. font-family: PingFang SC;
  1822. font-weight: 500;
  1823. color: rgba(102, 102, 102, 1);
  1824. width: 310rpx;
  1825. overflow: hidden;
  1826. text-overflow: ellipsis;
  1827. white-space: nowrap;
  1828. height: 35rpx;
  1829. margin-top: 20rpx;
  1830. }
  1831. /* grid网格布局 */
  1832. .all_commodities_list {
  1833. background: #F5F5F5;
  1834. padding: 20rpx 20rpx 0;
  1835. box-sizing: border-box;
  1836. display: flex;
  1837. align-items: center;
  1838. flex-wrap: wrap;
  1839. box-sizing: border-box;
  1840. }
  1841. .product1 {
  1842. margin-top: 90rpx;
  1843. padding-bottom: 4rpx !important;
  1844. }
  1845. .all_commodities_list .list_pre {
  1846. width: 345rpx;
  1847. /* height: 590rpx; */
  1848. background: rgba(255, 255, 255, 1);
  1849. border-radius: 15rpx;
  1850. margin-right: 20rpx;
  1851. margin-bottom: 20rpx;
  1852. padding-bottom: 20rpx;
  1853. }
  1854. .all_commodities_list .list_pre:nth-of-type(2n) {
  1855. margin-right: 0;
  1856. }
  1857. .all_commodities_list .list_pre .pre_img {
  1858. width: 345rpx;
  1859. height: 345rpx;
  1860. border-radius: 15rpx;
  1861. }
  1862. .all_commodities_list .list_pre .pre_img image {
  1863. width: 345rpx;
  1864. height: 345rpx;
  1865. border-radius: 15rpx 15rpx 0 0;
  1866. }
  1867. .all_commodities_list .pre_des {
  1868. padding: 20rpx;
  1869. height: 272rpx;
  1870. box-sizing: border-box;
  1871. display: flex;
  1872. flex-direction: column;
  1873. justify-content: space-between;
  1874. }
  1875. .list .list_pre .pre_des {
  1876. padding: 20rpx 0 20rpx 20rpx;
  1877. box-sizing: border-box;
  1878. display: flex;
  1879. flex-direction: column;
  1880. justify-content: space-between;
  1881. }
  1882. .all_commodities_list .list_pre .des_name {
  1883. width: 310rpx;
  1884. font-size: 28rpx;
  1885. font-family: PingFang SC;
  1886. font-weight: 500;
  1887. color: rgba(45, 45, 45, 1);
  1888. text-overflow: -o-ellipsis-lastline;
  1889. overflow: hidden;
  1890. text-overflow: ellipsis;
  1891. display: -webkit-box;
  1892. -webkit-line-clamp: 2;
  1893. line-clamp: 2;
  1894. -webkit-box-orient: vertical;
  1895. font-weight: bold;
  1896. }
  1897. .list .list_pre .des_name {
  1898. width: 374rpx;
  1899. font-size: 28rpx;
  1900. font-family: PingFang SC;
  1901. font-weight: 500;
  1902. color: rgba(45, 45, 45, 1);
  1903. text-overflow: -o-ellipsis-lastline;
  1904. overflow: hidden;
  1905. text-overflow: ellipsis;
  1906. display: -webkit-box;
  1907. -webkit-line-clamp: 2;
  1908. line-clamp: 2;
  1909. -webkit-box-orient: vertical;
  1910. font-weight: bold;
  1911. }
  1912. .all_commodities_list .list_pre .des_info {
  1913. font-size: 24rpx;
  1914. font-family: PingFang SC;
  1915. font-weight: 500;
  1916. color: rgba(102, 102, 102, 1);
  1917. width: 310rpx;
  1918. overflow: hidden;
  1919. text-overflow: ellipsis;
  1920. white-space: nowrap;
  1921. height: 39rpx;
  1922. margin-top: 9rpx;
  1923. }
  1924. .list .list_pre .des_info {
  1925. font-size: 24rpx;
  1926. font-family: PingFang SC;
  1927. font-weight: 500;
  1928. color: rgba(102, 102, 102, 1);
  1929. width: 374rpx;
  1930. overflow: hidden;
  1931. text-overflow: ellipsis;
  1932. white-space: nowrap;
  1933. height: 39rpx;
  1934. margin-top: 9rpx;
  1935. }
  1936. .discount {
  1937. display: flex;
  1938. }
  1939. .time_limited {
  1940. width: 100%;
  1941. display: flex;
  1942. flex-wrap: wrap;
  1943. }
  1944. .list_pre .time_limited_discount {
  1945. /* width:106rpx; */
  1946. padding: 0 11rpx;
  1947. box-sizing: border-box;
  1948. height: 30rpx;
  1949. /* background:linear-gradient(45deg,rgba(255,108,0,1) 0%,rgba(255,192,83,1) 100%); */
  1950. border-radius: 15rpx;
  1951. font-size: 22rpx;
  1952. font-family: PingFang SC;
  1953. font-weight: 500;
  1954. color: rgba(255, 255, 255, 1);
  1955. line-height: 39rpx;
  1956. display: flex;
  1957. justify-content: center;
  1958. align-items: center;
  1959. margin-top: 15rpx;
  1960. }
  1961. .all_commodities_list .list_pre .des_desc {
  1962. display: flex;
  1963. justify-content: space-between;
  1964. align-items: center;
  1965. margin-top: 31rpx;
  1966. }
  1967. .list_pre .des_desc .commodity_price {
  1968. font-size: 34rpx;
  1969. font-family: PingFang SC;
  1970. font-weight: 500;
  1971. color: rgba(252, 28, 28, 1);
  1972. font-weight: bold;
  1973. }
  1974. .commodity_price {
  1975. font-size: 34rpx;
  1976. font-family: PingFang SC;
  1977. color: rgba(252, 28, 28, 1);
  1978. line-height: 32rpx;
  1979. font-weight: bold;
  1980. }
  1981. .commodity_price text:nth-child(1),
  1982. .commodity_price text:nth-last-child(1) {
  1983. font-size: 22rpx;
  1984. }
  1985. .list_pre .des_desc .salenum {
  1986. font-size: 22rpx;
  1987. font-family: PingFang SC;
  1988. font-weight: 500;
  1989. color: rgba(153, 153, 153, 1);
  1990. }
  1991. /* 商品上新 */
  1992. .new_products {
  1993. width: 100%;
  1994. background: #F5F5F5;
  1995. border-radius: 15rpx 15rpx 0 0;
  1996. padding-bottom: 100rpx;
  1997. box-sizing: border-box;
  1998. }
  1999. .new_products_pre {
  2000. width: 100%;
  2001. padding-top: 20rpx;
  2002. }
  2003. .new_products_pre:nth-of-type(1) {
  2004. width: 100%;
  2005. padding-top: 40rpx;
  2006. }
  2007. .new_products_top {
  2008. display: flex;
  2009. justify-content: center;
  2010. align-items: center;
  2011. }
  2012. .new_products_top .line {
  2013. width: 120rpx;
  2014. height: 1rpx;
  2015. background: rgba(187, 187, 187, 1);
  2016. }
  2017. .new_products_title {
  2018. display: flex;
  2019. align-items: center;
  2020. margin: 0 10rpx;
  2021. }
  2022. .new_products_title image {
  2023. width: 28rpx;
  2024. height: 27rpx;
  2025. margin-right: 9rpx;
  2026. }
  2027. .new_products_title text {
  2028. font-size: 28rpx;
  2029. font-family: PingFang SC;
  2030. font-weight: bold;
  2031. color: rgba(45, 45, 45, 1);
  2032. line-height: 32rpx;
  2033. }
  2034. /* 优惠券 */
  2035. .coupon {
  2036. width: 100%;
  2037. padding: 20rpx 20rpx 100rpx;
  2038. box-sizing: border-box;
  2039. background: #F5F5F5;
  2040. border-radius: 15rpx 15rpx 0 0;
  2041. }
  2042. .coupon_pre {
  2043. width: 100%;
  2044. width: 711rpx;
  2045. margin-bottom: 20rpx;
  2046. min-height: 257rpx;
  2047. }
  2048. .conpon_des {
  2049. width: 100%;
  2050. width: 711rpx;
  2051. height: 257rpx;
  2052. }
  2053. .conpon_des_top {
  2054. width: 711rpx;
  2055. height: 195rpx;
  2056. display: flex;
  2057. align-items: center;
  2058. margin: 0 10rpx;
  2059. }
  2060. .coupon_des_left {
  2061. width: 161rpx;
  2062. height: 195rpx;
  2063. display: flex;
  2064. align-items: center;
  2065. justify-content: center;
  2066. font-size: 48rpx;
  2067. font-family: Adobe Heiti Std;
  2068. font-weight: normal;
  2069. color: rgba(253, 51, 18, 1);
  2070. line-height: 45rpx;
  2071. margin-left: 22rpx;
  2072. }
  2073. .coupon_des_left1 {
  2074. width: 161rpx;
  2075. height: 195rpx;
  2076. display: flex;
  2077. align-items: center;
  2078. justify-content: center;
  2079. font-size: 48rpx;
  2080. font-family: Adobe Heiti Std;
  2081. font-weight: normal;
  2082. color: rgba(51, 51, 51, 1);
  2083. line-height: 45rpx;
  2084. margin-left: 22rpx;
  2085. }
  2086. .yuan {
  2087. font-size: 24rpx;
  2088. }
  2089. .coupon_des_con {
  2090. width: 330rpx;
  2091. display: flex;
  2092. flex-direction: column;
  2093. justify-content: center;
  2094. margin-left: 27rpx;
  2095. }
  2096. .progress-box {
  2097. align-items: center;
  2098. /* height: 32rpx; */
  2099. }
  2100. .progress-box .progress_text {
  2101. font-size: 22rpx;
  2102. font-family: PingFang SC;
  2103. font-weight: 500;
  2104. font-style: italic;
  2105. color: rgba(253, 51, 18, 1);
  2106. line-height: 32rpx;
  2107. margin-left: 20rpx;
  2108. }
  2109. .full_reduction {
  2110. font-size: 28rpx;
  2111. font-family: PingFang SC;
  2112. font-weight: 500;
  2113. color: rgba(51, 51, 51, 1);
  2114. line-height: 45rpx;
  2115. }
  2116. .validity {
  2117. font-size: 20rpx;
  2118. font-family: PingFang SC;
  2119. font-weight: 400;
  2120. color: rgba(153, 153, 153, 1);
  2121. line-height: 45rpx;
  2122. }
  2123. .coupon_des_right {
  2124. display: flex;
  2125. align-items: flex-start;
  2126. }
  2127. .coupon_des_right text {
  2128. width: 140rpx;
  2129. height: 50rpx;
  2130. border-radius: 25px;
  2131. background: rgba(253, 51, 18, 1);
  2132. font-size: 30rpx;
  2133. font-family: PingFang SC;
  2134. font-weight: 500;
  2135. color: rgba(255, 255, 255, 1);
  2136. line-height: 45rpx;
  2137. display: flex;
  2138. align-items: center;
  2139. justify-content: center;
  2140. }
  2141. .coupon_des_right1 text {
  2142. width: 140rpx;
  2143. height: 50rpx;
  2144. background: rgba(153, 153, 153, 1);
  2145. border-radius: 25rpx;
  2146. font-size: 30rpx;
  2147. font-family: PingFang SC;
  2148. font-weight: 500;
  2149. color: rgba(255, 255, 255, 1);
  2150. line-height: 45rpx;
  2151. display: flex;
  2152. align-items: center;
  2153. justify-content: center;
  2154. }
  2155. .conpon_des_bot {
  2156. width: 100%;
  2157. }
  2158. .conpon_show {
  2159. display: flex;
  2160. justify-content: space-between;
  2161. padding: 20rpx;
  2162. padding-left: 0;
  2163. box-sizing: border-box;
  2164. }
  2165. .conpon_show .text {
  2166. font-size: 22rpx;
  2167. font-family: PingFang SC;
  2168. font-weight: 400;
  2169. color: rgba(51, 51, 51, 1);
  2170. line-height: 30rpx;
  2171. padding-left: 22rpx;
  2172. width: 615rpx;
  2173. height: auto;
  2174. box-sizing: border-box;
  2175. display: -webkit-box;
  2176. word-break: break-all;
  2177. -webkit-box-orient: vertical;
  2178. /* 要显示多少行就改变line-clamp的数据,此处折叠起来显示一行*/
  2179. -webkit-line-clamp: 1;
  2180. overflow: hidden;
  2181. text-overflow: ellipsis;
  2182. }
  2183. .conpon_show .text2 {
  2184. display: -webkit-box;
  2185. }
  2186. .conpon_show .text1 {
  2187. display: block;
  2188. }
  2189. .conpon_show image {
  2190. width: 16rpx;
  2191. height: 9rpx;
  2192. }
  2193. .conpon_rules {
  2194. width: 100%;
  2195. background: #FFFFFF;
  2196. display: flex;
  2197. flex-direction: column;
  2198. padding-left: 22rpx;
  2199. box-sizing: border-box;
  2200. }
  2201. .conpon_rules text {
  2202. font-size: 20rpx;
  2203. font-family: PingFang SC;
  2204. font-weight: 400;
  2205. color: rgba(51, 51, 51, 1);
  2206. line-height: 30rpx;
  2207. }
  2208. /* 分类 */
  2209. .fenlei {
  2210. width: 100%;
  2211. /* height: 100%; */
  2212. border-radius: 15rpx;
  2213. position: absolute;
  2214. z-index: 5;
  2215. }
  2216. .fenlei_lists {
  2217. display: flex;
  2218. flex-direction: column;
  2219. align-items: center;
  2220. width: 100%;
  2221. padding: 20rpx 0 30rpx 0;
  2222. box-sizing: border-box;
  2223. margin-top: -150rpx;
  2224. background: #F5F5F5;
  2225. padding-bottom: 100rpx;
  2226. }
  2227. .fenlei_pre {
  2228. width: 710rpx;
  2229. background: rgba(255, 255, 255, 1);
  2230. border-radius: 15rpx;
  2231. padding: 17rpx 20rpx 0;
  2232. box-sizing: border-box;
  2233. margin-bottom: 20rpx;
  2234. }
  2235. .fenlei_pre_top {
  2236. width: 100%;
  2237. /* height: 71rpx; */
  2238. display: flex;
  2239. justify-content: space-between;
  2240. align-items: center;
  2241. padding: 0 0 0 20rpx;
  2242. box-sizing: border-box;
  2243. position: relative;
  2244. margin-bottom: 17rpx;
  2245. }
  2246. .fenlei_pre_title {
  2247. font-size: 34rpx;
  2248. font-family: PingFang SC;
  2249. font-weight: bold;
  2250. color: rgba(45, 45, 45, 1);
  2251. line-height: 32rpx;
  2252. box-sizing: border-box;
  2253. }
  2254. .fenlei_pre_title::before {
  2255. position: absolute;
  2256. top: 10rpx;
  2257. left: 0rpx;
  2258. bottom: 0;
  2259. content: '';
  2260. width: 4rpx;
  2261. height: 30rpx;
  2262. background: rgba(253, 52, 20, 1);
  2263. border-radius: 2rpx;
  2264. }
  2265. .fenlei_pre_top image {
  2266. width: 50rpx;
  2267. height: 50rpx;
  2268. margin-right: -15rpx;
  2269. }
  2270. .fenlei_list {
  2271. display: flex;
  2272. background: #FFFFFF;
  2273. width: 100%;
  2274. margin-top: 21rpx;
  2275. flex-wrap: wrap;
  2276. }
  2277. .fenlei_list text {
  2278. font-size: 26rpx;
  2279. font-family: PingFang SC;
  2280. font-weight: 500;
  2281. color: rgba(45, 45, 45, 1);
  2282. width: 325rpx;
  2283. height: 60rpx;
  2284. line-height: 60rpx;
  2285. background: rgba(242, 242, 242, 1);
  2286. border-radius: 6rpx;
  2287. white-space: nowrap;
  2288. text-overflow: ellipsis;
  2289. overflow: hidden;
  2290. word-break: break-all;
  2291. padding: 0 17rpx;
  2292. box-sizing: border-box;
  2293. margin-bottom: 20rpx;
  2294. margin-right: 20rpx;
  2295. text-align: center;
  2296. }
  2297. .fenlei_list text:nth-of-type(2n) {
  2298. margin-right: 0;
  2299. }
  2300. .no_fenlei {
  2301. box-sizing: border-box;
  2302. margin-top: 200rpx;
  2303. display: flex;
  2304. flex-direction: column;
  2305. align-items: center;
  2306. margin-bottom: 126rpx;
  2307. }
  2308. .no_fenlei image {
  2309. width: 238rpx;
  2310. height: 171rpx;
  2311. }
  2312. .no_fenlei text {
  2313. font-size: 24rpx;
  2314. font-family: PingFang SC;
  2315. font-weight: 400;
  2316. color: rgba(51, 51, 51, 1);
  2317. line-height: 24rpx;
  2318. margin-top: 20rpx;
  2319. }
  2320. /* 推荐商品 */
  2321. .all_commodities_list1 {
  2322. background: #F5F5F5;
  2323. box-sizing: border-box;
  2324. display: flex;
  2325. align-items: center;
  2326. flex-wrap: wrap;
  2327. padding: 0 0 100rpx;
  2328. box-sizing: border-box;
  2329. }
  2330. .commodities_list {
  2331. background: #F5F5F5;
  2332. display: flex;
  2333. align-items: center;
  2334. flex-wrap: wrap;
  2335. padding: 0 20rpx 0 20rpx;
  2336. box-sizing: border-box;
  2337. }
  2338. .no_more {
  2339. width: 100%;
  2340. display: flex;
  2341. justify-content: center;
  2342. }
  2343. /* tabbar底栏 */
  2344. .tabbar {
  2345. position: fixed;
  2346. bottom: 0;
  2347. z-index: 10;
  2348. width: 750rpx;
  2349. /*height: 98rpx+(constant(safe-area-inset-bottom)||env(safe-area-inset-bottom));*/
  2350. display: flex;
  2351. align-items: center;
  2352. justify-content: space-around;
  2353. box-sizing: border-box;
  2354. background: rgba(255, 255, 255, 1);
  2355. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(86, 86, 86, 0.08);
  2356. padding-bottom: constant(safe-area-inset-bottom);/* 兼容 iOS < 11.2 */
  2357. padding-bottom: env(safe-area-inset-bottom); /* 兼容 iOS >= 11.2 */
  2358. }
  2359. .iphone_view {
  2360. position: fixed;
  2361. bottom: 0;
  2362. z-index: 10;
  2363. width: 100%;
  2364. box-sizing: border-box;
  2365. background: rgba(255, 255, 255, 1);
  2366. }
  2367. .tabbar_pre {
  2368. display: flex;
  2369. flex-direction: column;
  2370. align-items: center;
  2371. margin-top: 12rpx;
  2372. }
  2373. .tabbar_pre image {
  2374. width: 50rpx;
  2375. height: 50rpx;
  2376. }
  2377. .tabbar_pre text {
  2378. font-size: 22rpx;
  2379. font-family: PingFang SC;
  2380. font-weight: 500;
  2381. color: rgba(51, 51, 51, 1);
  2382. line-height: 32rpx;
  2383. }
  2384. .tabbar_pre .pre_sel {
  2385. font-size: 22rpx;
  2386. font-family: PingFang SC;
  2387. font-weight: bold;
  2388. color: rgba(252, 39, 25, 1);
  2389. line-height: 32rpx;
  2390. }
  2391. /* 暂无数据 */
  2392. .no_data {
  2393. font-size: 24rpx;
  2394. color: black;
  2395. text-align: center;
  2396. }
  2397. /* 店铺首页装修 */
  2398. .home_decoration {
  2399. padding-bottom: 100rpx;
  2400. box-sizing: border-box;
  2401. border-radius: 15rpx 15rpx 0 0;
  2402. }
  2403. /* 无数据 */
  2404. .no_content {
  2405. margin: 250rpx auto 0;
  2406. width: 100%;
  2407. display: flex;
  2408. flex-direction: column;
  2409. align-items: center;
  2410. }
  2411. .no_content image {
  2412. width: 200rpx;
  2413. height: 200rpx;
  2414. }
  2415. .no_content text {
  2416. font-size: 24rpx;
  2417. font-family: PingFang SC;
  2418. font-weight: 500;
  2419. color: rgba(51, 51, 51, 1);
  2420. line-height: 32rpx;
  2421. margin-top: 30rpx;
  2422. }
  2423. .no_coupon {
  2424. width: 212rpx;
  2425. height: 159rpx;
  2426. }
  2427. /* 加载更多,没有更多 */
  2428. .is_more {
  2429. width: 100%;
  2430. display: flex;
  2431. align-items: center;
  2432. justify-content: center;
  2433. font-size: 22rpx;
  2434. color: #999999;
  2435. line-height: 22rpx;
  2436. margin: 10rpx 0 30rpx;
  2437. background: #F5F5F5;
  2438. }
  2439. .fixed_top_status_bar {
  2440. position: fixed;
  2441. /* #ifdef APP-PLUS */
  2442. height: var(--status-bar-height);
  2443. /* #endif */
  2444. /* #ifndef APP-PLUS */
  2445. height: 0;
  2446. /* #endif */
  2447. top: 0;
  2448. left: 0;
  2449. right: 0;
  2450. z-index: 99;
  2451. background: #fff;
  2452. }
  2453. .search .top_w_b {
  2454. height: 50rpx !important;
  2455. width: 50rpx !important;
  2456. }
  2457. .top_w_b {
  2458. height: 34rpx;
  2459. width: 34rpx;
  2460. margin: 0 0 0 20rpx;
  2461. display: block;
  2462. }
  2463. /* #ifdef H5 */
  2464. .search {
  2465. padding-left: 0;
  2466. }
  2467. .search1 {
  2468. padding-left: 0;
  2469. }
  2470. /* #endif */
  2471. /* #ifdef APP-PLUS */
  2472. .top_w_b {
  2473. margin-left: 0;
  2474. }
  2475. /* #endif */
  2476. .select-wrap {
  2477. position: fixed;
  2478. top: 0;
  2479. left: 0;
  2480. width: 750rpx;
  2481. height: 100vh;
  2482. background-color: rgba(0, 0, 0, 0.45);
  2483. z-index: 9999;
  2484. right: 0;
  2485. margin: 0 auto;
  2486. }
  2487. .select-wrap .share-mode {
  2488. position: absolute;
  2489. width: 100%;
  2490. height: 100%;
  2491. display: flex;
  2492. flex-direction: column;
  2493. align-items: center;
  2494. }
  2495. .select-wrap .share-mode .ul {
  2496. display: flex;
  2497. width: 100%;
  2498. justify-content: space-evenly;
  2499. position: fixed;
  2500. bottom: 200rpx;
  2501. z-index: 9999;
  2502. }
  2503. .share-mode .item {
  2504. display: flex;
  2505. flex-direction: column;
  2506. align-items: center;
  2507. text-align: center;
  2508. cursor: pointer;
  2509. border: none;
  2510. margin: 0;
  2511. padding: 0;
  2512. line-height: 1;
  2513. background-color: transparent;
  2514. }
  2515. .share-mode .item::after {
  2516. border: none;
  2517. }
  2518. .share-mode .item image {
  2519. width: 106rpx;
  2520. height: 0;
  2521. }
  2522. .share-mode .item text {
  2523. color: #fff;
  2524. font-size: 24rpx;
  2525. margin-top: 30rpx;
  2526. }
  2527. .select-wrap .close {
  2528. width: 750rpx;
  2529. height: 120rpx;
  2530. display: flex;
  2531. align-items: center;
  2532. justify-content: center;
  2533. position: fixed;
  2534. bottom: 30rpx;
  2535. z-index: 99999;
  2536. }
  2537. .select-wrap .close image {
  2538. width: 30rpx;
  2539. height: 30rpx;
  2540. /* padding: 30rpx; */
  2541. }
  2542. .is_h5_public_share {
  2543. margin-top: 100rpx;
  2544. }
  2545. .is_h5_share {
  2546. width: 750rpx;
  2547. height: 100%;
  2548. display: flex;
  2549. flex-direction: column;
  2550. justify-content: center;
  2551. align-items: center;
  2552. }
  2553. .share-img {
  2554. border-radius: 20%;
  2555. width: 100%;
  2556. display: flex;
  2557. justify-content: center;
  2558. }
  2559. .h5_share_tips {
  2560. width: 400rpx;
  2561. height: 100rpx;
  2562. margin-top: 100rpx;
  2563. }
  2564. .wx_share_img{
  2565. width:500rpx;
  2566. height:500rpx;
  2567. margin-left:100rpx;
  2568. }
  2569. .search .top_w_b_not{
  2570. height: 20px !important;
  2571. width: 20px !important;
  2572. }
  2573. .empty_sort_page {
  2574. width: 100%;
  2575. // height: 100vh;
  2576. background: #F5F5F5;
  2577. display: flex;
  2578. flex-direction: column;
  2579. align-items: center;
  2580. padding-top: 340rpx;
  2581. }
  2582. .empty_img {
  2583. width: 210rpx;
  2584. height: 210rpx;
  2585. margin-bottom: 32rpx;
  2586. }
  2587. .empty_text {
  2588. font-size: 26rpx;
  2589. color: #999;
  2590. }
  2591. </style>