|
|
@@ -6,14 +6,13 @@
|
|
|
</view>
|
|
|
<view class="ezy-page-body xuexi-page-body">
|
|
|
<view class="change-dy-box">
|
|
|
- <view class="arrow-icon left-icon" :class="{ 'disabled': currentIndex == 0 }" @click="prev"> </view>
|
|
|
+ <view class="arrow-icon left-icon" :class="{ 'disabled': fontDanyuanId == 0 }" @click="prev"> </view>
|
|
|
<!-- 显示内容 -->
|
|
|
<view class="change-dy-content">
|
|
|
<view>{{ danyuanInfo.danyuanName }}</view>
|
|
|
<view>{{ danyuanInfo.danyuanIntro }}</view>
|
|
|
</view>
|
|
|
- <view class="arrow-icon right-icon" @click="next"
|
|
|
- :class="{ 'disabled': currentIndex == dagangList.length - 1 }"> </view>
|
|
|
+ <view class="arrow-icon right-icon" @click="next" :class="{ 'disabled': nextDanyuanId == 0 }"> </view>
|
|
|
</view>
|
|
|
<view class="xx-scroll-body">
|
|
|
<view class="xx-jd-box">
|
|
|
@@ -142,7 +141,7 @@
|
|
|
},
|
|
|
handleBack() {
|
|
|
uni.navigateTo({
|
|
|
- url: `/pages/chanpinXuanze/banben?dengjiId=`+this.dengjiId
|
|
|
+ url: `/pages/chanpinXuanze/banben?dengjiId=` + this.dengjiId
|
|
|
})
|
|
|
},
|
|
|
loadDataFromApi() {
|
|
|
@@ -170,19 +169,19 @@
|
|
|
},
|
|
|
|
|
|
prev() {
|
|
|
- if (this.currentIndex > 0) {
|
|
|
- this.currentIndex--
|
|
|
+ if (this.fontDanyuanId != 0) {
|
|
|
this.danyuanId = this.fontDanyuanId
|
|
|
this.loadDataFromApi()
|
|
|
}
|
|
|
|
|
|
+
|
|
|
},
|
|
|
next() {
|
|
|
- if (this.currentIndex < this.dagangList.length - 1) {
|
|
|
- this.currentIndex++
|
|
|
+ if (this.nextDanyuanId != 0) {
|
|
|
this.danyuanId = this.nextDanyuanId
|
|
|
this.loadDataFromApi()
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
|
|
|
handlePlay(da, code) {
|