brand_detail.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. <template>
  2. <view class="wrap">
  3. <!-- 头部 -->
  4. <view class="header">
  5. <view class="top_img">
  6. <image src="https://wx.fujinyangche.com/nvrnetwork/images/user_background.png"></image>
  7. </view>
  8. <view class="brand_com clear">
  9. <image class="brand_logo" :src="url + allData.imgLogo"></image>
  10. <view class="middle">
  11. <view class="brand_title">{{allData.name}}</view>
  12. <view style="width:100%;overflow:hidden;">
  13. <view class="brand_com_item" v-for="item,index in allData.afford" :key="index">
  14. <view class="iconfont right"></view>
  15. {{item.name}}
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. <!-- 品牌分店 -->
  22. <view class="brand_sub">
  23. <view class="brand_sub_title">
  24. <view class="shu_line"></view>
  25. 品牌分店
  26. </view>
  27. <view class="brand_sub_list">
  28. <view class="brand_sub_list_item" v-for="item,index in allData.otherStore" :key="index">
  29. <image :src="url + item.logo" class="item_logo"></image>
  30. <view class="middle">
  31. <view class="brand_title">{{item.name}}</view>
  32. <view style="width:100%;overflow:hidden;">
  33. <view class="brand_sub_list_item_item" v-for="item,index in item.mainBusiness" :key="index">{{item}}</view>
  34. </view>
  35. </view>
  36. <view class="distance">{{item.distance}}</view>
  37. </view>
  38. </view>
  39. <view class="list_more" @tap="toOther">
  40. 查看全部分店
  41. <view class="iconfont shuang_you"></view>
  42. </view>
  43. </view>
  44. <!-- 品牌介绍 -->
  45. <view class="brand_content">
  46. <view class="brand_sub_title1">
  47. <view class="shu_line shuline1"></view>
  48. 品牌介绍
  49. </view>
  50. <!-- 关于品牌 -->
  51. <view class="about_brand">
  52. <view class="about_brand_top">
  53. <image src="https://wx.fujinyangche.com/nvrnetwork/images/about_brand.png" class="about_brand_top_logo"></image>
  54. <view class="about_brand_title">关于品牌</view>
  55. </view>
  56. <view class="about_brand_bottom">
  57. <view class="about_brand_list_item clear">
  58. <view class="content_lf">成立时间</view>
  59. <view class="content_rh">{{allData.aboutBrand.setupTime}}</view>
  60. </view>
  61. <view class="about_brand_list_item clear">
  62. <view class="content_lf">员工人数</view>
  63. <view class="content_rh">{{allData.aboutBrand.people}}</view>
  64. </view>
  65. <view class="about_brand_list_item clear">
  66. <view class="content_lf">门店数量</view>
  67. <view class="content_rh">{{allData.aboutBrand.number}}</view>
  68. </view>
  69. <view class="about_brand_list_item clear">
  70. <view class="content_lf">门店规模</view>
  71. <view class="content_rh">{{allData.aboutBrand.scale}}</view>
  72. </view>
  73. </view>
  74. </view>
  75. </view>
  76. <!-- 品牌故事 -->
  77. <view class="brand_story">
  78. <view class="about_brand_top">
  79. <image src="https://wx.fujinyangche.com/nvrnetwork/images/gushi.png" class="about_brand_top_logo"></image>
  80. <view class="about_brand_title">品牌故事</view>
  81. </view>
  82. <view class="brand_story_bottom">
  83. <view class="brand_story_bottom_text"><view v-html="allData.store"></view></view>
  84. </view>
  85. </view>
  86. <!-- 品牌大事记 -->
  87. <view class="brand_big">
  88. <view class="about_brand_top">
  89. <image src="https://wx.fujinyangche.com/nvrnetwork/images/dashiji.png" class="about_brand_top_logo"></image>
  90. <view class="about_brand_title">品牌大事记</view>
  91. </view>
  92. <view class="brand_big_bottom">
  93. <view class="brand_big_bottom_item clear" v-for="item,index in allData.bigVersion" :key="index">
  94. <view class="radius"></view>
  95. <view class="brand_big_bottom_item_lf">{{item.year}}</view>
  96. <view class="brand_big_bottom_item_rh">{{item.bigVersion}}</view>
  97. </view>
  98. <!-- 竖线 -->
  99. <view class="brand_big_line"></view>
  100. </view>
  101. </view>
  102. <!-- 资质/授权 -->
  103. <view class="aptitude">
  104. <view class="about_brand_top">
  105. <image src="https://wx.fujinyangche.com/nvrnetwork/images/zizhi.png" class="about_brand_top_logo"></image>
  106. <view class="about_brand_title">资质/授权</view>
  107. </view>
  108. <view class="aptitude_bottom">
  109. <image v-for="item,index in allData.imgAuth" :key="index" :src="url + item.imgAuth" class="aptitude_bottom_img"></image>
  110. </view>
  111. </view>
  112. <!-- 品牌荣誉 -->
  113. <view class="aptitude">
  114. <view class="about_brand_top">
  115. <image src="https://wx.fujinyangche.com/nvrnetwork/images/rongyu.png" class="about_brand_top_logo"></image>
  116. <view class="about_brand_title">品牌荣誉</view>
  117. </view>
  118. <view class="aptitude_bottom">
  119. <image v-for="item,index in allData.imgHonor" :key="index" :src="url + item.imgHonor" class="aptitude_bottom_img"></image>
  120. </view>
  121. </view>
  122. <!-- 品牌故事 -->
  123. <view class="brand_story">
  124. <view class="about_brand_top">
  125. <image src="https://wx.fujinyangche.com/nvrnetwork/images/gushi.png" class="about_brand_top_logo"></image>
  126. <view class="about_brand_title">服务理念</view>
  127. </view>
  128. <view class="brand_story_bottom">
  129. <view class="brand_story_bottom_text" v-html="allData.aim"></view>
  130. </view>
  131. </view>
  132. <!-- 服务环境 -->
  133. <view class="fuwu">
  134. <view class="brand_sub_title">
  135. <view class="shu_line"></view>
  136. 服务环境
  137. </view>
  138. <view class="fuwu_content">
  139. <scroll-view scroll-x style="width:100%;white-space: nowrap; display: flex">
  140. <view class="fuwu_item" v-for="item,index in allData.imgEnv" :key="index">
  141. <image :src="url + item.imgEnv"></image>
  142. <view class="fuwu_item_bottom">服务环境</view>
  143. </view>
  144. </scroll-view>
  145. </view>
  146. </view>
  147. <view class="footer">
  148. <view class="submit" @tap="toIndex">返回首页</view>
  149. </view>
  150. </view>
  151. </template>
  152. <script>
  153. let app = getApp();
  154. import api from "../../../../../api.js";
  155. export default {
  156. data() {
  157. return {
  158. url:app.globalData.url,
  159. brandId:'',//品牌id
  160. storeId:'',//商家id
  161. allData:null,//页面数据
  162. }
  163. },
  164. onLoad(options) {
  165. // console.log(options);
  166. this.brandId = options.brandid;
  167. this.storeId = options.storeid;
  168. this.getData();
  169. },
  170. methods: {
  171. //加载数据
  172. getData(){
  173. let data = {
  174. token:app.globalData.token,
  175. id:this.brandId,//品牌id
  176. storeId: this.storeId,//商家id
  177. }
  178. api.getShopBrand(data).then((res)=>{
  179. // console.log(res);
  180. this.allData = res.data.data;
  181. console.log(this.allData)
  182. })
  183. },
  184. //查看全部分店
  185. toOther(){
  186. uni.navigateTo({
  187. url:'../other_shop/other_shop?storeid=' + this.storeId + '&brandid=' + this.brandId + '&status=1'
  188. })
  189. },
  190. //返回首页
  191. toIndex(){
  192. uni.reLaunch({
  193. url:"../../serviceView/serviceView"
  194. })
  195. }
  196. }
  197. }
  198. </script>
  199. <style>
  200. .clear:after{
  201. content: "";
  202. display:block;
  203. clear: both;
  204. }
  205. page{
  206. width:100%;
  207. height:100%;
  208. background-color: #F7F7F7;
  209. }
  210. .header{
  211. width:100%;
  212. height:262rpx;
  213. overflow: hidden;
  214. position: relative;
  215. }
  216. .top_img{
  217. width:100%;
  218. height:166rpx;
  219. overflow: hidden;
  220. }
  221. .top_img image{
  222. width:100%;
  223. }
  224. .brand_com{
  225. width:690rpx;
  226. height:192rpx;
  227. padding:42rpx 0 42rpx 30rpx;
  228. box-sizing: border-box;
  229. background-color: #ffffff;
  230. position: absolute;
  231. bottom:0;
  232. left:30rpx;
  233. border-radius: 6rpx;
  234. }
  235. .brand_logo{
  236. display: block;
  237. width:108rpx;
  238. height:108rpx;
  239. float:left;
  240. /* border:2rpx solid #FFD0A7;
  241. border-radius: 50%;
  242. box-sizing: border-box; */
  243. }
  244. .middle{
  245. float:left;
  246. margin-left: 16rpx;
  247. overflow: hidden;
  248. }
  249. .brand_title{
  250. font-size: 30rpx;
  251. color:#2A2A2A;
  252. line-height: 36rpx;
  253. font-weight: bold;
  254. margin-top:12rpx;
  255. }
  256. .brand_com_item{
  257. display: inline-block;
  258. font-size: 22rpx;
  259. color:#666666;
  260. margin:16rpx 58rpx 0 0;
  261. }
  262. .brand_com_item:last-child{
  263. margin-right: 0
  264. }
  265. .right{
  266. display: inline-block;
  267. margin-right: 4rpx;
  268. font-size: 24rpx;
  269. color:#E77817;
  270. }
  271. .brand_sub{
  272. width:100%;
  273. overflow: hidden;
  274. margin-top:30rpx;
  275. background-color: #ffffff;
  276. }
  277. .brand_sub_title{
  278. font-size: 32rpx;
  279. padding-left: 16rpx;
  280. color:#2A2A2A;
  281. position: relative;
  282. margin:22rpx 0 0 30rpx;
  283. font-weight: bold;
  284. }
  285. .shu_line{
  286. width:6rpx;
  287. height:30rpx;
  288. background-color: #E77817;
  289. position: absolute;
  290. top:8rpx;
  291. left:0;
  292. }
  293. .brand_sub_list_item{
  294. width:100%;
  295. height:186rpx;
  296. padding:40rpx 30rpx;
  297. border-bottom:1px solid #F2F2F2;
  298. box-sizing: border-box;
  299. }
  300. .item_logo{
  301. display: block;
  302. width: 108rpx;
  303. height:108rpx;
  304. float:left;
  305. }
  306. .brand_sub_list_item_item{
  307. font-size: 22rpx;
  308. color:#E77817;
  309. height:34rpx;
  310. padding:0 16rpx;
  311. background-color:rgba(231, 120, 23, 0.06);
  312. text-align: center;
  313. line-height: 34rpx;
  314. float:left;
  315. border-radius: 4rpx;
  316. margin:16rpx 20rpx 0 0;
  317. }
  318. .brand_sub_list_item_item:last-child{
  319. margin-right: 0;
  320. }
  321. .distance{
  322. font-size: 24rpx;
  323. color:#999999;
  324. float:right;
  325. margin-top:66rpx;
  326. }
  327. .list_more{
  328. height:104rpx;
  329. line-height: 104rpx;
  330. text-align: center;
  331. color:#E77817;
  332. font-size: 24rpx;
  333. }
  334. .shuang_you{
  335. display: inline-block;
  336. font-size: 24rpx;
  337. color:#E77817;
  338. margin-left: 6rpx;
  339. }
  340. .brand_content{
  341. width:100%;
  342. overflow: hidden;
  343. background-color: #ffffff;
  344. margin-top:20rpx;
  345. }
  346. .brand_sub_title1{
  347. font-size: 32rpx;
  348. height:106rpx;
  349. line-height: 106rpx;
  350. border-bottom:1px solid #f2f2f2;
  351. padding-left: 46rpx;
  352. color: #2A2A2A;
  353. position: relative;
  354. font-weight: bold;
  355. }
  356. .shuline1{
  357. top:38rpx;
  358. left:30rpx;
  359. }
  360. .about_brand,.brand_story,.brand_big,.aptitude{
  361. width:100%;
  362. overflow: hidden;
  363. background: #ffffff;
  364. border-bottom:1px solid #f2f2f2;
  365. }
  366. .about_brand_top{
  367. margin-top:30rpx;
  368. }
  369. .about_brand_top_logo{
  370. display: inline-block;
  371. width:36rpx;
  372. height:40rpx;
  373. vertical-align: middle;
  374. margin:0 14rpx 0 30rpx;
  375. }
  376. .about_brand_title{
  377. display: inline-block;
  378. font-size: 30rpx;
  379. color:#222222;
  380. vertical-align: middle;
  381. }
  382. .about_brand_bottom,.brand_story_bottom,.aptitude_bottom{
  383. width:calc(100% - 158rpx);
  384. margin:30rpx auto 0;
  385. padding-bottom:20rpx;
  386. }
  387. .about_brand_list_item{
  388. margin-bottom:20rpx;
  389. }
  390. .content_lf{
  391. font-size: 26rpx;
  392. color:#666666;
  393. float:left;
  394. }
  395. .content_rh{
  396. float: right;
  397. color:#999999;
  398. font-size: 26rpx;
  399. }
  400. .brand_story_bottom image{
  401. display: block;
  402. width:100%;
  403. height:162rpx;
  404. margin-bottom:20rpx;
  405. }
  406. .brand_story_bottom_text{
  407. font-size: 26rpx;
  408. color:#333333;
  409. line-height: 44rpx;
  410. }
  411. .brand_big_bottom{
  412. width: calc(100% - 158rpx);
  413. margin: 44rpx auto 0;
  414. position: relative;
  415. }
  416. .brand_big_bottom_item{
  417. margin-bottom: 54rpx;
  418. position: relative;
  419. display: flex;
  420. }
  421. .brand_big_bottom_item:last-child{
  422. margin-bottom:0;
  423. }
  424. .brand_big_bottom_item_lf{
  425. font-size: 28rpx;
  426. color:#E77817;
  427. line-height:40rpx;
  428. width:120rpx;
  429. }
  430. .brand_big_bottom_item_rh{
  431. font-size: 24rpx;
  432. color:#666666;
  433. line-height: 40rpx;
  434. word-break: break-all;
  435. }
  436. .brand_big_line{
  437. width:4rpx;
  438. height:340rpx;
  439. background:rgba(250,225,203,1);
  440. border-radius:4rpx;
  441. opacity:0.27;
  442. position: absolute;
  443. top:-50rpx;
  444. left:-34rpx;
  445. }
  446. .radius{
  447. width:12rpx;
  448. height:12rpx;
  449. background-color:#E77817;
  450. border-radius: 50%;
  451. position: absolute;
  452. left:-37rpx;
  453. top:12rpx;
  454. z-index: 100;
  455. }
  456. .brand_big{
  457. padding-bottom:40rpx;
  458. }
  459. .aptitude_bottom_img{
  460. display: block;
  461. width:190rpx;
  462. height:138rpx;
  463. margin-right: 8rpx;
  464. float:left;
  465. }
  466. .aptitude_bottom_img:last-child{
  467. margin-right: 0;
  468. }
  469. .aptitude_bottom_img:first-child{
  470. margin-left: 6rpx;
  471. }
  472. .aptitude{
  473. padding-bottom: 40rpx;
  474. }
  475. .fuwu{
  476. width:100%;
  477. overflow: hidden;
  478. margin-top:20rpx;
  479. padding-bottom:100rpx;
  480. background-color: #ffffff;
  481. }
  482. .fuwu_content{
  483. width:100%;
  484. padding:34rpx 0 40rpx 30rpx;
  485. box-sizing: border-box;
  486. }
  487. .fuwu_item{
  488. width:250rpx;
  489. height:150rpx;
  490. border-radius:6rpx;
  491. position: relative;
  492. display: inline-block;
  493. margin-right: 10rpx;
  494. overflow: hidden;
  495. }
  496. .fuwu_item image{
  497. display: block;
  498. width:100%;
  499. height:100%;
  500. }
  501. .fuwu_item_bottom{
  502. width:100%;
  503. text-indent: 10rpx;
  504. height:36rpx;
  505. background:rgba(0,0,0,0.5);
  506. border-radius:0px 0px 6rpx 6rpx;
  507. color:#ffffff;
  508. line-height: 36rpx;
  509. font-size: 22rpx;
  510. position: absolute;
  511. bottom:0;
  512. left:0;
  513. }
  514. .footer{
  515. width:100%;
  516. height:100rpx;
  517. background:rgba(255,255,255,1);
  518. box-shadow:0px 4rpx 8rpx 0px rgba(0,0,0,0.5);
  519. position: fixed;
  520. bottom:0;
  521. left:0;
  522. z-index:100;
  523. }
  524. .submit{
  525. width:690rpx;
  526. height:80rpx;
  527. line-height: 80rpx;
  528. background:linear-gradient(270deg,rgba(254,107,21,1) 0%,rgba(254,163,48,1) 100%);
  529. border-radius:40rpx;
  530. text-align: center;
  531. font-size: 32rpx;
  532. color:#ffffff;
  533. position: absolute;
  534. top:10rpx;
  535. left:50%;
  536. transform: translateX(-50%)
  537. }
  538. .to_index{
  539. width:calc(100% - 284rpx);
  540. height:100%;
  541. line-height: 100rpx;
  542. text-align: center;
  543. float:left;
  544. }
  545. .collect{
  546. font-size: 40rpx;
  547. color:#222222;
  548. }
  549. .ruzhu{
  550. width:284rpx;
  551. height:72rpx;
  552. background:rgba(231,120,23,1);
  553. border-radius:6rpx;
  554. color:#ffffff;
  555. text-align: center;
  556. line-height: 72rpx;
  557. font-size: 30rpx;
  558. float:right;
  559. margin-top:14rpx;
  560. }
  561. </style>