Commit 59ec1e1a by sunchao

在线客服

parent cea0d5b3
<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
...@@ -454,6 +454,9 @@ ...@@ -454,6 +454,9 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},
{
"path":"components/webview"
} }
], ],
// "tabBar": { // "tabBar": {
......
...@@ -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)
......
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment