You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1633 lines
42 KiB

1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
  1. <template>
  2. <view class="home-content">
  3. <NewUserCoupon v-if="isNewUser" @close="closeNewUserPopup" @getCoupon="handleGetCoupon"></NewUserCoupon>
  4. <view class="banner">
  5. <uni-swiper-dot class="uni-swiper-dot-box" field="content">
  6. <swiper class="swiper" indicator-dots indicator-color="rgba(255, 255, 255, 0.50)"
  7. indicator-active-color="#ffffff" autoplay interval="5000">
  8. <swiper-item v-for="(item,i) in bannerList" :key="i">
  9. <img :src="item&&item.dictValue" style="width: 100%;" mode="widthFix" />
  10. </swiper-item>
  11. <!-- <swiper-item>
  12. <img src="https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/banner/banner/banner2_3x.png"
  13. style="width: 100%;" mode="widthFix" />
  14. </swiper-item> -->
  15. </swiper>
  16. </uni-swiper-dot>
  17. </view>
  18. <view style="margin: -250px 20rpx 0 20rpx;">
  19. <image style="width: 710rpx; height: 176rpx;" slot='cover'
  20. src="https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/petServiceOrder/TopDetail.png" />
  21. </view>
  22. <view class="card-container">
  23. <uni-card :is-shadow="false" padding="40rpx 20rpx 40rpx 20rpx" margin="20rpx">
  24. <view class="normal-bolb-text">
  25. <view @click="getLocationInfo"
  26. style="display: flex; align-items: center; justify-content: space-between;">
  27. <text v-if="isCheckLocation"
  28. style="color: #333333 ;font-size: 32rpx;font-weight: 600; font-style: normal; width: 450rpx; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">{{locationName}}</text>
  29. <text v-else
  30. style="color: #C4C4C4 ;font-size: 32rpx;font-weight: 500; font-style: normal;">请选择宠物上门服务地址</text>
  31. <uni-icons type="location-filled" size="20" color="#FFB13F"></uni-icons>
  32. </view>
  33. </view>
  34. <view class="line" style="background-color: #EFEFEF;"></view>
  35. <view class="content-container">
  36. <view class="example-body hideOnPc">
  37. <view class="normal-bolb-text">
  38. <view @click="toggleCalendar('bottom')">
  39. <view v-if="isCheckTime"
  40. style="display: flex; align-items: center; justify-content: space-between;">
  41. <text
  42. style="color: #333333 ;font-size: 32rpx;font-weight: 600; font-style: normal; width: 450rpx; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">{{selectedDateShowText}}</text>
  43. <text
  44. style="color: #333333 ;font-size: 32rpx;font-weight: 600; font-style: normal;">共选择
  45. <text style="color: #FFB13F;">{{selectedDate.length}}</text>
  46. </text>
  47. </view>
  48. <view v-else
  49. style="display: flex; align-items: center; justify-content: space-between;">
  50. <text
  51. style="color: #C4C4C4 ;font-size: 32rpx;font-weight: 500; font-style: normal;">请选择宠物上门服务时间</text>
  52. <uni-icons type="right" size="20" color="#FFB13F"></uni-icons>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. <view>
  58. <uni-popup ref="popup" background-color="#fff" @change="changePopup">
  59. <view class="popupBottom">
  60. <uni-calendar ref="calendar" class="uni-calendar--hook" :selected="selectedDate"
  61. :startDate="startDate" :endDate="endDate" :showMonth="false"
  62. @change="changeCalendar" @confirm="changeCalendar" @close="close" />
  63. <view style="display: flex; justify-content: center; align-items: center;">
  64. <!-- <button class="bottom-btn" @click="closePopup">确定</button> -->
  65. <image @click="closePopup" style="width: 670rpx; height: 80rpx;" slot='cover' src="https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/petServiceOrder/yesButton.png" />
  66. </view>
  67. </view>
  68. </uni-popup>
  69. </view>
  70. </view>
  71. <view class="line" style="background-color: #EFEFEF;"></view>
  72. <view>
  73. <view style="display: flex;">
  74. <view @click="getOrder(true)" style="margin-right: 20rpx;">
  75. <image style="width: 304rpx; height: 100rpx;" slot='cover'
  76. src="https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/petServiceOrder/OrderByCompanion.png">
  77. </view>
  78. <view @click="getOrder(false)">
  79. <image style="width: 304rpx; height: 100rpx;"
  80. src="https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/petServiceOrder/OrderBySystem.png">
  81. </view>
  82. </view>
  83. </view>
  84. </uni-card>
  85. </view>
  86. <view class="coupon-list">
  87. <uni-card :is-shadow="false" padding=0 margin="10px">
  88. <view class="coupon-title" slot="title">
  89. <view class="coupon-title-left">
  90. <view class="coupon-flag"></view>
  91. <view>领券中心</view>
  92. </view>
  93. <view class="coupon-title-right">
  94. <view @click="getAllCoupon">
  95. 更多 <uni-icons type="right" size="14px" color="#AAAAAA"></uni-icons>
  96. </view>
  97. </view>
  98. </view>
  99. <view class="split-line"></view>
  100. <view class="coupon-content">
  101. <view v-for="(item,index) in couponData" style="padding:20rpx;" :key="index">
  102. <view style="border: 1px solid #FFBF60; border-radius: 8px;">
  103. <view class="card">
  104. <view class="card-left">{{switchType(item.stockType)}}</view>
  105. <view class="card-center">
  106. <view class="card-center-top"></view>
  107. <view class="card-center-bottom"></view>
  108. </view>
  109. <view class="card-right">
  110. <view class="card-content">
  111. <view class="card-info">{{item.stockName}}</view>
  112. <view class="card-type">可用于
  113. <text class="card-type-text">专业喂养</text>
  114. <text class="card-type-text">专业遛狗</text>
  115. </view>
  116. <view class="card-time">有效期至: {{item.availableEndTime.slice(0, 16)}}</view>
  117. </view>
  118. <view>
  119. <!-- <u-button @click="receiveCoupon(item.id)" shape="circle" size="mini"
  120. color="#ffaa48" text="立即领取"></u-button> -->
  121. <view style="width: 132rpx;height: 52rpx;background-color: #FFAA48; display: flex;align-items: center;justify-content: center;border-radius: 56rpx;">
  122. <text style="font-size: 24rpx; font-weight: 500; color: #FFFFFF;">立即领取</text>
  123. </view>
  124. </view>
  125. </view>
  126. </view>
  127. <view class="card-bottom">
  128. <view class="card-bottom-text">
  129. 优惠券不可兑换现金
  130. </view>
  131. <view class="card-bottom-text">
  132. 查看详细规则>
  133. </view>
  134. </view>
  135. </view>
  136. </view>
  137. </view>
  138. </uni-card>
  139. </view>
  140. <view class="companion-list">
  141. <uni-card :is-shadow="false" padding=0 margin="10px">
  142. <view class="companion-title" slot="title">
  143. <view class="companion-title-left">
  144. <view class="companion-flag"></view>
  145. <view>周边伴宠师</view>
  146. </view>
  147. <view class="companion-title-right" @click="getAllCompanion">
  148. <view>
  149. 更多 <uni-icons type="right" size="14px" color="#AAA"></uni-icons>
  150. </view>
  151. </view>
  152. </view>
  153. <view class="split-line"></view>
  154. <view class="companion-content">
  155. <view class="companion-item">
  156. <view class="companion-info">
  157. <image class="companion-img" slot='cover'
  158. :src="defaultCompanion&&defaultCompanion.staffImages&&defaultCompanion.staffImages.length>0?defaultCompanion.staffImages[0].url:defaultStaffIamge">
  159. </image>
  160. <view class="companion-info-1">
  161. <view class="companion-info-2">
  162. <view class="companion-info-title">
  163. <view class="companion-name">
  164. {{defaultCompanion.name}}
  165. </view>
  166. <view class="companion-sex">
  167. <img :src="defaultCompanion.gender=='1'?'https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/personal/pet/sex_m.png':
  168. 'https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/personal/pet/sex_f.png'" alt="sex"
  169. style="width: 40rpx;height: 40rpx;" />
  170. </view>
  171. </view>
  172. <view class="companion-info-star">
  173. <text style="color: #FFB13F;">客户点赞数{{defaultCompanion.star}}</text>
  174. <uni-icons type="hand-up-filled" size="18" color="#FFB13F"></uni-icons>
  175. </view>
  176. </view>
  177. <view class="companion-info-3" style="width: 100%;">
  178. <view class="ellipsis">
  179. 距离{{defaultCompanion.distance}}km
  180. </view>
  181. </view>
  182. <view class="companion-info-4" style="width: 100%;">
  183. <view class="ellipsis" style="max-width: 450rpx;">
  184. 简介{{defaultCompanion.shortDescription}}
  185. </view>
  186. </view>
  187. </view>
  188. </view>
  189. </view>
  190. <view>
  191. <view class="companion-item-bottom">
  192. <text class="companion-item-bottom-text">养宠{{defaultCompanion.year}} | 评价{{defaultCompanion.record}} | 服务小结{{defaultCompanion.serviceNum}}</text>
  193. </view>
  194. </view>
  195. </view>
  196. </uni-card>
  197. </view>
  198. <view class="history-record">
  199. <uni-card :is-shadow="false" padding=0 margin="10px">
  200. <view class="history-record-title" slot="title">
  201. <view class="history-record-title-left">
  202. <view class="history-record-flag"></view>
  203. <view>历史记录</view>
  204. </view>
  205. <view class="history-record-title-right">
  206. <view @click="getAllRecord">
  207. 查看服务记录和评价详情 <uni-icons type="right" size="14px" color="#AAAAAA"></uni-icons>
  208. </view>
  209. </view>
  210. </view>
  211. <view class="split-line"></view>
  212. <view class="history-record-content">
  213. <view class="history-record-content-image">
  214. <view class="history-record-content-image-1">
  215. <view class="history-record-content-image-1-text">
  216. <view class="history-record-content-image-1-text-1">{{historyRecord.dog}}</view>
  217. <view class="history-record-content-image-1-text-2">{{historyRecord.dogTime}}</view>
  218. </view>
  219. </view>
  220. <view class="history-record-content-image-2">
  221. <view class="history-record-content-image-2-text">
  222. <view class="history-record-content-image-2-text-1">{{historyRecord.cat}}</view>
  223. <view class="history-record-content-image-2-text-2">至2{{historyRecord.catTime}}</view>
  224. </view>
  225. </view>
  226. <view class="history-record-content-image-3">
  227. <view class="history-record-content-image-3-text">
  228. <view class="history-record-content-image-3-text-1">{{historyRecord.num}}</view>
  229. <view class="history-record-content-image-3-text-2">{{historyRecord.numTime}}</view>
  230. </view>
  231. </view>
  232. </view>
  233. <view class="history-record-content-text">
  234. <text>*数据来源于布丁猫妈狗爸平台</text>
  235. </view>
  236. </view>
  237. </uni-card>
  238. </view>
  239. <view class="service-content">
  240. <img src="https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/second_stage/ysbz.png"
  241. style="width: 100%;" mode="widthFix" alt="service">
  242. </view>
  243. <view class="card-container">
  244. <uni-card :is-shadow="false" padding="0px" margin="10px">
  245. <view class="title-img4"></view>
  246. <uni-row class="demo-uni-row">
  247. <uni-col :span="12" v-for="(item,index) in peopleList" :key="index">
  248. <uni-card :is-shadow="false" margin="5px" padding="0" spacing="0" :border="false"
  249. shadow="0px 0px 0px 0px rgba(0, 0, 0, 0.08)">
  250. <image class="people-img" slot='cover' style="width: 100%;"
  251. :src="item&&item.staffImages&&item.staffImages.length>0?item.staffImages[0].url:defaultStaffIamge">
  252. </image>
  253. <text class="people-year">{{item.serviceAge}}年从业经验</text>
  254. <text class="show-text-1">姓名{{item.nickName}}</text>
  255. <text class="show-text-2">简介{{item.shortDescription}}</text>
  256. </uni-card>
  257. </uni-col>
  258. </uni-row>
  259. </uni-card>
  260. </view>
  261. <view>
  262. <image style="height: 132rpx; width: 710rpx; margin: 0 20rpx 20rpx 20rpx;"
  263. slot='cover'
  264. src="https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/petServiceOrder/joinus.png">
  265. </view>
  266. <Kefu></Kefu>
  267. <view class="coupon_wrap" v-if="envVersion == 'dev'">
  268. <view class="details-subscribe">
  269. <view @click="getCoupon" class="details-btn">点击领取到卡包</view>
  270. </view>
  271. <!-- 领取弹窗 -->
  272. <view v-if="showMask" @closeMask="closeMask">
  273. <view class="mask-coupon" @click="closeMask">
  274. <view class="wx-coupon">
  275. <view class="title">
  276. 领取优惠券
  277. <i>*</i>
  278. </view>
  279. <view class="content">
  280. 优惠券列表显示
  281. </view>
  282. <!-- 小程序领券插件 -->
  283. <view class="" v-for="(item,index) in couponList" :key="index">
  284. <send-coupon @sendcoupon="getSendCoupon" @userconfirm="redirectuser" :sign="item.sign"
  285. :send_coupon_params="item.sendCouponParams"
  286. :send_coupon_merchant="item.send_coupon_merchant">
  287. <view class="text-button">{{item.wechatStock.stockName}}</view>
  288. </send-coupon>
  289. </view>
  290. </view>
  291. </view>
  292. </view>
  293. </view>
  294. </view>
  295. </template>
  296. <script>
  297. import {
  298. getStaffList,
  299. getProductList,
  300. getBannerList,
  301. getCouponList,
  302. getCouponListNoAuth,
  303. getOpenId,
  304. receiveCoupon,
  305. } from "@/api/system/user"
  306. import {
  307. getCompanionList
  308. } from "@/api/system/companion"
  309. import {
  310. setToken,
  311. getToken,
  312. getOpenIdKey,
  313. setOpenIdKey
  314. } from '@/utils/auth'
  315. import Kefu from './common/kefu.vue'
  316. import uniPopup from '@/uni_modules/uni-popup/components/uni-popup/uni-popup.vue';
  317. import NewUserCoupon from './components/NewUserCoupon.vue';
  318. export default {
  319. data() {
  320. return {
  321. current: 0,
  322. swiperDotIndex: 0,
  323. defaultSkuImage: 'https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/banner/%E5%96%82%E5%85%BB.png',
  324. defaultStaffIamge: 'https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/banner/gold_people.png',
  325. defaultLink: '/pages/details/feed',
  326. skuData: [],
  327. peopleList: [],
  328. cover: 'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg',
  329. bannerList: [],
  330. couponList: [],
  331. showMask: false,
  332. envVersion: 'develop',
  333. isNewUser: false,
  334. selectedDate: [],
  335. startDate: '',
  336. endDate: '',
  337. isCheckTime: false,
  338. selectedDateShowText: '',
  339. isCheckLocation: false,
  340. locationName: '',
  341. locationLatitude: '',
  342. locationLongitude: '',
  343. locationAddress: '',
  344. allInfo: {
  345. isCheckLocation: false,
  346. locationName: '',
  347. locationLatitude: '',
  348. locationLongitude: '',
  349. locationAddress: '',
  350. selectedDate: [],
  351. isCheckTime: false,
  352. selectedDateShowText: '',
  353. },
  354. defaultCompanion: {
  355. name: '宠小二',
  356. gender: 0,
  357. star: 560,
  358. distance: 1.5,
  359. shortDescription: '有一只三岁蓝猫叫憨憨,热爱小宠物,心地善良,喜欢动物',
  360. staffImages: [{
  361. url: "https://catmdogf.oss-cn-shanghai.aliyuncs.com/2024/01/2634af25c5bf294f39b795ecc9d3c4eefa微信图片_20240126125100.png"
  362. }],
  363. year: 4,
  364. record: 11,
  365. serviceNum: 13,
  366. },
  367. couponData: [],
  368. historyRecord: {
  369. dog: "47131",
  370. dogTime: "2024.12.12",
  371. cat: "47131",
  372. catTime: "2024.12.12",
  373. num: "47131",
  374. numTime: "2024.12.12",
  375. },
  376. }
  377. },
  378. components: {
  379. Kefu,
  380. uniPopup,
  381. NewUserCoupon
  382. },
  383. mounted() {
  384. this.getCalendarDate();
  385. this.checkNewUser();
  386. },
  387. methods: {
  388. checkNewUser() {
  389. // 检查是否为新用户,这里可以根据实际需求修改判断逻辑
  390. // 例如:检查本地存储中是否有首次访问的标记
  391. const isFirstVisit = !uni.getStorageSync('hasVisited');
  392. if (isFirstVisit) {
  393. this.isNewUser = true;
  394. // 设置访问标记
  395. uni.setStorageSync('hasVisited', true);
  396. }
  397. },
  398. closeNewUserPopup() {
  399. this.isNewUser = false;
  400. },
  401. handleGetCoupon() {
  402. // 如果用户已登录,则直接调用领券方法
  403. if (getToken()) {
  404. this.getCoupon();
  405. } else {
  406. // 未登录,跳转到登录页面
  407. uni.navigateTo({
  408. url: '/pages/personalCenter/index'
  409. });
  410. }
  411. },
  412. getAllCoupon() {
  413. uni.navigateTo({
  414. url: '/pages/companionPetList/couponList'
  415. });
  416. },
  417. getAllCompanion() {
  418. if (!this.isCheckLocation) {
  419. uni.showToast({
  420. title: '请先选择地址',
  421. duration: 1500,
  422. icon: "none"
  423. })
  424. } else {
  425. uni.navigateTo({
  426. url: `/pages/companionPetList/companionPetList?info=` + encodeURIComponent(JSON
  427. .stringify(this.allInfo))
  428. });
  429. }
  430. },
  431. getAllRecord () {
  432. },
  433. toggleCalendar(type) {
  434. this.type = type
  435. uni.hideTabBar()
  436. this.$refs.popup.open(type)
  437. },
  438. closePopup() {
  439. this.$refs.popup.close()
  440. setTimeout(() => {
  441. uni.showTabBar()
  442. }, 300)
  443. },
  444. changePopup(e) {
  445. console.log('当前模式:' + e.type + ',状态:' + e.show);
  446. if (e.show) {
  447. uni.hideTabBar()
  448. } else {
  449. setTimeout(() => {
  450. uni.showTabBar()
  451. }, 300)
  452. }
  453. },
  454. close() {
  455. console.log('弹窗关闭');
  456. },
  457. confirm(e) {
  458. console.log('confirm 返回:', e)
  459. },
  460. changeCalendar(e) {
  461. console.log('change 返回:', e)
  462. this.selectedDateShowText = ''
  463. // 选中日期
  464. const selectedValue = this.selectedDate.find(item => item.date === e.fulldate)
  465. console.log('const selectedValue', selectedValue)
  466. if (selectedValue) {
  467. // 存在则移除
  468. this.selectedDate = this.selectedDate.filter(item => item.date !== e.fulldate);
  469. this.allInfo.selectedDate = this.selectedDate;
  470. } else {
  471. this.selectedDate.push({
  472. date: e.fulldate,
  473. info: 'time'
  474. })
  475. this.allInfo.selectedDate = this.selectedDate
  476. console.log('this.selectedDate', this.selectedDate)
  477. }
  478. console.log("this.selectedDate.length", this.selectedDate.length)
  479. console.log("this.selectedDate", this.selectedDate)
  480. if (this.selectedDate.length > 0) {
  481. this.isCheckTime = true
  482. this.allInfo.isCheckTime = this.isCheckTime
  483. if (this.selectedDate.length == 1) {
  484. this.selectedDateShowText = this.selectedDate[0].date + ''
  485. this.selectedDateShowText = this.selectedDateShowText.replace(/-/g, "/");
  486. this.allInfo.selectedDateShowText = this.selectedDateShowText
  487. } else if (this.selectedDate.length == 2) {
  488. this.selectedDateShowText = this.selectedDate[0].date + "," + this.selectedDate[1].date
  489. this.selectedDateShowText = this.selectedDateShowText.replace(/-/g, "/");
  490. this.allInfo.selectedDateShowText = this.selectedDateShowText
  491. } else if (this.selectedDate.length > 2) {
  492. this.selectedDateShowText = this.selectedDate[0].date + '...' + this.selectedDate[this.selectedDate
  493. .length - 1].date
  494. this.selectedDateShowText = this.selectedDateShowText.replace(/-/g, "/");
  495. this.allInfo.selectedDateShowText = this.selectedDateShowText
  496. }
  497. } else {
  498. this.isCheckTime = false
  499. this.allInfo.isCheckTime = this.isCheckTime
  500. }
  501. },
  502. getCalendarDate() {
  503. let tomorrow = new Date()
  504. tomorrow.setDate(tomorrow.getDate() + 2);
  505. this.startDate = this.formatDate(tomorrow);
  506. // 获取三个月后的日期
  507. let threeMonthsLater = new Date();
  508. threeMonthsLater.setMonth(threeMonthsLater.getMonth() + 3);
  509. this.endDate = this.formatDate(threeMonthsLater);
  510. },
  511. formatDate(date) {
  512. let year = date.getFullYear();
  513. let month = (date.getMonth() + 1).toString().padStart(2, '0');
  514. let day = date.getDate().toString().padStart(2, '0');
  515. return year + '-' + month + '-' + day;
  516. },
  517. getLocationInfo() {
  518. wx.chooseLocation({
  519. type: 'gcj02', // 坐标系,默认为 wgs84 返回 gps 原始坐标,gcj02 返回可用于 wx.openLocation 的坐标
  520. success: (res) => {
  521. // 成功回调
  522. this.isCheckLocation = true
  523. this.locationName = res.address
  524. this.locationLongitude = res.longitude
  525. this.locationLatitude = res.latitude
  526. this.locationAddress = res.address
  527. console.log('选择的位置:', res);
  528. this.allInfo.isCheckLocation = true
  529. this.allInfo.locationName = res.address
  530. this.allInfo.locationLongitude = res.longitude
  531. this.allInfo.locationLatitude = res.latitude
  532. this.allInfo.locationAddress = res.address
  533. },
  534. fail: (err) => {
  535. // 失败回调
  536. console.error('选择位置失败:', err);
  537. }
  538. });
  539. },
  540. getLocationFirst() {
  541. wx.chooseLocation({
  542. type: 'gcj02', // 坐标系,默认为 wgs84 返回 gps 原始坐标,gcj02 返回可用于 wx.openLocation 的坐标
  543. success: (res) => {
  544. // 成功回调
  545. this.isCheckLocation = true
  546. this.locationName = res.address
  547. this.locationLongitude = res.longitude
  548. this.locationLatitude = res.latitude
  549. this.locationAddress = res.address
  550. this.allInfo.isCheckLocation = true
  551. this.allInfo.locationName = res.address
  552. this.allInfo.locationLongitude = res.longitude
  553. this.allInfo.locationLatitude = res.latitude
  554. this.allInfo.locationAddress = res.address
  555. this.getCompanionList()
  556. },
  557. fail: (err) => {
  558. // 失败回调
  559. console.error('选择位置失败:', err);
  560. }
  561. });
  562. },
  563. getCompanionList() {
  564. // let data = {
  565. // longitude: this.locationLongitude,
  566. // latitude: this.locationLatitude,
  567. // petTypes: this.selectedPet,
  568. // staffName: '',
  569. // address: this.locationAddress
  570. // }
  571. let data = {
  572. address: "上海市浦东新区浦东南路150弄",
  573. latitude: 29.56471,
  574. longitude: 106.55073,
  575. petTypes: ["1", "2"],
  576. staffName: "君"
  577. }
  578. console.log('data', data);
  579. getCompanionList(data).then(response => {
  580. if (response.code == 200) {
  581. // this.companionList = response.rows
  582. this.defaultCompanion.name = response.rows[0].name
  583. this.defaultCompanion.gender = response.rows[0].gender
  584. this.defaultCompanion.star = response.rows[0].id
  585. this.defaultCompanion.distance = response.rows[0].id
  586. this.defaultCompanion.shortDescription = response.rows[0].shortDescription
  587. this.defaultCompanion.staffImages = response.rows[0].staffImages
  588. this.defaultCompanion.year = 4
  589. this.defaultCompanion.record = 11
  590. this.defaultCompanion.serviceNum = 13
  591. }
  592. console.log(response);
  593. })
  594. },
  595. getOrder(value) {
  596. if (value) {
  597. if (!this.isCheckLocation) {
  598. uni.showToast({
  599. title: '请先选择地址',
  600. duration: 1500,
  601. icon: "none"
  602. })
  603. } else {
  604. uni.navigateTo({
  605. // url: '/pages/companionPetList/companionPetList',
  606. url: `/pages/companionPetList/companionPetList?info=` + encodeURIComponent(JSON
  607. .stringify(this.allInfo))
  608. });
  609. }
  610. } else {
  611. uni.navigateTo({
  612. url: '/pages_order/order/payOrderSuccessful',
  613. // url: '/pages/newOrder/serviceNew',
  614. // url: '/pages/newOrder/serviceNew2',
  615. });
  616. }
  617. },
  618. getCoupon() {
  619. getCouponList().then(res => {
  620. if (res.code == 200) {
  621. this.couponList = res.rows
  622. this.showMask = true
  623. } else {
  624. this.$modal.showToast('获取优惠券失败')
  625. }
  626. })
  627. },
  628. getCouponListAuth() {
  629. getCouponList().then(res => {
  630. if (res.code == 200) {
  631. this.couponData.push(res.data[0])
  632. console.log("this.couponData", this.couponData)
  633. } else {
  634. this.$modal.showToast('获取优惠券失败')
  635. }
  636. })
  637. },
  638. switchType(type) {
  639. if (type == 'PNORMAL') {
  640. return '满减券'
  641. }
  642. if (type == 'PDISCOUNT') {
  643. return '折扣券'
  644. }
  645. if (type == 'PTRAIL') {
  646. return '体验券'
  647. }
  648. return '优惠券'
  649. },
  650. receiveCoupon(id) {
  651. let data = {
  652. stockId: id
  653. }
  654. receiveCoupon(data).then(res => {
  655. console.log("this.receiveCoupon", res)
  656. if (res.code == 200) {
  657. this.$modal.showToast('优惠券领取成功')
  658. } else {
  659. this.$modal.showToast('领取优惠券失败')
  660. }
  661. })
  662. },
  663. getCouponListNoAuth() {
  664. console.log('进入 getCouponListNoAuth:');
  665. getCouponListNoAuth().then(res => {
  666. if (res.code == 200) {
  667. this.couponData = res.rows
  668. } else {
  669. this.$modal.showToast('获取优惠券失败')
  670. }
  671. })
  672. },
  673. closeMask() {
  674. this.showMask = false
  675. },
  676. // 点击领券获取优惠券信息
  677. getSendCoupon(res) {
  678. let that = this
  679. console.log('res', res)
  680. if (res.detail.errcode == 'OK') {
  681. console.log(222)
  682. if (res.detail.send_coupon_result[0].code == 'SUCCESS') {
  683. that.showMask = false
  684. uni.showToast({
  685. title: '领取成功',
  686. icon: 'success',
  687. duration: 2000,
  688. })
  689. } else {
  690. uni.showModal({
  691. title: '领取失败',
  692. content: res.detail.send_coupon_result[0].message,
  693. showCancel: false,
  694. success: function(res) {
  695. that.showMask = false
  696. }
  697. })
  698. }
  699. } else {
  700. uni.showToast({
  701. title: '领取失败',
  702. icon: 'none'
  703. })
  704. that.showMask = false
  705. }
  706. },
  707. // 点击确认收券按钮后回调
  708. redirectuser() {},
  709. getBanner() {
  710. getBannerList().then(res => {
  711. if (res.code == 200) {
  712. this.bannerList = res.data
  713. } else {
  714. this.$modal.showToast('获取Banner失败')
  715. }
  716. })
  717. },
  718. changeSwiper(e) {
  719. this.current = e.detail.current
  720. },
  721. getPeopleList() {
  722. getStaffList().then(response => {
  723. if (response.code == 200) {
  724. this.peopleList = response.rows
  725. }
  726. console.log(response);
  727. })
  728. },
  729. getProductList() {
  730. getProductList({
  731. "publishStatus": 1,
  732. "categoryId": 76
  733. }).then(response => {
  734. if (response && response.content && response.content.length > 0) {
  735. this.skuData = response.content;
  736. }
  737. console.log(response);
  738. })
  739. },
  740. goDetails(item) {
  741. if (item) {
  742. // uni.navigateTo({
  743. // url: `/pages/details/successful`
  744. // });
  745. uni.navigateTo({
  746. url: `/pages/details/detail?id=${item.id}`
  747. });
  748. } else {
  749. this.$modal.showToast('数据有误,请联系管理员')
  750. }
  751. },
  752. init() {
  753. this.$globalData.itemPrice = []
  754. this.$globalData.submitData = {
  755. "phone": "",
  756. "wechatId": "",
  757. "note": "",
  758. "totalPrice": "",
  759. "address": {
  760. "province": "",
  761. "city": "",
  762. "district": "",
  763. "detailAddress": ""
  764. },
  765. "skuList": [],
  766. "service": {
  767. "serviceFrequency": "once_a_day",
  768. "serviceDate": [],
  769. "serviceTimeFirst": "",
  770. "serviceTimeSecond": "",
  771. "pet": []
  772. }
  773. }
  774. },
  775. login() {
  776. uni.login({
  777. provider: 'weixin',
  778. success: (loginRes) => {
  779. console.log("login", loginRes)
  780. this.getOpenId(loginRes.code)
  781. },
  782. fail: function(error) {
  783. // 授权失败处理
  784. uni.showToast('授权失败,请授权后再试')
  785. }
  786. });
  787. },
  788. getOpenId(code) {
  789. getOpenId(code).then(res => {
  790. if (res.code == 200 && res.data) {
  791. let resData = JSON.parse(res.data)
  792. let token = resData.token;
  793. let openId = resData.openId;
  794. setOpenIdKey(openId)
  795. if (token) {
  796. setToken(token)
  797. }
  798. }
  799. })
  800. },
  801. },
  802. onLoad: function() {
  803. this.init()
  804. this.getPeopleList()
  805. this.getProductList()
  806. this.getBanner()
  807. // this.getCouponListNoAuth()
  808. const accountInfo = wx.getAccountInfoSync();
  809. this.envVersion = accountInfo.miniProgram.envVersion;
  810. if (!getToken() || !getOpenIdKey()) {
  811. this.login()
  812. } else {
  813. // this.getLocationFirst()
  814. this.getCouponListAuth()
  815. }
  816. }
  817. }
  818. </script>
  819. <style lang="scss">
  820. page {
  821. background-color: #F5F5F7 !important;
  822. }
  823. .home-content {
  824. position: relative;
  825. // background: linear-gradient(360deg, #F5F5F7 0%, #FFBF60 99%);
  826. .swiper {
  827. height: calc(100vw * 1098/1125);
  828. // background-image: linear-gradient(180deg, #FFBF60 0%, #FFBF60 90%, #ffffff 99.41%);
  829. }
  830. .banner {
  831. height: calc(100vw * 1098/1125 + 250px);
  832. background-image: linear-gradient(180deg, #FFBF60 0%, #FFBF60 90%, #F5F5F7 99.41%);
  833. }
  834. .uni-card {
  835. border-radius: 16rpx;
  836. }
  837. .float-button {
  838. position: fixed;
  839. bottom: 150px;
  840. /* 距离底部的距离 */
  841. right: 10px;
  842. /* 距离右侧的距离 */
  843. width: 50px;
  844. /* 按钮的宽度 */
  845. height: 50px;
  846. /* 按钮的高度 */
  847. /* 其他样式 */
  848. .kf-btn {
  849. background-color: rgba(255, 255, 255, 1);
  850. height: 52px;
  851. width: 52px;
  852. border-radius: 50%;
  853. display: flex;
  854. align-items: center;
  855. }
  856. }
  857. .coupon-list {
  858. width: 100%;
  859. .coupon-title {
  860. display: flex;
  861. line-height: 33rpx;
  862. margin: 42rpx 0 30rpx;
  863. justify-content: space-between;
  864. .coupon-title-left {
  865. display: flex;
  866. align-items: center;
  867. font-weight: 900;
  868. font-size: 30rpx;
  869. color: #333333;
  870. .coupon-flag {
  871. width: 8rpx;
  872. height: 33rpx;
  873. background: #FFBF60;
  874. border-radius: 30rpx 30rpx 30rpx 30rpx;
  875. margin-right: 10rpx;
  876. }
  877. }
  878. .coupon-title-right {
  879. color: #7D8196;
  880. font-size: 24rpx;
  881. font-style: normal;
  882. font-weight: 500;
  883. line-height: 28rpx;
  884. }
  885. }
  886. .split-line {
  887. width: 100%;
  888. height: 1rpx;
  889. background: #EFEFEF;
  890. }
  891. .coupon-content {
  892. .card {
  893. display: flex;
  894. align-items: center;
  895. width: 100%;
  896. padding: 10px 0;
  897. // background: #fff;
  898. // background: #f6f5f8;
  899. // border: 1px solid #FFBF60;
  900. border-radius: 8px 8px 0 0;
  901. // -webkit-mask-image: radial-gradient(circle at 88px 4px, transparent 4px, #d8d8d8 4.5px), radial-gradient(closest-side circle at 50%, #d8d8d8 99%, transparent 100%);
  902. // -webkit-mask-size: 100%, 2px 4px;
  903. // -webkit-mask-repeat: repeat, repeat-y;
  904. // -webkit-mask-position: 0 -4px, 87px;
  905. // -webkit-mask-composite: source-out;
  906. // mask-composite: subtract;
  907. // background: linear-gradient(45deg, orange, red);
  908. }
  909. .card-bottom {
  910. display: flex;
  911. background-color: #FFF1E0;
  912. height: 50rpx;
  913. align-items: center;
  914. justify-content: space-between;
  915. padding: 0 20rpx 0 20rpx;
  916. border-radius: 0 0 8px 8px;
  917. .card-bottom-text {
  918. color: #AAAAAA;
  919. font-size: 24rpx;
  920. font-weight: 400;
  921. }
  922. }
  923. .card-left {
  924. width: 88px;
  925. text-align: center;
  926. color: #FF530A;
  927. font-size: 28rpx;
  928. font-weight: 900;
  929. }
  930. .card-center {
  931. display: flex;
  932. flex-direction: column;
  933. // align-items: center;
  934. .card-center-top {
  935. width: 40rpx;
  936. height: 20rpx;
  937. border-radius: 0 0 20rpx 20rpx;
  938. background-color: #fff;
  939. line-height: 20rpx;
  940. border-bottom: 1px solid #FDA714;
  941. border-left: 1px solid #FDA714;
  942. border-right: 1px solid #FDA714;
  943. margin-top: -22rpx;
  944. margin-bottom: 20rpx;
  945. margin-left: -19rpx;
  946. }
  947. .card-center-bottom {
  948. border-right: 1px dashed #AAAAAA;
  949. width: 1px;
  950. height: 120rpx;
  951. }
  952. }
  953. .card-right {
  954. padding: 0 16rpx 0 0;
  955. display: flex;
  956. flex: 1;
  957. /* flex-direction: column; */
  958. justify-content: space-between;
  959. align-items: center;
  960. height: 60px;
  961. .card-content {
  962. width: 77%;
  963. }
  964. .card-icon {
  965. position: relative;
  966. right: -10px;
  967. top: -10px;
  968. }
  969. }
  970. .card-info {
  971. margin: 0;
  972. font-size: 28rpx;
  973. line-height: 28rpx;
  974. color: #333333;
  975. font-weight: 500;
  976. }
  977. .card-type {
  978. font-size: 24rpx;
  979. font-weight: 400;
  980. line-height: 24rpx;
  981. font-weight: 400;
  982. color: #AAAAAA;
  983. margin-top: 10rpx;
  984. .card-type-text {
  985. color: #FFAA48;
  986. font-size: 24rpx;
  987. font-weight: 400;
  988. line-height: 24rpx;
  989. border: #FFAA48 1px solid;
  990. border-radius: 7rpx;
  991. margin-left: 8rpx;
  992. }
  993. }
  994. .card-time {
  995. font-size: 24rpx;
  996. font-weight: 400;
  997. line-height: 24rpx;
  998. font-weight: 400;
  999. color: #AAAAAA;
  1000. margin-top: 10rpx;
  1001. }
  1002. }
  1003. }
  1004. .companion-list {
  1005. width: 100%;
  1006. .companion-title {
  1007. display: flex;
  1008. line-height: 33rpx;
  1009. margin: 42rpx 0 30rpx;
  1010. justify-content: space-between;
  1011. .companion-title-left {
  1012. display: flex;
  1013. align-items: center;
  1014. font-weight: 900;
  1015. font-size: 30rpx;
  1016. color: #333333;
  1017. .companion-flag {
  1018. width: 8rpx;
  1019. height: 33rpx;
  1020. background: #FFBF60;
  1021. border-radius: 30rpx 30rpx 30rpx 30rpx;
  1022. margin-right: 10rpx;
  1023. }
  1024. }
  1025. .companion-title-right {
  1026. color: #7D8196;
  1027. font-size: 24rpx;
  1028. font-style: normal;
  1029. font-weight: 500;
  1030. line-height: 28rpx;
  1031. }
  1032. }
  1033. .split-line {
  1034. width: 100%;
  1035. height: 1rpx;
  1036. background: #EFEFEF;
  1037. }
  1038. .companion-content {
  1039. .companion-item {
  1040. padding: 10px 0px 0px 0;
  1041. .companion-info {
  1042. display: flex;
  1043. align-items: center;
  1044. justify-content: flex-start;
  1045. .companion-img {
  1046. width: 168rpx;
  1047. height: 168rpx;
  1048. border: #FEA714 5rpx solid;
  1049. border-radius: 20rpx;
  1050. }
  1051. .companion-info-1 {
  1052. margin-left: 10px;
  1053. width: 80%;
  1054. .companion-info-2 {
  1055. display: flex;
  1056. flex-wrap: wrap;
  1057. .companion-info-title {
  1058. display: flex;
  1059. flex-wrap: wrap;
  1060. width: 60%;
  1061. }
  1062. .companion-name {
  1063. color: #333;
  1064. font-size: 32rpx;
  1065. // line-height: 32rpx;
  1066. margin-right: 10rpx;
  1067. font-weight: 900;
  1068. font-style: normal;
  1069. }
  1070. .companion-info-star {
  1071. color: #FFAA48;
  1072. font-size: 24rpx;
  1073. font-weight: 400;
  1074. line-height: 28rpx;
  1075. display: flex;
  1076. align-items: center;
  1077. }
  1078. }
  1079. .companion-info-3 {
  1080. display: flex;
  1081. align-items: baseline;
  1082. font-size: 28rpx;
  1083. line-height: 32rpx;
  1084. margin-top: 5px;
  1085. color: #FFAA48;
  1086. font-weight: 900;
  1087. }
  1088. .companion-info-4 {
  1089. display: flex;
  1090. align-items: baseline;
  1091. font-size: 24rpx;
  1092. margin-top: 10px;
  1093. color: #7D8196;
  1094. font-weight: 400;
  1095. line-height: 32rpx;
  1096. }
  1097. }
  1098. }
  1099. }
  1100. .companion-item-bottom {
  1101. height: 60rpx;
  1102. background-color: #FFF4E5;
  1103. margin: 20rpx 0 20rpx 0;
  1104. display: flex;
  1105. align-items: center;
  1106. justify-content: center;
  1107. border-radius: 8rpx;
  1108. .companion-item-bottom-text {
  1109. color: #A94F20;
  1110. margin: 14rpx;
  1111. font-size: 24rpx;
  1112. font-weight: 400;
  1113. }
  1114. }
  1115. }
  1116. }
  1117. .history-record {
  1118. width: 100%;
  1119. .history-record-title {
  1120. display: flex;
  1121. line-height: 33rpx;
  1122. margin: 42rpx 0 30rpx;
  1123. justify-content: space-between;
  1124. .history-record-title-left {
  1125. display: flex;
  1126. align-items: center;
  1127. font-weight: 900;
  1128. font-size: 30rpx;
  1129. color: #333333;
  1130. .history-record-flag {
  1131. width: 8rpx;
  1132. height: 33rpx;
  1133. background: #FFBF60;
  1134. border-radius: 30rpx 30rpx 30rpx 30rpx;
  1135. margin-right: 10rpx;
  1136. }
  1137. }
  1138. .history-record-title-right {
  1139. color: #7D8196;
  1140. font-size: 24rpx;
  1141. font-style: normal;
  1142. font-weight: 500;
  1143. line-height: 28rpx;
  1144. }
  1145. }
  1146. .split-line {
  1147. width: 100%;
  1148. height: 1rpx;
  1149. background: #EFEFEF;
  1150. }
  1151. .history-record-content {
  1152. padding: 20rpx 0 20rpx 0;
  1153. .history-record-content-image {
  1154. display: flex;
  1155. flex-wrap: nowrap;
  1156. margin-bottom: 10rpx;
  1157. .history-record-content-image-1 {
  1158. background-image: url("https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/petServiceOrder/catNum.png");
  1159. background-size: cover;
  1160. width: 208rpx;
  1161. height: 260rpx;
  1162. margin-right: 20rpx;
  1163. .history-record-content-image-1-text {
  1164. .history-record-content-image-1-text-1 {
  1165. width: 100%;
  1166. display: flex;
  1167. justify-content: center;
  1168. height: 156rpx;
  1169. align-items: flex-end;
  1170. color: #FF8D00;
  1171. font-size: 32rpx;
  1172. font-weight: 900;
  1173. }
  1174. .history-record-content-image-1-text-2 {
  1175. width: 100%;
  1176. display: flex;
  1177. justify-content: center;
  1178. height: 90rpx;
  1179. align-items: flex-end;
  1180. color: #AAAAAA;
  1181. font-size: 24rpx;
  1182. font-weight: 400;
  1183. }
  1184. }
  1185. }
  1186. .history-record-content-image-2 {
  1187. background-image: url("https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/petServiceOrder/dogNum.png");
  1188. background-size: cover;
  1189. width: 208rpx;
  1190. height: 260rpx;
  1191. margin-right: 20rpx;
  1192. .history-record-content-image-2-text {
  1193. .history-record-content-image-2-text-1 {
  1194. width: 100%;
  1195. display: flex;
  1196. justify-content: center;
  1197. height: 156rpx;
  1198. align-items: flex-end;
  1199. color: #FF8D00;
  1200. font-size: 32rpx;
  1201. font-weight: 900;
  1202. }
  1203. .history-record-content-image-2-text-2 {
  1204. width: 100%;
  1205. display: flex;
  1206. justify-content: center;
  1207. height: 90rpx;
  1208. align-items: flex-end;
  1209. color: #AAAAAA;
  1210. font-size: 24rpx;
  1211. font-weight: 400;
  1212. }
  1213. }
  1214. }
  1215. .history-record-content-image-3 {
  1216. background-image: url("https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/petServiceOrder/goodNum.png");
  1217. background-size: cover;
  1218. width: 208rpx;
  1219. height: 260rpx;
  1220. .history-record-content-image-3-text {
  1221. .history-record-content-image-3-text-1 {
  1222. width: 100%;
  1223. display: flex;
  1224. justify-content: center;
  1225. height: 156rpx;
  1226. align-items: flex-end;
  1227. color: #FF8D00;
  1228. font-size: 32rpx;
  1229. font-weight: 900;
  1230. }
  1231. .history-record-content-image-3-text-2 {
  1232. width: 100%;
  1233. display: flex;
  1234. justify-content: center;
  1235. height: 90rpx;
  1236. align-items: flex-end;
  1237. color: #AAAAAA;
  1238. font-size: 24rpx;
  1239. font-weight: 400;
  1240. }
  1241. }
  1242. }
  1243. }
  1244. .history-record-content-text {
  1245. font-size: 24rpx;
  1246. font-weight: 400;
  1247. color: #A94F20;
  1248. }
  1249. }
  1250. }
  1251. }
  1252. /* #ifndef APP-NVUE */
  1253. page {
  1254. display: flex;
  1255. flex-direction: column;
  1256. box-sizing: border-box;
  1257. background-color: #fff;
  1258. min-height: 100%;
  1259. height: auto;
  1260. }
  1261. /* #endif */
  1262. .text {
  1263. text-align: center;
  1264. font-size: 26rpx;
  1265. margin-top: 10rpx;
  1266. }
  1267. .popupBottom {
  1268. height: 950rpx;
  1269. overflow: hidden;
  1270. position: fixed;
  1271. bottom: 0;
  1272. left: 0;
  1273. right: 0;
  1274. padding: 10rpx 20rpx;
  1275. border-radius: 20rpx 20rpx 0 0;
  1276. background-color: #fff;
  1277. .bottom-btn {
  1278. width: 100%;
  1279. border-radius: 120rpx;
  1280. background: #FFB13F;
  1281. font-size: 32rpx;
  1282. color: #FFFFFF;
  1283. }
  1284. }
  1285. .line {
  1286. height: 1px;
  1287. width: 100%;
  1288. margin: 16px 0;
  1289. }
  1290. .swiper-item {
  1291. /* #ifndef APP-NVUE */
  1292. display: flex;
  1293. /* #endif */
  1294. flex-direction: column;
  1295. justify-content: center;
  1296. align-items: center;
  1297. color: #fff;
  1298. height: 500rpx;
  1299. line-height: 300rpx;
  1300. }
  1301. .card-container {
  1302. margin: 0;
  1303. padding: 0;
  1304. }
  1305. .title-img1 {
  1306. height: 30px;
  1307. width: 104px;
  1308. background-repeat: no-repeat;
  1309. background-position: left;
  1310. background-size: 104px 30px;
  1311. background-image: url('/static/images/pages/cwfw.png');
  1312. }
  1313. .service-content-img {
  1314. // height: 208px;
  1315. padding: 5px;
  1316. margin-top: 5px;
  1317. border-radius: 8px;
  1318. }
  1319. #myVideo {
  1320. width: 100%;
  1321. border-radius: 5px;
  1322. }
  1323. .service-content {
  1324. width: 100%;
  1325. padding: 0 10px;
  1326. }
  1327. .title-img4 {
  1328. height: 30px;
  1329. width: 202px;
  1330. background-repeat: no-repeat;
  1331. background-position: center;
  1332. background-size: 202px 30px;
  1333. background-image: url('/static/images/pages/jppcs.png');
  1334. margin: 10px 0;
  1335. }
  1336. .demo-uni-row {
  1337. margin: 0;
  1338. padding: 0;
  1339. }
  1340. .people-img {
  1341. width: 190px;
  1342. height: 163px;
  1343. border: #FFBF60 1px solid;
  1344. border-radius: 5px;
  1345. }
  1346. .people-year {
  1347. display: flex;
  1348. width: 68px;
  1349. padding: 1px 4px;
  1350. justify-content: space-between;
  1351. align-items: center;
  1352. border-radius: 0px 10px 10px 0px;
  1353. background: linear-gradient(90deg, #FDA714 0%, #FD8B04 99.41%);
  1354. color: #FFF;
  1355. font-family: PingFang SC;
  1356. font-size: 10px;
  1357. font-style: normal;
  1358. line-height: 14px;
  1359. /* 140% */
  1360. position: absolute;
  1361. top: 15px;
  1362. left: 0;
  1363. }
  1364. .service-people {
  1365. display: flex;
  1366. }
  1367. .service-people-text {
  1368. display: flex;
  1369. align-items: center;
  1370. line-height: 24px;
  1371. }
  1372. .service-people-text::before {
  1373. content: "";
  1374. background-color: black;
  1375. border-radius: 50%;
  1376. display: inline-block;
  1377. height: 5px;
  1378. width: 5px;
  1379. margin-right: 5px;
  1380. }
  1381. .show-text-1 {
  1382. display: block;
  1383. color: var(--Color-, #222229);
  1384. font-family: PingFang SC;
  1385. font-size: 14px;
  1386. font-style: normal;
  1387. font-weight: 600;
  1388. line-height: 24px;
  1389. }
  1390. .show-text-2 {
  1391. display: block;
  1392. color: var(--Color-, #222229);
  1393. font-family: PingFang SC;
  1394. font-size: 12px;
  1395. font-style: normal;
  1396. line-height: 18px;
  1397. }
  1398. .image-wrapper {
  1399. position: relative;
  1400. }
  1401. .text-wrapper {
  1402. position: absolute;
  1403. bottom: 83px;
  1404. /* 根据需要调整文字距离图片底部的距离 */
  1405. left: 10px;
  1406. /* 根据需要调整文字距离图片左边的距离 */
  1407. color: #fff;
  1408. /* 根据需要调整文字颜色 */
  1409. font-size: 10px;
  1410. font-weight: blod;
  1411. font-family: PingFang SC;
  1412. }
  1413. .coupone_wrap {
  1414. margin-top: 200px;
  1415. }
  1416. .details-subscribe {
  1417. background-color: #FFFFFF;
  1418. padding: 10px;
  1419. width: 100%;
  1420. height: 58px;
  1421. position: fixed;
  1422. bottom: 0;
  1423. z-index: 100;
  1424. .details-btn {
  1425. width: 100%;
  1426. border-radius: 6px;
  1427. background: #FFB13F;
  1428. font-size: 16px;
  1429. color: #FFFFFF;
  1430. }
  1431. }
  1432. .text-button {
  1433. height: 100rpx;
  1434. border-radius: 0px 0px 6rpx 0;
  1435. background: rgba(255, 208, 0, 1);
  1436. font-weight: 500;
  1437. font-size: 36rpx;
  1438. display: flex;
  1439. align-items: center;
  1440. justify-content: center;
  1441. }
  1442. .couponItem {
  1443. width: 100%;
  1444. padding: 0 30rpx;
  1445. margin-top: 24rpx;
  1446. -webkit-overflow-scrolling: touch;
  1447. }
  1448. .couponItem:last-child {
  1449. margin-bottom: 24rpx;
  1450. }
  1451. .mask-coupon {
  1452. background: rgba(0, 0, 0, .5);
  1453. width: 100vw;
  1454. height: 100vh;
  1455. position: fixed;
  1456. left: 0;
  1457. top: 0;
  1458. padding-bottom: 120rpx;
  1459. .wx-coupon {
  1460. background: #F2F2F2;
  1461. min-height: 300px;
  1462. position: fixed;
  1463. bottom: 0;
  1464. left: 0;
  1465. width: 100%;
  1466. }
  1467. .title {
  1468. font-size: 24px;
  1469. display: flex;
  1470. align-items: center;
  1471. justify-content: center;
  1472. padding: 20rpx 0 10rpx;
  1473. }
  1474. .content {
  1475. height: 80%;
  1476. overflow-y: auto;
  1477. }
  1478. .text-button {
  1479. height: 100rpx;
  1480. border-radius: 0px 0px 6rpx 0;
  1481. background: rgba(255, 208, 0, 1);
  1482. font-weight: 500;
  1483. font-size: 36rpx;
  1484. display: flex;
  1485. align-items: center;
  1486. justify-content: center;
  1487. }
  1488. }
  1489. @media screen and (min-width: 500px) {
  1490. .uni-swiper-dot-box {
  1491. width: 400px;
  1492. /* #ifndef APP-NVUE */
  1493. margin: 0 auto;
  1494. /* #endif */
  1495. margin-top: 8px;
  1496. }
  1497. .image {
  1498. width: 100%;
  1499. }
  1500. }
  1501. </style>