Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
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
viitto
mallapp
Commits
bf0227c1
Commit
bf0227c1
authored
Sep 27, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序登录token失效 处理修改 商品详情富文本 组件新增判断
parent
3c2f121d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
manifest.json
manifest.json
+2
-2
goods.vue
pages/goods/goods.vue
+8
-3
api.js
plugin/api.js
+2
-2
No files found.
manifest.json
View file @
bf0227c1
...
...
@@ -55,7 +55,7 @@
"sdkConfigs"
:
{
"share"
:
{
"weixin"
:
{
"appid"
:
"wx
cf0727a7c78b501
e"
,
"appid"
:
"wx
acd9f8cc3480d29
e"
,
"UniversalLinks"
:
""
}
}
...
...
@@ -66,7 +66,7 @@
"quickapp"
:
{},
/*
小程序特有相关
*/
"mp-weixin"
:
{
"appid"
:
"wx
cf0727a7c78b501
e"
,
"appid"
:
"wx
acd9f8cc3480d29
e"
,
"setting"
:
{
"urlCheck"
:
false
,
"minified"
:
false
...
...
pages/goods/goods.vue
View file @
bf0227c1
...
...
@@ -304,8 +304,9 @@
</view>
<u-divider
:margin-top=
"20"
:margin-bottom=
"20"
bg-color=
"transparent"
>
商品详情
</u-divider>
<view
class=
"details"
>
<!-- <h-parse :content="detailContent" @navigate="clickDescription"></h-parse> -->
<rich-text
:nodes=
"detailContent"
></rich-text>
<h-parse
v-if=
"AppletID!=5"
:content=
"detailContent"
@
navigate=
"clickDescription"
></h-parse>
<!-- 甲鹤等于5 -->
<rich-text
v-if=
"AppletID==5"
:nodes=
"detailContent"
></rich-text>
</view>
<
template
v-if=
"setting.is_show_korea==1"
>
<view
style=
"width:100%;height:1px;border-top:1px solid #FFFFFF;margin:20px 0;"
></view>
...
...
@@ -458,7 +459,8 @@ export default {
},
compentList
:[]
,
//评论列表
compentTotal
:
0
,
curren
:
1
curren
:
1
,
AppletID
:
0
,
//小程序id
};
},
components
:
{
...
...
@@ -472,6 +474,7 @@ export default {
hParse
},
onLoad
(
option
)
{
this
.
opTionObj
=
option
;
console
.
log
(
option
,
"option"
);
...
...
@@ -600,6 +603,8 @@ export default {
setTimeout
(()
=>
{
this
.
initImages
();
},
3000
);
let
basedata
=
uni
.
getStorageSync
(
"basedata"
)?
uni
.
getStorageSync
(
"basedata"
):
''
;
this
.
AppletID
=
basedata
.
home_pages
.
id
?
basedata
.
home_pages
.
id
:
0
;
},
methods
:
{
clickDescription
(
e
)
{
...
...
plugin/api.js
View file @
bf0227c1
...
...
@@ -59,7 +59,7 @@ export default {
let
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
u
)
{
this
.
getLogin_t
(
u
)
typeof
failed
==
"function"
&&
failed
(
res
.
data
);
//
typeof failed == "function" && failed(res.data);
}
}
else
if
(
res
.
data
.
resultCode
!=
1
)
{
if
(
res
.
data
.
message
!=
''
)
{
...
...
@@ -120,7 +120,7 @@ export default {
// 获取小程序APPID
Vue
.
prototype
.
GetMiniAppId
=
function
()
{
let
appObj
=
{};
let
appType
=
7
;
let
appType
=
1
;
switch
(
appType
)
{
case
1
:
//赞羊
appObj
=
{
...
...
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