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.

1567 lines
40 KiB

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