tijiao
This commit is contained in:
@@ -76,7 +76,17 @@
|
||||
<text v-if="userVip!=null">有效期至{{ userVip.endTime }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="right">
|
||||
<view class="right" v-if="curriculumData.adminControl==1&&slotProps.data.isBuy!=1" >
|
||||
<!-- //是否咨询 -->
|
||||
<text style="color: #fff; font-size: 12px;background-color: #2979ff;" class="fdButtonBox aui-text-success"
|
||||
@click="openKefu(slotProps.data)">联系客服咨询课程</text>
|
||||
|
||||
|
||||
</view>
|
||||
<view class="right" v-else >
|
||||
<!-- //是否咨询 -->
|
||||
|
||||
|
||||
<text v-if="slotProps.data.type == 0&&userVip==null&&slotProps.data.isBuy!=1" style="color: #fff; font-size: 12px" class="fdButtonBox aui-text-success"
|
||||
@click="handleClickGetGoodsList(slotProps.data)">领取课程</text>
|
||||
|
||||
@@ -276,6 +286,28 @@
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<u-popup :show="kefuShow" mode="center" round="6" @close="kefuShow = false">
|
||||
<view class="popup_box">
|
||||
<view class="title">咨询课程</view>
|
||||
<view class="content">
|
||||
<view class="center">
|
||||
<text style="color: #838588;">点击图片后长按图片保存到手机,或使用微信扫描二维码添加客服企业微信。</text>
|
||||
<br />
|
||||
|
||||
<image src="/static/qiyeWx.jpg" mode="widthFix" style="width: 120px; height: 120px; margin: 40rpx auto 0rpx;"></image>
|
||||
<view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottom">
|
||||
<view class="button_box">
|
||||
<u-button size="small" text="关闭" @click="kefuShow = false"></u-button>
|
||||
<!-- <u-button text="同意" color="#7dc1f0" size="small" @click="onHandleClickBuy"></u-button> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -295,6 +327,7 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
kefuShow: false,
|
||||
isHideCourseInfo: false,
|
||||
courseList: [],
|
||||
showGoBuy: true,
|
||||
@@ -375,12 +408,14 @@
|
||||
onHide() {
|
||||
this.selectGoodsData = {};
|
||||
this.protocolShow = false;
|
||||
this.kefuShow = false;
|
||||
this.handleClickClose();
|
||||
this.$refs.commonSelectGoods.close();
|
||||
},
|
||||
onUnload() {
|
||||
this.selectGoodsData = {};
|
||||
this.protocolShow = false;
|
||||
this.kefuShow = false;
|
||||
this.$refs.commonSelectGoods.close();
|
||||
},
|
||||
computed: {
|
||||
@@ -388,11 +423,17 @@
|
||||
},
|
||||
onShow() {
|
||||
this.protocolShow = false;
|
||||
this.kefuShow = false;
|
||||
this.$nextTick(() => {
|
||||
this.getCourseDescriptionData();
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
openKefu(data){
|
||||
console.log('data at line 400:', data)
|
||||
this.kefuShow = true;
|
||||
|
||||
},
|
||||
//删除文本里的图片
|
||||
removeImagesFromHTML() {
|
||||
const cleanText = this.curriculumData.content.replace(/<img[^>]*>/g, '');
|
||||
|
||||
Reference in New Issue
Block a user