template2.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  1. <template>
  2. <view>
  3. <view class="flex-col bg--w111-fff" :style="{ height: windowHeight + 'px' }">
  4. <view :style="{paddingTop: sysHeight + 'px'}" class="text--w111-999">
  5. <view class="h-80 px-32 flex-y-center">
  6. <text class="iconfont icon-ic_leftarrow fs-40 mr-16" @tap="goBack"></text>
  7. <!-- #ifdef MP -->
  8. <view class="w-468 h-58 flex-y-center rd-30rpx bg--w111-f5f5f5 px-32">
  9. <!-- #endif -->
  10. <!-- #ifndef MP -->
  11. <view class="flex-1 h-58 flex-y-center rd-30rpx bg--w111-f5f5f5 px-32">
  12. <!-- #endif -->
  13. <text class="iconfont icon-ic_search fs-28"></text>
  14. <input class="flex-1 h-full fs-28 pl-18 text--w111-333" v-model="keyword" placeholder="请输入商品名称" placeholder-class="text--w111-999" @confirm="searchSubmit" />
  15. <!-- <text class="fs-24 pl-18">请输入商品名称</text> -->
  16. </view>
  17. </view>
  18. </view>
  19. <view class="scroll_box flex flex-1">
  20. <view class="w-168 h-full bg--w111-f5f5f5">
  21. <scroll-view :scroll-top="0" scroll-y="true" class="h-full">
  22. <view class="w-168 h-96 flex-center fs-26 text--w111-666"
  23. v-for="(item,index) in categoryList":key="index"
  24. :class="index == navActive?'aside_active':''"
  25. @tap="tapNav(index,item)">
  26. {{item.cate_name}}
  27. </view>
  28. </scroll-view>
  29. </view>
  30. <view class="relative w-full h-full">
  31. <view class="flex-1 pl-24 pr-20 abs-lt">
  32. <view class="flex mt-24 mb-16">
  33. <scroll-view scroll-x="true" class="white-nowrap vertical-middle w-464"
  34. show-scrollbar="false">
  35. <view class="inline-block mr-16"
  36. v-for="(item,index) in categoryErList" :key="index"
  37. @tap="longClick(index,item)">
  38. <view
  39. class="w-144 h-56 rd-30rpx bg--w111-f5f5f5 flex-center fs-24 text--w111-333"
  40. :class="index===tabClick?'cate_active':''">{{item.cate_name}}</view>
  41. </view>
  42. </scroll-view>
  43. <view class="w-56 h-56 rd-30rpx bg--w111-f5f5f5 flex-center ml-16"
  44. v-if="categoryErList.length"
  45. @tap="openCateDrawer(false)">
  46. <text class="iconfont icon-ic_downarrow fs-32 text--w111-333"></text>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="h-96"></view>
  51. <view class="px-24">
  52. <scroll-view :scroll-top="0" scroll-y="true" @scrolltolower="lower" @scroll="scroll"
  53. :style="{'height':scrollHeight + 'px'}">
  54. <!-- 小图模板 -->
  55. <view>
  56. <view class="mb-24 flex justify-between" v-for="(item,index) in tempArr"
  57. :key="index" @tap="goDetail(item)">
  58. <easy-loadimage
  59. :image-src="item.image"
  60. :borderSrc="item.activity_frame.image"
  61. width="176rpx"
  62. height="176rpx"
  63. borderRadius="16rpx"></easy-loadimage>
  64. <view class="flex-1 flex-col justify-between pl-20">
  65. <view class="w-full">
  66. <view class="line1 w-346 fs-28 text-#333 lh-40rpx">{{item.store_name}}</view>
  67. <view class="flex items-end flex-wrap mt-12 w-full">
  68. <BaseTag
  69. :text="label.label_name"
  70. :color="label.color"
  71. :background="label.bg_color"
  72. :borderColor="label.border_color"
  73. :circle="label.border_color ? true : false"
  74. :imgSrc="label.icon"
  75. v-for="(label, idx) in item.store_label" :key="idx"></BaseTag>
  76. </view>
  77. </view>
  78. <view class="flex-between-center">
  79. <view class="flex items-baseline">
  80. <baseMoney :money="item.price" symbolSize="24" integerSize="40" color="#FF7E00"
  81. decimalSize="24" weight>
  82. </baseMoney>
  83. </view>
  84. <view class="flex-center w-48 h-48 rd-30rpx bg-primary text--w111-fff" v-if="item.spec_type">
  85. <text class="iconfont icon-ic_ShoppingCart1 fs-30"></text>
  86. </view>
  87. <view v-if="!item.spec_type">
  88. <view class="flex-center w-48 h-48 rd-30rpx bg-primary text--w111-fff ">
  89. <text class="iconfont icon-ic_ShoppingCart1 fs-30"></text>
  90. </view>
  91. </view>
  92. </view>
  93. </view>
  94. </view>
  95. </view>
  96. <view v-if="!tempArr.length && !loading">
  97. <emptyPage :title="keyword ? '无搜索结果,换个词试试吧' : '暂无商品,看点别的吧~'"
  98. :src="keyword ? '/statics/images/noSearch.gif' : '/statics/images/empty-box.gif'"></emptyPage>
  99. </view>
  100. <view class="white-box"></view>
  101. </scroll-view>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. <view class="w-full fixed-lb pb-safe bg--w111-fff">
  107. <view class="w-full h-96 flex-between-center pl-28 pr-12">
  108. <view class="flex-y-center" @tap="getCartList(0)">
  109. <view class="w-96 h-96 rd-50rpx bg-primary flex-center relative cart-icon">
  110. <image src="@/static/img/cart_pic.png" class="w-54 h-54"></image>
  111. <uni-badge class="badge-style" v-if="cartData.cartList.length" :text="totalCartNum"></uni-badge>
  112. </view>
  113. <view class="flex items-baseline ml-24">
  114. <baseMoney :money="totalPrice" symbolSize="32" integerSize="48" decimalSize="32"
  115. color="#333" weight></baseMoney>
  116. <view class="fs-24 text--w111-999 lh-34rpx pl-16" v-show="totalPrice > 0">
  117. 查看明细 <text class="iconfont icon-ic_uparrow fs-24"></text>
  118. </view>
  119. </view>
  120. </view>
  121. <view class="w-186 h-72 rd-40rpx flex-center text--w111-fff fs-26 fw-500 bg-primary mr-12"
  122. @tap="subOrder">去结算({{cartData.cartList.length}})</view>
  123. </view>
  124. </view>
  125. <view class="more_box abs-lt w-full bg--w111-fff rd-b-32rpx z-20" v-show="showCateDrawer">
  126. <view :style="{paddingTop: sysHeight + 'px'}">
  127. <view class="h-80 px-32 flex-y-center">
  128. <!-- #ifdef MP -->
  129. <view class="w-508 h-58 flex-y-center rd-30rpx bg--w111-f5f5f5 px-32">
  130. <!-- #endif -->
  131. <!-- #ifndef MP -->
  132. <view class="w-full h-58 flex-y-center rd-30rpx bg--w111-f5f5f5 px-32">
  133. <!-- #endif -->
  134. <text class="iconfont icon-ic_search fs-28"></text>
  135. <text class="fs-24 text--w111-999 pl-18">请输入商品名称</text>
  136. </view>
  137. </view>
  138. </view>
  139. <view class="pt-32 pl-30 pr-30">
  140. <view>
  141. <view class="fs-32 text--w111-333" v-if="categoryErList.length">
  142. {{categoryErList[tabClick].cate_name}}
  143. </view>
  144. <view class="grid-column-4 grid-gap-24rpx mt-24">
  145. <view class="w-154 h-56 rd-30rpx flex-center fs-24 text--w111-333 bg--w111-f5f5f5"
  146. v-for="(item,index) in categoryErList" :key="index" @tap="longClick(index,item)"
  147. :class="index===tabClick?'cate_active':''">
  148. {{item.cate_name}}
  149. </view>
  150. </view>
  151. </view>
  152. <view class="flex-center fs-24 text--w111-999 h-80 mt-32" @tap="closeCateDrawer">
  153. <text>点击收起 <text class="iconfont icon-ic_uparrow fs-24 pl-4"></text> </text>
  154. </view>
  155. </view>
  156. </view>
  157. <view class="mask" v-show="showCateDrawer" @tap="closeCateDrawer"></view>
  158. <cartList
  159. ref="cartPopup"
  160. :cartData="cartData"
  161. @closeList="closeList"
  162. @onSelect="selectitem"
  163. @onSelectAll="selectAll"
  164. @onDelCart="cartDelChange"
  165. @onCartConfirm="subOrder"
  166. @onCartNum="cartNumChange">
  167. </cartList>
  168. <productWindow
  169. :attr="attr"
  170. :cartButton="storeInfo.cart_button"
  171. :productId="id"
  172. :userId="userId"
  173. @myevent="onMyEvent"
  174. @ChangeAttr="ChangeAttr"
  175. @ChangeCartNum="ChangeCartNumDuo"
  176. @attrVal="attrVal"
  177. @iptCartNum="iptCartNum"
  178. @deliveryFun="deliveryFun"
  179. @onAddressId="onAddressId"
  180. @onstoreId="onstoreId"
  181. @goCat="goCatNum"></productWindow>
  182. </view>
  183. </template>
  184. <script>
  185. let windowHeight = uni.getSystemInfoSync().windowHeight;
  186. let sysHeight = uni.getSystemInfoSync().statusBarHeight;
  187. import { adminCategory, adminProList, adminCartList } from "@/api/admin.js"
  188. import { getAttr, postCartNum } from '@/api/store.js';
  189. import { mapState, mapGetters } from 'vuex';
  190. import {goShopDetail} from '@/libs/order.js';
  191. import {toLogin} from '@/libs/login.js';
  192. import skuSelect from '../../components/skuSelect.js'
  193. import emptyPage from '@/components/emptyPage.vue';
  194. import productWindow from "../../components/productWindow.vue"
  195. import cartList from "../../components/cartList.vue"
  196. export default {
  197. props: {
  198. userId:{
  199. type: [Number, String],
  200. default: 0
  201. },
  202. touristId:{
  203. type: Number,
  204. default: 0
  205. }
  206. },
  207. data() {
  208. return {
  209. windowHeight: windowHeight,
  210. showCateDrawer: false,
  211. sysHeight: sysHeight,
  212. categoryList: [],
  213. navActive: 0,
  214. categoryTitle: '',
  215. categoryErList: [],
  216. tabLeft: 0,
  217. isWidth: 0, //每个导航栏占位
  218. tabClick: 0, //导航栏被点击
  219. iSlong: false,
  220. tempArr: [],
  221. loading: false,
  222. loadend: false,
  223. loadTitle: '加载更多',
  224. page: 1,
  225. limit: 10,
  226. cid: 0, //一级分类
  227. sid: 0, //二级分类
  228. tid: 0, //三级分类
  229. keyword:'',
  230. isAuto: false, //没有授权的不会自动授权
  231. isShowAuth: false, //是否隐藏授权
  232. attr: {
  233. cartAttr: false,
  234. productAttr: [],
  235. productSelect: {},
  236. deliveryType: [],
  237. },
  238. productValue: [],
  239. attrValue: '', //已选属性
  240. storeName: '', //多属性产品名称
  241. id: 0,
  242. cartData: {
  243. cartList: [],
  244. iScart: false
  245. },
  246. totalPrice: 0.00,
  247. totalCartNum: 0,
  248. lengthCart: 0,
  249. is_vip: 0, //是否是会员
  250. cart_num: 0,
  251. storeInfo: {},
  252. scrollHeight: 0,
  253. threeCateList: [],
  254. threeClick: 0,
  255. topNavShow: true,
  256. selectSku: {},
  257. skuArr: [],
  258. addressId: '',
  259. store_id: '',
  260. delivery_type: 0,
  261. totalCartNum: 0,
  262. }
  263. },
  264. mixins: [skuSelect],
  265. components: {
  266. emptyPage,
  267. productWindow,
  268. cartList
  269. },
  270. computed: {
  271. ...mapGetters(['isLogin', 'uid'])
  272. },
  273. mounted() {
  274. this.getAllCategory();
  275. setTimeout(() => {
  276. this.getScrollHeight();
  277. }, 500)
  278. if(this.isLogin){
  279. this.getCartList(1);
  280. }
  281. uni.$on('newAttrNum', (data) => {
  282. if (data.length) {
  283. this.tempArr.forEach((item) => {
  284. data.forEach(j => {
  285. if (item.id == j.id) {
  286. item.cart_num = j.num
  287. }
  288. })
  289. })
  290. }
  291. })
  292. uni.$on('newCartNum', (data) => {
  293. if (data.length) {
  294. this.tempArr.forEach((item) => {
  295. data.forEach(j => {
  296. if (item.id == j.product_id) {
  297. item.cart_num = 0
  298. }
  299. })
  300. })
  301. }
  302. })
  303. },
  304. methods: {
  305. getScrollHeight() {
  306. let sysH = uni.getSystemInfoSync().statusBarHeight;
  307. this.scrollHeight = windowHeight - sysH;
  308. },
  309. getAllCategory() {
  310. let that = this;
  311. adminCategory().then(res => {
  312. if (!res.data.length) return
  313. res.data.map(item=>{
  314. if(item.children && item.children.length){
  315. item.children.unshift({
  316. id:item.id,
  317. cate_name: '全部商品'
  318. })
  319. }
  320. })
  321. let data = res.data;
  322. that.categoryTitle = data[0].cate_name;
  323. that.cid = data[0].id;
  324. that.sid = 0;
  325. that.tid = 0;
  326. that.navActive = 0;
  327. that.tabClick = 0;
  328. that.categoryList = data;
  329. that.categoryErList = res.data[0].children ? res.data[0].children : [];
  330. that.page = 1;
  331. that.loadend = false;
  332. that.tempArr = [];
  333. that.productslist();
  334. })
  335. },
  336. // 产品列表
  337. productslist() {
  338. let that = this;
  339. if (that.loadend) return;
  340. if (that.loading) return;
  341. that.loading = true;
  342. that.loadTitle = '';
  343. adminProList({
  344. page: that.page,
  345. limit: that.limit,
  346. type: 1,
  347. cid: that.cid,
  348. sid: that.sid,
  349. tid: that.tid,
  350. keyword:that.keyword,
  351. product_type:[0],
  352. user_uid:that.userId,
  353. }).then(res => {
  354. let list = res.data,
  355. loadend = list.length < that.limit;
  356. that.tempArr = that.$util.SplitArray(list, that.tempArr);
  357. that.$set(that, 'tempArr', that.tempArr);
  358. that.loading = false;
  359. that.loadend = loadend;
  360. that.loadTitle = loadend ? "没有更多内容啦~" : "加载更多";
  361. that.page = that.page + 1;
  362. }).catch(err => {
  363. that.loading = false;
  364. that.loadTitle = '加载更多'
  365. });
  366. },
  367. tapNav(index, item) {
  368. uni.pageScrollTo({
  369. duration: 0,
  370. scrollTop: 0
  371. })
  372. let list = this.categoryList[index];
  373. this.navActive = index;
  374. this.categoryTitle = list.cate_name;
  375. this.categoryErList = item.children ? item.children : [];
  376. this.tabClick = 0;
  377. this.tabLeft = 0;
  378. this.cid = list.id;
  379. this.sid = 0;
  380. this.page = 1;
  381. this.loadend = false;
  382. this.tempArr = [];
  383. this.productslist();
  384. },
  385. // 导航栏点击
  386. longClick(index, item) {
  387. this.tabClick = index; //设置导航点击了哪一个
  388. this.sid = this.categoryErList[index].id;
  389. this.page = 1;
  390. this.loadend = false;
  391. this.tempArr = [];
  392. this.productslist();
  393. },
  394. searchSubmit(){
  395. this.page = 1;
  396. this.loadend = false;
  397. this.tempArr = [];
  398. this.productslist();
  399. },
  400. deepClone(obj) {
  401. let newObj = Array.isArray(obj) ? [] : {}
  402. if (obj && typeof obj === "object") {
  403. for (let key in obj) {
  404. if (obj.hasOwnProperty(key)) {
  405. newObj[key] = (obj && typeof obj[key] === 'object') ? this.deepClone(obj[key]) : obj[key];
  406. }
  407. }
  408. }
  409. return newObj
  410. },
  411. haveAll(arr) {
  412. let cloneMap = this.deepClone(arr),
  413. list = [];
  414. cloneMap.forEach(item => {
  415. list.push(item.id);
  416. })
  417. return list.includes(0) ? true : false
  418. },
  419. // 生成订单;
  420. subOrder() {
  421. let that = this,
  422. list = that.cartData.cartList,
  423. ids = [];
  424. if (list.length) {
  425. list.forEach(item => {
  426. if (item.attrStatus && item.status) {
  427. ids.push(item.id)
  428. }
  429. });
  430. uni.navigateTo({
  431. url: `/pages/behalf/order_confirm/index?cartId=${ids.join(',')}&uid=${this.userId}&news=0`
  432. });
  433. that.cartData.iScart = false;
  434. } else {
  435. return that.$util.Tips({
  436. title: '请选择产品'
  437. });
  438. }
  439. },
  440. // 计算总价;
  441. getTotalPrice() {
  442. let that = this,
  443. list = that.cartData.cartList,
  444. totalPrice = 0.00,
  445. totalCartNum = 0;
  446. list.forEach(item => {
  447. if (item.attrStatus && item.status) {
  448. totalPrice = that.$util.$h.Add(totalPrice, that.$util.$h.Mul(item.cart_num, item
  449. .truePrice));
  450. }
  451. totalCartNum = that.$util.$h.Add(totalCartNum, item.cart_num);
  452. })
  453. that.$set(that, 'totalPrice', totalPrice);
  454. that.$set(that, 'totalCartNum', totalCartNum);
  455. },
  456. getCartList(iSshow) {
  457. let that = this;
  458. adminCartList(this.userId,{
  459. tourist_uid: this.touristId
  460. }).then(res => {
  461. res.data.map(item=>{
  462. this.$set(item,'select',false);
  463. })
  464. that.$set(that.cartData, 'cartList', res.data);
  465. if (res.data.length) {
  466. that.$set(that.cartData, 'iScart', iSshow ? false : !that.cartData.iScart);
  467. } else {
  468. that.$set(that.cartData, 'iScart', false);
  469. }
  470. that.getTotalPrice();
  471. })
  472. },
  473. CartNumAdd(index, item) {
  474. if (item.is_limit && item.cart_num >= item.limit_num) {
  475. this.$util.Tips({
  476. title: "购买最多不能超过" + item.limit_num
  477. });
  478. } else {
  479. this.ChangeCartNumDan(true, index, item);
  480. }
  481. },
  482. // 商品详情接口;
  483. getAttrs(id) {
  484. let that = this;
  485. getAttr(id, 0).then(res => {
  486. // uni.hideLoading();
  487. that.$set(that.attr, 'productAttr', res.data.productAttr);
  488. that.$set(that, 'productValue', res.data.productValue);
  489. that.$set(that, 'is_vip', res.data.storeInfo.is_vip);
  490. that.$set(that, 'storeInfo', res.data.storeInfo);
  491. that.skuArr = [];
  492. for (let key in res.data.productValue) {
  493. let obj = res.data.productValue[key];
  494. that.skuArr.push(obj)
  495. }
  496. if (!that.skuArr.length) {
  497. that.skuArr = [{
  498. image: this.storeInfo.image,
  499. suk: this.storeInfo.store_name,
  500. price: this.storeInfo.price
  501. }];
  502. }
  503. this.$set(this, "selectSku", that.skuArr[0]);
  504. that.DefaultSelect();
  505. })
  506. },
  507. //点击sku图片打开轮播图
  508. showImg(index) {
  509. this.$refs.cusPreviewImg.open(this.selectSku.suk)
  510. },
  511. //滑动轮播图选择商品
  512. changeSwitch(e) {
  513. let productSelect = this.skuArr[e];
  514. this.$set(this, 'selectSku', productSelect);
  515. var skuList = productSelect.suk.split(',');
  516. skuList.forEach((i, index) => {
  517. this.$set(this.attr.productAttr[index], 'index', skuList[index]);
  518. })
  519. if (productSelect) {
  520. this.$set(this.attr.productSelect, 'image', productSelect.image);
  521. this.$set(this.attr.productSelect, 'price', productSelect.price);
  522. this.$set(this.attr.productSelect, 'stock', productSelect.stock);
  523. this.$set(this.attr.productSelect, 'unique', productSelect.unique);
  524. this.$set(this.attr.productSelect, 'cart_num', 1);
  525. this.$set(this.attr.productSelect, 'vip_price', productSelect.vip_price);
  526. this.$set(this, 'attrValue', productSelect.suk);
  527. this.$set(this, 'attrTxt', '已选择');
  528. }
  529. },
  530. // 去详情页
  531. goDetail(item) {
  532. // 判断单双规格
  533. if(item.spec_type){
  534. this.goCartDuo(item);
  535. }else{
  536. this.goCartDan(item);
  537. }
  538. },
  539. goBack(){
  540. uni.navigateBack()
  541. },
  542. closeCateDrawer() {
  543. this.showCateDrawer = false;
  544. },
  545. openCateDrawer(type) {
  546. this.topNavShow = type;
  547. this.showCateDrawer = true;
  548. },
  549. lower(e) {
  550. this.productslist();
  551. },
  552. scroll(e) {
  553. uni.$emit('scroll');
  554. },
  555. // 获取配送方式
  556. deliveryFun(e) {
  557. this.delivery_type = e;
  558. },
  559. // 获取自提地址id
  560. onstoreId(row,flag) {
  561. // this.storeList = row;
  562. if(flag == 2 || flag == 3){
  563. this.store_id = row.id;
  564. // this.store_name = row.name;
  565. // this.getStoreDetail(row.id);
  566. }else{
  567. // this.getStoreDetail(0,this.storeInfo.pid);
  568. }
  569. },
  570. // 获取配送地址id
  571. onAddressId(row) {
  572. this.addressId = row.id
  573. },
  574. }
  575. }
  576. </script>
  577. <style lang="scss" scoped>
  578. .scroll_box {
  579. overflow: hidden;
  580. }
  581. .aside_active {
  582. background-color: #fff;
  583. width: 100%;
  584. text-align: center;
  585. color: $primary-admin;
  586. font-weight: 500;
  587. position: relative;
  588. &::after {
  589. content: '';
  590. width: 6rpx;
  591. height: 48rpx;
  592. background-color: $primary-admin;
  593. position: absolute;
  594. left: 0;
  595. top: 50%;
  596. transform: translateY(-50%);
  597. }
  598. }
  599. .cate_active {
  600. color: $primary-admin;
  601. background: $light-primary-admin;
  602. border: 1rpx solid $primary-admin;
  603. }
  604. .text-primary-con {
  605. color: $primary-admin;
  606. }
  607. .bg-primary{
  608. background: $primary-admin;
  609. }
  610. .bg-primary-light {
  611. background: $light-primary-admin;
  612. }
  613. .cart-icon{
  614. margin-left: -4rpx;
  615. top: -20rpx;
  616. }
  617. .con_border {
  618. border: 1px solid $primary-admin;
  619. }
  620. .border_e {
  621. border: 1px solid #eee;
  622. }
  623. .active_pic {
  624. width: 104rpx;
  625. height: 104rpx;
  626. background-color: #fff;
  627. padding: 3rpx;
  628. border-radius: 50%;
  629. border: 3rpx solid $primary-admin;
  630. image {
  631. width: 100%;
  632. height: 100%;
  633. border-radius: 50%;
  634. }
  635. }
  636. .scroll_pic {
  637. image {
  638. width: 92rpx;
  639. height: 92rpx;
  640. border-radius: 50%;
  641. }
  642. }
  643. .active_cate_text {
  644. background: $primary-admin;
  645. color: #fff;
  646. border-radius: 20rpx;
  647. margin-top: 8rpx;
  648. }
  649. .badge-style {
  650. position: absolute;
  651. top: -10rpx;
  652. right: -20rpx;
  653. /deep/ .uni-badge--error {
  654. background-color: $primary-admin !important;
  655. }
  656. .uni-badge {
  657. color: $primary-admin;
  658. border: 1px solid $primary-admin;
  659. z-index: 29;
  660. }
  661. }
  662. .white-box{
  663. height: calc(300rpx + env(safe-area-inset-bottom));
  664. }
  665. </style>