Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lumastoreapp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xieyishang
lumastoreapp
Commits
77ea1ba6
Commit
77ea1ba6
authored
Dec 11, 2020
by
haitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fd
parent
5eb418d7
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
156 additions
and
174 deletions
+156
-174
App.vue
App.vue
+1
-3
components/plan-image-upload/up_img.vue
components/plan-image-upload/up_img.vue
+4
-10
pages/addEditEleProduct/addEditEleProduct.vue
pages/addEditEleProduct/addEditEleProduct.vue
+149
-159
utils/debug.js
utils/debug.js
+2
-2
No files found.
App.vue
View file @
77ea1ba6
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
const
time
=
''
;
const
time
=
''
;
import
{
newsRemind
}
from
"
@/utils/api/api.js
"
;
//获取商家消息
import
{
newsRemind
}
from
"
@/utils/api/api.js
"
;
//获取商家消息
export
default
{
export
default
{
onLaunch
:
function
()
{
onLaunch
:
function
()
{
if
(
platform
==
'
ios
'
){
if
(
platform
==
'
ios
'
){
...
@@ -17,14 +16,13 @@
...
@@ -17,14 +16,13 @@
bgAudioMannager
.
pause
();
//pause 暂停
bgAudioMannager
.
pause
();
//pause 暂停
});
});
}
}
// #ifdef APP-PLUS
// #ifdef APP-PLUS
//app关闭默认的启动 方法关闭启动图。但是这个时间不能太晚,6s 超时后依旧会主动关闭。
//app关闭默认的启动 方法关闭启动图。但是这个时间不能太晚,6s 超时后依旧会主动关闭。
setTimeout
(()
=>
{
setTimeout
(()
=>
{
plus
.
navigator
.
closeSplashscreen
();
plus
.
navigator
.
closeSplashscreen
();
},
100
);
},
100
);
uni
.
getNetworkType
({
//查看是否有网络
uni
.
getNetworkType
({
//查看是否有网络
success
:
function
(
res
)
{
success
:
function
(
res
)
{
if
(
res
.
networkType
==
'
none
'
){
if
(
res
.
networkType
==
'
none
'
){
...
...
components/plan-image-upload/up_img.vue
View file @
77ea1ba6
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<view
v-if=
"isShowAdd"
class=
"imageUpload"
@
tap=
"selectImage"
>
+
</view>
<view
v-if=
"isShowAdd"
class=
"imageUpload"
@
tap=
"selectImage"
>
+
</view>
</view>
</view>
<image
v-if=
"showMoveImage"
class=
"moveImage"
:style=
"
{left:posMoveImageLeft, top:posMoveImageTop}" :src="moveImagePath">
</image>
<image
v-if=
"showMoveImage"
class=
"moveImage"
:style=
"
{left:posMoveImageLeft, top:posMoveImageTop}" :src="moveImagePath">
</image>
<view
class=
"showname"
>
请添加奖品
图片
</view>
<view
class=
"showname"
style=
"margin-left: 20upx;"
>
请添加
图片
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -41,7 +41,6 @@
...
@@ -41,7 +41,6 @@
},
},
watch
:{
watch
:{
value
(){
value
(){
console
.
log
(
this
.
value
,
'
帆帆帆帆
'
)
}
}
},
},
computed
:{
computed
:{
...
@@ -135,14 +134,9 @@
...
@@ -135,14 +134,9 @@
},
},
name
:
keyname
,
name
:
keyname
,
success
:
function
(
res
){
success
:
function
(
res
){
console
.
log
(
JSON
.
parse
(
res
.
data
),
'
成功了啊啊
'
)
if
(
res
.
statusCode
===
200
){
if
(
res
.
statusCode
===
200
){
_self
.
value
.
push
(
JSON
.
parse
(
res
.
data
))
_self
.
value
.
push
(
JSON
.
parse
(
res
.
data
))
completeImages
++
completeImages
++
if
(
_self
.
showUploadProgress
){
if
(
_self
.
showUploadProgress
){
uni
.
showToast
({
uni
.
showToast
({
title
:
'
上传进度:
'
+
completeImages
+
'
/
'
+
imagePathArr
.
length
,
title
:
'
上传进度:
'
+
completeImages
+
'
/
'
+
imagePathArr
.
length
,
...
@@ -151,7 +145,7 @@
...
@@ -151,7 +145,7 @@
duration
:
1000
duration
:
1000
});
});
}
}
console
.
log
(
'
success to upload image:
'
+
res
.
data
)
//
console.log('success to upload image: ' + res.data)
resolve
(
'
success to upload image:
'
+
remoteUrlIndex
)
resolve
(
'
success to upload image:
'
+
remoteUrlIndex
)
}
else
{
}
else
{
console
.
log
(
'
fail to upload image:
'
+
res
.
data
)
console
.
log
(
'
fail to upload image:
'
+
res
.
data
)
...
@@ -365,8 +359,8 @@
...
@@ -365,8 +359,8 @@
}
}
.imageItem
,
.imageUpload
{
.imageItem
,
.imageUpload
{
width
:
20
0
upx
;
width
:
19
0
upx
;
height
:
20
0
upx
;
height
:
19
0
upx
;
margin
:
0
20
upx
30
upx
0
;
margin
:
0
20
upx
30
upx
0
;
}
}
.imageItem
:nth-child
(
3n
)
{
.imageItem
:nth-child
(
3n
)
{
...
...
pages/addEditEleProduct/addEditEleProduct.vue
View file @
77ea1ba6
This diff is collapsed.
Click to expand it.
utils/debug.js
View file @
77ea1ba6
...
@@ -5,9 +5,9 @@ module.exports = {
...
@@ -5,9 +5,9 @@ module.exports = {
isdebug
:
false
,
//正式
//
isdebug:false,//正式
//
isdebug:true,//测试
isdebug
:
true
,
//测试
xqdebug
:
false
,
//正式权限
xqdebug
:
false
,
//正式权限
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment