parent
00931a9418
commit
eb38b5a4e4
@ -0,0 +1 @@
|
|||||||
|
const url =
|
@ -0,0 +1 @@
|
|||||||
|
const url = www
|
@ -0,0 +1 @@
|
|||||||
|
const url = http://47.108.153.30/detail/2
|
@ -0,0 +1 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2
|
@ -0,0 +1 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?"
|
@ -0,0 +1 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode="
|
@ -0,0 +1 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
@ -0,0 +1,2 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
@ -0,0 +1,3 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
url.split('')
|
@ -0,0 +1,3 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
url.split('?')
|
@ -0,0 +1,3 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const a url.split('?')
|
@ -0,0 +1,3 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const arr=url.split('?')
|
@ -0,0 +1,4 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const arr=url.split('?')
|
||||||
|
console.log(arr);
|
@ -0,0 +1,4 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const arr=url.split('=')
|
||||||
|
console.log(arr);
|
@ -0,0 +1,4 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(arr);
|
@ -0,0 +1,4 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode);
|
@ -0,0 +1,4 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
@ -0,0 +1,4 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
@ -0,0 +1,4 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
@ -0,0 +1,6 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const
|
@ -0,0 +1,6 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const
|
@ -0,0 +1,6 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.
|
@ -0,0 +1,6 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.s
|
@ -0,0 +1,6 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split
|
@ -0,0 +1,6 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split('/')
|
@ -0,0 +1,7 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(idcode);
|
@ -0,0 +1,7 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(idcode[]);
|
@ -0,0 +1,7 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(idcode[5]);
|
@ -0,0 +1,7 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(idcode[4]);
|
@ -0,0 +1,7 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(idcode[4]);
|
@ -0,0 +1,8 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(idcode[4]);
|
||||||
|
idcode[4]
|
@ -0,0 +1,8 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(idcode[4]);
|
||||||
|
idcode[4].
|
@ -0,0 +1,8 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(idcode[4]);
|
||||||
|
idcode[4].s
|
@ -0,0 +1,8 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(idcode[4]);
|
||||||
|
idcode[4].split('')
|
@ -0,0 +1,8 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(idcode[4]);
|
||||||
|
idcode[4].split('?')
|
@ -0,0 +1,8 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(idcode[4]);
|
||||||
|
const idcode[4].split('?')
|
@ -0,0 +1,8 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(idcode[4]);
|
||||||
|
const iidcode idcode[4].split('?')
|
@ -0,0 +1,8 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(idcode[4]);
|
||||||
|
const iidcode=idcode[4].split('?')
|
@ -0,0 +1,9 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(idcode[4]);
|
||||||
|
const iidcode=idcode[4].split('?')
|
||||||
|
console.log(iidcode);
|
@ -0,0 +1,9 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(idcode[4]);
|
||||||
|
const iidcode=idcode[4].split('?')
|
||||||
|
console.log(iidcode[0]);
|
@ -0,0 +1,8 @@
|
|||||||
|
const url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split('/')
|
||||||
|
const iidcode=idcode[4].split('?')
|
||||||
|
console.log(iidcode[0]);
|
@ -0,0 +1,8 @@
|
|||||||
|
var url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split('/')
|
||||||
|
const iidcode=idcode[4].split('?')
|
||||||
|
console.log(iidcode[0]);
|
@ -0,0 +1,8 @@
|
|||||||
|
let url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
const checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split('/')
|
||||||
|
const iidcode=idcode[4].split('?')
|
||||||
|
console.log(iidcode[0]);
|
@ -0,0 +1,8 @@
|
|||||||
|
let url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
let checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split('/')
|
||||||
|
const iidcode=idcode[4].split('?')
|
||||||
|
console.log(iidcode[0]);
|
@ -0,0 +1,8 @@
|
|||||||
|
let url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
|
||||||
|
let checkcode=url.split('=')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
|
||||||
|
const idcode=url.split('/')
|
||||||
|
const iidcode=idcode[4].split('?')
|
||||||
|
console.log(iidcode[0],checkcode[1]);
|
@ -0,0 +1,5 @@
|
|||||||
|
let url = "http://47.108.153.30/detail/2?checkcode=swqxad"
|
||||||
|
let checkcode=url.split('=')
|
||||||
|
const idcode=url.split('/')
|
||||||
|
const iidcode=idcode[4].split('?')
|
||||||
|
console.log(iidcode[0],checkcode[1]);
|
@ -0,0 +1,4 @@
|
|||||||
|
let url = result
|
||||||
|
let checkcode=url.split('=')
|
||||||
|
const idcode=url.split('/')
|
||||||
|
const iidcode=idcode[4].split('?')
|
@ -0,0 +1,4 @@
|
|||||||
|
let url = '47.108.153.30/detail/2?checkcode=swqxad'
|
||||||
|
let checkcode=url.split('=')
|
||||||
|
const idcode=url.split('/')
|
||||||
|
const iidcode=idcode[4].split('?')
|
@ -0,0 +1,4 @@
|
|||||||
|
let url = '47.108.153.30/detail/2?checkcode=swqxad'
|
||||||
|
let checkcode=url.split('=')
|
||||||
|
const idcode=url.split('/')
|
||||||
|
// const iidcode=idcode[4].split('?')
|
@ -0,0 +1,5 @@
|
|||||||
|
let url = '47.108.153.30/detail/2?checkcode=swqxad'
|
||||||
|
let checkcode=url.split('=')
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(url );
|
||||||
|
// const iidcode=idcode[4].split('?')
|
@ -0,0 +1,5 @@
|
|||||||
|
let url = '47.108.153.30/detail/2?checkcode=swqxad'
|
||||||
|
let checkcode=url.split('=')
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(url);
|
||||||
|
// const iidcode=idcode[4].split('?')
|
@ -0,0 +1,5 @@
|
|||||||
|
let url = '47.108.153.30/detail/2?checkcode=swqxad'
|
||||||
|
let checkcode=url.split('=')
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(url[1]);
|
||||||
|
// const iidcode=idcode[4].split('?')
|
@ -0,0 +1,5 @@
|
|||||||
|
let url = '47.108.153.30/detail/2?checkcode=swqxad'
|
||||||
|
let checkcode=url.split('=')
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
// const iidcode=idcode[4].split('?')
|
@ -0,0 +1,6 @@
|
|||||||
|
let url = '47.108.153.30/detail/2?checkcode=swqxad'
|
||||||
|
let checkcode=url.split('=')
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
console.log();
|
||||||
|
// const iidcode=idcode[4].split('?')
|
@ -0,0 +1,6 @@
|
|||||||
|
let url = '47.108.153.30/detail/2?checkcode=swqxad'
|
||||||
|
let checkcode=url.split('=')
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
console.log(idcode);
|
||||||
|
// const iidcode=idcode[4].split('?')
|
@ -0,0 +1,6 @@
|
|||||||
|
let url = '47.108.153.30/detail/2?checkcode=swqxad'
|
||||||
|
let checkcode=url.split('=')
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
console.log(idcode);
|
||||||
|
const iidcode=idcode[4].split('?')
|
@ -0,0 +1,6 @@
|
|||||||
|
let url = '47.108.153.30/detail/2?checkcode=swqxad'
|
||||||
|
let checkcode=url.split('=')
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
console.log(idcode);
|
||||||
|
const iidcode=idcode[2].split('?')
|
@ -0,0 +1,5 @@
|
|||||||
|
let url = '47.108.153.30/detail/2?checkcode=swqxad'
|
||||||
|
let checkcode=url.split('=')
|
||||||
|
const idcode=url.split('/')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
console.log(idcode);
|
@ -0,0 +1,6 @@
|
|||||||
|
let url = '47.108.153.30/detail/2?checkcode=swqxad'
|
||||||
|
let checkcode=url.split('=')
|
||||||
|
const idcode=url.split('/')
|
||||||
|
const iidcode=idcode[2].split('?')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
console.log(idcode);
|
@ -0,0 +1,6 @@
|
|||||||
|
let url = '47.108.153.30/detail/2?checkcode=swqxad'
|
||||||
|
let checkcode=url.split('=')
|
||||||
|
const idcode=url.split('/')
|
||||||
|
const iidcode=idcode[2].split('?')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
console.log(iidcode);
|
@ -0,0 +1,6 @@
|
|||||||
|
let url = '47.108.153.30/detail/2?checkcode=swqxad'
|
||||||
|
let checkcode=url.split('=')
|
||||||
|
const idcode=url.split('/')
|
||||||
|
const iidcode=idcode[2].split('?')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
console.log(iidcode[1]);
|
@ -0,0 +1,6 @@
|
|||||||
|
let url = '47.108.153.30/detail/2?checkcode=swqxad'
|
||||||
|
let checkcode=url.split('=')
|
||||||
|
const idcode=url.split('/')
|
||||||
|
const iidcode=idcode[2].split('?')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
console.log(iidcode[0]);
|
@ -0,0 +1,6 @@
|
|||||||
|
let url = '47.108.153.30/detail/2?checkcode=swqxad'
|
||||||
|
let checkcode=url.split('=')
|
||||||
|
const idcode=url.split('/')
|
||||||
|
const iidcode=idcode[2].split('?')
|
||||||
|
console.log(checkcode[1]);
|
||||||
|
console.log(iidcode[0]);
|
@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"name": "supermall1",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"private": true,
|
||||||
|
"scripts": {
|
||||||
|
"serve": "vue-cli-service serve",
|
||||||
|
"build": "vue-cli-service build"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@vant/touch-emulator": "^1.2.0",
|
||||||
|
"axios": "^0.18.0",
|
||||||
|
"better-scroll": "^2.0.1",
|
||||||
|
"core-js": "^3.6.5",
|
||||||
|
"element-ui": "^2.14.1",
|
||||||
|
"fastclick": "^1.0.6",
|
||||||
|
"less": "^3.12.2",
|
||||||
|
"less-loader": "^7.1.0",
|
||||||
|
"moment": "^2.29.1",
|
||||||
|
"momment": "0.0.1",
|
||||||
|
"v-distpicker": "^1.2.9",
|
||||||
|
"vant": "^2.11.3",
|
||||||
|
"vue": "^2.6.11",
|
||||||
|
"vue-awesome-mui": "^1.7.3",
|
||||||
|
"vue-lazyload": "^1.3.3",
|
||||||
|
"vue-photo-preview": "^1.1.3",
|
||||||
|
"vue-router": "^3.0.2",
|
||||||
|
"vue-video-player": "^5.0.2",
|
||||||
|
"vuex": "^3.1.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@vue/cli-plugin-babel": "^4.5.0",
|
||||||
|
"@vue/cli-service": "^4.5.0",
|
||||||
|
"components": "^0.1.0",
|
||||||
|
"vue-directive-image-previewer": "^2.2.2",
|
||||||
|
"vue-template-compiler": "^2.6.11"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
"name": "supermall1",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"private": true,
|
||||||
|
"scripts": {
|
||||||
|
"serve": "vue-cli-service serve",
|
||||||
|
"build": "vue-cli-service build"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@vant/touch-emulator": "^1.2.0",
|
||||||
|
"axios": "^0.18.0",
|
||||||
|
"better-scroll": "^2.0.1",
|
||||||
|
"core-js": "^3.6.5",
|
||||||
|
"element-ui": "^2.14.1",
|
||||||
|
"fastclick": "^1.0.6",
|
||||||
|
"less": "^3.12.2",
|
||||||
|
"less-loader": "^7.1.0",
|
||||||
|
"moment": "^2.29.1",
|
||||||
|
"momment": "0.0.1",
|
||||||
|
"v-distpicker": "^1.2.9",
|
||||||
|
"vant": "^2.11.3",
|
||||||
|
"vue": "^2.6.11",
|
||||||
|
"vue-awesome-mui": "^1.7.3",
|
||||||
|
"vue-lazyload": "^1.3.3",
|
||||||
|
"vue-photo-preview": "^1.1.3",
|
||||||
|
"vue-router": "^3.0.2",
|
||||||
|
"vue-video-player": "^5.0.2",
|
||||||
|
"vuex": "^3.1.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@vue/cli-plugin-babel": "^4.5.0",
|
||||||
|
"@vue/cli-service": "^4.5.0",
|
||||||
|
"components": "^0.1.0",
|
||||||
|
"vue-directive-image-previewer": "^2.2.2",
|
||||||
|
"vue-template-compiler": "^2.6.11"
|
||||||
|
},
|
||||||
|
"browserslist": [
|
||||||
|
"> 1%",
|
||||||
|
"last 2 versions",
|
||||||
|
"not dead"
|
||||||
|
]
|
||||||
|
}
|
@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"name": "supermall1",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"private": true,
|
||||||
|
"scripts": {
|
||||||
|
"serve": "vue-cli-service serve",
|
||||||
|
"build": "vue-cli-service build"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@vant/touch-emulator": "^1.2.0",
|
||||||
|
"axios": "^0.18.0",
|
||||||
|
"better-scroll": "^2.0.1",
|
||||||
|
"core-js": "^3.6.5",
|
||||||
|
"element-ui": "^2.14.1",
|
||||||
|
"fastclick": "^1.0.6",
|
||||||
|
"less": "^3.12.2",
|
||||||
|
"less-loader": "^7.1.0",
|
||||||
|
"moment": "^2.29.1",
|
||||||
|
"momment": "0.0.1",
|
||||||
|
"v-distpicker": "^1.2.9",
|
||||||
|
"vant": "^2.11.3",
|
||||||
|
"vue": "^2.6.11",
|
||||||
|
"vue-awesome-mui": "^1.7.3",
|
||||||
|
"vue-lazyload": "^1.3.3",
|
||||||
|
"vue-photo-preview": "^1.1.3",
|
||||||
|
"vue-router": "^3.0.2",
|
||||||
|
"vue-video-player": "^5.0.2",
|
||||||
|
"vuex": "^3.1.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@vue/cli-plugin-babel": "^4.5.0",
|
||||||
|
"@vue/cli-service": "^4.5.0",
|
||||||
|
"components": "^0.1.0",
|
||||||
|
"vue-directive-image-previewer": "^2.2.2",
|
||||||
|
"vue-template-compiler": "^2.6.11"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=2.0, user-scalable=no, width=device-width" name="viewport">
|
||||||
|
<link rel="icon" href="./logo.jpg">
|
||||||
|
<title>big bar</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<noscript>
|
||||||
|
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||||
|
</noscript>
|
||||||
|
<div id="app"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,16 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=2.0, user-scalable=no, width=device-width" name="viewport">
|
||||||
|
<link rel="icon" href="./logo.jpg">
|
||||||
|
<title>交 酒</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<noscript>
|
||||||
|
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||||
|
</noscript>
|
||||||
|
<div id="app"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,65 @@
|
|||||||
|
<template>
|
||||||
|
<div id="app">
|
||||||
|
<!-- exclude不包括哪几个组件-->
|
||||||
|
<keep-alive
|
||||||
|
exclude="Detail,CreateMoment,DetailMoment,CommentList,MineOrder,Order,overOrder,sucessOrder"
|
||||||
|
>
|
||||||
|
<router-view />
|
||||||
|
</keep-alive>
|
||||||
|
<MainTabBar v-if="footShow" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import MainTabBar from "components/content/mainTabbar/MainTabBar";
|
||||||
|
export default {
|
||||||
|
name: "App",
|
||||||
|
components: {
|
||||||
|
MainTabBar
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
footShow: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
$route(to, from) {
|
||||||
|
let ThisPage = to.path;
|
||||||
|
if (
|
||||||
|
ThisPage === "/home" ||
|
||||||
|
ThisPage === "/detail" ||
|
||||||
|
ThisPage === "/profile" ||
|
||||||
|
ThisPage === "/cart" ||
|
||||||
|
ThisPage === "/category" ||
|
||||||
|
ThisPage === "/moment"
|
||||||
|
) {
|
||||||
|
this.footShow = true;
|
||||||
|
} else {
|
||||||
|
this.footShow = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$bus.$on('isShowTabbar',data=>{
|
||||||
|
this.isShowTabbar(data)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
isShowTabbar(data){
|
||||||
|
this.footShow=data;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created(){
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@import "./assets/css/base.css";
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
.el-message {
|
||||||
|
min-width: 300px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,65 @@
|
|||||||
|
<template>
|
||||||
|
<div id="app">
|
||||||
|
<!-- exclude不包括哪几个组件-->
|
||||||
|
<keep-alive
|
||||||
|
exclude="Detail,CreateMoment,DetailMoment,CommentList,MineOrder,Order,overOrder,sucessOrder,sc"
|
||||||
|
>
|
||||||
|
<router-view />
|
||||||
|
</keep-alive>
|
||||||
|
<MainTabBar v-if="footShow" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import MainTabBar from "components/content/mainTabbar/MainTabBar";
|
||||||
|
export default {
|
||||||
|
name: "App",
|
||||||
|
components: {
|
||||||
|
MainTabBar
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
footShow: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
$route(to, from) {
|
||||||
|
let ThisPage = to.path;
|
||||||
|
if (
|
||||||
|
ThisPage === "/home" ||
|
||||||
|
ThisPage === "/detail" ||
|
||||||
|
ThisPage === "/profile" ||
|
||||||
|
ThisPage === "/cart" ||
|
||||||
|
ThisPage === "/category" ||
|
||||||
|
ThisPage === "/moment"
|
||||||
|
) {
|
||||||
|
this.footShow = true;
|
||||||
|
} else {
|
||||||
|
this.footShow = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$bus.$on('isShowTabbar',data=>{
|
||||||
|
this.isShowTabbar(data)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
isShowTabbar(data){
|
||||||
|
this.footShow=data;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created(){
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@import "./assets/css/base.css";
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
.el-message {
|
||||||
|
min-width: 300px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,65 @@
|
|||||||
|
<template>
|
||||||
|
<div id="app">
|
||||||
|
<!-- exclude不包括哪几个组件-->
|
||||||
|
<keep-alive
|
||||||
|
exclude="Detail,CreateMoment,DetailMoment,CommentList,MineOrder,Order,overOrder,sucessOrder,scan"
|
||||||
|
>
|
||||||
|
<router-view />
|
||||||
|
</keep-alive>
|
||||||
|
<MainTabBar v-if="footShow" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import MainTabBar from "components/content/mainTabbar/MainTabBar";
|
||||||
|
export default {
|
||||||
|
name: "App",
|
||||||
|
components: {
|
||||||
|
MainTabBar
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
footShow: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
$route(to, from) {
|
||||||
|
let ThisPage = to.path;
|
||||||
|
if (
|
||||||
|
ThisPage === "/home" ||
|
||||||
|
ThisPage === "/detail" ||
|
||||||
|
ThisPage === "/profile" ||
|
||||||
|
ThisPage === "/cart" ||
|
||||||
|
ThisPage === "/category" ||
|
||||||
|
ThisPage === "/moment"
|
||||||
|
) {
|
||||||
|
this.footShow = true;
|
||||||
|
} else {
|
||||||
|
this.footShow = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$bus.$on('isShowTabbar',data=>{
|
||||||
|
this.isShowTabbar(data)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
isShowTabbar(data){
|
||||||
|
this.footShow=data;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created(){
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@import "./assets/css/base.css";
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
.el-message {
|
||||||
|
min-width: 300px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,65 @@
|
|||||||
|
<template>
|
||||||
|
<div id="app">
|
||||||
|
<!-- exclude不包括哪几个组件-->
|
||||||
|
<keep-alive
|
||||||
|
exclude="Detail,CreateMoment,DetailMoment,CommentList,MineOrder,Order,overOrder,sucessOrder"
|
||||||
|
>
|
||||||
|
<router-view />
|
||||||
|
</keep-alive>
|
||||||
|
<MainTabBar v-if="footShow" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import MainTabBar from "components/content/mainTabbar/MainTabBar";
|
||||||
|
export default {
|
||||||
|
name: "App",
|
||||||
|
components: {
|
||||||
|
MainTabBar
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
footShow: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
$route(to, from) {
|
||||||
|
let ThisPage = to.path;
|
||||||
|
if (
|
||||||
|
ThisPage === "/home" ||
|
||||||
|
ThisPage === "/detail" ||
|
||||||
|
ThisPage === "/profile" ||
|
||||||
|
ThisPage === "/cart" ||
|
||||||
|
ThisPage === "/category" ||
|
||||||
|
ThisPage === "/moment"
|
||||||
|
) {
|
||||||
|
this.footShow = true;
|
||||||
|
} else {
|
||||||
|
this.footShow = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$bus.$on('isShowTabbar',data=>{
|
||||||
|
this.isShowTabbar(data)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
isShowTabbar(data){
|
||||||
|
this.footShow=data;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created(){
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@import "./assets/css/base.css";
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
.el-message {
|
||||||
|
min-width: 300px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,65 @@
|
|||||||
|
<template>
|
||||||
|
<div id="app">
|
||||||
|
<!-- exclude不包括哪几个组件-->
|
||||||
|
<keep-alive
|
||||||
|
exclude="Detail,CreateMoment,DetailMoment,CommentList,MineOrder,Order,overOrder,sucessOrder,"
|
||||||
|
>
|
||||||
|
<router-view />
|
||||||
|
</keep-alive>
|
||||||
|
<MainTabBar v-if="footShow" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import MainTabBar from "components/content/mainTabbar/MainTabBar";
|
||||||
|
export default {
|
||||||
|
name: "App",
|
||||||
|
components: {
|
||||||
|
MainTabBar
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
footShow: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
$route(to, from) {
|
||||||
|
let ThisPage = to.path;
|
||||||
|
if (
|
||||||
|
ThisPage === "/home" ||
|
||||||
|
ThisPage === "/detail" ||
|
||||||
|
ThisPage === "/profile" ||
|
||||||
|
ThisPage === "/cart" ||
|
||||||
|
ThisPage === "/category" ||
|
||||||
|
ThisPage === "/moment"
|
||||||
|
) {
|
||||||
|
this.footShow = true;
|
||||||
|
} else {
|
||||||
|
this.footShow = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$bus.$on('isShowTabbar',data=>{
|
||||||
|
this.isShowTabbar(data)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
isShowTabbar(data){
|
||||||
|
this.footShow=data;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created(){
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@import "./assets/css/base.css";
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
.el-message {
|
||||||
|
min-width: 300px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,65 @@
|
|||||||
|
<template>
|
||||||
|
<div id="app">
|
||||||
|
<!-- exclude不包括哪几个组件-->
|
||||||
|
<keep-alive
|
||||||
|
exclude="Detail,CreateMoment,DetailMoment,CommentList,MineOrder,Order,overOrder,sucessOrder,Detail"
|
||||||
|
>
|
||||||
|
<router-view />
|
||||||
|
</keep-alive>
|
||||||
|
<MainTabBar v-if="footShow" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import MainTabBar from "components/content/mainTabbar/MainTabBar";
|
||||||
|
export default {
|
||||||
|
name: "App",
|
||||||
|
components: {
|
||||||
|
MainTabBar
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
footShow: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
$route(to, from) {
|
||||||
|
let ThisPage = to.path;
|
||||||
|
if (
|
||||||
|
ThisPage === "/home" ||
|
||||||
|
ThisPage === "/detail" ||
|
||||||
|
ThisPage === "/profile" ||
|
||||||
|
ThisPage === "/cart" ||
|
||||||
|
ThisPage === "/category" ||
|
||||||
|
ThisPage === "/moment"
|
||||||
|
) {
|
||||||
|
this.footShow = true;
|
||||||
|
} else {
|
||||||
|
this.footShow = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$bus.$on('isShowTabbar',data=>{
|
||||||
|
this.isShowTabbar(data)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
isShowTabbar(data){
|
||||||
|
this.footShow=data;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created(){
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@import "./assets/css/base.css";
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
.el-message {
|
||||||
|
min-width: 300px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,65 @@
|
|||||||
|
<template>
|
||||||
|
<div id="app">
|
||||||
|
<!-- exclude不包括哪几个组件-->
|
||||||
|
<keep-alive
|
||||||
|
exclude="Detail,CreateMoment,DetailMoment,CommentList,MineOrder,Order,overOrder,sucessOrder,DetailChat"
|
||||||
|
>
|
||||||
|
<router-view />
|
||||||
|
</keep-alive>
|
||||||
|
<MainTabBar v-if="footShow" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import MainTabBar from "components/content/mainTabbar/MainTabBar";
|
||||||
|
export default {
|
||||||
|
name: "App",
|
||||||
|
components: {
|
||||||
|
MainTabBar
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
footShow: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
$route(to, from) {
|
||||||
|
let ThisPage = to.path;
|
||||||
|
if (
|
||||||
|
ThisPage === "/home" ||
|
||||||
|
ThisPage === "/detail" ||
|
||||||
|
ThisPage === "/profile" ||
|
||||||
|
ThisPage === "/cart" ||
|
||||||
|
ThisPage === "/category" ||
|
||||||
|
ThisPage === "/moment"
|
||||||
|
) {
|
||||||
|
this.footShow = true;
|
||||||
|
} else {
|
||||||
|
this.footShow = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$bus.$on('isShowTabbar',data=>{
|
||||||
|
this.isShowTabbar(data)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
isShowTabbar(data){
|
||||||
|
this.footShow=data;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created(){
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@import "./assets/css/base.css";
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
.el-message {
|
||||||
|
min-width: 300px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,65 @@
|
|||||||
|
<template>
|
||||||
|
<div id="app">
|
||||||
|
<!-- exclude不包括哪几个组件-->
|
||||||
|
<keep-alive
|
||||||
|
exclude="Detail,CreateMoment,DetailMoment,CommentList,MineOrder,Order,overOrder,sucessOrder,DetailChat"
|
||||||
|
>
|
||||||
|
<router-view />
|
||||||
|
</keep-alive>
|
||||||
|
<MainTabBar v-if="footShow" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import MainTabBar from "components/content/mainTabbar/MainTabBar";
|
||||||
|
export default {
|
||||||
|
name: "App",
|
||||||
|
components: {
|
||||||
|
MainTabBar
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
footShow: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
$route(to, from) {
|
||||||
|
let ThisPage = to.path;
|
||||||
|
if (
|
||||||
|
ThisPage === "/home" ||
|
||||||
|
ThisPage === "/detail" ||
|
||||||
|
ThisPage === "/profile" ||
|
||||||
|
ThisPage === "/cart" ||
|
||||||
|
ThisPage === "/category" ||
|
||||||
|
ThisPage === "/moment"
|
||||||
|
) {
|
||||||
|
this.footShow = true;
|
||||||
|
} else {
|
||||||
|
this.footShow = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$bus.$on('isShowTabbar',data=>{
|
||||||
|
this.isShowTabbar(data)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
isShowTabbar(data){
|
||||||
|
this.footShow=data;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created(){
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@import "./assets/css/base.css";
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
.el-message {
|
||||||
|
min-width: 300px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,63 @@
|
|||||||
|
<template>
|
||||||
|
<div id="app">
|
||||||
|
<!-- exclude不包括哪几个组件-->
|
||||||
|
<keep-alive
|
||||||
|
exclude="Detail,CreateMoment,DetailMoment,CommentList,MineOrder,Order,overOrder,sucessOrder,DetailChat"
|
||||||
|
>
|
||||||
|
<router-view />
|
||||||
|
</keep-alive>
|
||||||
|
<MainTabBar v-if="footShow" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import MainTabBar from "components/content/mainTabbar/MainTabBar";
|
||||||
|
export default {
|
||||||
|
name: "App",
|
||||||
|
components: {
|
||||||
|
MainTabBar
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
footShow: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
$route(to, from) {
|
||||||
|
let ThisPage = to.path;
|
||||||
|
if (
|
||||||
|
ThisPage === "/home" ||
|
||||||
|
ThisPage === "/detail" ||
|
||||||
|
ThisPage === "/profile" ||
|
||||||
|
ThisPage === "/cart" ||
|
||||||
|
ThisPage === "/category" ||
|
||||||
|
ThisPage === "/moment"
|
||||||
|
) {
|
||||||
|
this.footShow = true;
|
||||||
|
} else {
|
||||||
|
this.footShow = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
isShowTabbar(data){
|
||||||
|
this.footShow=data;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created(){
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@import "./assets/css/base.css";
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
.el-message {
|
||||||
|
min-width: 300px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,65 @@
|
|||||||
|
<template>
|
||||||
|
<div id="app">
|
||||||
|
<!-- exclude不包括哪几个组件-->
|
||||||
|
<keep-alive
|
||||||
|
exclude="Detail,CreateMoment,DetailMoment,CommentList,MineOrder,Order,overOrder,sucessOrder,DetailChat"
|
||||||
|
>
|
||||||
|
<router-view />
|
||||||
|
</keep-alive>
|
||||||
|
<MainTabBar v-if="footShow" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import MainTabBar from "components/content/mainTabbar/MainTabBar";
|
||||||
|
export default {
|
||||||
|
name: "App",
|
||||||
|
components: {
|
||||||
|
MainTabBar
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
footShow: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
$route(to, from) {
|
||||||
|
let ThisPage = to.path;
|
||||||
|
if (
|
||||||
|
ThisPage === "/home" ||
|
||||||
|
ThisPage === "/detail" ||
|
||||||
|
ThisPage === "/profile" ||
|
||||||
|
ThisPage === "/cart" ||
|
||||||
|
ThisPage === "/category" ||
|
||||||
|
ThisPage === "/moment"
|
||||||
|
) {
|
||||||
|
this.footShow = true;
|
||||||
|
} else {
|
||||||
|
this.footShow = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$bus.$on('isShowTabbar',data=>{
|
||||||
|
this.isShowTabbar(data)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
isShowTabbar(data){
|
||||||
|
this.footShow=data;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created(){
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@import "./assets/css/base.css";
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
.el-message {
|
||||||
|
min-width: 300px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,65 @@
|
|||||||
|
<template>
|
||||||
|
<div id="app">
|
||||||
|
<!-- exclude不包括哪几个组件-->
|
||||||
|
<keep-alive
|
||||||
|
exclude="Detail,CreateMoment,DetailMoment,CommentList,MineOrder,Order,overOrder,sucessOrder,detailchat"
|
||||||
|
>
|
||||||
|
<router-view />
|
||||||
|
</keep-alive>
|
||||||
|
<MainTabBar v-if="footShow" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import MainTabBar from "components/content/mainTabbar/MainTabBar";
|
||||||
|
export default {
|
||||||
|
name: "App",
|
||||||
|
components: {
|
||||||
|
MainTabBar
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
footShow: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
$route(to, from) {
|
||||||
|
let ThisPage = to.path;
|
||||||
|
if (
|
||||||
|
ThisPage === "/home" ||
|
||||||
|
ThisPage === "/detail" ||
|
||||||
|
ThisPage === "/profile" ||
|
||||||
|
ThisPage === "/cart" ||
|
||||||
|
ThisPage === "/category" ||
|
||||||
|
ThisPage === "/moment"
|
||||||
|
) {
|
||||||
|
this.footShow = true;
|
||||||
|
} else {
|
||||||
|
this.footShow = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$bus.$on('isShowTabbar',data=>{
|
||||||
|
this.isShowTabbar(data)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
isShowTabbar(data){
|
||||||
|
this.footShow=data;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created(){
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@import "./assets/css/base.css";
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
.el-message {
|
||||||
|
min-width: 300px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,65 @@
|
|||||||
|
<template>
|
||||||
|
<div id="app">
|
||||||
|
<!-- exclude不包括哪几个组件-->
|
||||||
|
<keep-alive
|
||||||
|
exclude="Detail,CreateMoment,DetailMoment,CommentList,MineOrder,Order,overOrder,sucessOrder,D"
|
||||||
|
>
|
||||||
|
<router-view />
|
||||||
|
</keep-alive>
|
||||||
|
<MainTabBar v-if="footShow" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import MainTabBar from "components/content/mainTabbar/MainTabBar";
|
||||||
|
export default {
|
||||||
|
name: "App",
|
||||||
|
components: {
|
||||||
|
MainTabBar
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
footShow: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
$route(to, from) {
|
||||||
|
let ThisPage = to.path;
|
||||||
|
if (
|
||||||
|
ThisPage === "/home" ||
|
||||||
|
ThisPage === "/detail" ||
|
||||||
|
ThisPage === "/profile" ||
|
||||||
|
ThisPage === "/cart" ||
|
||||||
|
ThisPage === "/category" ||
|
||||||
|
ThisPage === "/moment"
|
||||||
|
) {
|
||||||
|
this.footShow = true;
|
||||||
|
} else {
|
||||||
|
this.footShow = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$bus.$on('isShowTabbar',data=>{
|
||||||
|
this.isShowTabbar(data)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
isShowTabbar(data){
|
||||||
|
this.footShow=data;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created(){
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@import "./assets/css/base.css";
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
.el-message {
|
||||||
|
min-width: 300px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,65 @@
|
|||||||
|
<template>
|
||||||
|
<div id="app">
|
||||||
|
<!-- exclude不包括哪几个组件-->
|
||||||
|
<keep-alive
|
||||||
|
exclude="Detail,CreateMoment,DetailMoment,CommentList,MineOrder,Order,overOrder,sucessOrder,DetailChat"
|
||||||
|
>
|
||||||
|
<router-view />
|
||||||
|
</keep-alive>
|
||||||
|
<MainTabBar v-if="footShow" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import MainTabBar from "components/content/mainTabbar/MainTabBar";
|
||||||
|
export default {
|
||||||
|
name: "App",
|
||||||
|
components: {
|
||||||
|
MainTabBar
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
footShow: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
$route(to, from) {
|
||||||
|
let ThisPage = to.path;
|
||||||
|
if (
|
||||||
|
ThisPage === "/home" ||
|
||||||
|
ThisPage === "/detail" ||
|
||||||
|
ThisPage === "/profile" ||
|
||||||
|
ThisPage === "/cart" ||
|
||||||
|
ThisPage === "/category" ||
|
||||||
|
ThisPage === "/moment"
|
||||||
|
) {
|
||||||
|
this.footShow = true;
|
||||||
|
} else {
|
||||||
|
this.footShow = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$bus.$on('isShowTabbar',data=>{
|
||||||
|
this.isShowTabbar(data)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
isShowTabbar(data){
|
||||||
|
this.footShow=data;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created(){
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@import "./assets/css/base.css";
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
.el-message {
|
||||||
|
min-width: 300px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,65 @@
|
|||||||
|
<template>
|
||||||
|
<div id="app">
|
||||||
|
<!-- exclude不包括哪几个组件-->
|
||||||
|
<keep-alive
|
||||||
|
exclude="Detail,CreateMoment,DetailMoment,CommentList,MineOrder,Order,overOrder,sucessOrder,DetailChat"
|
||||||
|
>
|
||||||
|
<router-view />
|
||||||
|
</keep-alive>
|
||||||
|
<MainTabBar v-if="footShow" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import MainTabBar from "components/content/mainTabbar/MainTabBar";
|
||||||
|
export default {
|
||||||
|
name: "App",
|
||||||
|
components: {
|
||||||
|
MainTabBar
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
footShow: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
$route(to, from) {
|
||||||
|
let ThisPage = to.path;
|
||||||
|
if (
|
||||||
|
ThisPage === "/home" ||
|
||||||
|
ThisPage === "/detail" ||
|
||||||
|
ThisPage === "/profile" ||
|
||||||
|
ThisPage === "/cart" ||
|
||||||
|
ThisPage === "/category" ||
|
||||||
|
ThisPage === "/moment"
|
||||||
|
) {
|
||||||
|
this.footShow = true;
|
||||||
|
} else {
|
||||||
|
this.footShow = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$bus.$on('isShowTabbar',data=>{
|
||||||
|
this.isShowTabbar(data)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
isShowTabbar(data){
|
||||||
|
this.footShow=data;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created(){
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@import "./assets/css/base.css";
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
.el-message {
|
||||||
|
min-width: 300px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.1 KiB |
@ -0,0 +1,12 @@
|
|||||||
|
export const Bannersdata={
|
||||||
|
"list":[
|
||||||
|
{"id":1,"image":"http://47.108.153.30:7878/images/bannerOne.jpg","width": 750,"link":"/home"},
|
||||||
|
{"id":2,"image":"http://47.108.153.30:7878/images/bannerTwo.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":3,"image":"http://47.108.153.30:7878/images/bannerThree.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":4,"image":"http://47.108.153.30:7878/images/bannerFour.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":5,"image":"http://47.108.153.30:7878/images/bannerFive.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":6,"image":"http://47.108.153.30:7878/images/bannerSix.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":7,"image":"http://47.108.153.30:7878/images/bannerSeven.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":8,"image":"http://47.108.153.30:7878/images/bannerEight.jpeg","width": 750,"link":"/home"}
|
||||||
|
]
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
export const Bannersdata={
|
||||||
|
"list":[
|
||||||
|
{"id":1,"image":"http://47.108.153.30:7878/images/bannerOne.jpg","width": 750,"link":"/home"},
|
||||||
|
{"id":2,"image":"http://47.108.153.30:7878/images/bannerTwo.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":3,"image":"http://47.108.153.30:7878/images/bannerThree.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":4,"image":"http://47.108.153.30:7878/images/bannerFour.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":5,"image":"http://47.108.153.30:7878/images/bannerFive.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":6,"image":"http://47.108.153.30:7878/images/bannerSix.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":7,"image":"http://47.108.153.30:7878/images/bannerSeven.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":8,"image":"http://47.108.153.30:7878/images/bannerEight.jpeg","width": 750,"link":"/home"}
|
||||||
|
]
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
export const Bannersdata={
|
||||||
|
"list":[
|
||||||
|
{"id":1,"image":"https://47.108.153.30:7878/images/bannerOne.jpg","width": 750,"link":"/home"},
|
||||||
|
{"id":2,"image":"https://47.108.153.30:7878/images/bannerTwo.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":3,"image":"http://47.108.153.30:7878/images/bannerThree.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":4,"image":"http://47.108.153.30:7878/images/bannerFour.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":5,"image":"http://47.108.153.30:7878/images/bannerFive.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":6,"image":"http://47.108.153.30:7878/images/bannerSix.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":7,"image":"http://47.108.153.30:7878/images/bannerSeven.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":8,"image":"http://47.108.153.30:7878/images/bannerEight.jpeg","width": 750,"link":"/home"}
|
||||||
|
]
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
export const Bannersdata={
|
||||||
|
"list":[
|
||||||
|
{"id":1,"image":"https://47.108.153.30:7878/images/bannerOne.jpg","width": 750,"link":"/home"},
|
||||||
|
{"id":2,"image":"https://47.108.153.30:7878/images/bannerTwo.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":3,"image":"https://47.108.153.30:7878/images/bannerThree.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":4,"image":"https://47.108.153.30:7878/images/bannerFour.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":5,"image":"https://47.108.153.30:7878/images/bannerFive.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":6,"image":"https://47.108.153.30:7878/images/bannerSix.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":7,"image":"http://47.108.153.30:7878/images/bannerSeven.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":8,"image":"http://47.108.153.30:7878/images/bannerEight.jpeg","width": 750,"link":"/home"}
|
||||||
|
]
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
export const Bannersdata={
|
||||||
|
"list":[
|
||||||
|
{"id":1,"image":"https://47.108.153.30:7878/images/bannerOne.jpg","width": 750,"link":"/home"},
|
||||||
|
{"id":2,"image":"https://47.108.153.30:7878/images/bannerTwo.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":3,"image":"https://47.108.153.30:7878/images/bannerThree.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":4,"image":"https://47.108.153.30:7878/images/bannerFour.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":5,"image":"https://47.108.153.30:7878/images/bannerFive.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":6,"image":"https://47.108.153.30:7878/images/bannerSix.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":7,"image":"https://47.108.153.30:7878/images/bannerSeven.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":8,"image":"https://47.108.153.30:7878/images/bannerEight.jpeg","width": 750,"link":"/home"}
|
||||||
|
]
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
export const Bannersdata={
|
||||||
|
"list":[
|
||||||
|
{"id":1,"image":"http://47.108.153.30:7878/images/bannerOne.jpg","width": 750,"link":"/home"},
|
||||||
|
{"id":2,"image":"http://47.108.153.30:7878/images/bannerTwo.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":3,"image":"http://47.108.153.30:7878/images/bannerThree.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":4,"image":"http://47.108.153.30:7878/images/bannerFour.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":5,"image":"http://47.108.153.30:7878/images/bannerFive.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":6,"image":"http://47.108.153.30:7878/images/bannerSix.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":7,"image":"http://47.108.153.30:7878/images/bannerSeven.jpeg","width": 750,"link":"/home"},
|
||||||
|
{"id":8,"image":"http://47.108.153.30:7878/images/bannerEight.jpeg","width": 750,"link":"/home"}
|
||||||
|
]
|
||||||
|
}
|
@ -0,0 +1,252 @@
|
|||||||
|
<template>
|
||||||
|
<div class="moment-items" v-if="isExist">
|
||||||
|
<div>
|
||||||
|
<img class="avatar" @load="uploadavatar" v-lazy="showImage" />
|
||||||
|
</div>
|
||||||
|
<div class="name">{{ moments.author.name }}</div>
|
||||||
|
|
||||||
|
<i
|
||||||
|
@click="remove"
|
||||||
|
id="delete"
|
||||||
|
class="el-icon-delete"
|
||||||
|
style="font-size: 20px"
|
||||||
|
></i>
|
||||||
|
|
||||||
|
<div class="time">
|
||||||
|
{{ this.$moment(moments.createAT).fromNow() }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content">{{ moments.content }}</div>
|
||||||
|
<div class="image">
|
||||||
|
<li v-for="(item, index) in moments.images" :key="index">
|
||||||
|
<img
|
||||||
|
@load="uploadavatar"
|
||||||
|
width="100px"
|
||||||
|
height="100px"
|
||||||
|
:preview="index"
|
||||||
|
:src="item + '?type=small'"
|
||||||
|
/>
|
||||||
|
<!-- v-lazy="item+'?type=small'" -->
|
||||||
|
</li>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="icon" v-if="this.isdisplay">
|
||||||
|
<div>
|
||||||
|
<i @click="clickpraise"> <img src="@/assets/img/moment/praise.svg"/></i
|
||||||
|
><span class="icon1">{{promiseCount()}}</span>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<i
|
||||||
|
class="el-icon-chat-dot-square"
|
||||||
|
style="font-size: 20px"
|
||||||
|
@click="comment"
|
||||||
|
></i>
|
||||||
|
<span>{{moments.commentCount}}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "MomentListItem",
|
||||||
|
props: {
|
||||||
|
moments: {
|
||||||
|
type: Object,
|
||||||
|
default() {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
id: this.moments.id,
|
||||||
|
isExist: true,
|
||||||
|
images: [],
|
||||||
|
praise: {},
|
||||||
|
isdisplay: true,
|
||||||
|
number: "",
|
||||||
|
isfrist: true,
|
||||||
|
token: ""
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getAllPraise();
|
||||||
|
window.localStorage.setItem("number", "0");
|
||||||
|
this.token = window.localStorage.getItem("token");
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
showImage() {
|
||||||
|
return this.moments.author.avatarUrl;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
promiseCount(){
|
||||||
|
return this.praise.promiseCount||0;
|
||||||
|
},
|
||||||
|
uploadavatar() {
|
||||||
|
this.$bus.$emit("upload");
|
||||||
|
},
|
||||||
|
async remove() {
|
||||||
|
if (!this.token) {
|
||||||
|
this.$router.push("/login");
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
await this.$http.delete("/moment/" + this.id);
|
||||||
|
this.isExist = !this.isExist;
|
||||||
|
this.$message.success("删除成功");
|
||||||
|
this.$bus.$emit("upload");
|
||||||
|
} catch {
|
||||||
|
this.$message.error("你不具备删除该动态权限");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
comment() {
|
||||||
|
this.$router.push("detailcomment/" + this.moments.id);
|
||||||
|
},
|
||||||
|
async getAllPraise() {
|
||||||
|
const { data: res } = await this.$http.get("/praise/" + this.moments.id);
|
||||||
|
this.praise = res;
|
||||||
|
},
|
||||||
|
refresh() {
|
||||||
|
this.isdisplay = false;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.isdisplay = true;
|
||||||
|
}, 100);
|
||||||
|
this.getAllPraise();
|
||||||
|
},
|
||||||
|
//发表成功评论
|
||||||
|
async clickpraise() {
|
||||||
|
if (!this.token) {
|
||||||
|
this.$router.push("/login");
|
||||||
|
} else {
|
||||||
|
const { data: res } = await this.$http.post(
|
||||||
|
"/praise/ispraise/" + this.moments.id
|
||||||
|
);
|
||||||
|
if (res.status != "200") {
|
||||||
|
this.number = window.localStorage.getItem("number");
|
||||||
|
if (this.number === "1") window.localStorage.setItem("number", "0");
|
||||||
|
else {
|
||||||
|
window.localStorage.setItem("number", "1");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (res.status == "200") {
|
||||||
|
await this.$http.post("/praise/" + this.moments.id);
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.refresh();
|
||||||
|
}, 100);
|
||||||
|
} else {
|
||||||
|
this.number = window.localStorage.getItem("number");
|
||||||
|
const content = {
|
||||||
|
ispraise: ""
|
||||||
|
};
|
||||||
|
content.ispraise = this.number;
|
||||||
|
await this.$http.post("/praise/update/" + this.moments.id, content);
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.refresh();
|
||||||
|
}, 100);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
isclickpraise() {}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$bus.$on("aaispraise", this.isclickpraise);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
li {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.moment-items {
|
||||||
|
position: relative;
|
||||||
|
background-color: rgb(255, 255, 255);
|
||||||
|
width: 100%;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.avatar {
|
||||||
|
float: left;
|
||||||
|
margin-left: 10px;
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
border-radius: 25px;
|
||||||
|
}
|
||||||
|
.name {
|
||||||
|
float: left;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-top: 5px;
|
||||||
|
margin-left: 10px;
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
.time {
|
||||||
|
margin-left: 70px;
|
||||||
|
margin-top: 30px;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
.sign {
|
||||||
|
margin-left: 70px;
|
||||||
|
margin-top: 30px;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
margin-top: 15px;
|
||||||
|
margin-left: 5px;
|
||||||
|
font-size: 13px;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
.icon {
|
||||||
|
margin-top: 15px;
|
||||||
|
justify-content: space-evenly;
|
||||||
|
display: flex;
|
||||||
|
border-top-style: solid;
|
||||||
|
border-width: 0.1px;
|
||||||
|
border-color: rgb(230, 220, 220);
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon1{
|
||||||
|
position: relative;
|
||||||
|
top:-11px !important;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon div{
|
||||||
|
height: 23px;
|
||||||
|
width: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon img{
|
||||||
|
width: 20px;
|
||||||
|
height: 21px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon span{
|
||||||
|
position: relative;
|
||||||
|
top:-8px;
|
||||||
|
font-size: 8px !important;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
#delete {
|
||||||
|
float: right;
|
||||||
|
margin-top:5px;
|
||||||
|
margin-right:5px;
|
||||||
|
}
|
||||||
|
.el-icon-delete {
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
.remove {
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text {
|
||||||
|
margin: 20px 5px;
|
||||||
|
}
|
||||||
|
.image {
|
||||||
|
margin-top: 15px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-evenly;
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,252 @@
|
|||||||
|
<template>
|
||||||
|
<div class="moment-items" v-if="isExist">
|
||||||
|
<div>
|
||||||
|
<img class="avatar" @load="uploadavatar" v-lazy="showImage" />
|
||||||
|
</div>
|
||||||
|
<div class="name">{{ moments.author.name }}</div>
|
||||||
|
|
||||||
|
<!-- <i
|
||||||
|
@click="remove"
|
||||||
|
id="delete"
|
||||||
|
class="el-icon-delete"
|
||||||
|
style="font-size: 20px"
|
||||||
|
></i> -->
|
||||||
|
|
||||||
|
<div class="time">
|
||||||
|
{{ this.$moment(moments.createAT).fromNow() }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content">{{ moments.content }}</div>
|
||||||
|
<div class="image">
|
||||||
|
<li v-for="(item, index) in moments.images" :key="index">
|
||||||
|
<img
|
||||||
|
@load="uploadavatar"
|
||||||
|
width="100px"
|
||||||
|
height="100px"
|
||||||
|
:preview="index"
|
||||||
|
:src="item + '?type=small'"
|
||||||
|
/>
|
||||||
|
<!-- v-lazy="item+'?type=small'" -->
|
||||||
|
</li>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="icon" v-if="this.isdisplay">
|
||||||
|
<div>
|
||||||
|
<i @click="clickpraise"> <img src="@/assets/img/moment/praise.svg"/></i
|
||||||
|
><span class="icon1">{{promiseCount()}}</span>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<i
|
||||||
|
class="el-icon-chat-dot-square"
|
||||||
|
style="font-size: 20px"
|
||||||
|
@click="comment"
|
||||||
|
></i>
|
||||||
|
<span>{{moments.commentCount}}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "MomentListItem",
|
||||||
|
props: {
|
||||||
|
moments: {
|
||||||
|
type: Object,
|
||||||
|
default() {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
id: this.moments.id,
|
||||||
|
isExist: true,
|
||||||
|
images: [],
|
||||||
|
praise: {},
|
||||||
|
isdisplay: true,
|
||||||
|
number: "",
|
||||||
|
isfrist: true,
|
||||||
|
token: ""
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getAllPraise();
|
||||||
|
window.localStorage.setItem("number", "0");
|
||||||
|
this.token = window.localStorage.getItem("token");
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
showImage() {
|
||||||
|
return this.moments.author.avatarUrl;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
promiseCount(){
|
||||||
|
return this.praise.promiseCount||0;
|
||||||
|
},
|
||||||
|
uploadavatar() {
|
||||||
|
this.$bus.$emit("upload");
|
||||||
|
},
|
||||||
|
async remove() {
|
||||||
|
if (!this.token) {
|
||||||
|
this.$router.push("/login");
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
await this.$http.delete("/moment/" + this.id);
|
||||||
|
this.isExist = !this.isExist;
|
||||||
|
this.$message.success("删除成功");
|
||||||
|
this.$bus.$emit("upload");
|
||||||
|
} catch {
|
||||||
|
this.$message.error("你不具备删除该动态权限");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
comment() {
|
||||||
|
this.$router.push("detailcomment/" + this.moments.id);
|
||||||
|
},
|
||||||
|
async getAllPraise() {
|
||||||
|
const { data: res } = await this.$http.get("/praise/" + this.moments.id);
|
||||||
|
this.praise = res;
|
||||||
|
},
|
||||||
|
refresh() {
|
||||||
|
this.isdisplay = false;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.isdisplay = true;
|
||||||
|
}, 100);
|
||||||
|
this.getAllPraise();
|
||||||
|
},
|
||||||
|
//发表成功评论
|
||||||
|
async clickpraise() {
|
||||||
|
if (!this.token) {
|
||||||
|
this.$router.push("/login");
|
||||||
|
} else {
|
||||||
|
const { data: res } = await this.$http.post(
|
||||||
|
"/praise/ispraise/" + this.moments.id
|
||||||
|
);
|
||||||
|
if (res.status != "200") {
|
||||||
|
this.number = window.localStorage.getItem("number");
|
||||||
|
if (this.number === "1") window.localStorage.setItem("number", "0");
|
||||||
|
else {
|
||||||
|
window.localStorage.setItem("number", "1");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (res.status == "200") {
|
||||||
|
await this.$http.post("/praise/" + this.moments.id);
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.refresh();
|
||||||
|
}, 100);
|
||||||
|
} else {
|
||||||
|
this.number = window.localStorage.getItem("number");
|
||||||
|
const content = {
|
||||||
|
ispraise: ""
|
||||||
|
};
|
||||||
|
content.ispraise = this.number;
|
||||||
|
await this.$http.post("/praise/update/" + this.moments.id, content);
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.refresh();
|
||||||
|
}, 100);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
isclickpraise() {}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$bus.$on("aaispraise", this.isclickpraise);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
li {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.moment-items {
|
||||||
|
position: relative;
|
||||||
|
background-color: rgb(255, 255, 255);
|
||||||
|
width: 100%;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.avatar {
|
||||||
|
float: left;
|
||||||
|
margin-left: 10px;
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
border-radius: 25px;
|
||||||
|
}
|
||||||
|
.name {
|
||||||
|
float: left;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-top: 5px;
|
||||||
|
margin-left: 10px;
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
.time {
|
||||||
|
margin-left: 70px;
|
||||||
|
margin-top: 30px;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
.sign {
|
||||||
|
margin-left: 70px;
|
||||||
|
margin-top: 30px;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
margin-top: 15px;
|
||||||
|
margin-left: 5px;
|
||||||
|
font-size: 13px;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
.icon {
|
||||||
|
margin-top: 15px;
|
||||||
|
justify-content: space-evenly;
|
||||||
|
display: flex;
|
||||||
|
border-top-style: solid;
|
||||||
|
border-width: 0.1px;
|
||||||
|
border-color: rgb(230, 220, 220);
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon1{
|
||||||
|
position: relative;
|
||||||
|
top:-11px !important;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon div{
|
||||||
|
height: 23px;
|
||||||
|
width: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon img{
|
||||||
|
width: 20px;
|
||||||
|
height: 21px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon span{
|
||||||
|
position: relative;
|
||||||
|
top:-8px;
|
||||||
|
font-size: 8px !important;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
#delete {
|
||||||
|
float: right;
|
||||||
|
margin-top:5px;
|
||||||
|
margin-right:5px;
|
||||||
|
}
|
||||||
|
.el-icon-delete {
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
.remove {
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text {
|
||||||
|
margin: 20px 5px;
|
||||||
|
}
|
||||||
|
.image {
|
||||||
|
margin-top: 15px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-evenly;
|
||||||
|
}
|
||||||
|
</style>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue