index_cate.vue 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869
  1. <template>
  2. <view class="page-index" :class="{'bgf':navIndex >0}">
  3. <!-- #ifdef H5 -->
  4. <view class="header">
  5. <view class="serch-wrapper flex acea-row row-between-wrapper">
  6. <view v-if="logoUrl" class="logo">
  7. <image :src="logoUrl" mode=""></image>
  8. </view>
  9. <navigator url="/pages/columnGoods/goods_search/index" :class="logoUrl ? 'input' : 'uninput'" hover-class="none"><text class="iconfont icon-xiazai5"></text>
  10. 搜索商品</navigator>
  11. <navigator class="btn" url="/pages/chat/customer_list/index?type=0" hover-class="none">
  12. <view class="iconfont icon-xiaoxi"></view>
  13. <text class="iconnum bg-color-red" v-if="userInfo.total_unread">{{userInfo.total_unread}}</text>
  14. </navigator>
  15. </view>
  16. </view>
  17. <!-- #endif -->
  18. <!-- #ifdef MP -->
  19. <view class="mp-header">
  20. <view class="sys-head" view :style="{ height: statusBarHeight }"></view>
  21. <view class="serch-box" view style="height: 43px;">
  22. <view class="serch-wrapper flex">
  23. <view v-if="logoUrl" class="logo">
  24. <image :src="logoUrl" mode=""></image>
  25. </view>
  26. <navigator url="/pages/columnGoods/goods_search/index" :class="logoUrl ? 'input' : 'uninput'" hover-class="none"><text class="iconfont icon-xiazai5"></text>
  27. 搜索商品</navigator>
  28. </view>
  29. </view>
  30. </view>
  31. <!-- #endif -->
  32. <!-- 分类页 -->
  33. <view class="productList" :style="'margin-top:'+prodeuctTop+'px;'">
  34. <view class="sort acea-row" :class="sortList.length ? '' : 'no_pad'" :style="{marginTop:sortMarTop+'px'}">
  35. <navigator hover-class='none' :url="'/pages/columnGoods/goods_list/index?id='+item.store_category_id+'&title='+item.cate_name"
  36. class="item" v-for="(item,index) in sortList" :key="index">
  37. <view class="pictrue">
  38. <image :src="item.pic"></image>
  39. </view>
  40. <view class="text">{{item.cate_name}}</view>
  41. </navigator>
  42. <view class="item" @click="bindMore()" v-if="sortList.length">
  43. <view class="pictrues acea-row row-center-wrapper">
  44. <text class="iconfont icon-gengduo1"></text>
  45. </view>
  46. <view class="text" style="margin-top: 22rpx;">更多</view>
  47. </view>
  48. </view>
  49. <block v-if="sortProduct.length>0">
  50. <view class='list acea-row row-between-wrapper'>
  51. <navigator @tap="goDetails(item)" class='item' v-for="(item,index) in sortProduct"
  52. :key="index">
  53. <view class='pictrue'>
  54. <image :src='item.image'></image>
  55. </view>
  56. <view class='text'>
  57. <view class='name line1'><text v-if="item.merchant.is_trader && item.product_type == 0" class="font-bg-red">自营</text>
  58. <span v-if="item.product_type != 0" :class="'font_bg-red type'+item.product_type">{{item.product_type == 1 ? "秒杀" : item.product_type == 2 ? "预售" : item.product_type == 3 ? "助力" : item.product_type == 4 ? "拼团" : ""}}</span>
  59. {{item.store_name}}</view>
  60. <view class="acea-row row-middle">
  61. <view class='money font-color-red'>¥<text class='num'>{{item.price}}</text></view>
  62. <text class="coupon font-color-red" v-if="item.issetCoupon">领券</text>
  63. </view>
  64. </view>
  65. </navigator>
  66. <view class='loadingicon acea-row row-center-wrapper' v-if='sortProduct.length > 0 || sortProductLoading'>
  67. <text class='loading iconfont icon-jiazai' :hidden='loading==false'></text>{{loadTitle}}
  68. </view>
  69. </view>
  70. </block>
  71. <block v-if="sortProduct.length == 0">
  72. <view class="noCommodity">
  73. <view class='pictrue' style="margin: 0 auto;">
  74. <image src='/static/images/noShopper.png'></image>
  75. </view>
  76. <recommend :hostProduct="hostProduct"></recommend>
  77. </view>
  78. </block>
  79. </view>
  80. <!-- #ifdef MP -->
  81. <authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse" :isGoIndex="false"></authorize>
  82. <!-- #endif -->
  83. </view>
  84. </template>
  85. <script>
  86. var statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
  87. let app = getApp();
  88. import {
  89. getUserInfo
  90. } from '@/api/user.js';
  91. import {
  92. getIndexData,
  93. getCoupons,
  94. getPower
  95. } from '@/api/api.js';
  96. // #ifdef MP
  97. import {
  98. getTemlIds
  99. } from '@/api/api.js';
  100. import {
  101. SUBSCRIBE_MESSAGE,
  102. TIPS_KEY
  103. } from '@/config/cache';
  104. // import {
  105. // getLiveList
  106. // } from '@/api/store.js';
  107. // #endif
  108. import {
  109. getShare,
  110. follow,
  111. getconfig,
  112. } from '@/api/public.js';
  113. import {
  114. getSeckillIndexTime
  115. } from '@/api/activity.js';
  116. import goodList from '@/components/goodList';
  117. import promotionGood from '@/components/promotionGood';
  118. import couponWindow from '@/components/couponWindow';
  119. import {
  120. goShopDetail
  121. } from '@/libs/order.js'
  122. import {
  123. mapGetters,
  124. mapMutations
  125. } from "vuex";
  126. // import { mapState, mapMutations } from 'vuex';
  127. import tabNav from '@/components/tabNav.vue'
  128. import countDown from '@/components/countDown'
  129. import {
  130. getCategoryList,
  131. getProductslist,
  132. getProductHot,
  133. storeCategory,
  134. storeMerchantList,
  135. } from '@/api/store.js';
  136. import {
  137. getPresellList,
  138. getSeckillList,
  139. getAssistList,
  140. initiateAssistApi,
  141. assistUserData,
  142. getCombinationList
  143. } from '@/api/activity.js';
  144. import {
  145. openBargainSubscribe
  146. } from '@/utils/SubscribeMessage.js';
  147. import {
  148. setVisit,
  149. spread
  150. } from '@/api/user.js'
  151. import recommend from '@/components/recommend';
  152. // #ifdef MP
  153. import authorize from '@/components/Authorize';
  154. // #endif
  155. import {
  156. silenceBindingSpread
  157. } from '@/utils';
  158. import history from "@/mixins/history";
  159. import {
  160. toLogin
  161. } from '@/libs/login.js';
  162. import shareScence from "@/libs/spread";
  163. export default {
  164. computed: mapGetters(['isLogin', 'uid']),
  165. mixins: [history],
  166. components: {
  167. tabNav,
  168. goodList,
  169. promotionGood,
  170. couponWindow,
  171. countDown,
  172. recommend,
  173. // #ifdef MP
  174. authorize
  175. // #endif
  176. },
  177. data() {
  178. return {
  179. countDownHour: "00",
  180. countDownMinute: "00",
  181. countDownSecond: "00",
  182. // datatime: '',
  183. ad: '',
  184. userInfo: '',
  185. loading: false,
  186. isAuto: false, //没有授权的不会自动授权
  187. isShowAuth: false, //是否隐藏授权
  188. statusBarHeight: statusBarHeight,
  189. navIndex: 0,
  190. navTop: [],
  191. subscribe: false,
  192. followUrl: "",
  193. followHid: true,
  194. followCode: false,
  195. logoUrl: app.globalData.site_logo,
  196. // logoUrl: "",
  197. imgUrls: [],
  198. hot: [],
  199. sortList: [],
  200. itemNew: [],
  201. menus: [],
  202. bastInfo: '',
  203. fastInfo: '',
  204. firstInfo: '',
  205. firstList: [],
  206. salesInfo: '',
  207. likeInfo: [],
  208. benefit: [],
  209. indicatorDots: false,
  210. circular: true,
  211. autoplay: true,
  212. interval: 3000,
  213. duration: 500,
  214. window: false,
  215. iShidden: false,
  216. navH: "",
  217. newGoodsBananr: '',
  218. couponList: [],
  219. lovely: [],
  220. spikeList: [], //秒杀
  221. // liveList: [], //直播
  222. presellList: [], //预售
  223. assistList: [], //助力
  224. assistUserList: [], //已助力数据
  225. assistUserCount: '',
  226. combinationList: [],
  227. // spikeList: [],
  228. bargList: [],
  229. ProductNavindex: 0,
  230. marTop: 0,
  231. datatime: 0,
  232. childID: 0,
  233. loadend: false,
  234. // loading: false,
  235. loadTitle: '加载更多',
  236. sortProduct: [],
  237. where: {
  238. pid: 0,
  239. page: 1,
  240. limit: 6,
  241. },
  242. is_switch: true,
  243. hostProduct: [],
  244. hotPage: 1,
  245. hotLimit: 8,
  246. hotScroll: true,
  247. hotLoading: false,
  248. hotTitle: '加载更多',
  249. explosiveMoney: [],
  250. prodeuctTop: 0,
  251. pinkInfo: '',
  252. searchH: 0,
  253. isFixed: false,
  254. goodScroll: true, //精品推荐开关
  255. params: { //精品推荐分页
  256. page: 1,
  257. limit: 10,
  258. },
  259. tempArr: [], //精品推荐临时数组
  260. pageInfo: '', // 精品推荐全数据
  261. site_name: app.globalData.site_name, //首页title
  262. swiperCur: 0,
  263. brandList: [],
  264. d: '',
  265. h: '',
  266. m: '',
  267. s: '',
  268. sum_h: '',
  269. endBg: 'linear-gradient(#666666, #999999)',
  270. notBg: 'rgb(26, 163, 246)',
  271. playBg: 'linear-gradient(#FF0000, #FF5400)',
  272. hide_mer_status: 1,
  273. sortMarTop: 0,
  274. globalDatas: {},
  275. mpHeight: 0,
  276. currSpid: '',
  277. // sortMarTop: 0,
  278. mer_location: "",
  279. share_title: "",
  280. showNum: 0,
  281. power: ''
  282. }
  283. },
  284. /**
  285. * 用户点击右上角分享
  286. */
  287. // #ifdef MP
  288. onShareAppMessage: function() {
  289. let that = this;
  290. wx.showShareMenu({
  291. withShareTicket: true,
  292. menus: ['shareAppMessage', 'shareTimeline']
  293. })
  294. return {
  295. title: that.share_title,
  296. path: '/pages/index/index?spid=' + that.uid
  297. }
  298. },
  299. onShareTimeline: function() {
  300. let that = this;
  301. return {
  302. title: that.share_title,
  303. query: {
  304. spid: that.uid,
  305. },
  306. imageUrl: ''
  307. }
  308. },
  309. // #endif
  310. onLoad(options) {
  311. // this.navIndex = options.navIndex
  312. this.changeTab(JSON.parse(options.e))
  313. // #ifdef MP-TOUTIAO
  314. // this.getPower()
  315. // #endif
  316. let that = this;
  317. if (options.spid) {
  318. that.currSpid = options.spid
  319. app.globalData.spid = options.spid;
  320. }
  321. // #ifdef MP
  322. if (options.scene) {
  323. let value = that.$util.getUrlParams(decodeURIComponent(options.scene));
  324. if (value.id) options.id = value.id;
  325. //记录推广人uid
  326. if (value.spid) {
  327. that.currSpid = value.spid
  328. app.globalData.spid = value.spid;
  329. }
  330. }
  331. // #endif
  332. shareScence(that.currSpid, that.isLogin)
  333. // #ifndef MP-TOUTIAO
  334. uni.getLocation({
  335. type: 'wgs84',
  336. success: function(res) {
  337. try {
  338. uni.setStorageSync('user_latitude', res.latitude);
  339. uni.setStorageSync('user_longitude', res.longitude);
  340. } catch(res) {
  341. console.log(res)
  342. }
  343. }
  344. });
  345. // #endif
  346. // #ifdef MP
  347. // 获取小程序头部高度
  348. this.navH = app.globalData.navHeight;
  349. let info = uni.createSelectorQuery().select(".mp-header");
  350. info.boundingClientRect(function(data) {
  351. console.log(data.height,'++++++++++++++++++++++++++++++++++')
  352. that.marTop = data.height
  353. }).exec()
  354. // #endif
  355. // #ifndef MP
  356. this.navH = 0;
  357. // #endif
  358. this.isLogin && silenceBindingSpread();
  359. // this.setVisit()
  360. Promise.all([this.getIndexConfig(), this.storeMerchant(), this.get_host_product(), this.getSpeckillCutTime(), this.getSpikeProduct(),
  361. this.getCombinationProduct(), this.getPresellProduct(), this.getAssistProduct(), this.getAssistUserCount(),
  362. ]);
  363. // #ifdef MP
  364. // this.getLiveLists()
  365. // #endif
  366. if (this.isLogin) {
  367. console.log("登录了+++++")
  368. this.showNum = 1
  369. this.getUserInfo();
  370. // #ifdef MP
  371. // this.getHistory()
  372. // #endif
  373. };
  374. },
  375. onShow() {
  376. this.getConfig()
  377. if(this.isLogin){
  378. if(this.showNum !== 1){
  379. this.getUserInfo()
  380. }else {
  381. this.showNum = 0
  382. }
  383. }
  384. },
  385. onReady() {
  386. let self = this
  387. // #ifdef MP
  388. setTimeout(res => {
  389. let info = uni.createSelectorQuery().select(".mp-header");
  390. info.boundingClientRect(function(data) { //data - 各种参数
  391. self.mpHeight = data.height
  392. }).exec()
  393. }, 800)
  394. // #endif
  395. },
  396. watch: {
  397. globalDatas(nVal, oVal) {
  398. // #ifdef H5
  399. this.ShareInfo(nVal)
  400. // #endif
  401. }
  402. },
  403. methods: {
  404. // 微信登录回调
  405. onLoadFun: function(e) {
  406. console.log('回调数据',e);
  407. this.isShowAuth = false
  408. // if(!e.phone){
  409. // uni.showModal({
  410. // title: "请绑定手机号",
  411. // content: "为了方便您的取货和我们的送货,并获取更多优惠活动,需要您的手机授权!",
  412. // showCancel: false,
  413. // complete(){
  414. // console.log("绑定手机号")
  415. // uni.navigateTo({
  416. // url: '/pages/users/user_phone/index'
  417. // })
  418. // }
  419. // })
  420. // }
  421. },
  422. setViewport(content) {
  423. const meta = document.querySelector('meta[name=viewport]');
  424. if (!meta) return;
  425. meta.setAttribute('content', content);
  426. },
  427. // 菜单详情
  428. goMenuDetail(item) {
  429. // let url = this.$util.stringIntercept(item.url, 0, "\?")
  430. if (item.url == '/pages/goods_cate/goods_cate') {
  431. let data = this.$util.stringIntercept(item.url, 1, "\?")
  432. data = this.$util.stringIntercept(data, 1, "\=")
  433. uni.setStorageSync('storeIndex', data);
  434. uni.switchTab({
  435. url: '/pages/goods_cate/goods_cate'
  436. })
  437. // try {
  438. // } catch (e) {}
  439. } else {
  440. uni.navigateTo({
  441. url: item.url
  442. })
  443. }
  444. },
  445. getConfig() {
  446. // 获取配置
  447. getconfig().then(res => {
  448. let self = this
  449. this.globalDatas = res.data
  450. this.logoUrl = res.data.site_logo
  451. this.site_name = res.data.site_name
  452. this.hide_mer_status = res.data.hide_mer_status
  453. this.mer_location = res.data.mer_location
  454. this.share_title = res.data.share_title
  455. uni.setNavigationBarTitle({
  456. title: self.site_name
  457. })
  458. uni.$emit('configData', res.data)
  459. }).catch(err => {})
  460. },
  461. // 分类页更多
  462. bindMore() {
  463. console.log(this.navTop[this.navIndex])
  464. try {
  465. uni.setStorageSync('storeIndex', this.navTop[this.navIndex].pid);
  466. uni.switchTab({
  467. url: '/pages/goods_cate/goods_cate'
  468. })
  469. } catch (e) {}
  470. },
  471. goDetails(item){
  472. goShopDetail(item, this.uid).then(res => {
  473. if (this.isLogin) {
  474. initiateAssistApi(item.activity_id).then(res => {
  475. let id = res.data.product_assist_set_id;
  476. uni.hideLoading();
  477. // #ifndef MP
  478. uni.navigateTo({
  479. url: '/pages/activity/assist_detail/index?id=' + id
  480. });
  481. // #endif
  482. // #ifdef MP
  483. openBargainSubscribe().then(res => {
  484. uni.hideLoading();
  485. uni.navigateTo({
  486. url: '/pages/activity/assist_detail/index?id=' + id
  487. });
  488. }).catch((err) => {
  489. uni.hideLoading();
  490. });
  491. // #endif
  492. }).catch((err) => {
  493. uni.showToast({
  494. title: err,
  495. icon: 'none'
  496. })
  497. });
  498. } else {
  499. // #ifdef H5 || APP-PLUS
  500. toLogin();
  501. // #endif
  502. // #ifdef MP
  503. this.$emit('isShowAuth', true);
  504. this.$emit('isAuto', true);
  505. // #endif
  506. }
  507. })
  508. },
  509. // 进店
  510. goStore: function(id) {
  511. if (this.hide_mer_status != 1) {
  512. uni.navigateTo({
  513. url: `/pages/store/home/index?id=${id}`
  514. })
  515. }
  516. },
  517. /**
  518. * 获取个人用户信息
  519. */
  520. getUserInfo: function() {
  521. let that = this;
  522. getUserInfo().then(res => {
  523. that.userInfo = res.data
  524. if(!that.userInfo.phone){
  525. uni.showModal({
  526. title: "请绑定手机号",
  527. content: "为了方便您的取货和我们的送货,并获取更多优惠活动,需要您的手机授权!",
  528. showCancel: false,
  529. complete() {
  530. uni.navigateTo({
  531. url: '/pages/users/user_phone/index'
  532. })
  533. }
  534. })
  535. }
  536. });
  537. },
  538. // 品牌好店
  539. storeMerchant() {
  540. storeMerchantList({
  541. page: 1,
  542. limit: 3,
  543. is_best: 1
  544. }).then(res => {
  545. this.brandList = res.data.list;
  546. })
  547. },
  548. // 获取秒杀截止时间
  549. getSpeckillCutTime() {
  550. getSeckillIndexTime().then(res => {
  551. this.datatime = res.data.seckillEndTime;
  552. });
  553. },
  554. // 获取秒杀商品
  555. getSpikeProduct() {
  556. let that = this;
  557. getSeckillList({
  558. limit: 10
  559. }).then(res => {
  560. that.spikeList = res.data.list;
  561. that.spikeList.map((item) => {
  562. item.sales = item.stock === 0 ? '0%' : (item.sales * 100 / item.stock).toFixed(2) + '%'
  563. })
  564. }).catch((e) => {});
  565. },
  566. // #ifdef MP
  567. // 直播
  568. // getLiveLists() {
  569. // let that = this;
  570. // getLiveList({
  571. // limit: 10
  572. // }).then(res => {
  573. // that.liveList = res.data.list;
  574. // that.liveList.forEach((val) => {
  575. // val.link = ((val.live_status == 103 && val.replay_status) || val.live_status === 101 || val.live_status ===
  576. // 102) ? 'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=' + val.room_id : ''
  577. // });
  578. // }).catch((e) => {});;
  579. // },
  580. // #endif
  581. // 拼团
  582. getCombinationProduct() {
  583. let that = this;
  584. getCombinationList({
  585. limit: 3
  586. }).then(res => {
  587. that.combinationList = res.data.list;
  588. }).catch((e) => {});
  589. },
  590. // 预售
  591. getPresellProduct() {
  592. let that = this;
  593. getPresellList({
  594. limit: 10
  595. }).then(res => {
  596. that.presellList = res.data.list;
  597. }).catch((e) => {});
  598. },
  599. // 助力
  600. getAssistProduct() {
  601. let that = this;
  602. getAssistList({
  603. limit: 10
  604. }).then(res => {
  605. that.assistList = res.data.list;
  606. }).catch((e) => {});
  607. },
  608. // 获取已助力成功数据
  609. getAssistUserCount() {
  610. let that = this;
  611. assistUserData().then(res => {
  612. that.assistUserCount = res.data.count;
  613. that.assistUserList = res.data.list;
  614. }).catch((e) => {});
  615. },
  616. handleAssist(id) {
  617. if (this.isLogin) {
  618. initiateAssistApi(id).then(res => {
  619. let id = res.data.product_assist_set_id;
  620. uni.hideLoading();
  621. // #ifndef MP
  622. uni.navigateTo({
  623. url: '/pages/activity/assist_detail/index?id=' + id
  624. });
  625. // #endif
  626. // #ifdef MP
  627. openBargainSubscribe().then(res => {
  628. uni.hideLoading();
  629. uni.navigateTo({
  630. url: '/pages/activity/assist_detail/index?id=' + id
  631. });
  632. }).catch((err) => {
  633. uni.hideLoading();
  634. });
  635. // #endif
  636. }).catch((err) => {
  637. uni.showToast({
  638. title: err,
  639. icon: 'none'
  640. })
  641. });
  642. } else {
  643. // #ifdef H5 || APP-PLUS
  644. toLogin();
  645. // #endif
  646. // #ifdef MP
  647. this.isAuto = true;
  648. this.$set(this, 'isShowAuth', true);
  649. // #endif
  650. }
  651. },
  652. // swiper
  653. swiperChange(e) {
  654. // this.swiperCur = e.detail.current
  655. let {
  656. current,
  657. source
  658. } = e.detail
  659. if (source === 'autoplay' || source === 'touch') {
  660. //根据官方 source 来进行判断swiper的change事件是通过什么来触发的,autoplay是自动轮播。touch是用户手动滑动。其他的就是未知问题。抖动问题主要由于未知问题引起的,所以做了限制,只有在自动轮播和用户主动触发才去改变current值,达到规避了抖动bug
  661. this.swiperCur = e.detail.current
  662. }
  663. },
  664. // 记录会员访问
  665. setVisit() {
  666. setVisit({
  667. url: '/pages/index/index'
  668. }).then(res => {
  669. console.log(res)
  670. })
  671. },
  672. // 导航分类切换
  673. changeTab(e) {
  674. let self = this
  675. if (this.navIndex == e.index) return
  676. this.navIndex = e.index;
  677. if (e.index > 0) {
  678. storeCategory({
  679. pid: e.pid
  680. }).then(res => {
  681. this.sortList = res.data.length > 9 ? res.data.splice(0, 9) : res.data;
  682. if (this.sortList.length > 0) {
  683. this.where.pid = e.pid;
  684. this.where.page = 1;
  685. this.loadend = false;
  686. this.loading = false;
  687. this.sortProduct = [];
  688. this.get_product_list();
  689. }
  690. });
  691. // #ifdef MP
  692. setTimeout(res => {
  693. let info = uni.createSelectorQuery().select(".mp-header");
  694. info.boundingClientRect(function(data) { //data - 各种参数
  695. self.sortMarTop = data.height + 10
  696. }).exec()
  697. }, 0)
  698. // #endif
  699. // #ifdef H5
  700. self.sortMarTop = 10
  701. // #endif
  702. }
  703. },
  704. //分类产品
  705. get_product_list: function() {
  706. console.log(123);
  707. let that = this;
  708. // if (!that.loadend) return;
  709. if (that.loading) return;
  710. that.loading = true;
  711. that.loadTitle = '';
  712. getProductslist(that.where).then(res => {
  713. let list = res.data.list;
  714. let productList = that.$util.SplitArray(list, that.sortProduct);
  715. let loadend = list.length < that.where.limit;
  716. that.loadend = loadend;
  717. that.loading = false;
  718. that.loadTitle = loadend ? '已全部加载' : '加载更多';
  719. that.$set(that, 'sortProduct', productList);
  720. that.$set(that.where, 'page', that.where.page + 1);
  721. }).catch(err => {
  722. that.loading = false;
  723. that.loadTitle = '加载更多';
  724. });
  725. },
  726. /**
  727. * 获取我的推荐
  728. */
  729. get_host_product: function() {
  730. let that = this;
  731. let num = that.hotLimit
  732. if (!that.hotScroll) return;
  733. if (that.hotLoading) return;
  734. that.hotLoading = true;
  735. that.hotTitle = '';
  736. getProductHot(
  737. that.hotPage,
  738. that.hotLimit,
  739. ).then(res => {
  740. let list = res.data.list;
  741. let productList = that.$util.SplitArray(list, that.hostProduct);
  742. let hotScroll = list.length <= num && list.length != 0;
  743. that.hotScroll = hotScroll;
  744. that.hotLoading = false;
  745. that.hotTitle = !hotScroll ? '已全部加载' : '加载更多';
  746. that.$set(that, 'hostProduct', productList);
  747. that.$set(that, 'hotPage', that.hotPage + 1);
  748. });
  749. },
  750. // 首页数据
  751. getIndexConfig: function() {
  752. let that = this;
  753. getIndexData().then(res => {
  754. that.$set(that, "imgUrls", res.data.banner);
  755. that.$set(that, "menus", res.data.menu);
  756. that.$set(that, "hot", res.data.hot);
  757. that.$set(that, "ad", res.data.ad);
  758. res.data.category.unshift({
  759. 'cate_name': '首页'
  760. })
  761. that.$set(that, "navTop", res.data.category);
  762. that.lovely = res.data.lovely
  763. that.$set(that, "pageInfo", res.data)
  764. that.$set(that, "likeInfo", res.data.likeInfo);
  765. that.$set(that, "benefit", res.data.benefit);
  766. that.explosiveMoney = res.data.explosive_money
  767. // #ifdef H5
  768. that.subscribe = res.data.subscribe;
  769. // #endif
  770. // 小程序判断用户是否授权;
  771. // #ifdef MP
  772. uni.getSetting({
  773. success(res) {
  774. if (!res.authSetting['scope.userInfo']) {
  775. that.window = that.couponList.length ? true : false;
  776. } else {
  777. that.window = false;
  778. that.iShidden = true;
  779. }
  780. }
  781. });
  782. // #endif
  783. // #ifndef MP
  784. if (that.isLogin) {
  785. that.window = false;
  786. } else {
  787. that.window = that.couponList.length ? true : false;
  788. }
  789. // #endif
  790. })
  791. },
  792. // 砍价详情
  793. bargDetail(item) {
  794. if (!this.isLogin) {
  795. // #ifdef H5
  796. uni.showModal({
  797. title: '提示',
  798. content: '您未登录,请登录!',
  799. success: function(res) {
  800. if (res.confirm) {
  801. uni.navigateTo({
  802. url: '/pages/users/login/index'
  803. })
  804. } else if (res.cancel) {}
  805. }
  806. })
  807. // #endif
  808. // #ifdef MP
  809. this.$set(this, 'isAuto', true);
  810. this.$set(this, 'isShowAuth', true);
  811. // #endif
  812. } else {
  813. uni.navigateTo({
  814. url: `/pages/activity/goods_bargain_details/index?id=${item.id}&bargain=${this.uid}`
  815. })
  816. }
  817. },
  818. // 授权关闭
  819. authColse: function(e) {
  820. this.isShowAuth = e
  821. },
  822. // 首发新品详情
  823. goDetail(item) {
  824. if (item.activity && item.activity.type === "2" && !this.isLogin) {
  825. // #ifdef H5
  826. uni.showModal({
  827. title: '提示',
  828. content: '您未登录,请登录!',
  829. success: function(res) {
  830. if (res.confirm) {
  831. uni.navigateTo({
  832. url: '/pages/users/login/index'
  833. })
  834. } else if (res.cancel) {}
  835. }
  836. })
  837. // #endif
  838. // #ifdef MP
  839. this.$set(this, 'isAuto', true);
  840. this.$set(this, 'isShowAuth', true);
  841. // #endif
  842. return
  843. } else {
  844. goShopDetail(item, this.uid).then(res => {
  845. uni.navigateTo({
  846. url: `/pages/goods_details/index?id=${item.id}`
  847. })
  848. })
  849. }
  850. },
  851. // 分类详情
  852. godDetail(item) {
  853. uni.navigateTo({
  854. url: `/pages/goods_details/index?id=${item.id}`
  855. })
  856. },
  857. //拼团详情
  858. goCombinDetail(item) {
  859. uni.navigateTo({
  860. url: `/pages/activity/combination_details/index?id=${item.product_group_id}`
  861. })
  862. },
  863. countTime: function() {
  864. // 获取当前时间
  865. var date = new Date();
  866. var now = date.getTime();
  867. //设置截止时间
  868. var endDate = new Date("2020-10-22 23:23:23");
  869. var end = endDate.getTime();
  870. //时间差
  871. var leftTime = end - now;
  872. //定义变量 d,h,m,s保存倒计时的时间
  873. if (leftTime >= 0) {
  874. this.d = Math.floor(leftTime / 1000 / 60 / 60 / 24);
  875. this.h = Math.floor(leftTime / 1000 / 60 / 60 % 24);
  876. this.m = Math.floor(leftTime / 1000 / 60 % 60);
  877. this.s = Math.floor(leftTime / 1000 % 60);
  878. this.sum_h = this.d * 24 + this.h
  879. }
  880. // console.log(this.h)
  881. // console.log(this.m)
  882. // console.log(this.s)
  883. // console.log(this.s);
  884. //递归每秒调用countTime方法,显示动态时间效果
  885. setTimeout(this.countTime, 1000);
  886. },
  887. //#ifdef H5
  888. ShareInfo(datas) {
  889. let data = this.storeInfo;
  890. let href = location.href;
  891. if (this.$wechat.isWeixin()) {
  892. if (this.isLogin) {
  893. href = href.indexOf("?") === -1 ? href + "?spid=" + this.uid : href + "&spid=" + this.uid;
  894. } else {
  895. href = href
  896. }
  897. let configAppMessage = {
  898. desc: datas.share_info,
  899. title: datas.share_title,
  900. link: href,
  901. imgUrl: datas.share_pic
  902. };
  903. this.$wechat.wechatEvevt([
  904. "updateAppMessageShareData",
  905. "updateTimelineShareData",
  906. "onMenuShareAppMessage",
  907. "onMenuShareTimeline"
  908. ], configAppMessage).then(res => {
  909. console.log(res, '=============================>>WXAPI');
  910. }).catch(err => {
  911. console.log(err);
  912. })
  913. }
  914. },
  915. //#endif
  916. moreShop() {
  917. uni.navigateTo({
  918. url: `/pages/store/shopStreet/index`
  919. })
  920. },
  921. getPower() {
  922. getPower().then( ({data}) => {
  923. if(data.openlink) {
  924. this.power = data.openlink
  925. uni.setStorageSync('power', data.openlink);
  926. }else {
  927. uni.showModal({
  928. title: '提示',
  929. showCancel: false,
  930. content: '抖音小程序主要为商品展示,不支持加入购物车和购买功能!',
  931. })
  932. }
  933. })
  934. }
  935. },
  936. mounted() {
  937. let self = this
  938. // #ifdef H5
  939. // 获取H5 搜索框高度
  940. let appSearchH = uni.createSelectorQuery().select(".serch-wrapper");
  941. appSearchH.boundingClientRect(function(data) {
  942. self.searchH = data.height
  943. }).exec()
  944. // #endif
  945. },
  946. // 滚动到底部
  947. onReachBottom() {
  948. console.log('到底了')
  949. if (this.navIndex == 0) {
  950. // 首页加载更多
  951. this.get_host_product();
  952. } else {
  953. // 分类栏目加载更多
  954. if (this.sortProduct.length > 0) {
  955. this.get_product_list();
  956. } else {
  957. this.get_host_product();
  958. }
  959. }
  960. },
  961. // 滚动监听
  962. onPageScroll(e) {
  963. // #ifdef H5
  964. let self = this
  965. if (e.scrollTop >= self.searchH) {
  966. self.isFixed = true
  967. } else {
  968. self.isFixed = false
  969. }
  970. // #endif
  971. }
  972. }
  973. </script>
  974. <style>
  975. page {
  976. display: flex;
  977. flex-direction: column;
  978. height: 100%;
  979. /* #ifdef H5 */
  980. background-color: #fff;
  981. /* #endif */
  982. }
  983. </style>
  984. <style lang="scss">
  985. .area-row {
  986. overflow: hidden;
  987. text-overflow: ellipsis;
  988. white-space: nowrap;
  989. display: block;
  990. width: 100%;
  991. text-align: center;
  992. }
  993. .seckill-count,
  994. .assist-count {
  995. background-color: #fff;
  996. margin-bottom: 20rpx;
  997. border-radius: 16rpx;
  998. padding: 20rpx 0 26rpx 20rpx;
  999. box-shadow: 4rpx 2rpx 12rpx 2rpx rgba(0, 0, 0, 0.03);
  1000. }
  1001. .assist-count {
  1002. padding: 20rpx 0 26rpx 0;
  1003. }
  1004. .wapper_count {
  1005. padding: 0 0 26rpx 20rpx;
  1006. }
  1007. .presell-count {
  1008. background-color: #fff;
  1009. margin-bottom: 20rpx;
  1010. border-radius: 16rpx;
  1011. box-shadow: 4rpx 2rpx 12rpx 2rpx rgba(0, 0, 0, 0.03);
  1012. }
  1013. .spike-bd {
  1014. margin-bottom: 20rpx;
  1015. border-radius: 16rpx;
  1016. padding-left: 20rpx;
  1017. display: flex;
  1018. position: relative;
  1019. &.title-bd {
  1020. margin-bottom: 0;
  1021. padding: 30rpx 0 20rpx 20rpx;
  1022. border-radius: 16rpx 16rpx 0 0;
  1023. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAsYAAABmCAMAAAD/NadAAAAAilBMVEX5fjv5fjv5fjv5fjv5fjv5fjv5fjv5fjv5fjv5fjv5fjv5fjv5fjv5fjv9hz39hTj9xEv9vUj9tkT9vUj8nDb8ljL8qzv8ozf8sED8s0H+yU/9uET9pz78ojr8qTv8nTP8qz39rkP8iDn8kS/9hDb8h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e+NY+GeRaCMMw0Pc/9ZeQ/Ucoi7dHMxK0TVzTBPgAfsbyAfyM5QOE8TW76bAkjebwU47zxoTHdAl5JE+IRHKNyeXk0njqtwHJnffC6qjex+ZUlIXwNzkLVlTGQ0aa4rAMiG6AyGPbSXr6zlBQ2MuSyoEtxGk9JrSOGarOThexoiNZC56rKQyWWixl72lDA5Vxfjy32P5ebKR5gR3uX056JSPZuXirlbELESXts0fTOF0l3Cjus2LeFJ0LtzqcdlLHLX236tGt1WzE+FaLdDkezNmoETk93aolVkO8bvwOlNsMi9lQUh2o+IkSw50Gi4iIiIiIiIiIiIiIiIiIiMjhD4tMxFN8soNOAAAAAElFTkSuQmCC');
  1024. background-size: 100%;
  1025. .more-btn {
  1026. top: 28rpx;
  1027. }
  1028. }
  1029. .title {
  1030. font-weight: bold;
  1031. color: #282828;
  1032. font-size: 32rpx;
  1033. }
  1034. .spike-distance {
  1035. margin-left: 15rpx;
  1036. position: relative;
  1037. top: 1.4rpx;
  1038. display: flex;
  1039. border: 1px solid #E93323;
  1040. border-radius: 4rpx;
  1041. height: 40rpx;
  1042. .bg-red {
  1043. font-size: 20rpx;
  1044. color: #fff;
  1045. background-color: #E93323;
  1046. padding: 0 10rpx;
  1047. line-height: 38rpx;
  1048. height: 38rpx;
  1049. }
  1050. .time {
  1051. font-size: 22rpx;
  1052. padding: 0 12rpx;
  1053. color: #E93323;
  1054. height: 38rpx;
  1055. line-height: 38rpx;
  1056. /deep/.red {
  1057. margin: 0;
  1058. }
  1059. }
  1060. .red-color {
  1061. color: #E93323;
  1062. }
  1063. }
  1064. .more-btn {
  1065. position: absolute;
  1066. right: 20rpx;
  1067. top: 0;
  1068. color: #999;
  1069. font-size: 28rpx;
  1070. .iconfont {
  1071. font-size: 26rpx;
  1072. }
  1073. }
  1074. }
  1075. .spike-wrapper {
  1076. width: 100%;
  1077. margin-top: 27rpx;
  1078. .spike-item {
  1079. display: inline-block;
  1080. width: 222rpx;
  1081. margin-right: 20rpx;
  1082. &.presell-item {
  1083. width: 210rpx;
  1084. .img-box {
  1085. height: 210rpx;
  1086. image {
  1087. height: 210rpx;
  1088. }
  1089. }
  1090. .name {
  1091. margin-top: 8rpx;
  1092. color: #282828;
  1093. }
  1094. }
  1095. &.assist-item {
  1096. box-shadow: 0px 2px 20px 0px rgba(0, 0, 0, 0.08);
  1097. }
  1098. .img-box {
  1099. position: relative;
  1100. height: 222rpx;
  1101. .participants {
  1102. padding: 4rpx 12rpx;
  1103. border-radius: 16rpx;
  1104. background: rgba(0, 0, 0, .35);
  1105. color: #fff;
  1106. text-align: center;
  1107. position: absolute;
  1108. top: 10rpx;
  1109. left: 10rpx;
  1110. font-size: 20rpx;
  1111. }
  1112. image {
  1113. width: 100%;
  1114. height: 222rpx;
  1115. border-radius: 16rpx;
  1116. }
  1117. .box_bg {
  1118. position: absolute;
  1119. bottom: 0;
  1120. left: 0;
  1121. text-align: center;
  1122. width: 149rpx;
  1123. height: 42rpx;
  1124. line-height: 42rpx;
  1125. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJUAAAAqCAMAAACN4OndAAAAmVBMVEUAAAD/dy37mij/eiz+hCv+fSz8kyn+gCz9hyv9jSr9iir8kCn8lin7lyj7mij7mij7mij7mij7mij7mij7mij7mij7mSj7mij7mij7mij7mSj7mij7mij7mij+gSz7mij7mij7mij7mij7mij/dy37mij7mCj/eyz+fiz+gSv8kCn9jCr9hiv9iSr8lCn8kin+hCv8lin9jiqx53KQAAAAJHRSTlMA8fHx8fHx8fHx8fHx8cdMjnpvNBgN59vYrp9eKfXt4tGUP76oKK8EAAABeklEQVRYw82Z126DQBBFx6S3xRQ3wDXZkJ7Y//9xgVm2GQXJIZHveWEfj0YczUpLA5cTzZniomaxOG24ZK6ZK+aGOVfc1twxwW9YhqR5aFE2PCmema+KN+adeWV2uxfms+ajZrt9NMhDET9blT21enitW1bd07JebS3FX2glXVZllxbzP1oTUqQja+WLabq0fK/+WkNSTOPGqj2tI/zzG2IyOdNWAClOiVnXp8YBIMXxJk2LUFSnubaCSDEYN19tBZSilCttBZRiFaO2AkpRykJb4aRYj0pb4aQohd04OCmKkbWCSXE1ImuFkmKQkmOFkmJIrhVIijPyrEBSDH0rkBSjyiiMjBVKisNIyMBYIaU4M1ZIKdqNg5RibqyQUkyMFVCKEzJWQClm1gooxdBa4aS4JGuFk2LkWMGkGLj3K5gUY3c7o6Q4IdcKJcXEswJJMSbPCiPFiHwrhBTnOe1ZAaR4X9C+1dFTFDk5DHrQfjVQHPhqMBZZnJDLN9Y/g30cqDDDAAAAAElFTkSuQmCC');
  1126. background-repeat: no-repeat;
  1127. background-size: cover;
  1128. color: #fff;
  1129. font-size: 22rpx;
  1130. }
  1131. .msg {
  1132. position: absolute;
  1133. left: 10rpx;
  1134. bottom: 16rpx;
  1135. width: 86rpx;
  1136. height: 30rpx;
  1137. background: rgba(255, 255, 255, 1);
  1138. border: 1px solid rgba(255, 109, 96, 1);
  1139. border-radius: 6rpx;
  1140. font-size: 20rpx;
  1141. color: $theme-color;
  1142. }
  1143. }
  1144. .info {
  1145. margin-top: 10rpx;
  1146. .name {
  1147. font-size: 26rpx;
  1148. }
  1149. .stock-box {
  1150. width: 100%;
  1151. height: 20rpx;
  1152. background-color: #FFDCD9;
  1153. border-radius: 20rpx;
  1154. margin-top: 13rpx;
  1155. position: relative;
  1156. color: #fff;
  1157. font-size: 18rpx;
  1158. line-height: 20rpx;
  1159. text-align: center;
  1160. overflow: hidden;
  1161. .grabbed {
  1162. height: 20rpx;
  1163. background: linear-gradient(#FF0000, #FF5400);
  1164. position: absolute;
  1165. top: 0;
  1166. left: 0;
  1167. border-radius: 20rpx;
  1168. }
  1169. .stock-sales {
  1170. position: absolute;
  1171. left: 50%;
  1172. margin-left: -40rpx;
  1173. }
  1174. }
  1175. .price-box {
  1176. display: flex;
  1177. align-items: center;
  1178. justify-content: start;
  1179. margin-top: 4rpx;
  1180. &.presell-price {
  1181. display: block;
  1182. .price {}
  1183. .old-price {
  1184. display: block;
  1185. margin: 6rpx 0 0 0;
  1186. }
  1187. }
  1188. .tips {
  1189. display: flex;
  1190. align-items: center;
  1191. justify-content: center;
  1192. width: 28rpx;
  1193. height: 28rpx;
  1194. background-color: $theme-color;
  1195. color: #fff;
  1196. font-size: 20rpx;
  1197. border-radius: 2px;
  1198. }
  1199. .price {
  1200. display: flex;
  1201. color: $theme-color;
  1202. font-size: 28rpx;
  1203. font-weight: bold;
  1204. text {
  1205. font-size: 18rpx;
  1206. }
  1207. }
  1208. .old-price {
  1209. display: flex;
  1210. margin-left: 10rpx;
  1211. color: #AAAAAA;
  1212. text-decoration: line-through;
  1213. font-size: 20rpx;
  1214. text {
  1215. font-size: 18rpx;
  1216. }
  1217. }
  1218. }
  1219. }
  1220. .assist-info {
  1221. .price {
  1222. display: flex;
  1223. color: $theme-color;
  1224. font-size: 28rpx;
  1225. font-weight: bold;
  1226. margin-top: 2rpx;
  1227. text {
  1228. font-size: 18rpx;
  1229. }
  1230. .assist_price {
  1231. font-size: 20rpx;
  1232. display: inline-block;
  1233. width: 82rpx;
  1234. height: 32rpx;
  1235. text-align: center;
  1236. line-height: 30rpx;
  1237. background: #ffeae5;
  1238. border-radius: 4rpx;
  1239. }
  1240. }
  1241. .price-box {
  1242. padding: 15rpx 15rpx 8rpx;
  1243. .name {
  1244. font-size: 24rpx;
  1245. color: #333;
  1246. line-height: 30rpx;
  1247. }
  1248. }
  1249. .initiate_btn {
  1250. width: 100%;
  1251. height: 48rpx;
  1252. line-height: 48rpx;
  1253. ;
  1254. background: linear-gradient(90deg, #FF0000 0%, #FF5400 100%);
  1255. text-align: center;
  1256. color: #fff;
  1257. font-size: 24rpx;
  1258. border-radius: 0 0 16rpx 16rpx;
  1259. }
  1260. }
  1261. }
  1262. }
  1263. .combination-count {
  1264. background-color: #fff;
  1265. margin-bottom: 11px;
  1266. border-radius: 16rpx;
  1267. box-shadow: 2px 1px 6px 1px rgba(0, 0, 0, 0.03);
  1268. padding: 25rpx 20rpx;
  1269. position: relative;
  1270. .spike-wrapper {
  1271. overflow: hidden;
  1272. width: 670rpx;
  1273. }
  1274. }
  1275. /deep/.spike-box .styleAll {
  1276. display: inline-block;
  1277. width: 44rpx;
  1278. height: 40rpx;
  1279. line-height: 40rpx;
  1280. padding: 0;
  1281. text-align: center;
  1282. border-radius: 8rpx;
  1283. }
  1284. .page-index {
  1285. display: flex;
  1286. flex-direction: column;
  1287. min-height: 100%;
  1288. background: linear-gradient(180deg, #fff 0%, #f5f5f5 100%);
  1289. .ad {
  1290. width: 710rpx;
  1291. height: 156rpx;
  1292. margin: 10rpx auto 20rpx auto;
  1293. image {
  1294. width: 100%;
  1295. height: 100%;
  1296. }
  1297. }
  1298. // &.bgf{
  1299. // background: #fff;
  1300. // }
  1301. .header {
  1302. width: 100%;
  1303. // height: 320rpx;
  1304. .btn {
  1305. position: relative;
  1306. .iconfont {
  1307. font-size: 45rpx;
  1308. }
  1309. }
  1310. .iconnum {
  1311. min-width: 6px;
  1312. color: #fff;
  1313. border-radius: 15rpx;
  1314. position: absolute;
  1315. right: -10rpx;
  1316. top: -10rpx;
  1317. font-size: 10px;
  1318. padding: 0 4px;
  1319. }
  1320. .serch-wrapper {
  1321. align-items: center;
  1322. padding: 20rpx 30rpx 0 30rpx;
  1323. .logo {
  1324. width: 127rpx;
  1325. height: 46rpx;
  1326. }
  1327. image {
  1328. width: 118rpx;
  1329. height: 42rpx;
  1330. }
  1331. .input,.uninput {
  1332. display: flex;
  1333. align-items: center;
  1334. max-width: 490rpx;
  1335. min-width: 460rpx;
  1336. height: 64rpx;
  1337. padding: 0 0 0 30rpx;
  1338. background: rgba(237, 237, 237, 1);
  1339. border: 1px solid rgba(241, 241, 241, 1);
  1340. border-radius: 32rpx;
  1341. color: #BBBBBB;
  1342. font-size: 28rpx;
  1343. .iconfont {
  1344. margin-right: 20rpx;
  1345. }
  1346. }
  1347. .uninput{
  1348. min-width: 610rpx;
  1349. max-width: 620rpx;
  1350. }
  1351. }
  1352. .tabNav {
  1353. padding-top: 24rpx;
  1354. }
  1355. }
  1356. /*直播*/
  1357. .live-count {
  1358. background-color: #fff;
  1359. margin-bottom: 20rpx;
  1360. border-radius: 16rpx;
  1361. padding: 20rpx 0 26rpx 20rpx;
  1362. box-shadow: 4rpx 2rpx 12rpx 2rpx rgba(0, 0, 0, 0.03);
  1363. }
  1364. .live-wrapper {
  1365. position: relative;
  1366. width: 100%;
  1367. overflow: hidden;
  1368. border-radius: 16rpx;
  1369. image {
  1370. width: 100%;
  1371. height: 400rpx;
  1372. }
  1373. .live-top {
  1374. z-index: 20;
  1375. position: absolute;
  1376. left: 0;
  1377. top: 0;
  1378. display: flex;
  1379. align-items: center;
  1380. justify-content: center;
  1381. color: #fff;
  1382. width: 120rpx;
  1383. height: 32rpx;
  1384. &.playRadius {
  1385. border-radius: 0;
  1386. }
  1387. &.notPlayRadius {
  1388. border-radius: 0rpx 0px 18rpx 0px;
  1389. }
  1390. image {
  1391. width: 30rpx;
  1392. height: 30rpx;
  1393. margin-right: 6rpx;
  1394. /* #ifdef H5 */
  1395. display: block;
  1396. /* #endif */
  1397. }
  1398. }
  1399. .broadcast-time {
  1400. z-index: 20;
  1401. position: absolute;
  1402. left: 110rpx;
  1403. top: 0;
  1404. display: flex;
  1405. align-items: center;
  1406. justify-content: center;
  1407. color: #fff;
  1408. width: 160rpx;
  1409. height: 36rpx;
  1410. background: rgba(0, 0, 0, .4);
  1411. font-size: 22rpx;
  1412. border-radius: 0 0 18rpx 0;
  1413. }
  1414. .live-title {
  1415. position: absolute;
  1416. left: 0;
  1417. bottom: 6rpx;
  1418. width: 100%;
  1419. height: 70rpx;
  1420. line-height: 70rpx;
  1421. text-align: center;
  1422. font-size: 30rpx;
  1423. color: #fff;
  1424. background: rgba(0, 0, 0, 0.35);
  1425. }
  1426. &.mores {
  1427. width: 100%;
  1428. .item {
  1429. position: relative;
  1430. width: 280rpx;
  1431. height: 224rpx;
  1432. display: inline-block;
  1433. border-radius: 16rpx;
  1434. overflow: hidden;
  1435. margin-right: 20rpx;
  1436. image {
  1437. width: 320rpx;
  1438. height: 180rpx;
  1439. border-radius: 16rpx;
  1440. }
  1441. .live-title {
  1442. height: 40rpx;
  1443. line-height: 40rpx;
  1444. text-align: center;
  1445. font-size: 22rpx;
  1446. }
  1447. .live-top {
  1448. width: 110rpx;
  1449. height: 32rpx;
  1450. font-size: 22rpx;
  1451. image {
  1452. width: 20rpx;
  1453. height: 20rpx;
  1454. }
  1455. }
  1456. }
  1457. }
  1458. }
  1459. /* #ifdef MP */
  1460. .mp-header {
  1461. z-index: 999;
  1462. position: fixed;
  1463. left: 0;
  1464. top: 0;
  1465. width: 100%;
  1466. /* #ifdef H5 */
  1467. padding-bottom: 20rpx;
  1468. /* #endif */
  1469. // background: linear-gradient(90deg, $bg-star 50%, $bg-end 100%);
  1470. background-color: #fff;
  1471. .serch-wrapper {
  1472. height: 100%;
  1473. align-items: center;
  1474. padding: 0 50rpx 0 53rpx;
  1475. image {
  1476. width: 118rpx;
  1477. height: 42rpx;
  1478. margin-right: 30rpx;
  1479. }
  1480. .input,.uninput {
  1481. display: flex;
  1482. align-items: center;
  1483. width: 305rpx;
  1484. height: 58rpx;
  1485. padding: 0 0 0 30rpx;
  1486. background: rgba(247, 247, 247, 1);
  1487. border: 1px solid rgba(241, 241, 241, 1);
  1488. border-radius: 29rpx;
  1489. color: #BBBBBB;
  1490. font-size: 28rpx;
  1491. .iconfont {
  1492. margin-right: 20rpx;
  1493. }
  1494. }
  1495. .uninput{
  1496. min-width: 460rpx;
  1497. max-width: 480rpx;
  1498. }
  1499. }
  1500. }
  1501. /* #endif */
  1502. }
  1503. .activity_pic {
  1504. margin-left: 20rpx;
  1505. padding-left: 20rpx;
  1506. position: relative;
  1507. &::before {
  1508. content: "";
  1509. display: inline-block;
  1510. width: 2rpx;
  1511. height: 40rpx;
  1512. background: #DCDCDC;
  1513. position: absolute;
  1514. top: 0;
  1515. left: 0;
  1516. }
  1517. .picture {
  1518. display: inline-block;
  1519. }
  1520. .avatar {
  1521. width: 42rpx;
  1522. height: 42rpx;
  1523. line-height: 20rem;
  1524. display: inline-block;
  1525. background: #2ddcd3 no-repeat center/cover;
  1526. position: relative;
  1527. text-align: center;
  1528. color: #fff;
  1529. font-weight: 600;
  1530. vertical-align: bottom;
  1531. font-size: .875rem;
  1532. -webkit-user-select: none;
  1533. -moz-user-select: none;
  1534. -ms-user-select: none;
  1535. user-select: none;
  1536. border-radius: 50%;
  1537. background-repeat: no-repeat;
  1538. background-size: cover;
  1539. background-position: 0 0;
  1540. margin-right: -10rpx;
  1541. box-shadow: 0 0 0 1px #fff;
  1542. }
  1543. .pic_count {
  1544. margin-left: 30rpx;
  1545. color: #999999;
  1546. font-size: 26rpx;
  1547. position: relative;
  1548. top: -4rpx;
  1549. }
  1550. }
  1551. .productList {
  1552. background-color: #F1F1F1;
  1553. .sort {
  1554. width: 710rpx;
  1555. max-height: 380rpx;
  1556. background: rgba(255, 255, 255, 1);
  1557. border-radius: 16rpx;
  1558. padding: 0 0rpx 30rpx;
  1559. flex-wrap: wrap;
  1560. margin: 25rpx auto 30rpx auto;
  1561. padding-top: 8rpx;
  1562. &.no_pad {
  1563. padding: 0;
  1564. }
  1565. /* #ifdef MP */
  1566. /* #endif */
  1567. .item {
  1568. .pictrues {
  1569. width: 90rpx;
  1570. height: 90rpx;
  1571. background: rgba(248, 248, 248, 1);
  1572. border-radius: 50%;
  1573. margin: 0 auto;
  1574. }
  1575. width: 20%;
  1576. margin-top: 30rpx;
  1577. text-align: center;
  1578. image {
  1579. width: 90rpx;
  1580. height: 90rpx;
  1581. }
  1582. .text {
  1583. color: #272727;
  1584. font-size: 24rpx;
  1585. margin-top: 10rpx;
  1586. overflow: hidden;
  1587. white-space: nowrap;
  1588. text-overflow: ellipsis;
  1589. }
  1590. }
  1591. }
  1592. }
  1593. .productList .list {
  1594. padding: 0 20rpx;
  1595. }
  1596. .productList .list.on {
  1597. background-color: #fff;
  1598. border-top: 1px solid #f6f6f6;
  1599. }
  1600. .productList .list .item {
  1601. width: 345rpx;
  1602. margin-top: 20rpx;
  1603. background-color: #fff;
  1604. border-radius: 10rpx;
  1605. }
  1606. .productList .list .item.on {
  1607. width: 100%;
  1608. display: flex;
  1609. border-bottom: 1rpx solid #f6f6f6;
  1610. padding: 30rpx 0;
  1611. margin: 0;
  1612. }
  1613. .productList .list .item .pictrue {
  1614. position: relative;
  1615. width: 100%;
  1616. height: 345rpx;
  1617. }
  1618. .productList .list .item .pictrue.on {
  1619. width: 180rpx;
  1620. height: 180rpx;
  1621. }
  1622. .productList .list .item .pictrue image {
  1623. width: 100%;
  1624. height: 100%;
  1625. border-radius: 10rpx 10rpx 0 0;
  1626. }
  1627. .productList .list .item .pictrue image.on {
  1628. border-radius: 6rpx;
  1629. }
  1630. .productList .list .item .text {
  1631. padding: 14rpx 17rpx 26rpx 17rpx;
  1632. font-size: 28rpx;
  1633. color: #212121;
  1634. }
  1635. .productList .list .item .text.on {
  1636. width: 508rpx;
  1637. padding: 0 0 0 22rpx;
  1638. }
  1639. .productList .list .item .text .money {
  1640. font-size: 26rpx;
  1641. font-weight: bold;
  1642. margin-top: 8rpx;
  1643. }
  1644. .productList .list .item .text .coupon {
  1645. background: rgba(255, 248, 247, 1);
  1646. border: 1px solid rgba(233, 51, 35, 1);
  1647. border-radius: 4rpx;
  1648. font-size: 20rpx;
  1649. margin-left: 18rpx;
  1650. padding: 1rpx 4rpx;
  1651. }
  1652. .productList .list .item .text .money.on {
  1653. margin-top: 50rpx;
  1654. }
  1655. .productList .list .item .text .money .num {
  1656. font-size: 34rpx;
  1657. }
  1658. .productList .list .item .text .vip {
  1659. font-size: 22rpx;
  1660. color: #aaa;
  1661. margin-top: 7rpx;
  1662. }
  1663. .productList .list .item .text .vip.on {
  1664. margin-top: 12rpx;
  1665. }
  1666. .productList .list .item .text .vip .vip-money {
  1667. font-size: 24rpx;
  1668. color: #282828;
  1669. font-weight: bold;
  1670. }
  1671. .productList .list .item .text .vip .vip-money image {
  1672. width: 46rpx;
  1673. height: 21rpx;
  1674. margin-left: 4rpx;
  1675. }
  1676. .pictrue {
  1677. position: relative;
  1678. }
  1679. .fixed {
  1680. z-index: 100;
  1681. position: fixed;
  1682. left: 0;
  1683. top: 0;
  1684. background-color: #fff;
  1685. box-shadow: 0 10rpx 20rpx -5rpx rgba(0, 0, 0, 0.06);
  1686. // background: linear-gradient(90deg, red 50%, #ff5400 100%);
  1687. }
  1688. .mores-txt {
  1689. width: 100%;
  1690. align-items: center;
  1691. justify-content: center;
  1692. height: 70rpx;
  1693. color: #999;
  1694. font-size: 24rpx;
  1695. .iconfont {
  1696. margin-top: 2rpx;
  1697. font-size: 20rpx;
  1698. }
  1699. }
  1700. .menu-txt {
  1701. font-size: 24rpx;
  1702. color: #454545;
  1703. }
  1704. .mp-bg {
  1705. position: absolute;
  1706. left: 0;
  1707. top: 0;
  1708. width: 100%;
  1709. height: 330rpx;
  1710. // background: linear-gradient(90deg, #fff 50%, #fff 100%);
  1711. // border-radius: 0 0 30rpx 30rpx;
  1712. }
  1713. .main {
  1714. padding: 0 20rpx;
  1715. }
  1716. </style>