index.vue 32 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520
  1. <template>
  2. <view class="container">
  3. <view class="carousel-section">
  4. <swiper class="carousel" autoplay="true" duration="400" interval="5000" @change="swiperChange" :indicator-dots="true" indicator-active-color="#FFFFFF">
  5. <swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item">
  6. <image :src="item.img" mode="aspectFill" @click="bannerNavToUrl(item)"></image>
  7. </swiper-item>
  8. </swiper>
  9. <view class="search flex">
  10. <view class="shop-name clamp">{{ chooseDistrict || '定位' }}</view>
  11. <image src="../../static/icon/dingwei.png" mode="widthFix" style="width: 11rpx;"></image>
  12. <view class="input-box flex" @click.stop="clickSearch">
  13. <view class=" input-content flex">
  14. <view class="iconfont iconsearch"></view>
  15. <view class="input"><input type="text" disabled value="搜索附近门店" /></view>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. <swiper :interval="3000" :duration="1000" style="height: 300rpx;background: #fff;">
  21. <swiper-item v-for="(shopitem, shopindex) in shopList" :key="shopindex">
  22. <view class="shop-list flex" style="padding-top: 40rpx;">
  23. <view class="shop-item flex" v-for="(item, index) in shopitem" @click="navto('/pages/store/shopList?id=' + item.id)">
  24. <image :src="item.pic" mode="" class="shop-img"></image>
  25. <view class="shop-name">{{ item.cate_name }}</view>
  26. </view>
  27. </view>
  28. </swiper-item>
  29. </swiper>
  30. <!-- 门店列表 -->
  31. <view class="" style="height: 20rpx;"></view>
  32. <view class="shop">
  33. <view class="shop-title">
  34. <view class="shop-item" @click="changePx(0)">
  35. <view class="sitem-font" :class="{ choose: PXType == 0 }">智能排序</view>
  36. <image class="jt-down" src="https://hy.liuniu946.com/app/index/index06.png" mode=""></image>
  37. </view>
  38. <view class="shop-item" @click="changePx(1)">
  39. <view class="sitem-font" :class="{ choose: PXType == 1 }">位置距离</view>
  40. <image class="jt-down" src="https://hy.liuniu946.com/app/index/index06.png" mode=""></image>
  41. </view>
  42. <view class="shop-item" @click="changePx(2)">
  43. <view class="sitem-font" :class="{ choose: PXType == 2 }">折扣优惠</view>
  44. <image class="jt-down" src="https://hy.liuniu946.com/app/index/index06.png" mode=""></image>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="" style="height: 20rpx;"></view>
  49. <view class="djq-wrap flex f-ai-s" v-for="storeitem in storeList" @click="navto('/pages/store/shopDetail?id=' + storeitem.id)">
  50. <image :src="storeitem.image" mode="" class="djq-img"></image>
  51. <view class="djq-right pl20">
  52. <view class="djq-tit flex f-j-sb f-ai-s">
  53. <view class="djq-name clamp">{{ storeitem.name }}</view>
  54. <view class="djq-dis">
  55. <image src="https://hy.liuniu946.com/app/index/index10.png" mode=""></image>
  56. 距离{{ storeitem.range * 1 }}KM
  57. </view>
  58. </view>
  59. <view class="flex f-d-c f-j-sb f-ai-s fg1" style="height: 110rpx;">
  60. <view class="djq-dz clamp">{{ storeitem.detailed_address }}</view>
  61. <view class="djq-hd flex f-j-sb">
  62. <view class="hd-btn">
  63. <image src="../../static/icon/call.png" mode="" style="margin-right: 15rpx;" @click.stop="makeCall(storeitem.phone)"></image>
  64. <!-- #ifdef H5 -->
  65. <image src="../../static/icon/dh.png" mode="" @click.stop="toGaodeMap(storeitem.latitude, storeitem.longitude, storeitem.name)"></image>
  66. <!-- #endif -->
  67. <!-- #ifdef MP -->
  68. <image src="../../static/icon/dh.png" mode="" @click.stop="dh(storeitem)"></image>
  69. <!-- #endif -->
  70. <!-- #ifdef APP-PLUS -->
  71. <image src="../../static/icon/dh.png" mode="" @click.stop="gomapApp(storeitem.latitude, storeitem.longitude, storeitem.name)"></image>
  72. <!-- #endif -->
  73. </view>
  74. </view>
  75. </view>
  76. <view class="" style="padding: 10rpx 0 0 0;" v-if="storeitem.cou && storeitem.cou.length > 0">
  77. <view class="left-btm flex f-j-s" v-for="qitem in storeitem.cou">
  78. <view class="j-price">
  79. <text>¥</text>
  80. {{ qitem.coupon_price }}
  81. </view>
  82. <view class="j-name">{{ qitem.title }}</view>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. <uni-load-more :status="loadingType"></uni-load-more>
  88. </view>
  89. </template>
  90. <script>
  91. // 地区选择
  92. import LeeSelectCity from '@/components/lee-select-city/lee-select-city.vue';
  93. import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
  94. import { store_cate, getStoreList, getCity } from '@/api/shop.js';
  95. import { lookSubpoints, lookOneself } from '../../api/user.js';
  96. import seckill from '../../components/seckill/seckill.vue';
  97. import { loadIndexs, getVip } from '@/api/index.js';
  98. import { getUserInfo, spread } from '@/api/user.js';
  99. import { setCoupons } from '@/api/functionalUnit.js';
  100. import { getBargainList, getProducts } from '@/api/product.js';
  101. import { interceptor } from '@/utils/loginUtils';
  102. import { openMap } from '@/utils/rocessor';
  103. import { mapState, mapMutations } from 'vuex';
  104. // #ifdef H5
  105. import { weixindata, shareLoad } from '@/utils/wxAuthorized';
  106. // #endif
  107. export default {
  108. components: {
  109. seckill,
  110. LeeSelectCity
  111. },
  112. data() {
  113. return {
  114. page: 1,
  115. limitt: 20,
  116. loadingType: 'more',
  117. district: '定位中',
  118. PXType: 0, //店铺排序规则 0-》智能排序 1-》距离排序 2-》销量排序
  119. storeList: [],
  120. current: 0,
  121. shareShow: false, //分享海报
  122. pageProportion: 0, //保存页面基于750宽度的比例
  123. swiperHeight: 0,
  124. checkid: 0,
  125. titleNViewBackground: '',
  126. swiperCurrent: 0,
  127. swiperLength: 0,
  128. carouselList: [], //轮播列表
  129. bastList: [], //会员礼包
  130. page: 1,
  131. limit: 5,
  132. firstList: [],
  133. goodList: [],
  134. shopList: [],
  135. period: 1
  136. };
  137. },
  138. computed: {
  139. ...mapState(['loginInterceptor', 'baseURL', 'latitude', 'longitude', 'weichatObj', 'chooseDistrict']),
  140. ...mapState('user', ['hasLogin', 'userInfo'])
  141. },
  142. onReachBottom() {
  143. this.getStoreList();
  144. },
  145. onLoad: function(option) {
  146. this.getaddress();
  147. // #ifdef MP
  148. if (option.scene) {
  149. // 存储小程序邀请人
  150. uni.setStorage({
  151. key: 'spread_code',
  152. data: option.scene
  153. });
  154. }
  155. // #endif
  156. // #ifdef H5
  157. this.IndexShare();
  158. //#endif
  159. },
  160. watch: {
  161. // PXType(val, old) {
  162. // console.log('切换显示')
  163. // this.getStoreList()
  164. // },
  165. // chooseDistrict(val,old) {
  166. // this.reGetStoreList()
  167. // }
  168. },
  169. onShow: function() {
  170. this.getStoreCate();
  171. this.getGoodList();
  172. this.loadData();
  173. },
  174. //下拉刷新
  175. onPullDownRefresh() {
  176. this.loadData();
  177. },
  178. // #ifndef MP
  179. // 监听导航栏输入框点击事件
  180. onNavigationBarSearchInputClicked(e) {
  181. //跳转到搜索页面
  182. this.clickSearch();
  183. },
  184. //点击导航栏 buttons 时触发
  185. onNavigationBarButtonTap(e) {
  186. const index = e.index;
  187. if (index === 0) {
  188. this.$api.msg('点击了扫描');
  189. } else if (index === 1) {
  190. // #ifdef APP-PLUS
  191. const pages = getCurrentPages();
  192. const page = pages[pages.length - 1];
  193. const currentWebview = page.$getAppWebview();
  194. currentWebview.hideTitleNViewButtonRedDot({
  195. index
  196. });
  197. // #endif
  198. uni.navigateTo({
  199. url: '/user/page/notice'
  200. });
  201. }
  202. },
  203. // #endif
  204. methods: {
  205. ...mapMutations(['setLat', 'setLon', 'setChoose']),
  206. // 切换排序
  207. changePx(index) {
  208. let obj = this;
  209. obj.PXType = index;
  210. console.log('切换显示');
  211. this.page = 1;
  212. this.loadingType = 'more';
  213. this.getStoreList('reload');
  214. },
  215. // 刷新门店列表
  216. reGetStoreList() {
  217. this.page = 1;
  218. this.loadingType = 'more';
  219. this.storeList = [];
  220. console.log('地址刷新');
  221. this.getStoreList();
  222. },
  223. // 计算距离
  224. space(lat1, lng1, lat2, lng2) {
  225. console.log(lat1, lng1, lat2, lng2);
  226. var radLat1 = (lat1 * Math.PI) / 180.0;
  227. var radLat2 = (lat2 * Math.PI) / 180.0;
  228. var a = radLat1 - radLat2;
  229. var b = (lng1 * Math.PI) / 180.0 - (lng2 * Math.PI) / 180.0;
  230. var 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)));
  231. s = s * 6378.137;
  232. s = Math.round(s * 10000) / 10000;
  233. // return s * 1000; // 单位米
  234. return s; //单位km
  235. },
  236. // 获取店铺分类
  237. getStoreCate() {
  238. let obj = this;
  239. store_cate().then(res => {
  240. console.log(res);
  241. obj.shopList = obj.chunkArr(res.data, 10);
  242. console.log(obj.shopList, 'this.shopList+++++++++++++');
  243. });
  244. },
  245. // 拨打电话
  246. makeCall(phone) {
  247. uni.makePhoneCall({
  248. phoneNumber: phone //仅为示例
  249. });
  250. },
  251. // 导航
  252. dh(item) {
  253. wx.openLocation({
  254. latitude: item.latitude * 1,
  255. longitude: item.longitude * 1,
  256. name: item.name,
  257. address: item.detailed_address
  258. });
  259. },
  260. // 获取商店列表
  261. getStoreList(type) {
  262. let obj = this;
  263. if (obj.loadingType == 'loading' || obj.loadingType == 'noMore') {
  264. return;
  265. }
  266. obj.loadingType = 'loading';
  267. let data = {
  268. page: obj.page,
  269. latitude: obj.latitude,
  270. longitude: obj.longitude,
  271. limit: obj.limitt,
  272. // address: obj.$store.state.chooseProvince,
  273. address: obj.PXType == 0 ? '' : obj.$store.state.chooseDistrict,
  274. sales: obj.PXType == 2 ? 1 : 0,
  275. period: obj.PXType == 0 ? 1 : 0
  276. };
  277. console.log(data, '参数');
  278. getStoreList(data)
  279. .then(res => {
  280. console.log(res, '1111');
  281. if (type == 'reload') {
  282. obj.storeList = [];
  283. }
  284. if (res.data.list.length > 0) {
  285. obj.storeList = obj.storeList.concat(res.data.list);
  286. obj.page++;
  287. console.log('数据加载完毕');
  288. }
  289. if (obj.limitt == res.data.list.length) {
  290. //说明数据已经加载完毕了
  291. obj.loadingType = 'more';
  292. console.log('加载完毕1111111');
  293. } else {
  294. console.log('加载完毕1222222222211');
  295. obj.loadingType = 'noMore';
  296. }
  297. //说明还有数据
  298. uni.hideLoading();
  299. this.$set(obj.storeList, 'loaded', true);
  300. })
  301. .catch(err => {
  302. console.log(err, '报错');
  303. });
  304. },
  305. getLocation() {
  306. uni.getLocation({
  307. type: 'gcj02',
  308. success(e) {
  309. console.log(e, 'dingwei');
  310. }
  311. });
  312. },
  313. getGoodList() {
  314. let obj = this;
  315. getProducts({
  316. page: 1,
  317. limit: 50,
  318. cid: 1
  319. }).then(res => {
  320. console.log(res, 'libao');
  321. obj.goodList = res.data.filter(item => {
  322. return item.price != 2999;
  323. });
  324. });
  325. },
  326. navto(url) {
  327. uni.navigateTo({
  328. url,
  329. fail() {
  330. uni.switchTab({
  331. url
  332. });
  333. }
  334. });
  335. },
  336. // #ifdef H5
  337. IndexShare() {
  338. let obj = this;
  339. let pages = getCurrentPages();
  340. // 获取当前页面
  341. let page = pages[pages.length - 1];
  342. let path = '#/' + page.route + '?';
  343. // 保存传值
  344. for (let i in page.options) {
  345. path += i + '=' + page.options[i] + '&';
  346. }
  347. console.log(obj.Path);
  348. // 保存邀请人
  349. path += 'spread=' + this.userInfo.uid;
  350. let data = {
  351. link: this.baseURL + '/index/#/pages/store/index/' + path,
  352. title: this.userInfo.nickname + '邀请您进入玲卿加',
  353. desc: '欢迎加入玲卿加',
  354. imgUrl: 'https://hy.liuniu946.com/index/https://hy.liuniu946.com/app/img/logo.jpg'
  355. };
  356. console.log(data, '分享数据');
  357. shareLoad(data);
  358. },
  359. // #endif
  360. getaddress() {
  361. console.log('dizhi+++++++++++');
  362. let obj = this;
  363. uni.getLocation({
  364. type: 'wgs84',
  365. success: res => {
  366. // uni.showModal({
  367. // title: '成功',
  368. // content: JSON.stringify(res)
  369. // });
  370. let wz = obj.wgs84Togcj02(res.longitude, res.latitude);
  371. obj.setLat(wz[1]);
  372. obj.setLon(wz[0]);
  373. obj.getCity();
  374. },
  375. fail: err => {
  376. // uni.showModal({
  377. // title: '失败',
  378. // content: JSON.stringify(err)
  379. // });
  380. openMap().then(e => {
  381. this.getaddress();
  382. });
  383. }
  384. });
  385. },
  386. wgs84Togcj02(lng, lat) {
  387. if (this.out_of_china(lng, lat)) {
  388. return [lng, lat];
  389. }
  390. //定义一些常量
  391. //GCJ02 转换为 WGS84
  392. var that = this;
  393. const x_PI = (3.14159265358979324 * 3000.0) / 180.0;
  394. const PI = 3.1415926535897932384626;
  395. const a = 6378245.0;
  396. const ee = 0.00669342162296594323;
  397. let dlat = that.transformlat(lng - 105.0, lat - 35.0);
  398. let dlng = that.transformlng(lng - 105.0, lat - 35.0);
  399. let radlat = (lat / 180.0) * PI;
  400. let magic = Math.sin(radlat);
  401. magic = 1 - ee * magic * magic;
  402. let sqrtmagic = Math.sqrt(magic);
  403. dlat = (dlat * 180.0) / (((a * (1 - ee)) / (magic * sqrtmagic)) * PI);
  404. dlng = (dlng * 180.0) / ((a / sqrtmagic) * Math.cos(radlat) * PI);
  405. var mglat = lat + dlat;
  406. var mglng = lng + dlng;
  407. return [mglng, mglat];
  408. },
  409. out_of_china(lng, lat) {
  410. return lng < 72.004 || lng > 137.8347 || (lat < 0.8293 || lat > 55.8271 || false);
  411. },
  412. transformlat(lng, lat) {
  413. const x_PI = (3.14159265358979324 * 3000.0) / 180.0;
  414. const PI = 3.1415926535897932384626;
  415. const a = 6378245.0;
  416. const ee = 0.00669342162296594323;
  417. 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));
  418. ret += ((20.0 * Math.sin(6.0 * lng * PI) + 20.0 * Math.sin(2.0 * lng * PI)) * 2.0) / 3.0;
  419. ret += ((20.0 * Math.sin(lat * PI) + 40.0 * Math.sin((lat / 3.0) * PI)) * 2.0) / 3.0;
  420. ret += ((160.0 * Math.sin((lat / 12.0) * PI) + 320 * Math.sin((lat * PI) / 30.0)) * 2.0) / 3.0;
  421. return ret;
  422. },
  423. transformlng(lng, lat) {
  424. const x_PI = (3.14159265358979324 * 3000.0) / 180.0;
  425. const PI = 3.1415926535897932384626;
  426. const a = 6378245.0;
  427. const ee = 0.00669342162296594323;
  428. let ret = 300.0 + lng + 2.0 * lat + 0.1 * lng * lng + 0.1 * lng * lat + 0.1 * Math.sqrt(Math.abs(lng));
  429. ret += ((20.0 * Math.sin(6.0 * lng * PI) + 20.0 * Math.sin(2.0 * lng * PI)) * 2.0) / 3.0;
  430. ret += ((20.0 * Math.sin(lng * PI) + 40.0 * Math.sin((lng / 3.0) * PI)) * 2.0) / 3.0;
  431. ret += ((150.0 * Math.sin((lng / 12.0) * PI) + 300.0 * Math.sin((lng / 30.0) * PI)) * 2.0) / 3.0;
  432. return ret;
  433. },
  434. navTo(url) {
  435. if (url == '') {
  436. this.$api.msg('暂未开通,敬请期待');
  437. } else {
  438. uni.navigateTo({
  439. url
  440. });
  441. }
  442. },
  443. // 點擊搜索框
  444. clickSearch() {
  445. uni.navigateTo({
  446. url: '/pages/store/shopList?id=0'
  447. });
  448. },
  449. // 监听图片加载完成
  450. onImageError(key, index) {
  451. this[key][index].image = '/static/error/errorImage.jpg';
  452. },
  453. // 请求载入数据
  454. async loadData() {
  455. loadIndexs({})
  456. .then(({ data }) => {
  457. let goods = data.info;
  458. console.log(goods, '商品信息');
  459. this.carouselList = data.info.storebanner;
  460. this.swiperLength = this.carouselList.length;
  461. this.bastList = data.giftInfo; //会员礼包
  462. data.info.firstList.forEach(e => {
  463. e.isVip = e.store_type ? '3' : '0';
  464. });
  465. this.firstList = data.info.firstList; //首页商品
  466. uni.stopPullDownRefresh();
  467. })
  468. .catch(e => {
  469. uni.stopPullDownRefresh();
  470. });
  471. },
  472. //轮播图切换修改背景色
  473. swiperChange(e) {
  474. const index = e.detail.current;
  475. this.swiperCurrent = index;
  476. this.titleNViewBackground = this.carouselList[index].background;
  477. },
  478. // 轮播图跳转
  479. bannerNavToUrl(item) {
  480. // #ifdef H5
  481. console.log(item.wap_url.indexOf('http'), 'banner');
  482. if (item.wap_url.indexOf('http') >= 0) {
  483. window.location.href = item.wap_url;
  484. }
  485. // #endif
  486. //测试数据没有写id,用title代替
  487. uni.navigateTo({
  488. url: item.wap_url
  489. });
  490. },
  491. // 根据指定个数分割数组
  492. chunkArr(arr, size) {
  493. console.log(arr, 'arr+++++');
  494. //判断如果不是数组(就没有length),或者size没有传值,size小于1,就返回空数组
  495. if (!arr.length || !size || size < 1) return [];
  496. let [start, end, result] = [null, null, []];
  497. for (let i = 0; i < Math.ceil(arr.length / size); i++) {
  498. start = i * size;
  499. end = start + size;
  500. result.push(arr.slice(start, end));
  501. }
  502. return result;
  503. },
  504. gomapApp(latitude, longitude, name) {
  505. let url = '';
  506. if (plus.os.name == 'Android') {
  507. //判断是安卓端
  508. plus.nativeUI.actionSheet(
  509. {
  510. //选择菜单
  511. title: '选择地图应用',
  512. cancel: '取消',
  513. buttons: [{ title: '腾讯地图' }, { title: '百度地图' }, { title: '高德地图' }]
  514. },
  515. function(e) {
  516. switch (e.index) {
  517. //下面是拼接url,不同系统以及不同地图都有不同的拼接字段
  518. case 1:
  519. //注意referer=xxx的xxx替换成你在腾讯地图开发平台申请的key
  520. url = `qqmap://map/geocoder?coord=${latitude},${longitude}&referer=xxx`;
  521. break;
  522. case 2:
  523. url = `baidumap://map/marker?location=${latitude},${longitude}&title=${name}&coord_type=gcj02&src=andr.baidu.openAPIdemo`;
  524. break;
  525. case 3:
  526. url = `androidamap://viewMap?sourceApplication=appname&poiname=${name}&lat=${latitude}&lon=${longitude}&dev=0`;
  527. break;
  528. default:
  529. break;
  530. }
  531. if (url != '') {
  532. url = encodeURI(url);
  533. //plus.runtime.openURL(url,function(e){})调起手机APP应用
  534. plus.runtime.openURL(url, function(e) {
  535. plus.nativeUI.alert('本机未安装指定的地图应用');
  536. });
  537. }
  538. }
  539. );
  540. } else {
  541. // iOS上获取本机是否安装了百度高德地图,需要在manifest里配置
  542. // 在manifest.json文件app-plus->distribute->apple->urlschemewhitelist节点下添加
  543. //(如urlschemewhitelist:["iosamap","baidumap"])
  544. plus.nativeUI.actionSheet(
  545. {
  546. title: '选择地图应用',
  547. cancel: '取消',
  548. buttons: [{ title: '腾讯地图' }, { title: '百度地图' }, { title: '高德地图' }]
  549. },
  550. function(e) {
  551. switch (e.index) {
  552. case 1:
  553. url = `qqmap://map/geocoder?coord=${latitude},${longitude}&referer=xxx`;
  554. break;
  555. case 2:
  556. url = `baidumap://map/marker?location=${latitude},${longitude}&title=${name}&content=${name}&src=ios.baidu.openAPIdemo&coord_type=gcj02`;
  557. break;
  558. case 3:
  559. url = `iosamap://viewMap?sourceApplication=applicationName&poiname=${name}&lat=${latitude}&lon=${longitude}&dev=0`;
  560. break;
  561. default:
  562. break;
  563. }
  564. if (url != '') {
  565. url = encodeURI(url);
  566. plus.runtime.openURL(url, function(e) {
  567. plus.nativeUI.alert('本机未安装指定的地图应用');
  568. });
  569. }
  570. }
  571. );
  572. }
  573. },
  574. getCity() {
  575. let obj = this;
  576. console.log('进入city');
  577. getCity({
  578. lat: obj.latitude,
  579. lng: obj.longitude
  580. })
  581. .then(res => {
  582. console.log(res, '逆解析结果');
  583. obj.chooseDistrict = res.data.district;
  584. if (!obj.chooseDistrict) {
  585. obj.setChoose({
  586. chooseProvince: res.data.province,
  587. chooseCity: res.data.city,
  588. chooseDistrict: res.data.district
  589. });
  590. }
  591. obj.getStoreList();
  592. })
  593. .catch(err => {
  594. console.log(err, 'shibai');
  595. });
  596. },
  597. // 调用高德
  598. toGaodeMap(latitude, longitude, address) {
  599. window.location.href = `https://uri.amap.com/marker?position=${longitude},${latitude}&name=${address}`;
  600. }
  601. }
  602. };
  603. </script>
  604. <style lang="scss">
  605. page {
  606. background: #f8f6f9;
  607. }
  608. .carousel-section {
  609. position: relative;
  610. // padding-top: 10px;
  611. .bg {
  612. position: absolute;
  613. top: 0;
  614. left: 0;
  615. width: 750rpx;
  616. height: 378rpx;
  617. image {
  618. width: 100%;
  619. height: 100%;
  620. }
  621. }
  622. .titleNview-placing {
  623. height: var(--status-bar-height);
  624. box-sizing: content-box;
  625. }
  626. .search {
  627. justify-content: space-between;
  628. padding: 30rpx 32rpx 20rpx;
  629. align-items: center;
  630. background-color: #fff;
  631. .address {
  632. width: 32rpx;
  633. height: 38rpx;
  634. }
  635. .shop-name {
  636. height: 38rpx;
  637. position: relative;
  638. top: -4rpx;
  639. z-index: 100;
  640. width: 120rpx;
  641. font-size: 30rpx;
  642. font-family: PingFang SC;
  643. font-weight: 500;
  644. padding-left: 10rpx;
  645. }
  646. .shop-jt {
  647. margin-left: 8rpx;
  648. width: 16rpx;
  649. height: 10rpx;
  650. }
  651. .input-box {
  652. margin-left: 10rpx;
  653. position: relative;
  654. z-index: 99;
  655. width: 650rpx;
  656. height: 60rpx;
  657. background: #eeeeee;
  658. border-radius: 30rpx;
  659. .input-content {
  660. position: relative;
  661. z-index: 11;
  662. border-radius: 99rpx;
  663. flex-grow: 1;
  664. padding: 5rpx 30rpx;
  665. background: #eeeeee;
  666. .iconsearch {
  667. font-size: 50rpx;
  668. color: #cbcbcb;
  669. }
  670. .input {
  671. margin-left: 19rpx;
  672. flex-grow: 1;
  673. color: #cbcbcb;
  674. input {
  675. font-size: 28rpx;
  676. color: #cbcbcb;
  677. }
  678. }
  679. }
  680. .input-button {
  681. padding-left: 20rpx;
  682. font-size: $font-base;
  683. height: 100%;
  684. }
  685. }
  686. }
  687. }
  688. .carousel {
  689. position: relative;
  690. z-index: 3;
  691. width: 100%;
  692. height: 360rpx;
  693. background-color: #fff;
  694. .carousel-item {
  695. width: 100%;
  696. height: 100%;
  697. }
  698. image {
  699. width: 100%;
  700. height: 100%;
  701. }
  702. }
  703. .navbar {
  704. position: relative;
  705. z-index: 2;
  706. padding: 0 50rpx;
  707. margin-top: -200rpx;
  708. width: 750rpx;
  709. height: 420rpx;
  710. background: #ffffff;
  711. border-radius: 40rpx;
  712. .navbar-box {
  713. padding-top: 250rpx;
  714. .navbar-item {
  715. display: flex;
  716. flex-direction: column;
  717. align-items: center;
  718. width: 20%;
  719. .nitem-image {
  720. width: 90rpx;
  721. height: 90rpx;
  722. }
  723. .nitem-font {
  724. margin-top: 22rpx;
  725. font-size: 26rpx;
  726. font-family: PingFang SC;
  727. font-weight: 500;
  728. color: #000000;
  729. }
  730. }
  731. }
  732. }
  733. .jx {
  734. background: #fff;
  735. width: 750rpx;
  736. }
  737. .jx-box {
  738. background: #fff;
  739. display: flex;
  740. flex-direction: column;
  741. align-items: center;
  742. width: 750rpx;
  743. .jx-box-title {
  744. margin: 50rpx 0;
  745. width: 610rpx;
  746. height: 30rpx;
  747. image {
  748. width: 100%;
  749. height: 100%;
  750. }
  751. }
  752. .jx-box-img {
  753. width: 750rpx;
  754. height: 220rpx;
  755. image {
  756. width: 100%;
  757. height: 100%;
  758. }
  759. }
  760. }
  761. .cai {
  762. display: flex;
  763. justify-content: center;
  764. align-items: center;
  765. padding-bottom: 20rpx;
  766. font-size: 28rpx;
  767. font-weight: 500;
  768. color: #999999;
  769. }
  770. .jx-box-content {
  771. display: flex;
  772. .content-left {
  773. margin: 20rpx 15rpx;
  774. width: 236rpx;
  775. height: 236rpx;
  776. background: #e2e2e2;
  777. border-radius: 10rpx;
  778. image {
  779. width: 100%;
  780. height: 100%;
  781. }
  782. }
  783. .content-right {
  784. display: flex;
  785. flex-direction: column;
  786. justify-content: space-around;
  787. .shop-name {
  788. width: 382rpx;
  789. font-size: 32rpx;
  790. font-weight: bold;
  791. color: #333333;
  792. overflow: hidden;
  793. text-overflow: ellipsis;
  794. display: -webkit-box;
  795. -webkit-box-orient: vertical;
  796. -webkit-line-clamp: 2;
  797. }
  798. .shop-content {
  799. width: 455rpx;
  800. display: flex;
  801. justify-content: space-between;
  802. .shop-content-left {
  803. display: flex;
  804. flex-direction: column;
  805. .price-box {
  806. display: flex;
  807. align-items: center;
  808. .yuan-price {
  809. font-size: 26rpx;
  810. font-weight: 500;
  811. text-decoration: line-through;
  812. color: #999999;
  813. }
  814. image {
  815. margin: 0 10rpx;
  816. width: 16rpx;
  817. height: 18rpx;
  818. }
  819. .j-price {
  820. font-size: 24rpx;
  821. font-weight: bold;
  822. color: #b59467;
  823. }
  824. }
  825. .price-x {
  826. font-size: 36rpx;
  827. font-weight: bold;
  828. color: #ff4c4c;
  829. }
  830. }
  831. .shop-content-right {
  832. margin-top: 20rpx;
  833. align-items: center;
  834. text-align: center;
  835. width: 137rpx;
  836. height: 52rpx;
  837. font-size: 26rpx;
  838. font-weight: 500;
  839. color: #fff;
  840. background: #f75022;
  841. border-radius: 26rpx;
  842. line-height: 52rpx;
  843. }
  844. }
  845. }
  846. }
  847. .shop {
  848. margin-top: 20rpx;
  849. background: #ffffff;
  850. padding: 0 12rpx;
  851. .shop-title {
  852. padding: 30rpx 0 20rpx;
  853. display: flex;
  854. align-items: center;
  855. border-bottom: 1px solid #e3e6e7;
  856. .shop-item {
  857. width: 25%;
  858. display: flex;
  859. align-items: center;
  860. justify-content: center;
  861. .sitem-font {
  862. font-size: 26rpx;
  863. font-family: PingFang SC;
  864. font-weight: bold;
  865. color: #333333;
  866. }
  867. .choose {
  868. color: #ff4c4c;
  869. }
  870. .jt-down {
  871. width: 10rpx;
  872. height: 8rpx;
  873. margin-left: 12rpx;
  874. }
  875. }
  876. }
  877. }
  878. .shop-main {
  879. padding: 32rpx 18rpx 0 12rpx;
  880. align-items: flex-start;
  881. justify-content: flex-start;
  882. .main-left {
  883. width: 180rpx;
  884. height: 180rpx;
  885. border-radius: 10rpx;
  886. }
  887. .main-right {
  888. width: 500rpx;
  889. justify-content: space-between;
  890. align-items: flex-start;
  891. margin-left: 20rpx;
  892. padding: 13rpx 0 35rpx;
  893. border-bottom: 1px solid #eaeced;
  894. .shopm-info {
  895. max-width: 60%;
  896. line-height: 1;
  897. .shopm-title {
  898. display: flex;
  899. justify-content: flex-start;
  900. .shopmt-font {
  901. font-size: 34rpx;
  902. font-family: PingFang SC;
  903. font-weight: bold;
  904. color: #333333;
  905. }
  906. .shopmt-good {
  907. margin-left: 6rpx;
  908. width: 30rpx;
  909. height: 30rpx;
  910. border: 1px solid #ff4c4c;
  911. border-radius: 5rpx;
  912. font-size: 20rpx;
  913. font-family: PingFang SC;
  914. font-weight: 500;
  915. color: #ff4c4c;
  916. text-align: center;
  917. line-height: 30rpx;
  918. }
  919. }
  920. .address {
  921. margin-top: 16rpx;
  922. font-size: 24rpx;
  923. font-family: PingFang SC;
  924. font-weight: 500;
  925. color: #666666;
  926. }
  927. .shopmt-tip {
  928. position: relative;
  929. display: inline-block;
  930. flex-grow: 0;
  931. margin-top: 52rpx;
  932. padding: 8rpx;
  933. background: #fcf3f0;
  934. border-radius: 16rpx 16rpx 16rpx 0px;
  935. font-size: 20rpx;
  936. font-family: PingFang SC;
  937. font-weight: 500;
  938. color: #ff440d;
  939. }
  940. }
  941. .right {
  942. height: 100%;
  943. margin-top: 5rpx;
  944. display: flex;
  945. flex-direction: column;
  946. .mright-top {
  947. display: flex;
  948. justify-content: flex-end;
  949. align-items: center;
  950. .mrt-image {
  951. width: 20rpx;
  952. height: 28rpx;
  953. }
  954. .mrt-font {
  955. margin-left: 8rpx;
  956. font-size: 22rpx;
  957. font-family: PingFang SC;
  958. font-weight: 500;
  959. color: #666666;
  960. }
  961. }
  962. .mright-bottom {
  963. margin-top: 80rpx;
  964. display: flex;
  965. justify-content: flex-end;
  966. .mrb-item {
  967. width: 46rpx;
  968. height: 46rpx;
  969. margin-left: 14rpx;
  970. }
  971. }
  972. }
  973. }
  974. }
  975. .good-list {
  976. width: 750rpx;
  977. background: linear-gradient(0deg, #ffffff, #f8f8f8);
  978. padding: 0 30rpx 30rpx;
  979. .good {
  980. width: 690rpx;
  981. height: 276rpx;
  982. background: #ffffff;
  983. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  984. border-radius: 10rpx;
  985. margin: auto;
  986. padding: 20rpx 15rpx;
  987. margin-bottom: 20rpx;
  988. &:last-of-type {
  989. margin-bottom: 0rpx;
  990. }
  991. .good-img {
  992. flex-shrink: 0;
  993. width: 236rpx;
  994. height: 236rpx;
  995. border-radius: 10rpx;
  996. margin-right: 22rpx;
  997. image {
  998. width: 236rpx;
  999. height: 236rpx;
  1000. border-radius: 10rpx;
  1001. }
  1002. }
  1003. .good-info {
  1004. flex-grow: 1;
  1005. height: 100%;
  1006. flex-direction: column;
  1007. justify-content: space-between;
  1008. align-items: flex-start;
  1009. .good-name {
  1010. font-size: 32rpx;
  1011. font-weight: bold;
  1012. padding-top: 10rpx;
  1013. color: #333333;
  1014. }
  1015. .good-price {
  1016. width: 100%;
  1017. image {
  1018. width: 14rpx;
  1019. margin: 0 6rpx 0 10rpx;
  1020. }
  1021. .old-price {
  1022. .old-left {
  1023. font-size: 26rpx;
  1024. font-weight: 500;
  1025. text-decoration: line-through;
  1026. color: #999999;
  1027. }
  1028. .old-right {
  1029. font-size: 24rpx;
  1030. font-weight: bold;
  1031. color: #b59467;
  1032. }
  1033. }
  1034. .new-price {
  1035. width: 100%;
  1036. font-size: 36rpx;
  1037. font-weight: bold;
  1038. color: #ff4c4c;
  1039. justify-content: space-between;
  1040. .good-tip {
  1041. display: inline-block;
  1042. padding: 0 20rpx 0 17rpx;
  1043. min-width: 160rpx;
  1044. text-align: center;
  1045. line-height: 40rpx;
  1046. background: #f75022;
  1047. font-size: 24rpx;
  1048. font-weight: 500;
  1049. color: #fff;
  1050. border-radius: 10rpx;
  1051. position: relative;
  1052. &::before {
  1053. content: '';
  1054. display: inline-block;
  1055. height: 17rpx;
  1056. width: 17rpx;
  1057. background-color: #fff;
  1058. border-radius: 50%;
  1059. position: absolute;
  1060. top: 0;
  1061. bottom: 0;
  1062. left: -9rpx;
  1063. margin: auto;
  1064. }
  1065. &::after {
  1066. content: '';
  1067. display: inline-block;
  1068. height: 17rpx;
  1069. width: 17rpx;
  1070. background-color: #fff;
  1071. border-radius: 50%;
  1072. position: absolute;
  1073. top: 0;
  1074. bottom: 0;
  1075. right: -9rpx;
  1076. margin: auto;
  1077. }
  1078. }
  1079. }
  1080. }
  1081. }
  1082. }
  1083. }
  1084. .title-wrapper {
  1085. padding-left: 20rpx;
  1086. justify-content: flex-start;
  1087. align-items: center;
  1088. height: 86rpx;
  1089. line-height: 86rpx;
  1090. width: 690rpx;
  1091. margin: auto;
  1092. image {
  1093. width: 36rpx;
  1094. height: 36rpx;
  1095. background: linear-gradient(43deg, #ffc063, #ffa163);
  1096. border-radius: 50%;
  1097. }
  1098. view {
  1099. padding-left: 10rpx;
  1100. font-size: 32rpx;
  1101. font-family: PingFang SC;
  1102. font-weight: bold;
  1103. color: #242424;
  1104. }
  1105. .title-b {
  1106. font-size: 24rpx;
  1107. font-family: PingFang SC;
  1108. font-weight: 500;
  1109. color: #8b8b8b;
  1110. }
  1111. }
  1112. .shop-list {
  1113. padding-top: 20rpx;
  1114. flex-wrap: wrap;
  1115. background-color: #fff;
  1116. justify-content: flex-start;
  1117. .shop-item {
  1118. margin-bottom: 20rpx;
  1119. flex-direction: column;
  1120. width: 20%;
  1121. height: 100rpx;
  1122. image {
  1123. width: 60rpx;
  1124. height: 58rpx;
  1125. }
  1126. }
  1127. }
  1128. .gift-info {
  1129. width: 690rpx;
  1130. height: 155rpx;
  1131. background: linear-gradient(43deg, #ffb242, #ff944d);
  1132. border-radius: 12rpx 12rpx 0px 0px;
  1133. margin: auto;
  1134. color: #fff;
  1135. font-size: 24rpx;
  1136. font-weight: 400;
  1137. color: #ffffff;
  1138. view {
  1139. padding-left: 28rpx;
  1140. }
  1141. }
  1142. .gift-good-list {
  1143. width: 690rpx;
  1144. height: 243rpx;
  1145. background: #f4f4f4;
  1146. border-radius: 12rpx;
  1147. margin: auto;
  1148. .gift-list {
  1149. width: 670rpx;
  1150. height: 286rpx;
  1151. background: #fff;
  1152. border-radius: 12px;
  1153. // margin: -54rpx auto 0;
  1154. top: -54rpx;
  1155. left: 0;
  1156. right: 0;
  1157. margin: auto;
  1158. .gift-item {
  1159. background-color: #fff;
  1160. width: 223rpx;
  1161. height: 100%;
  1162. border-right: 1rpx solid #d6d7dc;
  1163. &:first-of-type {
  1164. border-radius: 12rpx 0 0 12rpx;
  1165. }
  1166. &:last-of-type {
  1167. margin-right: 0;
  1168. }
  1169. image {
  1170. width: 160rpx;
  1171. height: 160rpx;
  1172. }
  1173. .gift-name {
  1174. font-size: 22rpx;
  1175. font-weight: bold;
  1176. color: #3f3f3f;
  1177. line-height: 34px;
  1178. }
  1179. .gift-price {
  1180. font-size: 28rpx;
  1181. font-weight: bold;
  1182. color: #ff4c4c;
  1183. }
  1184. }
  1185. }
  1186. }
  1187. .djq-wrap {
  1188. width: 701rpx;
  1189. // height: 255rpx;
  1190. background: #ffffff;
  1191. box-shadow: 0px 0px 27rpx 0px rgba(50, 50, 52, 0.06);
  1192. border-radius: 20rpx;
  1193. margin: 0 auto 20rpx;
  1194. padding: 23rpx 22rpx;
  1195. &:last-of-type {
  1196. margin-bottom: 0;
  1197. }
  1198. .djq-img {
  1199. flex-shrink: 0;
  1200. width: 150rpx;
  1201. height: 150rpx;
  1202. border-radius: 10rpx;
  1203. }
  1204. .djq-right {
  1205. padding-left: 20rpx;
  1206. flex-grow: 1;
  1207. .djq-tit {
  1208. font-size: 34rpx;
  1209. font-weight: bold;
  1210. color: #333333;
  1211. line-height: 52rpx;
  1212. .djq-name {
  1213. max-width: 300rpx;
  1214. }
  1215. .djq-dis {
  1216. flex-shrink: 0;
  1217. display: flex;
  1218. align-items: center;
  1219. image {
  1220. width: 20rpx;
  1221. height: 28rpx;
  1222. margin-right: 10rpx;
  1223. }
  1224. font-size: 22rpx;
  1225. font-weight: 500;
  1226. color: #666666;
  1227. }
  1228. }
  1229. .djq-dz {
  1230. width: 100%;
  1231. font-size: 24rpx;
  1232. font-weight: 500;
  1233. color: #666666;
  1234. }
  1235. .djq-hd {
  1236. width: 100%;
  1237. display: flex;
  1238. justify-content: flex-end;
  1239. .buy-info {
  1240. display: inline-block;
  1241. height: 32rpx;
  1242. border-radius: 16rpx 16rpx 16rpx 0px;
  1243. line-height: 32rpx;
  1244. font-size: 20rpx;
  1245. font-weight: 500;
  1246. color: #ff440d;
  1247. padding: 0 15rpx;
  1248. background-color: #fff;
  1249. }
  1250. .hd-btn {
  1251. image {
  1252. width: 46rpx;
  1253. height: 46rpx;
  1254. }
  1255. }
  1256. }
  1257. }
  1258. }
  1259. .left-btm {
  1260. height: 66rpx;
  1261. .j-logo {
  1262. width: 32rpx;
  1263. line-height: 33rpx;
  1264. background: linear-gradient(-48deg, #ffa30b, #ffd158);
  1265. border-radius: 13rpx;
  1266. font-size: 21rpx;
  1267. font-weight: 500;
  1268. color: #ffffff;
  1269. text-align: center;
  1270. }
  1271. .j-price {
  1272. font-size: 27rpx;
  1273. font-weight: bold;
  1274. color: #ff4c4c;
  1275. margin: 0 10rpx 0 5rpx;
  1276. }
  1277. .j-zk {
  1278. height: 31rpx;
  1279. border: 1rpx solid #ff4c4c;
  1280. border-radius: 7rpx;
  1281. line-height: 31rpx;
  1282. padding: 0 8rpx;
  1283. font-size: 20rpx;
  1284. font-weight: bold;
  1285. color: #ff4c4c;
  1286. margin-right: 5rpx;
  1287. }
  1288. .j-name {
  1289. font-size: 23rpx;
  1290. font-weight: bold;
  1291. color: #333333;
  1292. }
  1293. }
  1294. .hotgoods {
  1295. // margin-top: 38rpx;
  1296. width: 100%;
  1297. display: flex;
  1298. flex-wrap: wrap;
  1299. padding: 0 0 30rpx;
  1300. .hotgoods-item {
  1301. width: 48%;
  1302. background-color: #ffffff;
  1303. border-radius: 12rpx;
  1304. &:nth-child(2n + 1) {
  1305. margin-right: 24rpx;
  1306. }
  1307. .image-wrapper {
  1308. width: 100%;
  1309. height: 330rpx;
  1310. border-radius: 3px;
  1311. overflow: hidden;
  1312. position: relative;
  1313. .image-bg {
  1314. position: absolute;
  1315. top: 0;
  1316. left: 0;
  1317. right: 0;
  1318. bottom: 0;
  1319. width: 100%;
  1320. height: 100%;
  1321. opacity: 1;
  1322. border-radius: 12rpx 12rpx 0 0;
  1323. z-index: 2;
  1324. }
  1325. .image {
  1326. width: 100%;
  1327. height: 100%;
  1328. opacity: 1;
  1329. border-radius: 12rpx 12rpx 0 0;
  1330. }
  1331. }
  1332. .title {
  1333. margin-top: 24rpx;
  1334. font-size: 28rpx;
  1335. font-family: PingFang SC;
  1336. font-weight: 500;
  1337. color: #333333;
  1338. }
  1339. .hot-price {
  1340. display: flex;
  1341. justify-content: space-between;
  1342. align-items: center;
  1343. padding: 14rpx 10rpx 30rpx;
  1344. .hotPrice-box {
  1345. width: 70rpx;
  1346. height: 28rpx;
  1347. background: linear-gradient(90deg, #c79a4c, #f9df7f);
  1348. border-radius: 5rpx;
  1349. text-align: center;
  1350. line-height: 28rpx;
  1351. font-size: 20rpx;
  1352. font-family: Source Han Sans CN;
  1353. font-weight: 400;
  1354. color: #ffffff;
  1355. }
  1356. .price {
  1357. // margin-left: 10rpx;
  1358. font-size: 40rpx;
  1359. color: #ff0000;
  1360. font-weight: 500;
  1361. }
  1362. .yuanPrice {
  1363. margin-left: 10rpx;
  1364. font-size: 20rpx;
  1365. font-weight: 500;
  1366. // text-decoration: line-through;
  1367. color: #999999;
  1368. }
  1369. .cart-icon {
  1370. image {
  1371. width: 44rpx;
  1372. height: 44rpx;
  1373. }
  1374. }
  1375. }
  1376. }
  1377. }
  1378. .product-box {
  1379. // margin-top: 20rpx;
  1380. background: #ffffff;
  1381. padding: 0rpx 30rpx 20rpx;
  1382. }
  1383. </style>