购物车历史订单增加,代码优化
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
</template>
|
||||
<script setup>
|
||||
import { onLoad, onShow, onReachBottom } from '@dcloudio/uni-app';
|
||||
import { reactive, ref, computed, getCurrentInstance } from 'vue';
|
||||
import { reactive, ref, computed } from 'vue';
|
||||
import go from '@/commons/utils/go.js';
|
||||
import myRepayment from './components/my-repayment';
|
||||
import datePickerview from './components/my-date-pickerview.vue'
|
||||
@@ -107,9 +107,8 @@
|
||||
let statusHeight = computed(() => {
|
||||
return 30 * pageData.statusList.length + 40 + 'px'
|
||||
})
|
||||
const currentInstance = getCurrentInstance()
|
||||
let repayment = ref(null)
|
||||
|
||||
const datePicker = ref()
|
||||
onLoad((options) => {
|
||||
if ( options.id ) {
|
||||
pageData.query.creditBuyerId = options.id;
|
||||
@@ -187,7 +186,7 @@
|
||||
function changeTime(e) {
|
||||
pageData.selected = e
|
||||
if (e == 'custom') {
|
||||
currentInstance.ctx.$refs.datePicker.toggle()
|
||||
datePicker.value.toggle()
|
||||
} else {
|
||||
pageData.query.page = 1;
|
||||
pageData.list = [];
|
||||
|
||||
Reference in New Issue
Block a user