shopDetail.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900
  1. <template>
  2. <view class="center">
  3. <view class="store-info flex">
  4. <view class="store-top flex">
  5. <image class="simage" :src="info.image" mode=""></image>
  6. <view class="stop-main">
  7. <view class="stop-title">{{ info.name }}</view>
  8. <view class="stop-address">
  9. <image class="mrt-image" src="https://hy.liuniu946.com/app/index/index10.png" mode=""></image>
  10. <view class="mrt-font">距离您{{ info.jl }}KM</view>
  11. </view>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="store-item">
  16. <image class="store-image1" src="https://hy.liuniu946.com/app/img/store2.png" mode=""></image>
  17. <view class="store-font">营业时间:{{ info.day_time }}</view>
  18. </view>
  19. <view class="store-item" v-if="info.phone">
  20. <image class="store-image2" src="https://hy.liuniu946.com/app/img/store3.png" mode=""></image>
  21. <view class="store-font">预约电话:{{ info.phone }}</view>
  22. </view>
  23. <view class="store-item">
  24. <image class="store-image3" src="https://hy.liuniu946.com/app/index/index10.png" mode=""></image>
  25. <view class="store-font">门店地址:{{ info.detailed_address }}</view>
  26. </view>
  27. <view class="store-item">
  28. <image class="store-image1" src="https://hy.liuniu946.com/app/img/store2.png" mode=""></image>
  29. <view class="store-font">商家介绍:{{ info.introduction }}</view>
  30. </view>
  31. <view class="store-main" v-if="info.images != null">
  32. <view class="smain-title">门头照片</view>
  33. <scroll-view class="scroll-box flex" @scroll="scroll" scroll-x="true" :scroll-with-animation="true" scroll-left="10px">
  34. <view class="scroll-item" v-for="(item, index) in info.images" :key="index">
  35. <image class="scroll-image" :src="item" mode="heightFix" @click="openImg(info.images, item)"></image>
  36. </view>
  37. </scroll-view>
  38. </view>
  39. <view class="store-main" v-if="info.slider_image != null">
  40. <view class="smain-title">店内照片</view>
  41. <scroll-view class="scroll-box flex" @scroll="scroll" scroll-x="true" :scroll-with-animation="true" scroll-left="10px">
  42. <view class="scroll-item" v-for="(item, index) in info.slider_image" :key="index">
  43. <image class="scroll-image" :src="item" mode="heightFix" @click="openImg(info.slider_image, item)"></image>
  44. </view>
  45. </scroll-view>
  46. </view>
  47. <view v-if="vipList.length != 0">
  48. <view class="jx-box-content" v-for="item in vipList" @click="navToDetailPage(item)">
  49. <view class="content-left"><image :src="item.image" mode=""></image></view>
  50. <view class="content-right">
  51. <view class="shop-name">{{ item.store_name }}</view>
  52. <view class="shop-content">
  53. <view class="shop-content-left">
  54. <view class="price-box">
  55. <view class="yuan-price">¥{{ item.ot_price }}</view>
  56. </view>
  57. <view class="price-x">¥{{ item.price }}</view>
  58. </view>
  59. <view class="shop-content-right">立即购买</view>
  60. </view>
  61. </view>
  62. </view>
  63. <uni-load-more :status="loadingType"></uni-load-more>
  64. </view>
  65. <view class="" style="height: 100rpx;"></view>
  66. <view class="btn-box flex" v-if="info.phone">
  67. <view class="btn-left" @click="tocall()">立即付款</view>
  68. <!-- #ifdef H5 -->
  69. <view class="btn-right" @click="toGaodeMap()">导航到店</view>
  70. <!-- #endif -->
  71. <!-- #ifdef MP -->
  72. <view class="btn-right" @click="dh()">导航到店</view>
  73. <!-- #endif -->
  74. <!-- #ifdef APP-PLUS -->
  75. <view class="btn-right" @click="gomapApp(info.latitude, info.longitude, info.name)">导航到店</view>
  76. <!-- #endif -->
  77. </view>
  78. <view class="btn-box dhdd flex" v-if="!info.phone">
  79. <!-- #ifdef H5 -->
  80. <view class="btn-right" @click="toGaodeMap()">导航到店</view>
  81. <!-- #endif -->
  82. <!-- #ifdef MP -->
  83. <view class="btn-right" @click="dh()">导航到店</view>
  84. <!-- #endif -->
  85. <!-- #ifdef APP-PLUS -->
  86. <view class="btn-right" @click="gomapApp(info.latitude, info.longitude, info.name)">导航到店</view>
  87. <!-- #endif -->
  88. </view>
  89. <uni-popup ref="popup" type="center">
  90. <view class="popup-box">
  91. <view class="title">支付数量</view>
  92. <view class="input"><input v-model="money" type="number" /></view>
  93. <view class="nocancel">请填写支付金额</view>
  94. <view class="comfirm-box">
  95. <view class="cancel" @click="cancel">取消</view>
  96. <view class="comfirm" @click="navTo('/pages/store/createOrder?id=' + id + '&money=' + money)">确认</view>
  97. </view>
  98. </view>
  99. </uni-popup>
  100. </view>
  101. </template>
  102. <script>
  103. import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
  104. import { getVip } from '@/api/index.js';
  105. // #ifdef H5
  106. import { weixindata, shareLoad } from '@/utils/wxAuthorized';
  107. // #endif
  108. import { saveUrl, interceptor } from '@/utils/loginUtils.js';
  109. import { mapState, mapMutations } from 'vuex';
  110. import { spread, orderData, getUserInfo } from '@/api/user.js';
  111. import { getStoreDetail } from '@/api/shop.js';
  112. import { calculation } from '@/api/order.js';
  113. import { setCoupons } from '@/api/functionalUnit.js';
  114. import { store_details } from '@/api/index.js';
  115. import uniPopup from '@/components/uni-popup/uni-popup.vue';
  116. export default {
  117. components: {
  118. uniLoadMore
  119. },
  120. data() {
  121. return {
  122. money: '',
  123. vipList: [], //商品列表
  124. page: 1,
  125. limit: 10,
  126. loadingType: 'more',
  127. id: '',
  128. info: {},
  129. address: '',
  130. userInfo: ''
  131. };
  132. },
  133. computed: {
  134. ...mapState(['loginInterceptor', 'baseURL', 'latitude', 'longitude']),
  135. ...mapMutations('user', ['setUserInfo', 'setOrderInfo'])
  136. },
  137. onLoad(option) {
  138. let obj = this;
  139. getUserInfo({}).then(({ data }) => {
  140. obj.userInfo = data;
  141. console.log(data, '123456');
  142. });
  143. if (option.spread) {
  144. // 存储邀请人
  145. uni.setStorageSync('puid', option.spread);
  146. }
  147. console.log(option.spread, '邀请人');
  148. this.id = option.id;
  149. this.getStoreDetail();
  150. },
  151. onShow() {
  152. // #ifdef MP-WEIXIN
  153. wx.showShareMenu({
  154. withShareTicket: true,
  155. menus: ['shareAppMessage', 'shareTimeline']
  156. });
  157. //#endif
  158. },
  159. // #ifdef MP-WEIXIN
  160. onShareAppMessage(res) {
  161. let obj = this;
  162. // 保存分享人id链接
  163. let url = 'pages/store/shopDetail' + '?spread=' + this.userInfo.uid + '&id=' + obj.info.id;
  164. if (res.from === 'button') {
  165. // 来自页面内分享按钮
  166. console.log(res.target);
  167. }
  168. return {
  169. path: url, // 分享链接
  170. imageUrl: obj.info.images, // 分享图标
  171. desc: '我在这家店领取了超多消费券哦!',
  172. title: this.userInfo.nickname + '给您推荐了' + obj.info.name
  173. };
  174. },
  175. //分享到朋友圈
  176. onShareTimeline(res) {
  177. console.log(this.userInfo);
  178. let obj = this;
  179. let url = 'pages/store/shopDetail' + '?spread=' + this.userInfo.uid + '&id=' + obj.info.id;
  180. return {
  181. path: url, // 分享链接
  182. imageUrl: obj.info.images, // 分享图标
  183. desc: '我在这家店领取了超多消费券哦!',
  184. title: this.userInfo.nickname + '给您推荐了' + obj.info.name
  185. };
  186. },
  187. //#endif
  188. methods: {
  189. navToDetailPage(item) {
  190. let id = item.id;
  191. uni.navigateTo({
  192. url: '/pages/product/product?id=' + id + '&isVip=' + 8 + '&store_id=' + item.store_id
  193. });
  194. },
  195. navTo(url) {
  196. if (this.money <= 0) {
  197. return this.$api.msg('请输入金额');
  198. }
  199. calculation({ price: this.money, store_id: this.id, integral: 1 })
  200. .then(({ data }) => {
  201. uni.navigateTo({
  202. url
  203. });
  204. })
  205. .then(e => {
  206. this.cancel();
  207. });
  208. },
  209. cancel() {
  210. this.money = '';
  211. this.$refs.popup.close();
  212. },
  213. // 获取门店详情
  214. getStoreDetail() {
  215. let obj = this;
  216. console.log('进入');
  217. getStoreDetail({}, obj.id).then(res => {
  218. obj.info = res.data;
  219. if (res.data.coupon.length != 0) {
  220. obj.vipList = res.data.coupon;
  221. }
  222. obj.info.jl = obj.getFlatternDistance(obj.latitude, obj.longitude, obj.info.latitude, obj.info.longitude);
  223. });
  224. },
  225. markertap(e) {
  226. let obj = this;
  227. // #ifdef H5
  228. weixindata().then(wxOjb => {
  229. console.log(wxOjb, '获取微信');
  230. wxOjb.openLocation({
  231. latitude: obj.info.latitude, // 纬度,浮点数,范围为90 ~ -90
  232. longitude: obj.info.longitude, // 经度,浮点数,范围为180 ~ -180。
  233. name: obj.info.name, // 位置名
  234. address: obj.info.detailed_address, // 地址详情说明
  235. scale: 28, // 地图缩放级别,整型值,范围从1~28。默认为最大
  236. infoUrl: '' // 在查看位置界面底部显示的超链接,可点击跳转
  237. });
  238. });
  239. // #endif
  240. },
  241. //根据经纬度计算距离
  242. getFlatternDistance(lat1, lng1, lat2, lng2) {
  243. console.log(lat1, lng1, lat2, lng2);
  244. let radLat1 = (lat1 * Math.PI) / 180.0;
  245. let radLat2 = (lat2 * Math.PI) / 180.0;
  246. let a = radLat1 - radLat2;
  247. let b = (lng1 * Math.PI) / 180.0 - (lng2 * Math.PI) / 180.0;
  248. let s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) + Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2)));
  249. s = s * 6378.137;
  250. s = Math.round(s * 10000) / 10000;
  251. return s;
  252. },
  253. scroll(e) {
  254. console.log(e, '123456');
  255. },
  256. // tocall() {
  257. // let num = this.info.phone;
  258. // console.log(num);
  259. // uni.makePhoneCall({
  260. // phoneNumber: num //仅为示例
  261. // });
  262. // },
  263. tocall() {
  264. this.$refs.popup.open();
  265. },
  266. // 点击触发领取优惠券
  267. setCoupons(item) {
  268. // 判断是否已经领取了优惠券
  269. let obj = this;
  270. uni.showModal({
  271. title: '领取提示',
  272. content: '是否领取优惠券',
  273. success(e) {
  274. if (e.confirm) {
  275. setCoupons({
  276. couponId: item.id
  277. }).then(e => {
  278. item.is_use = true;
  279. uni.showToast({
  280. title: '领取成功',
  281. type: 'top',
  282. duration: 2000
  283. });
  284. });
  285. }
  286. }
  287. });
  288. },
  289. getaddress() {
  290. console.log('dizhi+++++++++++');
  291. let obj = this;
  292. // #ifndef H5
  293. uni.getLocation({
  294. type: 'gcj02',
  295. success: res => {
  296. console.log(res, 123456);
  297. obj.setLat(res.latitude);
  298. obj.setLon(res.longitude);
  299. obj.getStoreDetail();
  300. },
  301. fail: err => {
  302. console.log(err, 'shi+++++++++++++++');
  303. openMap().then(e => {
  304. this.getaddress();
  305. });
  306. }
  307. });
  308. // #endif
  309. // #ifdef H5
  310. uni.getLocation({
  311. type: 'wgs84',
  312. success: res => {
  313. console.log(res, 123456);
  314. let wz = obj.wgs84Togcj02(res.longitude, res.latitude);
  315. obj.setLat(wz[1]);
  316. obj.setLon(wz[0]);
  317. obj.getStoreDetail();
  318. },
  319. fail: err => {
  320. console.log(err, 'shi+++++++++++++++');
  321. openMap().then(e => {
  322. this.getaddress();
  323. });
  324. }
  325. });
  326. // weixindata().then(wxOjb => {
  327. // console.log(wxOjb, '获取微信');
  328. // wxOjb.getLocation({
  329. // type: 'gcj02',
  330. // success: res => {
  331. // console.log(res, 123456);
  332. // obj.setLat(res.latitude);
  333. // obj.setLon(res.longitude);
  334. // obj.getStoreDetail();
  335. // },
  336. // fail: err => {
  337. // console.log(err, 'shi+++++++++++++++');
  338. // openMap().then(e => {
  339. // obj.getaddress();
  340. // });
  341. // }
  342. // });
  343. // });
  344. // #endif
  345. },
  346. wgs84Togcj02(lng, lat) {
  347. if (this.out_of_china(lng, lat)) {
  348. return [lng, lat];
  349. }
  350. //定义一些常量
  351. //GCJ02 转换为 WGS84
  352. var that = this;
  353. const x_PI = (3.14159265358979324 * 3000.0) / 180.0;
  354. const PI = 3.1415926535897932384626;
  355. const a = 6378245.0;
  356. const ee = 0.00669342162296594323;
  357. let dlat = that.transformlat(lng - 105.0, lat - 35.0);
  358. let dlng = that.transformlng(lng - 105.0, lat - 35.0);
  359. let radlat = (lat / 180.0) * PI;
  360. let magic = Math.sin(radlat);
  361. magic = 1 - ee * magic * magic;
  362. let sqrtmagic = Math.sqrt(magic);
  363. dlat = (dlat * 180.0) / (((a * (1 - ee)) / (magic * sqrtmagic)) * PI);
  364. dlng = (dlng * 180.0) / ((a / sqrtmagic) * Math.cos(radlat) * PI);
  365. var mglat = lat + dlat;
  366. var mglng = lng + dlng;
  367. return [mglng, mglat];
  368. },
  369. out_of_china(lng, lat) {
  370. return lng < 72.004 || lng > 137.8347 || (lat < 0.8293 || lat > 55.8271 || false);
  371. },
  372. transformlat(lng, lat) {
  373. const x_PI = (3.14159265358979324 * 3000.0) / 180.0;
  374. const PI = 3.1415926535897932384626;
  375. const a = 6378245.0;
  376. const ee = 0.00669342162296594323;
  377. let ret = -100.0 + 2.0 * lng + 3.0 * lat + 0.2 * lat * lat + 0.1 * lng * lat + 0.2 * Math.sqrt(Math.abs(lng));
  378. ret += ((20.0 * Math.sin(6.0 * lng * PI) + 20.0 * Math.sin(2.0 * lng * PI)) * 2.0) / 3.0;
  379. ret += ((20.0 * Math.sin(lat * PI) + 40.0 * Math.sin((lat / 3.0) * PI)) * 2.0) / 3.0;
  380. ret += ((160.0 * Math.sin((lat / 12.0) * PI) + 320 * Math.sin((lat * PI) / 30.0)) * 2.0) / 3.0;
  381. return ret;
  382. },
  383. transformlng(lng, lat) {
  384. const x_PI = (3.14159265358979324 * 3000.0) / 180.0;
  385. const PI = 3.1415926535897932384626;
  386. const a = 6378245.0;
  387. const ee = 0.00669342162296594323;
  388. let ret = 300.0 + lng + 2.0 * lat + 0.1 * lng * lng + 0.1 * lng * lat + 0.1 * Math.sqrt(Math.abs(lng));
  389. ret += ((20.0 * Math.sin(6.0 * lng * PI) + 20.0 * Math.sin(2.0 * lng * PI)) * 2.0) / 3.0;
  390. ret += ((20.0 * Math.sin(lng * PI) + 40.0 * Math.sin((lng / 3.0) * PI)) * 2.0) / 3.0;
  391. ret += ((150.0 * Math.sin((lng / 12.0) * PI) + 300.0 * Math.sin((lng / 30.0) * PI)) * 2.0) / 3.0;
  392. return ret;
  393. },
  394. //
  395. openImg(list, item) {
  396. uni.previewImage({
  397. current: item,
  398. urls: list
  399. });
  400. },
  401. // 调用高德
  402. toGaodeMap() {
  403. let obj = this;
  404. window.location.href = `https://uri.amap.com/marker?position=${obj.info.longitude},${obj.info.latitude}&name=${obj.info.name}`;
  405. },
  406. // 导航
  407. dh() {
  408. let obj = this;
  409. wx.openLocation({
  410. latitude: obj.info.latitude * 1,
  411. longitude: obj.info.longitude * 1,
  412. name: obj.info.name,
  413. address: obj.info.detailed_address
  414. });
  415. },
  416. gomapApp(latitude, longitude, name) {
  417. let url = '';
  418. if (plus.os.name == 'Android') {
  419. //判断是安卓端
  420. plus.nativeUI.actionSheet(
  421. {
  422. //选择菜单
  423. title: '选择地图应用',
  424. cancel: '取消',
  425. buttons: [{ title: '腾讯地图' }, { title: '百度地图' }, { title: '高德地图' }]
  426. },
  427. function(e) {
  428. switch (e.index) {
  429. //下面是拼接url,不同系统以及不同地图都有不同的拼接字段
  430. case 1:
  431. //注意referer=xxx的xxx替换成你在腾讯地图开发平台申请的key
  432. url = `qqmap://map/geocoder?coord=${latitude},${longitude}&referer=xxx`;
  433. break;
  434. case 2:
  435. url = `baidumap://map/marker?location=${latitude},${longitude}&title=${name}&coord_type=gcj02&src=andr.baidu.openAPIdemo`;
  436. break;
  437. case 3:
  438. url = `androidamap://viewMap?sourceApplication=appname&poiname=${name}&lat=${latitude}&lon=${longitude}&dev=0`;
  439. break;
  440. default:
  441. break;
  442. }
  443. if (url != '') {
  444. url = encodeURI(url);
  445. //plus.runtime.openURL(url,function(e){})调起手机APP应用
  446. plus.runtime.openURL(url, function(e) {
  447. plus.nativeUI.alert('本机未安装指定的地图应用');
  448. });
  449. }
  450. }
  451. );
  452. } else {
  453. // iOS上获取本机是否安装了百度高德地图,需要在manifest里配置
  454. // 在manifest.json文件app-plus->distribute->apple->urlschemewhitelist节点下添加
  455. //(如urlschemewhitelist:["iosamap","baidumap"])
  456. plus.nativeUI.actionSheet(
  457. {
  458. title: '选择地图应用',
  459. cancel: '取消',
  460. buttons: [{ title: '腾讯地图' }, { title: '百度地图' }, { title: '高德地图' }]
  461. },
  462. function(e) {
  463. switch (e.index) {
  464. case 1:
  465. url = `qqmap://map/geocoder?coord=${latitude},${longitude}&referer=xxx`;
  466. break;
  467. case 2:
  468. url = `baidumap://map/marker?location=${latitude},${longitude}&title=${name}&content=${name}&src=ios.baidu.openAPIdemo&coord_type=gcj02`;
  469. break;
  470. case 3:
  471. url = `iosamap://viewMap?sourceApplication=applicationName&poiname=${name}&lat=${latitude}&lon=${longitude}&dev=0`;
  472. break;
  473. default:
  474. break;
  475. }
  476. if (url != '') {
  477. url = encodeURI(url);
  478. plus.runtime.openURL(url, function(e) {
  479. plus.nativeUI.alert('本机未安装指定的地图应用');
  480. });
  481. }
  482. }
  483. );
  484. }
  485. }
  486. }
  487. };
  488. </script>
  489. <style lang="less">
  490. .center,
  491. page {
  492. background: #f8f8f8;
  493. height: 100%;
  494. }
  495. .dhdd {
  496. view {
  497. margin: 0 auto;
  498. }
  499. }
  500. .store-info {
  501. background: #ffffff;
  502. .store-top {
  503. padding: 40rpx 20rpx;
  504. justify-content: flex-start;
  505. .simage {
  506. width: 130rpx;
  507. height: 130rpx;
  508. background: #f44939;
  509. }
  510. .stop-main {
  511. height: 130rpx;
  512. padding: 6rpx 0;
  513. margin-left: 20rpx;
  514. display: flex;
  515. flex-direction: column;
  516. justify-content: space-between;
  517. align-items: flex-start;
  518. .stop-title {
  519. font-size: 36rpx;
  520. font-family: PingFang SC;
  521. font-weight: 500;
  522. color: #000000;
  523. }
  524. .stop-address {
  525. display: flex;
  526. justify-content: flex-end;
  527. align-items: center;
  528. .mrt-image {
  529. width: 20rpx;
  530. height: 28rpx;
  531. }
  532. .mrt-font {
  533. margin-left: 8rpx;
  534. font-size: 22rpx;
  535. font-family: PingFang SC;
  536. font-weight: 500;
  537. color: #666666;
  538. }
  539. }
  540. }
  541. }
  542. }
  543. .store-item {
  544. background: #ffffff;
  545. display: flex;
  546. justify-content: flex-start;
  547. align-items: center;
  548. padding: 30rpx 30rpx 30rpx 44rpx;
  549. .store-image1 {
  550. width: 36rpx;
  551. height: 36rpx;
  552. }
  553. .store-image2 {
  554. margin: 0 1rpx;
  555. width: 34rpx;
  556. height: 34rpx;
  557. }
  558. .store-image3 {
  559. margin: 0 7rpx;
  560. width: 22rpx;
  561. height: 28rpx;
  562. }
  563. .store-font {
  564. margin-left: 22rpx;
  565. font-size: 26rpx;
  566. font-family: PingFang SC;
  567. font-weight: 500;
  568. color: #2d2d2d;
  569. }
  570. }
  571. .store-main {
  572. margin-top: 16rpx;
  573. background: #ffffff;
  574. padding: 30rpx 42rpx 40rpx;
  575. .smain-title {
  576. font-size: 30rpx;
  577. font-family: PingFang SC;
  578. font-weight: 500;
  579. color: #464646;
  580. }
  581. }
  582. .scroll-box {
  583. white-space: nowrap;
  584. margin-top: 30rpx;
  585. height: 240rpx;
  586. .scroll-item:first-child {
  587. margin-left: 0;
  588. }
  589. .scroll-item {
  590. margin-left: 20rpx;
  591. display: inline-block;
  592. height: 240rpx;
  593. // width: 240rpx;
  594. }
  595. .scroll-image {
  596. height: 240rpx;
  597. // width: 240rpx;
  598. }
  599. }
  600. .btn-box {
  601. position: fixed;
  602. bottom: 0rpx;
  603. left: 0;
  604. right: 0;
  605. width: 750rpx;
  606. background: rgba(255, 255, 255, 0.6);
  607. box-shadow: 0rpx 0rpx 20rpx 0px rgba(50, 50, 52, 0.06);
  608. padding: 22rpx 68rpx;
  609. .btn-left {
  610. width: 280rpx;
  611. height: 80rpx;
  612. background: linear-gradient(180deg, #ffa30b, #ffd158);
  613. box-shadow: 0px 3rpx 13rpx 3rpx rgba(255, 164, 13, 0.48);
  614. border-radius: 40rpx;
  615. text-align: center;
  616. line-height: 80rpx;
  617. font-size: 32rpx;
  618. font-family: PingFang SC;
  619. font-weight: 500;
  620. color: #ffffff;
  621. }
  622. .btn-right {
  623. width: 280rpx;
  624. height: 80rpx;
  625. background: linear-gradient(180deg, #ff6223, #ffab60);
  626. box-shadow: 0px 3rpx 13rpx 3rpx rgba(255, 164, 13, 0.48);
  627. border-radius: 40rpx;
  628. text-align: center;
  629. line-height: 80rpx;
  630. font-size: 32rpx;
  631. font-family: PingFang SC;
  632. font-weight: 500;
  633. color: #ffffff;
  634. }
  635. }
  636. .popup_row {
  637. width: 100%;
  638. height: 500rpx;
  639. background-color: #ffffff;
  640. border-radius: 20rpx;
  641. display: flex;
  642. justify-content: center;
  643. align-items: center;
  644. .rows {
  645. width: 100%;
  646. padding: 0 24rpx;
  647. .rows-item {
  648. height: 80rpx;
  649. line-height: 80rpx;
  650. text-align: center;
  651. width: 100%;
  652. font-size: 32rpx;
  653. color: #303133;
  654. // border-bottom: 1rpx solid #f0f0f0;
  655. }
  656. // .row-1 {
  657. // margin: auto;
  658. // .first_aid {
  659. // width: 300rpx;
  660. // height: 300rpx;
  661. // }
  662. // }
  663. // .row-2 {
  664. // font-size: 38rpx;
  665. // margin-top: 20rpx;
  666. // }
  667. }
  668. }
  669. .shop-dhq {
  670. width: 702rpx;
  671. height: 171rpx;
  672. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.15);
  673. margin: auto;
  674. border-radius: 20rpx;
  675. background-color: #fff;
  676. padding: 0 48rpx 0 26rpx;
  677. margin-bottom: 20rpx;
  678. .dhq-left {
  679. .dhq-name {
  680. overflow: hidden;
  681. width: 28%;
  682. font-size: 28rpx;
  683. font-weight: bold;
  684. color: #333333;
  685. }
  686. .dhq-price {
  687. padding-top: 20rpx;
  688. .j-price {
  689. font-size: 38rpx;
  690. font-weight: bold;
  691. color: #ff4c4c;
  692. &::before {
  693. content: '¥';
  694. font-size: 24rpx;
  695. color: #ff4c4c;
  696. }
  697. }
  698. .j-zk {
  699. margin: 10rpx;
  700. display: inline-block;
  701. margin-left: 10rpx;
  702. line-height: 32rpx;
  703. height: 32rpx;
  704. border: 1px solid #ff4c4c;
  705. border-radius: 5rpx;
  706. font-size: 22rpx;
  707. font-weight: 500;
  708. color: #ff4c4c;
  709. padding: 0 8rpx;
  710. }
  711. }
  712. }
  713. .dhq-right {
  714. .right-btn {
  715. width: 105rpx;
  716. line-height: 56rpx;
  717. background: linear-gradient(143.2747deg, #ff6a00, #ee0979);
  718. border: 1rpx solid #ff4c4c;
  719. border-radius: 27rpx;
  720. text-align: center;
  721. color: #fff;
  722. font-size: 28rpx;
  723. font-weight: bold;
  724. }
  725. }
  726. }
  727. .jx-box-content {
  728. display: flex;
  729. .content-left {
  730. margin: 20rpx 15rpx;
  731. width: 236rpx;
  732. height: 236rpx;
  733. background: #e2e2e2;
  734. border-radius: 10rpx;
  735. image {
  736. width: 100%;
  737. height: 100%;
  738. }
  739. }
  740. .content-right {
  741. display: flex;
  742. flex-direction: column;
  743. justify-content: space-around;
  744. .shop-name {
  745. width: 382rpx;
  746. font-size: 32rpx;
  747. font-weight: bold;
  748. color: #333333;
  749. overflow: hidden;
  750. text-overflow: ellipsis;
  751. display: -webkit-box;
  752. -webkit-box-orient: vertical;
  753. -webkit-line-clamp: 2;
  754. }
  755. .shop-content {
  756. width: 455rpx;
  757. display: flex;
  758. justify-content: space-between;
  759. .shop-content-left {
  760. display: flex;
  761. flex-direction: column;
  762. .price-box {
  763. display: flex;
  764. align-items: center;
  765. .yuan-price {
  766. font-size: 26rpx;
  767. font-weight: 500;
  768. text-decoration: line-through;
  769. color: #999999;
  770. }
  771. image {
  772. margin: 0 10rpx;
  773. width: 16rpx;
  774. height: 18rpx;
  775. }
  776. .j-price {
  777. font-size: 24rpx;
  778. font-weight: bold;
  779. color: #b59467;
  780. }
  781. }
  782. .price-x {
  783. font-size: 36rpx;
  784. font-weight: bold;
  785. color: #ff4c4c;
  786. }
  787. }
  788. .shop-content-right {
  789. margin-top: 20rpx;
  790. align-items: center;
  791. text-align: center;
  792. width: 137rpx;
  793. height: 52rpx;
  794. font-size: 26rpx;
  795. font-weight: 500;
  796. color: #fff;
  797. background: #f75022;
  798. border-radius: 26rpx;
  799. line-height: 52rpx;
  800. }
  801. }
  802. }
  803. }
  804. .popup-box {
  805. width: 500rpx;
  806. background: #ffffff;
  807. border-radius: 20rpx;
  808. padding: 50rpx 0 20rpx;
  809. .title {
  810. text-align: center;
  811. font-size: 32rpx;
  812. font-weight: 500;
  813. }
  814. .input {
  815. background: #e8e8e8;
  816. width: 300rpx;
  817. margin: 50rpx auto 0;
  818. padding: 10rpx;
  819. }
  820. .nocancel {
  821. margin-top: 20rpx;
  822. text-align: center;
  823. font-size: 28rpx;
  824. font-weight: 500;
  825. }
  826. .comfirm-box {
  827. margin-top: 80rpx;
  828. display: flex;
  829. width: 100%;
  830. align-items: center;
  831. .cancel {
  832. width: 50%;
  833. text-align: center;
  834. font-size: 28rpx;
  835. font-weight: 500;
  836. }
  837. .comfirm {
  838. width: 50%;
  839. text-align: center;
  840. font-size: 28rpx;
  841. font-weight: 500;
  842. color: #fe4a4a;
  843. }
  844. }
  845. }
  846. </style>