12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- // components/experienceClass/experienceClass.js
- Component({
- /**
- * 组件的属性列表
- */
- properties: {
- showBot: { type: Boolean, value: true },
- isList: { type: Boolean, value: false },
- obj: Object
- },
- /**
- * 组件的初始数据
- */
- data: {
- },
- attached: function () {
- let isTitle = '体验课'
- if (this.properties.isList) {
- isTitle = this.properties.obj.stage
- }
- this.setData({ isTitle: isTitle })
- },
- /**
- * 组件的方法列表
- */
- methods: {
- // 查看更多
- lookMore() {
- wx.navigateTo({
- url: "/pages/classList/classList?s=1&n=体验课"
- })
- },
- // 立即报名
- signUp(event) {
- let code = event.currentTarget.dataset['code']
- wx.navigateTo({
- url: "/pages/classList/practicalInfo/practicalInfo?type=tiyan&id=" + code
- })
- }
- }
- })
|