Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
59ec1e1a
Commit
59ec1e1a
authored
Dec 06, 2022
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
在线客服
parent
cea0d5b3
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
7 deletions
+32
-7
components/webview.vue
+15
-1
pages.json
+3
-0
pages/index/index.vue
+11
-3
pages/orderConfirm/orderConfirm.vue
+3
-3
static/kefu.png
+0
-0
No files found.
components/webview.vue
View file @
59ec1e1a
<
template
>
<
template
>
<web-view
:src=
"url"
></web-view>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
data
()
{
return
{
url
:
''
}
},
onLoad
(
item
)
{
this
.
url
=
decodeURIComponent
(
item
.
url
)
console
.
log
(
this
.
url
)
// 传入需要跳转的链接 使用web-view标签进行跳转
}
}
</
script
>
</
script
>
<
style
>
<
style
lang=
"scss"
>
</
style
>
</
style
>
\ No newline at end of file
pages.json
View file @
59ec1e1a
...
@@ -454,6 +454,9 @@
...
@@ -454,6 +454,9 @@
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
{
"path"
:
"components/webview"
}
}
],
],
//
"tabBar"
:
{
//
"tabBar"
:
{
...
...
pages/index/index.vue
View file @
59ec1e1a
...
@@ -39,7 +39,10 @@
...
@@ -39,7 +39,10 @@
<courselist
:tagIds=
"[1111]"
:onlyShowList=
"0"
></courselist>
<courselist
:tagIds=
"[1111]"
:onlyShowList=
"0"
></courselist>
</view>
</view>
<tabBar
:currentPage=
"currentPage"
></tabBar>
<tabBar
:currentPage=
"currentPage"
></tabBar>
<!--
<view
style=
"position: fixed;right: 0;top: 50%;"
@
click=
"tokefu()"
>
在线客服
</view>
-->
<view
style=
"position: fixed;right: 0;top: 50%;"
@
click=
"tokefu()"
>
<image
:src=
"kefu"
mode=
"widthFix"
></image>
在线客服
</view>
</view>
</view>
<uni-popup
ref=
"popup"
type=
"top"
background-color=
"#fff"
>
<uni-popup
ref=
"popup"
type=
"top"
background-color=
"#fff"
>
<view
class=
"description"
>
<view
class=
"description"
>
...
@@ -80,7 +83,8 @@
...
@@ -80,7 +83,8 @@
currentPage
:
'index'
,
currentPage
:
'index'
,
carouselList
:[],
carouselList
:[],
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
shareId
:
null
shareId
:
null
,
kefu
:
'../../static/kefu.png'
}
}
},
},
components
:{
components
:{
...
@@ -95,7 +99,11 @@
...
@@ -95,7 +99,11 @@
},
},
methods
:
{
methods
:
{
tokefu
(){
tokefu
(){
plus
.
runtime
.
openURL
(
'http://q.url.cn/abkzV9?_type=wpa&qidian=true'
);
let
url
=
'http://q.url.cn/abkzV9?_type=wpa&qidian=true'
// URL是要跳转的外部地址 作为参数
uni
.
navigateTo
({
url
:
'/components/webview?url='
+
url
// page.json定义的路径 传url 到webview界面去接收 实现跳转
})
},
},
featureSelect
(
featureItem
){
featureSelect
(
featureItem
){
console
.
log
(
featureItem
)
console
.
log
(
featureItem
)
...
...
pages/orderConfirm/orderConfirm.vue
View file @
59ec1e1a
...
@@ -9,13 +9,13 @@
...
@@ -9,13 +9,13 @@
<!-- 价格明细 -->
<!-- 价格明细 -->
<view
class=
"priceInfoContent"
>
<view
class=
"priceInfoContent"
>
<h4>
价格明细
</h4>
<h4>
价格明细
</h4>
<view><text>
现价
</text><text>
¥{{
courseInfoItem.coursePrice
}}
</text></view>
<view><text>
现价
</text><text>
¥{{
Number(courseInfoItem.coursePrice).toFixed(2)
}}
</text></view>
<view>
<view>
<text
@
click=
"toggle(1,'bottom')"
>
积分抵扣
<i
class=
"iconfont icon-31tishi"
></i></text>
<text
@
click=
"toggle(1,'bottom')"
>
积分抵扣
<i
class=
"iconfont icon-31tishi"
></i></text>
<text
class=
"integralBox"
@
click=
"toggle(2,'bottom')"
v-if=
"intergralInfo.preFortune"
>
{{!isDeduction ? '未选' : '已选'}}积分,可抵扣{{deductionCore}}
<i
class=
"iconfont icon-youjiantou"
></i></text>
<text
class=
"integralBox"
@
click=
"toggle(2,'bottom')"
v-if=
"intergralInfo.preFortune"
>
{{!isDeduction ? '未选' : '已选'}}积分,可抵扣{{deductionCore}}
<i
class=
"iconfont icon-youjiantou"
></i></text>
<text
style=
"color: #666666;font-size: 30rpx;"
v-else
>
暂无积分
</text>
<text
style=
"color: #666666;font-size: 30rpx;"
v-else
>
暂无积分
</text>
</view>
</view>
<view><text>
合计
</text><text>
¥{{
totalPrice
}}
</text></view>
<view><text>
合计
</text><text>
¥{{
Number(totalPrice).toFixed(2)
}}
</text></view>
</view>
</view>
<!-- 支付方式 -->
<!-- 支付方式 -->
<view
class=
"paymentMethodContent"
>
<view
class=
"paymentMethodContent"
>
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
<view
class=
"totalContent"
>
<view
class=
"totalContent"
>
<view
class=
"priceInfoBox"
>
<view
class=
"priceInfoBox"
>
<view>
合计:
<strong
style=
"font-size: 36rpx;"
>
¥{{totalPrice}}
</strong></view>
<view>
合计:
<strong
style=
"font-size: 36rpx;"
>
¥{{totalPrice}}
</strong></view>
<view>
共优惠:
<strong
style=
"color:#F15A1F"
v-if=
"intergralInfo.preFortune"
>
¥{{
deductionCore * intergralInfo.preFortune
}}
</strong>
<view>
共优惠:
<strong
style=
"color:#F15A1F"
v-if=
"intergralInfo.preFortune"
>
¥{{
Number(deductionCore * intergralInfo.preFortune).toFixed(2)
}}
</strong>
<text
style=
"color:#F15A1F"
v-else
>
0
</text>
<text
style=
"color:#F15A1F"
v-else
>
0
</text>
</view>
</view>
</view>
</view>
...
...
static/kefu.png
0 → 100644
View file @
59ec1e1a
2.16 KB
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