Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
X
XiTianSenMall
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
leiqingsong
XiTianSenMall
Commits
6aac49e8
Commit
6aac49e8
authored
Apr 02, 2021
by
leiqingsong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改版本下载方式
parent
1c1ba10f
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
18 deletions
+32
-18
.env.production
H5/.env.production
+2
-2
main.js
H5/src/main.js
+2
-2
invite.vue
H5/src/views/invite.vue
+1
-1
invitee.vue
H5/src/views/my/components/invitee.vue
+6
-1
register.vue
H5/src/views/register.vue
+13
-5
settings.vue
H5/src/views/settings.vue
+7
-6
vue.config.js
H5/vue.config.js
+1
-1
No files found.
H5/.env.production
View file @
6aac49e8
# 生产环境 部署生产环境放开这个
#
VUE_APP_BASE_URL = "http://app.xitiansen.com"
VUE_APP_BASE_URL = "http://app.xitiansen.com"
# 测试环境 部署测试环境放开这个
VUE_APP_BASE_URL = "http://8.131.244.76:81"
\ No newline at end of file
# VUE_APP_BASE_URL = "http://8.131.244.76:81"
\ No newline at end of file
H5/src/main.js
View file @
6aac49e8
...
...
@@ -7,13 +7,13 @@ import "minirefresh/dist/debug/minirefresh.css";
import
"amfe-flexible"
;
import
"@/plugins/vant-ui.js"
;
import
"@/plugins/echarts-plugins.js"
;
import
Vconsole
from
"vconsole"
;
//
import Vconsole from "vconsole";
import
bridgeToAppFun
from
"@/utils/bridgeToAppFun"
;
Vue
.
prototype
.
$bridgeToAppFun
=
new
bridgeToAppFun
();
/*生产环境请注释掉 */
Vue
.
prototype
.
$vConsole
=
new
Vconsole
();
//
Vue.prototype.$vConsole = new Vconsole();
Vue
.
use
(
MiniRefreshTools
);
Vue
.
config
.
productionTip
=
false
;
...
...
H5/src/views/invite.vue
View file @
6aac49e8
...
...
@@ -62,7 +62,7 @@ export default {
this
.
imgSrc
=
`
${
process
.
env
.
VUE_APP_BASE_URL
}
/shop-mall/api/user/registerByQrCode?height=150&userId=
${
userId
}
&width=150`
;
this
.
btnTimer
=
setTimeout
(()
=>
{
this
.
showBtn
=
true
;
},
8
00
);
},
15
00
);
},
getUserPhoto
(
res
)
{
let
uInt8Array
=
new
Uint8Array
(
res
);
...
...
H5/src/views/my/components/invitee.vue
View file @
6aac49e8
<
template
>
<div
class=
"invitee"
>
<div
class=
"baseInfo"
>
<img
class=
"avatar"
src=
"@/assets/images/avatar.png
"
alt=
"用户头像"
/>
<img
class=
"avatar"
:src=
"imageUrl + inviteeItem.headImage
"
alt=
"用户头像"
/>
<span
class=
"userName"
>
{{
inviteeItem
.
userId
}}
</span>
</div>
<div
class=
"detail"
>
...
...
@@ -29,6 +29,11 @@ export default {
type
:
Object
,
default
:
()
=>
{}
}
},
data
()
{
return
{
imageUrl
:
process
.
env
.
VUE_APP_BASE_URL
}
}
};
</
script
>
...
...
H5/src/views/register.vue
View file @
6aac49e8
...
...
@@ -71,8 +71,8 @@
</div>
<div
v-if=
"title == '注册失败'"
class=
"tip"
>
{{
tip
}}
</div>
<div
v-else
class=
"tip"
>
<
a
:href=
"androidUrl"
>
下载安卓版App
</a>
|
<
a
:href=
"iosUrl"
>
下载IOS版App
</a
>
<
p>
安卓版App:
{{
androidUrl
}}
</p>
<
P>
IOS版App:
{{
iosUrl
}}
</P
>
</div>
<van-button
@
click=
"show = false"
>
确定
</van-button>
</div>
...
...
@@ -169,6 +169,11 @@ export default {
console
.
log
(
res
);
});
},
test
()
{
this
.
show
=
true
;
this
.
title
=
"注册成功"
;
this
.
getDownUrl
();
},
handleResister
()
{
// 校验文本框必填项
const
_this
=
this
;
...
...
@@ -278,7 +283,7 @@ export default {
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-60%
);
padding
:
3
0px
0
;
padding
:
2
0px
0
;
text-align
:
center
;
box-sizing
:
border-box
;
border-radius
:
4px
;
...
...
@@ -291,7 +296,7 @@ export default {
color
:
#333333
;
}
.success-tip
{
margin
:
25
px
auto
;
margin
:
10
px
auto
;
img
{
width
:
72px
;
height
:
72px
;
...
...
@@ -340,8 +345,11 @@ export default {
background-color
:
#88c678
;
border-radius
:
18px
;
color
:
#ffffff
;
margin-top
:
25px
;
margin-top
:
15px
;
}
}
p
{
margin
:
5px
;
}
}
}
...
...
H5/src/views/settings.vue
View file @
6aac49e8
...
...
@@ -101,11 +101,12 @@ export default {
},
methods
:
{
onUpdateVersion
()
{
if
(
this
.
needUpdate
)
{
location
.
href
=
this
.
downAppUrl
;
}
else
{
// if (this.needUpdate) {
// location.href = this.downAppUrl;
// } else {
// this.versionShow = false;
// }
this
.
versionShow
=
false
;
}
},
updateVersion
()
{
const
params
=
{
...
...
@@ -120,7 +121,7 @@ export default {
}
else
if
(
res
.
code
==
0
)
{
this
.
downAppUrl
=
res
.
data
;
this
.
updateResult
=
"最新版App下载地址:"
+
res
.
data
;
this
.
updateBtn
=
"下载最新版App"
;
//
this.updateBtn = "下载最新版App";
this
.
needUpdate
=
true
;
}
});
...
...
H5/vue.config.js
View file @
6aac49e8
...
...
@@ -4,7 +4,7 @@ const name = "西田森App";
module
.
exports
=
{
publicPath
:
"/front"
,
//
outputDir: "front",
outputDir
:
"front"
,
devServer
:
{
proxy
:
{
'/shop-mall'
:
{
...
...
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