orderDetail.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599
  1. <template>
  2. <!-- 订单详情页面 -->
  3. <view class="content">
  4. <!-- 菜品清单 -->
  5. <view class="card">
  6. <!-- 店铺信息 -->
  7. <view class="store-info">
  8. <view class="store-info-title">{{ orderDetail.storeName || '店铺名称' }}</view>
  9. <view class="store-info-address">{{ orderDetail.storeAddress || '—' }}</view>
  10. </view>
  11. <view class="card-header">
  12. <view class="card-header-title">菜品详情</view>
  13. </view>
  14. <view class="card-content">
  15. <view class="info-food">
  16. <view v-for="(item, index) in displayFoodList" :key="item.id || index" class="food-item">
  17. <!-- 菜品图片:餐具用本地图 -->
  18. <image :src="getItemImage(item)" mode="aspectFill" class="food-item__image"></image>
  19. <!-- 菜品信息 -->
  20. <view class="food-item__info">
  21. <view class="food-item__name">{{ item.name }}</view>
  22. <view class="food-item__desc" v-if="item.tags && item.tags.length > 0">
  23. <text v-for="(tag, tagIndex) in item.tags" :key="tagIndex" class="food-item__tag"
  24. :class="tag.type">{{ tag.text }}<text v-if="tagIndex < item.tags.length - 1">,</text>
  25. </text>
  26. </view>
  27. </view>
  28. <!-- 价格和数量 -->
  29. <view class="food-item__right">
  30. <view class="food-item__price">
  31. <text class="price-main">¥{{ formatPrice(item.price) }}</text>
  32. </view>
  33. <view class="food-item__quantity">{{ item.quantity || 1 }}份</view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="card-header">
  39. <view class="card-header-title">价格明细</view>
  40. </view>
  41. <view class="card-content">
  42. <view class="info-item">
  43. <view class="info-item-label">菜品总价</view>
  44. <view class="info-item-value">¥{{ priceDetail.dishTotal }}</view>
  45. </view>
  46. <view class="info-item">
  47. <view class="info-item-label">餐具费</view>
  48. <view class="info-item-value">¥{{ priceDetail.tablewareFee }}</view>
  49. </view>
  50. <view class="info-item info-item--coupon">
  51. <view class="info-item-label">优惠券</view>
  52. <view class="info-item-value coupon-value">
  53. <text v-if="couponDisplayText !== '—'" class="coupon-amount">{{ couponDisplayText }}</text>
  54. <text v-else class="coupon-placeholder">—</text>
  55. </view>
  56. </view>
  57. <view v-if="(priceDetail.discountAmount ?? 0) > 0" class="info-item info-item--coupon">
  58. <view class="info-item-label">优惠金额</view>
  59. <view class="info-item-value coupon-value">
  60. <text class="coupon-amount">-¥{{ formatPrice(priceDetail.discountAmount) }}</text>
  61. </view>
  62. </view>
  63. <view class="price-line">
  64. <view class="price-line-label">合计</view>
  65. <view class="price-line-value">¥{{ priceDetail.total }}</view>
  66. </view>
  67. </view>
  68. </view>
  69. <!-- 已完成订单显示支付信息 -->
  70. <view v-if="orderDetail.orderStatus === 3" class="card">
  71. <view class="card-header">
  72. <view class="card-header-title">支付信息</view>
  73. </view>
  74. <view class="card-content">
  75. <view class="info-item">
  76. <view class="info-item-label">{{ payMethodText }}</view>
  77. <view class="info-item-value">¥{{ priceDetail.total }}</view>
  78. </view>
  79. </view>
  80. </view>
  81. <!-- 订单卡片 -->
  82. <view class="card">
  83. <view class="card-header">
  84. <view class="card-header-title">订单信息</view>
  85. </view>
  86. <view class="card-content">
  87. <view class="info-item">
  88. <view class="info-item-label">订单编号</view>
  89. <view class="info-item-value">{{ orderDetail.orderNo || '—' }}</view>
  90. </view>
  91. <view class="info-item">
  92. <view class="info-item-label">就餐桌号</view>
  93. <view class="info-item-value">{{ orderDetail.tableNo || '—' }}</view>
  94. </view>
  95. <view class="info-item">
  96. <view class="info-item-label">用餐人数</view>
  97. <view class="info-item-value">{{ orderDetail.dinerCount != null && orderDetail.dinerCount !== '' ? orderDetail.dinerCount + '人' : '—' }}</view>
  98. </view>
  99. <view class="info-item">
  100. <view class="info-item-label">下单时间</view>
  101. <view class="info-item-value">{{ orderDetail.createTime || '—' }}</view>
  102. </view>
  103. <view class="info-item">
  104. <view class="info-item-label">联系电话</view>
  105. <view class="info-item-value">{{ orderDetail.contactPhone || '—' }}</view>
  106. </view>
  107. <view class="info-item">
  108. <view class="info-item-label">备注信息</view>
  109. <view class="info-item-value">{{ orderDetail.remark || '—' }}</view>
  110. </view>
  111. </view>
  112. </view>
  113. <!-- 底部按钮:已完成(3)不显示 -->
  114. <view v-if="orderDetail.orderStatus !== 3" class="bottom-button">
  115. <view class="bottom-button-text1 " hover-class="hover-active" @click="handleConfirmOrder">去加餐</view>
  116. <view class="bottom-button-text" hover-class="hover-active" @click="handleConfirmPay">去结算</view>
  117. </view>
  118. </view>
  119. </template>
  120. <script setup>
  121. import { onLoad } from "@dcloudio/uni-app";
  122. import { ref, computed } from "vue";
  123. import { getFileUrl } from "@/utils/file.js";
  124. import { GetOrderInfo } from "@/api/dining.js";
  125. const payType = ref('confirmOrder'); // confirmOrder 确认下单 confirmPay 确认支付
  126. /** 当前订单ID,用于「去结算」传参 */
  127. const detailOrderId = ref('');
  128. // 订单详情(店铺、订单信息)
  129. // orderStatus:0 待支付,1 已支付,2 已取消,3 已完成
  130. const orderDetail = ref({
  131. storeName: '',
  132. storeAddress: '',
  133. storeId: '',
  134. orderNo: '',
  135. tableId: '', // 桌号ID,用于跳转加餐
  136. tableNo: '', // 桌号展示(tableNumber)
  137. dinerCount: '',
  138. createTime: '',
  139. contactPhone: '',
  140. remark: '',
  141. orderStatus: null,
  142. payType: '' // 支付方式,如 wechatPayMininProgram
  143. });
  144. // 价格明细(两位小数)
  145. const priceDetail = ref({
  146. dishTotal: '0.00',
  147. tablewareFee: '0.00',
  148. couponDiscount: '0.00',
  149. discountAmount: 0,
  150. couponName: '',
  151. couponType: null,
  152. nominalValue: null,
  153. discountRate: null,
  154. total: '0.00'
  155. });
  156. // 支付方式展示:根据 payType 转为中文
  157. const payMethodText = computed(() => {
  158. const t = orderDetail.value?.payType ?? '';
  159. if (/wechat|微信/i.test(t)) return '微信支付';
  160. if (/alipay|支付宝/i.test(t)) return '支付宝';
  161. return t || '微信支付';
  162. });
  163. // 优惠券展示:满减券显示 nominalValue+元,折扣券显示 discountRate+折,否则显示 couponName 或 已使用优惠券(与 checkout 一致)
  164. const couponDisplayText = computed(() => {
  165. const p = priceDetail.value;
  166. const amount = Number(p.discountAmount ?? p.couponDiscount ?? 0) || 0;
  167. if (amount <= 0) return '—';
  168. const type = Number(p.couponType);
  169. if (type === 1 && (p.nominalValue != null && p.nominalValue !== '')) {
  170. const val = Number(p.nominalValue);
  171. return Number.isNaN(val) ? (p.couponName || '已使用优惠券') : val + '元';
  172. }
  173. if (type === 2 && (p.discountRate != null && p.discountRate !== '')) {
  174. const rate = Number(p.discountRate);
  175. return Number.isNaN(rate) ? (p.couponName || '已使用优惠券') : rate + '折';
  176. }
  177. return p.couponName || '已使用优惠券';
  178. });
  179. // 菜品列表(接口订单明细)
  180. const foodList = ref([]);
  181. // 菜品详情展示:包含所有项(含餐具 id/cuisineId === -1)
  182. const displayFoodList = computed(() => foodList.value ?? []);
  183. // 取第一张图:逗号分隔取首段,数组取首项,对象取 url/path/src(与 orderInfo/index、FoodCard 一致)
  184. function firstImage(val) {
  185. if (val == null || val === '') return '';
  186. if (Array.isArray(val)) {
  187. const first = val[0];
  188. if (first != null && first !== '') {
  189. if (typeof first === 'object' && first !== null) return first.url ?? first.path ?? first.src ?? first.link ?? '';
  190. return String(first).split(/[,,]/)[0].trim();
  191. }
  192. return '';
  193. }
  194. if (typeof val === 'object') return val.url ?? val.path ?? val.src ?? val.link ?? '';
  195. const str = String(val).trim();
  196. return str ? str.split(/[,,]/)[0].trim() : '';
  197. }
  198. // 菜品图片:餐具(id/cuisineId=-1)用本地图;其他取首图并 getFileUrl
  199. function getItemImage(item) {
  200. if (Number(item?.id ?? item?.cuisineId) === -1) return '/static/utensilFee.png';
  201. const raw = item?.image ?? item?.cuisineImage ?? item?.imageUrl ?? item?.pic ?? item?.cover ?? item?.images ?? '';
  202. const url = firstImage(raw) || (typeof raw === 'string' ? raw.split(/[,,]/)[0]?.trim() : '');
  203. if (url && typeof url === 'string' && (url.startsWith('http') || url.startsWith('//'))) return url;
  204. return getFileUrl(url || 'img/icon/shop.png');
  205. }
  206. // 金额保留两位小数
  207. const formatPrice = (price) => {
  208. if (price === '' || price === null || price === undefined) return '0.00';
  209. const num = Number(price);
  210. return Number.isNaN(num) ? '0.00' : num.toFixed(2);
  211. };
  212. // 将 tags 统一为 [{ text, type }] 格式
  213. function normalizeTags(raw) {
  214. if (raw == null) return [];
  215. let arr = [];
  216. if (Array.isArray(raw)) arr = raw;
  217. else if (typeof raw === 'string') {
  218. const t = raw.trim();
  219. if (t.startsWith('[')) { try { arr = JSON.parse(t); if (!Array.isArray(arr)) arr = []; } catch { arr = t ? [t] : []; } }
  220. else arr = t ? t.split(/[,,、\s]+/).map(s => s.trim()).filter(Boolean) : [];
  221. } else if (raw && typeof raw === 'object') arr = Array.isArray(raw.list) ? raw.list : Array.isArray(raw.items) ? raw.items : [];
  222. return arr.map((it) => {
  223. if (it == null) return { text: '', type: '' };
  224. if (typeof it === 'string') return { text: it, type: '' };
  225. if (typeof it === 'number') return { text: String(it), type: '' };
  226. return { text: it.text ?? it.tagName ?? it.name ?? it.label ?? it.title ?? '', type: it.type ?? it.tagType ?? '' };
  227. }).filter((t) => t.text !== '' && t.text != null);
  228. }
  229. // 将接口订单项转为列表项(图片取首张,逗号/数组/对象与 orderInfo/index 一致)
  230. function normalizeOrderItem(item) {
  231. const rawTags = item?.tags ?? item?.tagList ?? item?.tagNames ?? item?.labels ?? item?.tag;
  232. const rawImg = item?.images ?? item?.image ?? item?.cuisineImage ?? item?.imageUrl ?? item?.pic ?? item?.cover ?? '';
  233. const imageUrl = firstImage(rawImg) || (typeof rawImg === 'string' ? rawImg.split(/[,,]/)[0]?.trim() : '') || 'img/icon/shop.png';
  234. return {
  235. id: item?.id ?? item?.cuisineId,
  236. name: item?.cuisineName ?? item?.name ?? '',
  237. price: item?.totalPrice ?? item?.unitPrice ?? item?.price ?? 0,
  238. image: imageUrl,
  239. quantity: item?.quantity ?? 1,
  240. tags: normalizeTags(rawTags)
  241. };
  242. }
  243. // 从接口数据填充 orderDetail、priceDetail、foodList
  244. function applyOrderData(data) {
  245. const raw = data?.data ?? data ?? {};
  246. const store = raw?.storeInfo ?? raw?.store ?? {};
  247. orderDetail.value = {
  248. storeName: store?.storeName ?? raw?.storeName ?? '',
  249. storeAddress: store?.storeAddress ?? store?.address ?? raw?.storeAddress ?? raw?.address ?? '',
  250. storeId: store?.storeId ?? store?.id ?? raw?.storeId ?? raw?.store_id ?? '',
  251. orderNo: raw?.orderNo ?? raw?.orderId ?? '',
  252. tableId: raw?.tableId ?? raw?.tableNumber ?? '', // 加餐跳转用
  253. tableNo: raw?.tableNumber ?? raw?.tableNo ?? raw?.tableName ?? '',
  254. dinerCount: raw?.dinerCount ?? '',
  255. createTime: raw?.createdTime ?? raw?.createTime ?? raw?.orderTime ?? '',
  256. contactPhone: raw?.contactPhone ?? raw?.phone ?? '',
  257. remark: raw?.remark ?? '',
  258. orderStatus: raw?.orderStatus ?? raw?.status ?? null,
  259. payType: raw?.payType ?? raw?.payMethod ?? ''
  260. };
  261. const dishTotal = raw?.totalAmount ?? raw?.dishTotal ?? raw?.orderAmount ?? raw?.foodAmount ?? 0;
  262. const tablewareFee = raw?.tablewareFee ?? raw?.tablewareAmount ?? 0;
  263. const couponDiscount = raw?.couponAmount ?? raw?.couponDiscount ?? 0;
  264. const discountAmountVal = Number(raw?.discountAmount ?? raw?.couponAmount ?? raw?.couponDiscount ?? 0) || 0;
  265. const total = raw?.payAmount ?? raw?.totalAmount ?? raw?.totalPrice ?? 0;
  266. const rawDiscountRate = raw?.discountRate ?? raw?.couponInfo?.discountRate ?? raw?.coupon?.discountRate;
  267. const discountRateVal = rawDiscountRate != null && rawDiscountRate !== '' ? (Number(rawDiscountRate) || 0) / 10 : null;
  268. priceDetail.value = {
  269. dishTotal: formatPrice(dishTotal),
  270. tablewareFee: formatPrice(tablewareFee),
  271. couponDiscount: formatPrice(couponDiscount),
  272. discountAmount: discountAmountVal,
  273. couponName: raw?.couponName ?? '',
  274. couponType: raw?.couponType ?? null,
  275. nominalValue: raw?.nominalValue ?? null,
  276. discountRate: discountRateVal,
  277. total: formatPrice(total)
  278. };
  279. const list = raw?.orderItemList ?? raw?.orderItems ?? raw?.items ?? raw?.detailList ?? [];
  280. foodList.value = (Array.isArray(list) ? list : []).map(normalizeOrderItem);
  281. }
  282. // 去加餐:跳转点餐页,携带桌号与就餐人数
  283. const handleConfirmOrder = () => {
  284. const tableid = uni.getStorageSync('currentTableId');
  285. const diners = orderDetail.value?.dinerCount ?? '';
  286. const storeId = orderDetail.value?.storeId ?? '';
  287. if (!tableid) {
  288. uni.showToast({ title: '订单缺少桌号信息,无法加餐', icon: 'none' });
  289. return;
  290. }
  291. const q = [];
  292. q.push(`tableid=${encodeURIComponent(String(tableid))}`);
  293. if (diners !== '' && diners != null) q.push(`diners=${encodeURIComponent(String(diners))}`);
  294. if (storeId !== '' && storeId != null) q.push(`storeId=${encodeURIComponent(String(storeId))}`);
  295. uni.navigateTo({ url: `/pages/orderFood/index?${q.join('&')}` });
  296. };
  297. // 去结算:跳转确认订单页,携带订单ID、订单号、桌号、就餐人数、订单金额(用于调起支付)
  298. const handleConfirmPay = () => {
  299. const orderId = detailOrderId.value || '';
  300. const orderNo = orderDetail.value?.orderNo ?? '';
  301. const tableId = orderDetail.value?.tableId || orderDetail.value?.tableNo || '';
  302. const tableNumber = orderDetail.value?.tableNo ?? orderDetail.value?.tableNumber ?? '';
  303. const diners = orderDetail.value?.dinerCount ?? '';
  304. const totalAmount = priceDetail.value?.total ?? '';
  305. const remark = (orderDetail.value?.remark ?? '').trim().slice(0, 30);
  306. const q = [];
  307. if (orderId !== '') q.push(`orderId=${encodeURIComponent(String(orderId))}`);
  308. if (orderNo !== '') q.push(`orderNo=${encodeURIComponent(String(orderNo))}`);
  309. if (tableId !== '') q.push(`tableId=${encodeURIComponent(String(tableId))}`);
  310. if (tableNumber !== '') q.push(`tableNumber=${encodeURIComponent(String(tableNumber))}`);
  311. if (diners !== '') q.push(`diners=${encodeURIComponent(String(diners))}`);
  312. if (totalAmount !== '' && totalAmount != null) q.push(`totalAmount=${encodeURIComponent(String(totalAmount))}`);
  313. if (remark !== '') q.push(`remark=${encodeURIComponent(remark)}`);
  314. uni.navigateTo({ url: q.length ? `/pages/checkout/index?${q.join('&')}` : '/pages/checkout/index' });
  315. };
  316. onLoad(async (e) => {
  317. if (e.payType) payType.value = e.payType;
  318. const orderId = e?.orderId ?? e?.id ?? '';
  319. detailOrderId.value = orderId;
  320. if (!orderId) {
  321. uni.showToast({ title: '缺少订单ID', icon: 'none' });
  322. return;
  323. }
  324. try {
  325. const res = await GetOrderInfo(orderId);
  326. applyOrderData(res);
  327. } catch (err) {
  328. console.error('订单详情加载失败:', err);
  329. uni.showToast({ title: '加载失败', icon: 'none' });
  330. }
  331. });
  332. </script>
  333. <style lang="scss" scoped>
  334. .content {
  335. padding: 0 30rpx 300rpx;
  336. }
  337. .card {
  338. background-color: #fff;
  339. border-radius: 24rpx;
  340. padding: 30rpx 0;
  341. margin-top: 20rpx;
  342. .card-header {
  343. display: flex;
  344. justify-content: space-between;
  345. align-items: center;
  346. padding: 0 30rpx;
  347. height: 40rpx;
  348. position: relative;
  349. font-size: 27rpx;
  350. color: #151515;
  351. font-weight: bold;
  352. }
  353. .tag {
  354. width: 10rpx;
  355. height: 42rpx;
  356. background: linear-gradient(35deg, #FCB73F 0%, #FC733D 100%);
  357. border-radius: 0rpx 0rpx 0rpx 0rpx;
  358. position: absolute;
  359. left: 0;
  360. top: 0;
  361. }
  362. .card-content {
  363. padding: 0 30rpx;
  364. }
  365. .info-item {
  366. display: flex;
  367. justify-content: space-between;
  368. align-items: center;
  369. margin-top: 20rpx;
  370. font-size: 27rpx;
  371. .info-item-label {
  372. color: #666666;
  373. }
  374. .info-item-value {
  375. color: #151515;
  376. }
  377. &--coupon .coupon-value {
  378. display: flex;
  379. align-items: center;
  380. gap: 8rpx;
  381. }
  382. .coupon-amount {
  383. color: #E61F19;
  384. }
  385. .coupon-placeholder {
  386. color: #999999;
  387. }
  388. }
  389. .info-item-textarea {
  390. width: 100%;
  391. height: 115rpx;
  392. border-radius: 8rpx;
  393. border: 1rpx solid #F2F2F2;
  394. margin-top: 20rpx;
  395. font-size: 23rpx;
  396. color: #AAAAAA;
  397. box-sizing: border-box;
  398. padding: 20rpx;
  399. }
  400. .info-food {
  401. margin-top: 20rpx;
  402. }
  403. .food-item {
  404. display: flex;
  405. align-items: center;
  406. padding: 20rpx 0;
  407. &:last-child {
  408. border-bottom: none;
  409. }
  410. &__image {
  411. width: 118rpx;
  412. height: 118rpx;
  413. border-radius: 8rpx;
  414. flex-shrink: 0;
  415. background-color: #f5f5f5;
  416. }
  417. &__info {
  418. flex: 1;
  419. margin-left: 20rpx;
  420. display: flex;
  421. flex-direction: column;
  422. justify-content: center;
  423. }
  424. &__name {
  425. font-size: 28rpx;
  426. font-weight: bold;
  427. color: #151515;
  428. margin-bottom: 8rpx;
  429. }
  430. &__desc {
  431. font-size: 24rpx;
  432. color: #666666;
  433. line-height: 1.5;
  434. }
  435. &__tag {
  436. font-size: 24rpx;
  437. color: #666666;
  438. &.signature {
  439. color: #FC793D;
  440. }
  441. &.spicy {
  442. color: #2E2E2E;
  443. }
  444. }
  445. &__right {
  446. display: flex;
  447. flex-direction: column;
  448. align-items: flex-end;
  449. justify-content: center;
  450. margin-left: 20rpx;
  451. }
  452. &__price {
  453. display: flex;
  454. align-items: baseline;
  455. color: #151515;
  456. font-weight: bold;
  457. margin-bottom: 8rpx;
  458. .price-symbol {
  459. font-size: 20rpx;
  460. margin-right: 2rpx;
  461. }
  462. .price-main {
  463. font-size: 28rpx;
  464. }
  465. .price-decimal {
  466. font-size: 24rpx;
  467. }
  468. }
  469. &__quantity {
  470. font-size: 24rpx;
  471. color: #797979;
  472. }
  473. }
  474. .price-line {
  475. display: flex;
  476. justify-content: space-between;
  477. align-items: center;
  478. margin-top: 20rpx;
  479. font-size: 27rpx;
  480. color: #151515;
  481. border-top: 1rpx solid rgba(170, 170, 170, 0.15);
  482. font-weight: bold;
  483. padding-top: 20rpx;
  484. }
  485. }
  486. .bottom-button {
  487. width: 100%;
  488. background-color: #fff;
  489. padding: 20rpx 30rpx;
  490. box-sizing: border-box;
  491. position: fixed;
  492. bottom: 0;
  493. left: 0;
  494. right: 0;
  495. z-index: 999;
  496. padding-bottom: env(safe-area-inset-bottom);
  497. box-shadow: 0rpx -11rpx 46rpx 0rpx rgba(0, 0, 0, 0.05);
  498. display: flex;
  499. justify-content: space-between;
  500. align-items: center;
  501. .bottom-button-text1 {
  502. font-size: 32rpx;
  503. font-weight: bold;
  504. color: #fff;
  505. width: 324rpx;
  506. height: 80rpx;
  507. border-radius: 23rpx 23rpx 23rpx 23rpx;
  508. border: 2rpx solid #F47D1F;
  509. display: flex;
  510. align-items: center;
  511. color: #F47D1F;
  512. justify-content: center;
  513. }
  514. .bottom-button-text {
  515. font-size: 32rpx;
  516. font-weight: bold;
  517. color: #fff;
  518. background: linear-gradient(90deg, #FCB73F 0%, #FC743D 100%);
  519. border-radius: 23rpx 23rpx 23rpx 23rpx;
  520. display: flex;
  521. align-items: center;
  522. justify-content: center;
  523. width: 324rpx;
  524. height: 80rpx;
  525. }
  526. }
  527. .store-info {
  528. border-bottom: 1rpx solid rgba(170, 170, 170, 0.15);
  529. box-sizing: border-box;
  530. margin: 0 30rpx 30rpx;
  531. .store-info-title {
  532. font-size: 27rpx;
  533. color: #151515;
  534. font-weight: bold;
  535. margin-bottom: 10rpx;
  536. }
  537. .store-info-address {
  538. font-size: 23rpx;
  539. color: #AAAAAA;
  540. margin-bottom: 30rpx;
  541. }
  542. }
  543. </style>