Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
intel_promotion_uniapp
Project
Project
Details
Activity
Releases
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
刘怀志
intel_promotion_uniapp
Commits
d745776d
Commit
d745776d
authored
Aug 24, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目名字全局变量设置
parent
22a4ed70
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
88 additions
and
10 deletions
+88
-10
projectName.js
common/projectName.js
+22
-0
passwordLogin.vue
login/login/passwordLogin.vue
+10
-2
userProtocol.vue
login/login/userProtocol.vue
+11
-2
main.js
main.js
+4
-0
index.vue
pages/shop/index.vue
+9
-1
profile.vue
pages/user/profile.vue
+9
-2
about.vue
setting/setting/about.vue
+12
-0
setting.vue
setting/setting/setting.vue
+11
-3
No files found.
common/projectName.js
0 → 100644
View file @
d745776d
const
commonField
=
{
HZY
:
{
shopTitle
:
'鸿泽云智能推广系统'
,
// 首页title
profileName
:
'点击登录鸿泽云智能推广系统账号'
,
// 我的页面点击登录
loginTextOne
:
'鸿泽云智能推广系统用户协议'
,
// 登录页面底部文字
loginTextTwo
:
'鸿泽云智能推广系统'
,
// 登录页面底部文字
userProtocalName
:
'鸿泽云智能推广系统平台'
,
// 平台使用协议文字
settingName
:
'关于鸿泽云智能推广系统'
,
// 设置页面文字
aboutTitle
:
'关于鸿泽云智能推广系统'
,
// 设置页面title
},
YHZ
:
{
shopTitle
:
'耀洪泽文化智能推广系统'
,
// 首页title
profileName
:
'点击登录耀洪泽文化智能推广系统账号'
,
// 我的页面点击登录
loginTextOne
:
'耀洪泽文化智能推广系统用户协议'
,
// 登录页面底部文字
loginTextTwo
:
'耀洪泽文化智能推广系统'
,
// 登录页面底部文字
userProtocalName
:
'耀洪泽文化智能推广系统平台'
,
// 平台使用协议文字
settingName
:
'关于耀洪泽文化智能推广系统'
,
// 设置页面文字
aboutTitle
:
'关于耀洪泽文化智能推广系统'
,
// 设置页面title
},
}
export
default
commonField
login/login/passwordLogin.vue
View file @
d745776d
...
@@ -24,9 +24,9 @@
...
@@ -24,9 +24,9 @@
<checkbox
:checked=
"state"
value=
"check"
/>
<checkbox
:checked=
"state"
value=
"check"
/>
</label>
</label>
登录代表同意
登录代表同意
<text
class=
"link"
@
click=
"goPage('/login/login/userProtocol')"
>
鸿泽云智能推广系统用户协议
</text>
、
<text
class=
"link"
@
click=
"goPage('/login/login/userProtocol')"
>
{{
loginTextOne
}}
</text>
、
<text
class=
"link"
@
click=
"goPage('/login/login/privateProtocol')"
>
隐私政策,
</text>
<text
class=
"link"
@
click=
"goPage('/login/login/privateProtocol')"
>
隐私政策,
</text>
并授权使用您的
鸿泽云智能推广系统
账号信息(如昵称、头像、收获地址)以便您统一管理
并授权使用您的
{{
loginTextTwo
}}
账号信息(如昵称、头像、收获地址)以便您统一管理
</checkbox-group>
</checkbox-group>
</view>
</view>
...
@@ -45,12 +45,15 @@
...
@@ -45,12 +45,15 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
projectName
from
"../../common/projectName"
;
import
{
encryptData
,
decryptData
}
from
'@/store/crypto.js'
import
{
encryptData
,
decryptData
}
from
'@/store/crypto.js'
import
{
rsaEncrypt
}
from
'@/store/jsencrypt.js'
import
{
rsaEncrypt
}
from
'@/store/jsencrypt.js'
import
Qs
from
'qs'
import
Qs
from
'qs'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
loginTextOne
:
''
,
loginTextTwo
:
''
,
state
:
false
,
state
:
false
,
tel
:
''
,
tel
:
''
,
password
:
''
,
password
:
''
,
...
@@ -60,6 +63,9 @@
...
@@ -60,6 +63,9 @@
}
}
},
},
computed
:
{
computed
:
{
projectName
()
{
return
projectName
},
inputStyle
()
{
inputStyle
()
{
let
style
=
{};
let
style
=
{};
if
(
this
.
state
)
{
if
(
this
.
state
)
{
...
@@ -71,6 +77,8 @@
...
@@ -71,6 +77,8 @@
},
},
onLoad
()
{
onLoad
()
{
this
.
loginTextOne
=
projectName
[
this
.
$global
.
appName
].
loginTextOne
this
.
loginTextTwo
=
projectName
[
this
.
$global
.
appName
].
loginTextTwo
this
.
getCode
()
this
.
getCode
()
},
},
methods
:
{
methods
:
{
...
...
login/login/userProtocol.vue
View file @
d745776d
<
template
>
<
template
>
<view
class=
"wrap"
>
<view
class=
"wrap"
>
<view
class=
"pp-content"
>
欢迎使用
鸿泽云智能推广系统平台
(以下简称“本平台”),本协议自开始使用网站,或成为网站的注册用户时即产生法律效力。本协议包括本平台网站内容的使用政策及本平台隐私政策。您在使用本平台提供的各项服务之前,应仔细阅读本服务公约。如您不同意本服务公约或随时对其的修改,您可以主动取消本平台提供的服务;您一旦使用本平台服务,即视为您已了解并完全同意本服务公约各项内容,并成为本平台用户(以下简称“用户”)。
</view>
<view
class=
"pp-content"
>
欢迎使用
{{
userProtocalName
}}
(以下简称“本平台”),本协议自开始使用网站,或成为网站的注册用户时即产生法律效力。本协议包括本平台网站内容的使用政策及本平台隐私政策。您在使用本平台提供的各项服务之前,应仔细阅读本服务公约。如您不同意本服务公约或随时对其的修改,您可以主动取消本平台提供的服务;您一旦使用本平台服务,即视为您已了解并完全同意本服务公约各项内容,并成为本平台用户(以下简称“用户”)。
</view>
<view
class=
"pp-title1"
>
1.服务条款的确认
</view>
<view
class=
"pp-title1"
>
1.服务条款的确认
</view>
<view
class=
"pp-content"
>
本网站根据业务发展需要,有可能随时决定更改本协议条款。如本协议条款有任何变更,将在"本平台"网站上刊载公告或通过邮件的方式通知用户。如您不同意相关变更,应立即停止使用本网站所提供的服务。经修订的条款一经在本网站公布,立即自动生效。如果您继续使用本网站的服务,则表示您接受经修订的条款。除另行声明外,本平台上任何使服务范围扩大或功能增强的新内容,均受本协议约束。
</view>
<view
class=
"pp-content"
>
本网站根据业务发展需要,有可能随时决定更改本协议条款。如本协议条款有任何变更,将在"本平台"网站上刊载公告或通过邮件的方式通知用户。如您不同意相关变更,应立即停止使用本网站所提供的服务。经修订的条款一经在本网站公布,立即自动生效。如果您继续使用本网站的服务,则表示您接受经修订的条款。除另行声明外,本平台上任何使服务范围扩大或功能增强的新内容,均受本协议约束。
</view>
<view
class=
"pp-title1"
>
2.账户注册及使用
</view>
<view
class=
"pp-title1"
>
2.账户注册及使用
</view>
...
@@ -122,12 +122,21 @@
...
@@ -122,12 +122,21 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
projectName
from
"../../common/projectName"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
userProtocalName
:
''
}
}
},
},
computed
:
{
projectName
()
{
return
projectName
}
},
onLoad
()
{
this
.
userProtocalName
=
projectName
[
this
.
$global
.
appName
].
userProtocalName
},
methods
:
{
methods
:
{
}
}
...
...
main.js
View file @
d745776d
...
@@ -8,6 +8,10 @@ App.mpType = 'app'
...
@@ -8,6 +8,10 @@ App.mpType = 'app'
// 此处为演示Vue.prototype使用,非uView的功能部分
// 此处为演示Vue.prototype使用,非uView的功能部分
Vue
.
prototype
.
vuePrototype
=
'枣红'
Vue
.
prototype
.
vuePrototype
=
'枣红'
Vue
.
prototype
.
$global
=
{
// appName: 'HZY' //name: '鸿泽云智能推广系统'
appName
:
'YHZ'
// name: '耀洪泽文化智能推广系统'
}
// 引入全局uView
// 引入全局uView
import
uView
from
'uview-ui'
import
uView
from
'uview-ui'
Vue
.
use
(
uView
)
Vue
.
use
(
uView
)
...
...
pages/shop/index.vue
View file @
d745776d
...
@@ -90,6 +90,7 @@
...
@@ -90,6 +90,7 @@
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
projectName
from
"../../common/projectName"
;
import
pic1
from
'../../static/image/pic1.png'
import
pic1
from
'../../static/image/pic1.png'
import
pic2
from
'../../static/image/pic2.png'
import
pic2
from
'../../static/image/pic2.png'
import
UCol
from
"../../uview-ui/components/u-col/u-col.vue"
;
import
UCol
from
"../../uview-ui/components/u-col/u-col.vue"
;
...
@@ -125,8 +126,15 @@ import USwiper from "../../uview-ui/components/u-swiper/u-swiper.vue";
...
@@ -125,8 +126,15 @@ import USwiper from "../../uview-ui/components/u-swiper/u-swiper.vue";
videoStatus
:
"loadmore"
videoStatus
:
"loadmore"
}
}
},
},
computed
:
{
projectName
()
{
return
projectName
}
},
onLoad
()
{
onLoad
()
{
uni
.
setNavigationBarTitle
({
title
:
projectName
[
this
.
$global
.
appName
].
shopTitle
});
},
},
onShow
(){
onShow
(){
...
...
pages/user/profile.vue
View file @
d745776d
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<view
class=
"toptitlelist"
>
<view
class=
"toptitlelist"
>
<view
class=
"toptitlelist1"
>
{{
vuex_user
.
name
}}
</view>
<view
class=
"toptitlelist1"
>
{{
vuex_user
.
name
}}
</view>
<view
class=
"toptitlelist2"
v-if=
"vuex_user.nickName !== '未登录' && vuex_user.name"
>
ID:
{{
vuex_user
.
phone
}}
</view>
<view
class=
"toptitlelist2"
v-if=
"vuex_user.nickName !== '未登录' && vuex_user.name"
>
ID:
{{
vuex_user
.
phone
}}
</view>
<view
class=
"toptitlelist2"
v-if=
"vuex_user.nickName == '未登录' || !vuex_user.name"
@
click=
"toLogin"
>
点击登录鸿泽云智能推广系统账号
<view
class=
"toptitlelist2"
v-if=
"vuex_user.nickName == '未登录' || !vuex_user.name"
@
click=
"toLogin"
>
{{
profileName
}}
</view>
</view>
</view>
</view>
<!--
<view
class=
"u-m-l-10 u-p-10"
>
<!--
<view
class=
"u-m-l-10 u-p-10"
>
...
@@ -115,17 +115,24 @@
...
@@ -115,17 +115,24 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
projectName
from
"../../common/projectName"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
profileName
:
''
,
show
:
true
,
show
:
true
,
src
:
'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg'
,
src
:
'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg'
,
statusBarHeight
:
uni
.
getStorageSync
(
'menuInfo'
).
statusBarHeight
,
statusBarHeight
:
uni
.
getStorageSync
(
'menuInfo'
).
statusBarHeight
,
topHeight
:
''
topHeight
:
''
}
}
},
},
computed
:
{
projectName
()
{
return
projectName
}
},
onLoad
()
{
onLoad
()
{
this
.
profileName
=
projectName
[
this
.
$global
.
appName
].
profileName
},
},
onShow
()
{
onShow
()
{
console
.
log
(
'this.vuex_user'
,
this
.
vuex_user
)
console
.
log
(
'this.vuex_user'
,
this
.
vuex_user
)
...
...
setting/setting/about.vue
View file @
d745776d
...
@@ -15,12 +15,24 @@
...
@@ -15,12 +15,24 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
projectName
from
"../../common/projectName"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
}
}
},
},
computed
:
{
projectName
()
{
return
projectName
}
},
onLoad
()
{
uni
.
setNavigationBarTitle
({
title
:
projectName
[
this
.
$global
.
appName
].
aboutTitle
});
},
methods
:
{
methods
:
{
}
}
...
...
setting/setting/setting.vue
View file @
d745776d
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<view
class=
"card4"
@
click=
"openPage('/setting/setting/about')"
>
<view
class=
"card4"
@
click=
"openPage('/setting/setting/about')"
>
<image
src=
"../../static/image/shezhi_icon_shangcheng@2x.png"
class=
"settingimage"
></image>
<image
src=
"../../static/image/shezhi_icon_shangcheng@2x.png"
class=
"settingimage"
></image>
<view
class=
"settingtitle"
>
关于鸿泽云智能推广系统
</view>
<view
class=
"settingtitle"
>
{{
settingName
}}
</view>
<image
class=
"settingrightimage"
src=
"../../static/img/image/wode_icon_jiantou@2x.png"
></image>
<image
class=
"settingrightimage"
src=
"../../static/img/image/wode_icon_jiantou@2x.png"
></image>
</view>
</view>
<view
class=
"bottombutton"
>
<view
class=
"bottombutton"
>
...
@@ -60,9 +60,11 @@
...
@@ -60,9 +60,11 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
projectName
from
"../../common/projectName"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
settingName
:
''
,
isLogin
:
false
,
isLogin
:
false
,
user
:
{
user
:
{
genderIcon
:
'man'
,
genderIcon
:
'man'
,
...
@@ -89,7 +91,13 @@
...
@@ -89,7 +91,13 @@
}
}
}
}
},
},
computed
:
{
projectName
()
{
return
projectName
}
},
onLoad
()
{
onLoad
()
{
this
.
settingName
=
projectName
[
this
.
$global
.
appName
].
settingName
this
.
noToken
()
this
.
noToken
()
this
.
init
();
this
.
init
();
if
(
this
.
vuex_unit
.
length
>
0
){
if
(
this
.
vuex_unit
.
length
>
0
){
...
@@ -195,7 +203,7 @@
...
@@ -195,7 +203,7 @@
const
unit
=
this
.
unit
.
list
[
index
]
const
unit
=
this
.
unit
.
list
[
index
]
console
.
log
(
"unit"
,
unit
)
console
.
log
(
"unit"
,
unit
)
this
.
unitName
=
unit
.
text
this
.
unitName
=
unit
.
text
const
unitListChoose
=
this
.
unitList
.
find
(
item
=>
item
.
businessId
===
unit
.
value
)
const
unitListChoose
=
this
.
unitList
.
find
(
item
=>
item
.
businessId
===
unit
.
value
)
console
.
log
(
"unitListChoose"
,
unitListChoose
);
console
.
log
(
"unitListChoose"
,
unitListChoose
);
const
unitListChooseList
=
[]
const
unitListChooseList
=
[]
unitListChooseList
.
push
(
unitListChoose
)
unitListChooseList
.
push
(
unitListChoose
)
...
@@ -210,7 +218,7 @@
...
@@ -210,7 +218,7 @@
nickName
:
'未登录'
nickName
:
'未登录'
});
});
this
.
$u
.
vuex
(
'vuex_unit'
,[])
this
.
$u
.
vuex
(
'vuex_unit'
,[])
this
.
$u
.
route
({
this
.
$u
.
route
({
url
:
'pages/user/profile'
,
url
:
'pages/user/profile'
,
...
...
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