This commit is contained in:
2025-08-19 16:24:26 +08:00
parent 692a3838c2
commit ec36dd7496
3 changed files with 61 additions and 5 deletions

15
.hbuilderx/launch.json Normal file
View File

@@ -0,0 +1,15 @@
{
"version" : "1.0",
"configurations" : [
{
"default" : {
"launchtype" : "local"
},
"h5" : {
"launchtype" : "local"
},
"provider" : "aliyun",
"type" : "uniCloud"
}
]
}

View File

@@ -2,11 +2,11 @@ let baseUrl = "";
let socketUrl = ""; let socketUrl = "";
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
// 开发环境 // 开发环境
// baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川 baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
baseUrl = "https://api.nuttyreading.com/"; //线上正式 // baseUrl = "https://api.nuttyreading.com/"; //线上正式
} else if (process.env.NODE_ENV === 'production') { } else if (process.env.NODE_ENV === 'production') {
// baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川 baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
baseUrl = "https://api.nuttyreading.com/"; //线上正式 // baseUrl = "https://api.nuttyreading.com/"; //线上正式
//baseUrl = "https://testapi.nuttyreading.com/"; //线上正式 //baseUrl = "https://testapi.nuttyreading.com/"; //线上正式
} }
const courtConfig = { const courtConfig = {

View File

@@ -76,7 +76,17 @@
<text v-if="userVip!=null">有效期至{{ userVip.endTime }}</text> <text v-if="userVip!=null">有效期至{{ userVip.endTime }}</text>
</view> </view>
</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" <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> @click="handleClickGetGoodsList(slotProps.data)">领取课程</text>
@@ -276,6 +286,28 @@
</view> </view>
</view> </view>
</u-popup> </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> </view>
</template> </template>
@@ -295,6 +327,7 @@
}, },
data() { data() {
return { return {
kefuShow: false,
isHideCourseInfo: false, isHideCourseInfo: false,
courseList: [], courseList: [],
showGoBuy: true, showGoBuy: true,
@@ -375,12 +408,14 @@
onHide() { onHide() {
this.selectGoodsData = {}; this.selectGoodsData = {};
this.protocolShow = false; this.protocolShow = false;
this.kefuShow = false;
this.handleClickClose(); this.handleClickClose();
this.$refs.commonSelectGoods.close(); this.$refs.commonSelectGoods.close();
}, },
onUnload() { onUnload() {
this.selectGoodsData = {}; this.selectGoodsData = {};
this.protocolShow = false; this.protocolShow = false;
this.kefuShow = false;
this.$refs.commonSelectGoods.close(); this.$refs.commonSelectGoods.close();
}, },
computed: { computed: {
@@ -388,11 +423,17 @@
}, },
onShow() { onShow() {
this.protocolShow = false; this.protocolShow = false;
this.kefuShow = false;
this.$nextTick(() => { this.$nextTick(() => {
this.getCourseDescriptionData(); this.getCourseDescriptionData();
}); });
}, },
methods: { methods: {
openKefu(data){
console.log('data at line 400:', data)
this.kefuShow = true;
},
//删除文本里的图片 //删除文本里的图片
removeImagesFromHTML() { removeImagesFromHTML() {
const cleanText = this.curriculumData.content.replace(/<img[^>]*>/g, ''); const cleanText = this.curriculumData.content.replace(/<img[^>]*>/g, '');