| | |
| | | // baseUrl: 'https://ltpeis.xaltjdkj.cn:5011/ltkj-admin', |
| | | // baseUrl: 'https://ltpeis.xaltjdkj.cn:5021', |
| | | // baseUrl: 'http://ltpeis.xaltjdkj.cn:5801', |
| | | baseUrl: 'http://192.168.1.244:5011', |
| | | baseUrl: 'http://192.168.1.113:5011', |
| | | |
| | | // 应用信息 |
| | | appInfo: { |
| | |
| | | <view class="header"> |
| | | <view class="search-bar"> |
| | | <uni-icons class="search-icon" type="search" size="18" color="#999"></uni-icons> |
| | | <input type="text" placeholder="搜索医院" placeholder-class="placeholder" /> |
| | | <view class="search-btn">搜索</view> |
| | | <input type="text" placeholder="搜索医院" placeholder-class="placeholder" v-model="name"/> |
| | | <view class="search-btn" @click="search">搜索</view> |
| | | </view> |
| | | <!-- <view class="filter-bar"> |
| | | <view class="filter-item"> |
| | |
| | | value: 'other' |
| | | } |
| | | ], |
| | | name: '', |
| | | timeOptions: [ |
| | | '当日可约', |
| | | '次日可约', |
| | |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | | search(){ |
| | | getHospList({ |
| | | hospName:this.name |
| | | }).then((response) => { |
| | | this.hosplist = response.data; |
| | | |
| | | }); |
| | | }, |
| | | /** 查询院区信息列表 */ |
| | | getList() { |
| | | getHospList(this.queryParams).then((response) => { |
| | |
| | | } |
| | | }); |
| | | }, |
| | | subScriptionMessage() { |
| | | wx.requestSubscribeMessage({ |
| | | tmplIds: [ |
| | | 'M4K_BNVG7g4hOAcrIDO18ux8KOTneHeNide5GdPW3kc', |
| | | 'X467Xtd8HnFDNk-IoT0ChcdoBnClLZJQQwP7DMztYQ8', |
| | | 'Gzc2BgzSsEY9uki6FThNQRLD1_An6uqpSve3PaU58PQ', |
| | | ], |
| | | success(res) { |
| | | console.log(res); |
| | | }, |
| | | fail(res) { |
| | | console.log(res); |
| | | subScriptionMessage() { |
| | | wx.requestSubscribeMessage({ |
| | | tmplIds: [ |
| | | 'M4K_BNVG7g4hOAcrIDO18ux8KOTneHeNide5GdPW3kc', |
| | | 'X467Xtd8HnFDNk-IoT0ChcdoBnClLZJQQwP7DMztYQ8', |
| | | 'Gzc2BgzSsEY9uki6FThNQRLD1_An6uqpSve3PaU58PQ', |
| | | ], |
| | | success: (res) => { |
| | | console.log('订阅消息结果:', res); |
| | | const tmplIds = [ |
| | | 'M4K_BNVG7g4hOAcrIDO18ux8KOTneHeNide5GdPW3kc', |
| | | 'X467Xtd8HnFDNk-IoT0ChcdoBnClLZJQQwP7DMztYQ8', |
| | | 'Gzc2BgzSsEY9uki6FThNQRLD1_An6uqpSve3PaU58PQ', |
| | | ]; |
| | | let acceptedCount = 0; |
| | | tmplIds.forEach(id => { |
| | | if (res[id] === 'accept') { |
| | | acceptedCount++; |
| | | } |
| | | }); |
| | | if (acceptedCount > 0) { |
| | | this.$u.toast(`成功订阅`); |
| | | } else { |
| | | this.$u.toast('已取消'); |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | console.error('订阅消息失败:', res); |
| | | this.$u.toast('订阅消息失败,请稍后重试'); |
| | | } |
| | | }); |
| | | }, |
| | | questionnaire() { |
| | | const msg = uni.getStorageSync('msg'); |
| | | if (msg) { |
| | |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | border-radius: 8px 0px 0px 8px; |
| | | border-radius: 16rpx 0px 0px 16rpx; |
| | | background-color: #6FB7FE; |
| | | } |
| | | |
| | | .card_right_txt4 { |
| | | font-size: 12px; |
| | | font-size: 24rpx; |
| | | color: #fff; |
| | | margin-top: 4px; |
| | | margin-top: 8rpx; |
| | | } |
| | | |
| | | .warm { |
| | |
| | | } from "@/api/system/history"; |
| | | import { |
| | | bindPhone, |
| | | getIdCardByPhone |
| | | } from "@/api/login"; |
| | | import { |
| | | getDicts |
| | |
| | | <text class="currency">¥</text> |
| | | <text class="amount">{{ item.price }}</text> |
| | | </view> |
| | | <text class="book-count">预约量{{ item.bookCount }}+</text> |
| | | <text class="book-count">预约量{{ item.bookCount || 0 }}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | |
| | | |
| | | //点击重置按钮 |
| | | resetChoosedList() { |
| | | this.choosedList = [] |
| | | this.$refs.selectPopup.close() |
| | | }, |
| | | resetChoosedList() { |
| | | this.choosedList = [] |
| | | this.categoryId = "" // 如果你需要也把筛选条件清空 |
| | | this.getList() // 重新获取数据 |
| | | this.$refs.selectPopup.close() |
| | | }, |
| | | //点击确定按钮 |
| | | submit() { |
| | | if (this.choosedList.length == 1) { |