|
|
@@ -39,7 +39,7 @@
|
|
|
<view class="c-instructor">
|
|
|
<view class="c-instructor-title">授课教练:</view>
|
|
|
<view class="c-instructor-name">
|
|
|
- <view class="instructor-item" v-for="(avatar, index) in instructorAvatars" :key="index">
|
|
|
+ <view class="instructor-item" v-for="(avatar, index) in instructorAvatars" :key="index" @click="RouterUtils.to_page(`/pages/index/instructorDetail/index?id=${instructorId[index]}`)">
|
|
|
<image :src="avatar" mode="" />
|
|
|
<view class="instructor-name-text">{{ instructorName[index] || '' }}</view>
|
|
|
</view>
|
|
|
@@ -200,6 +200,11 @@ const instructorName = computed(() => {
|
|
|
return name ? name.split(',') : []
|
|
|
})
|
|
|
|
|
|
+const instructorId = computed(() => {
|
|
|
+ const insId = courseDetailInfo.value?.instructorId
|
|
|
+ return insId ? insId.split(',') : []
|
|
|
+})
|
|
|
+
|
|
|
onShareAppMessage((res) => {
|
|
|
if (res.from === 'button') {// 来自页面内分享按钮
|
|
|
console.log(res.target)
|