no message

This commit is contained in:
DESKTOP-369JRHT\12997 2024-06-03 09:11:24 +08:00
parent b0d060edf0
commit 0bdab08eb0
2 changed files with 16 additions and 21 deletions

View File

@ -47,10 +47,8 @@
// this.actList = ["1", "1", "1", "1", "1", ] // this.actList = ["1", "1", "1", "1", "1", ]
// this.status = "nomore" // this.status = "nomore"
// this.getStore()
this.getQRCodeInfoByStoreId() this.getQRCodeInfoByStoreId()
// this.onReady2()
// await this.onReady()
}, },
onPullDownRefresh() { onPullDownRefresh() {
console.log("刷新"); console.log("刷新");
@ -66,23 +64,6 @@
headers headers
}, },
methods: { methods: {
// async getStore() {
// await request({
// url: 'business/storeInformation/store',
// method: 'get',
// params: this.form
// }).then((res) => {
// if (res.code == 200) {
// this.storeId = res.data.id
// } else {
// uni.showToast({
// title: res.data,
// icon: "none"
// })
// }
// })
// },
getQRCodeInfoByStoreId() { getQRCodeInfoByStoreId() {
request({ request({
url: 'business/storeInformation/qrCode/createStoreQrCodeByPos', url: 'business/storeInformation/qrCode/createStoreQrCodeByPos',

View File

@ -56,7 +56,7 @@
<u-picker :show="showXingbie" :columns="xingbieList" keyName="name" @cancel="showXingbie = false" <u-picker :show="showXingbie" :columns="xingbieList" keyName="name" @cancel="showXingbie = false"
@confirm="chooseXingbie"></u-picker> @confirm="chooseXingbie"></u-picker>
<u-datetime-picker :show="showTime" v-model="dataForm.birthday" mode="date" @cancel="showTime = false" <u-datetime-picker :show="showTime" v-model="birthday" mode="date" @cancel="showTime = false"
@confirm="chooseTime"></u-datetime-picker> @confirm="chooseTime"></u-datetime-picker>
<u-picker :show="showGrade" :columns="gradeList" keyName="name" @cancel="showGrade = false" <u-picker :show="showGrade" :columns="gradeList" keyName="name" @cancel="showGrade = false"
@ -81,10 +81,12 @@
data() { data() {
return { return {
titles: "新增会员", titles: "新增会员",
birthday: null,
showGrade: false, showGrade: false,
showXingbie: false, showXingbie: false,
showTime: false, showTime: false,
gradeList: [], gradeList: [],
gradeList: [],
xingbieList: [ xingbieList: [
[{ [{
id: 1, id: 1,
@ -176,8 +178,20 @@
chooseTime(e) { chooseTime(e) {
console.log(123123, e) console.log(123123, e)
this.showTime = false this.showTime = false
this.dataForm.birthday = this.formatDateToYYMMDDHHMM(new Date(e.value));
}, },
formatDateToYYMMDDHHMM(date) {
const year = String(date.getFullYear()); //
const month = String(date.getMonth() + 1).padStart(2, '0'); //
const day = String(date.getDate()).padStart(2, '0'); //
const hours = String(date.getHours()).padStart(2, '0'); //
const minutes = String(date.getMinutes()).padStart(2, '0'); //
// return `${year}/${month}/${day} ${hours}:${minutes}`;
return `${year}/${month}/${day}`;
},
goback() { goback() {
request({ request({
url: 'business/userManager/user', url: 'business/userManager/user',