no message
This commit is contained in:
parent
b0d060edf0
commit
0bdab08eb0
@ -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',
|
||||||
|
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user