From 5bfc1352e82140ac098b9f0537cc7d1457c87122 Mon Sep 17 00:00:00 2001 From: wwl <xchao828@163.com> Date: 星期二, 05 八月 2025 10:44:04 +0800 Subject: [PATCH] 1 --- pages/tjrecord/tjrecord.vue | 6 +- config.js | 2 pagesA/Examiner/Examiner.vue | 1 pagesA/appointment/appointment.vue | 12 +++-- pages/fg/fg.vue | 13 +++++- pages/mine/index.vue | 41 ++++++++++++++------ 6 files changed, 51 insertions(+), 24 deletions(-) diff --git a/config.js b/config.js index efc1dfb..f8b0aeb 100644 --- a/config.js +++ b/config.js @@ -3,7 +3,7 @@ // 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: { diff --git a/pages/fg/fg.vue b/pages/fg/fg.vue index ffe1252..b644ace 100644 --- a/pages/fg/fg.vue +++ b/pages/fg/fg.vue @@ -16,8 +16,8 @@ <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"> @@ -142,6 +142,7 @@ value: 'other' } ], + name: '', timeOptions: [ '褰撴棩鍙害', '娆℃棩鍙害', @@ -165,6 +166,14 @@ this.getList(); }, methods: { + search(){ + getHospList({ + hospName:this.name + }).then((response) => { + this.hosplist = response.data; + + }); + }, /** 鏌ヨ闄㈠尯淇℃伅鍒楄〃 */ getList() { getHospList(this.queryParams).then((response) => { diff --git a/pages/mine/index.vue b/pages/mine/index.vue index 9da555a..efbdad1 100644 --- a/pages/mine/index.vue +++ b/pages/mine/index.vue @@ -263,21 +263,38 @@ } }); }, - 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) { diff --git a/pages/tjrecord/tjrecord.vue b/pages/tjrecord/tjrecord.vue index 2c7cb93..742e417 100644 --- a/pages/tjrecord/tjrecord.vue +++ b/pages/tjrecord/tjrecord.vue @@ -219,14 +219,14 @@ 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 { diff --git a/pagesA/Examiner/Examiner.vue b/pagesA/Examiner/Examiner.vue index 24d4c39..55bace5 100644 --- a/pagesA/Examiner/Examiner.vue +++ b/pagesA/Examiner/Examiner.vue @@ -122,7 +122,6 @@ } from "@/api/system/history"; import { bindPhone, - getIdCardByPhone } from "@/api/login"; import { getDicts diff --git a/pagesA/appointment/appointment.vue b/pagesA/appointment/appointment.vue index ca881b1..aaae71c 100644 --- a/pagesA/appointment/appointment.vue +++ b/pagesA/appointment/appointment.vue @@ -63,7 +63,7 @@ <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> @@ -159,10 +159,12 @@ //鐐瑰嚮閲嶇疆鎸夐挳 - resetChoosedList() { - this.choosedList = [] - this.$refs.selectPopup.close() - }, + resetChoosedList() { + this.choosedList = [] + this.categoryId = "" // 濡傛灉浣犻渶瑕佷篃鎶婄瓫閫夋潯浠舵竻绌� + this.getList() // 閲嶆柊鑾峰彇鏁版嵁 + this.$refs.selectPopup.close() + }, //鐐瑰嚮纭畾鎸夐挳 submit() { if (this.choosedList.length == 1) { -- Gitblit v1.8.0