This commit is contained in:
许允枞 2025-03-18 17:22:55 +08:00
parent 130af71b8b
commit 026b94f9db
2 changed files with 33 additions and 2 deletions

View File

@ -125,7 +125,12 @@
params: data params: data
}) })
if(res.code == 200){ if(res.code == 200){
this.goodsList = this.goodsList.concat(res.rows) if (this.pageNum == 1) {
this.goodsList = res.rows
}else {
this.goodsList = this.goodsList.concat(res.rows)
}
let total = res.total let total = res.total
this.totalPages = Math.ceil(total / this.pageSize); this.totalPages = Math.ceil(total / this.pageSize);
} }

View File

@ -70,6 +70,17 @@
<uni-icons type="right" color="#999999" size="16"></uni-icons> <uni-icons type="right" color="#999999" size="16"></uni-icons>
</view> </view>
</view> </view>
<view class="on-input" @click="goAppointment()" v-if="lookAppointment">
<view class="dix">
<view class="d-icon">
<image src="../../static/detection/zhaq.png" mode=""></image>
</view>
<view class="aa">预约信息</view>
</view>
<view class="">
<uni-icons type="right" color="#999999" size="16"></uni-icons>
</view>
</view>
</view> </view>
<!-- <view class="ian-box">--> <!-- <view class="ian-box">-->
<!-- <view class="on-input" @click="goWord()">--> <!-- <view class="on-input" @click="goWord()">-->
@ -147,7 +158,8 @@ export default {
user: {}, user: {},
baseUrl: '', baseUrl: '',
partnerId: '', partnerId: '',
myindex: {} myindex: {},
lookAppointment: false
} }
}, },
onLoad() { onLoad() {
@ -158,6 +170,7 @@ export default {
console.log(this.user); console.log(this.user);
this.partnerId = uni.getStorageSync('partnerId') this.partnerId = uni.getStorageSync('partnerId')
this.getindexmy() this.getindexmy()
this.ifAppointment()
}, },
components: { components: {
tabBar, tabBar,
@ -176,6 +189,14 @@ export default {
this.tui() this.tui()
this.$refs.alertDialog.close() this.$refs.alertDialog.close()
}, },
ifAppointment(){
request({
url: '/partnerOwn/partner/ifAppointment',
method: 'get',
}).then((res) => {
this.lookAppointment = res.data
})
},
// //
editUserInfo() { editUserInfo() {
// //
@ -227,6 +248,11 @@ export default {
url: "/pages/manage/deviceManage" url: "/pages/manage/deviceManage"
}) })
}, },
goAppointment() {
uni.navigateTo({
url: "/pages/order/reservationlist"
})
},
goWord() { goWord() {
request({ request({
url: '/system/info/exportWord', url: '/system/info/exportWord',