Commit 59ec1e1a by sunchao

在线客服

parent cea0d5b3
<template>
<web-view :src="url"></web-view>
</template>
<script>
export default {
data() {
return {
url: ''
}
},
onLoad(item) {
this.url = decodeURIComponent(item.url)
console.log(this.url)
// 传入需要跳转的链接 使用web-view标签进行跳转
}
}
</script>
<style>
<style lang="scss">
</style>
\ No newline at end of file
......@@ -454,7 +454,10 @@
"enablePullDownRefresh": false
}
}
},
{
"path":"components/webview"
}
],
// "tabBar": {
// "color": "#7A7E83", // tab 上的文字默认颜色
......
......@@ -39,7 +39,10 @@
<courselist :tagIds="[1111]" :onlyShowList="0"></courselist>
</view>
<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>
<uni-popup ref="popup" type="top" background-color="#fff">
<view class="description">
......@@ -80,7 +83,8 @@
currentPage:'index',
carouselList:[],
userId: uni.getStorageSync('cffp_userId'),
shareId:null
shareId:null,
kefu:'../../static/kefu.png'
}
},
components:{
......@@ -95,7 +99,11 @@
},
methods: {
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){
console.log(featureItem)
......
......@@ -9,13 +9,13 @@
<!-- 价格明细 -->
<view class="priceInfoContent">
<h4>价格明细</h4>
<view><text>现价</text><text>¥{{courseInfoItem.coursePrice}}</text></view>
<view><text>现价</text><text>¥{{Number(courseInfoItem.coursePrice).toFixed(2)}}</text></view>
<view>
<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 style="color: #666666;font-size: 30rpx;" v-else>暂无积分</text>
</view>
<view><text>合计</text><text>¥{{totalPrice}}</text></view>
<view><text>合计</text><text>¥{{Number(totalPrice).toFixed(2)}}</text></view>
</view>
<!-- 支付方式 -->
<view class="paymentMethodContent">
......@@ -44,7 +44,7 @@
<view class="totalContent">
<view class="priceInfoBox">
<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>
</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