Loading config/mp-sdk.js +2 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,8 @@ export const colorUISdk = new ColorUISdk({ }, //开发环境 dev: { url: 'http://jbzhang.censoft.com.cn/' url: 'http://192.168.15.249:8050/' // url:'http://jbzhang.censoft.com.cn/' }, //本地环境 host: { Loading mp-sdk/components/app-nav-li/app-nav-li.scss +17 −1 Original line number Diff line number Diff line Loading @@ -15,6 +15,14 @@ display: inline-block; padding-bottom: 20rpx; font-size: 34rpx; height: 60rpx; line-height: 60rpx; display:-webkit-box; -webkit-line-clamp:1; overflow:hidden; text-overflow:ellipsis; -webkit-box-orient:vertical; word-break:break-all; &::after { content: ''; position: absolute; Loading @@ -28,7 +36,15 @@ .doc-name { position: relative; display: block; padding-top: 20rpx; padding-top: 10rpx; height: 60rpx; line-height: 60rpx; display:-webkit-box; -webkit-line-clamp:1; overflow:hidden; text-overflow:ellipsis; -webkit-box-orient:vertical; word-break:break-all; &::after { content: ''; position: absolute; Loading mp-sdk/components/app-nav-li/app-nav-li.wxml +2 −2 Original line number Diff line number Diff line <view class="doc-card"> <navigator url="{{navurl}}" class="flex radius doc-card-navigator {{'bg-'+colorName+'-gradient'}}"> <view class="flex-sub p-4 doc-text"> <view class="doc-title">{{ data.title }}</view> <view class="text-lg text-Abc text-lighter doc-name">{{ data.name }}</view> <view class="doc-title">{{ data.courseName }}</view> <view class="text-lg text-Abc text-lighter doc-name">{{ data.remark }}</view> </view> <view class="mt-2 mr-1 pt-4 pr-4 pl-2 doc-icon"> <text class="icon-xl text-xl {{data.icon}}"/> Loading pages/document/coursedetails/coursedetails.js +6 −3 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ Page({ */ data: { course:{ id:'', name:'', note:'', price:'' Loading @@ -29,7 +30,7 @@ Page({ },2000) }else{ wx.navigateTo({ url: `/pages/document/subsign/subsign?price=${this.data.course.price}&name=${this.data.course.name}`, url: `/pages/document/subsign/subsign?price=${this.data.course.price}&name=${this.data.course.name}&id=${this.data.course.id}`, }) } Loading @@ -38,11 +39,13 @@ Page({ * 生命周期函数--监听页面加载 */ onLoad: function (options) { const {name,note,price} = options; console.log(options); const {name,note,price,id} = options; this.setData({ ["course.name"]:name == 'null' ? '' : name, ["course.note"]:note == 'null' ? '暂无介绍' : note, ["course.price"]:price == 'null' ? '' : price ["course.price"]:price == 'null' ? '' : price, ["course.id"]:id }) }, Loading pages/document/subsign/subsign.js +40 −21 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ Page({ '专科', '本科','研究生及以上' ], columnsHomework:['电工作业','焊接与热切割作业','高处作业','制冷与空调作业','金属与非金属矿山作业','危险化学品作业'], columnsHomework:[], // columnsHomework:[ // {text:'电工作业',index:1}, // {text:'焊接与热切割作业',index:2}, Loading @@ -66,7 +66,7 @@ Page({ // {text:'金属与非金属矿山作业',index:5}, // {text:'危险化学品作业',index:6}, // ], columnsZige:['职业资格'], columnsZige:[], columnsPeixun:['新办','复审','换证'] // columnsPeixun:[ // {text:'新办',index:1}, Loading Loading @@ -116,22 +116,30 @@ Page({ onConfirmHomework(event){ const { picker, value, index } = event.detail; console.log(event.detail); //根据选中状态,请求下面列表,动态生成列表项 app.colorUISdk.request({ url:'wxcourse/list', url:'dictionary/listByPar3', method: 'GET', data: { a:'xx' parentKey:value.constantKey } }).then(res=> { this.setData({courseData: res.data.records}) console.log(res); if(res.code == 0){ let col = res.dictionary.map((a)=>{ return a.fieldKey; }); this.setData({ columnsZige:col }) } }).catch(err=>{ console.log(err) }) this.setData({ ["fromDate.homework"]:value,["popup.homeworkText"]:value, ["fromDate.homework"]:value.text,["popup.homeworkText"]:value.text, isShowHomework:false, } ) }, Loading Loading @@ -216,28 +224,39 @@ Page({ this.setData({ ["fromDate.price"]:options.price, phone:app.phone, ["fromDate.phone"]:app.phone }) }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { //获取作业类别列表 ["fromDate.phone"]:app.phone, }); //获取课程类型,动态生成列表 app.colorUISdk.request({ url:'wxcourse/list', url:'dictionary/listByPar2', method: 'GET', data: { a:'xx' courseId:options.id } }).then(res=> { this.setData({courseData: res.data.records}) console.log(res); if(res.code == 0){ let col = res.dictionary.map((a)=>{ return {text:a.fieldKey,constantKey:a.constantKey} }); this.setData({ columnsHomework:col }); console.log(this.data.columnsHomework) } // this.setData({courseData: res.data.records}) }).catch(err=>{ console.log(err) }) }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生命周期函数--监听页面显示 */ Loading Loading
config/mp-sdk.js +2 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,8 @@ export const colorUISdk = new ColorUISdk({ }, //开发环境 dev: { url: 'http://jbzhang.censoft.com.cn/' url: 'http://192.168.15.249:8050/' // url:'http://jbzhang.censoft.com.cn/' }, //本地环境 host: { Loading
mp-sdk/components/app-nav-li/app-nav-li.scss +17 −1 Original line number Diff line number Diff line Loading @@ -15,6 +15,14 @@ display: inline-block; padding-bottom: 20rpx; font-size: 34rpx; height: 60rpx; line-height: 60rpx; display:-webkit-box; -webkit-line-clamp:1; overflow:hidden; text-overflow:ellipsis; -webkit-box-orient:vertical; word-break:break-all; &::after { content: ''; position: absolute; Loading @@ -28,7 +36,15 @@ .doc-name { position: relative; display: block; padding-top: 20rpx; padding-top: 10rpx; height: 60rpx; line-height: 60rpx; display:-webkit-box; -webkit-line-clamp:1; overflow:hidden; text-overflow:ellipsis; -webkit-box-orient:vertical; word-break:break-all; &::after { content: ''; position: absolute; Loading
mp-sdk/components/app-nav-li/app-nav-li.wxml +2 −2 Original line number Diff line number Diff line <view class="doc-card"> <navigator url="{{navurl}}" class="flex radius doc-card-navigator {{'bg-'+colorName+'-gradient'}}"> <view class="flex-sub p-4 doc-text"> <view class="doc-title">{{ data.title }}</view> <view class="text-lg text-Abc text-lighter doc-name">{{ data.name }}</view> <view class="doc-title">{{ data.courseName }}</view> <view class="text-lg text-Abc text-lighter doc-name">{{ data.remark }}</view> </view> <view class="mt-2 mr-1 pt-4 pr-4 pl-2 doc-icon"> <text class="icon-xl text-xl {{data.icon}}"/> Loading
pages/document/coursedetails/coursedetails.js +6 −3 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ Page({ */ data: { course:{ id:'', name:'', note:'', price:'' Loading @@ -29,7 +30,7 @@ Page({ },2000) }else{ wx.navigateTo({ url: `/pages/document/subsign/subsign?price=${this.data.course.price}&name=${this.data.course.name}`, url: `/pages/document/subsign/subsign?price=${this.data.course.price}&name=${this.data.course.name}&id=${this.data.course.id}`, }) } Loading @@ -38,11 +39,13 @@ Page({ * 生命周期函数--监听页面加载 */ onLoad: function (options) { const {name,note,price} = options; console.log(options); const {name,note,price,id} = options; this.setData({ ["course.name"]:name == 'null' ? '' : name, ["course.note"]:note == 'null' ? '暂无介绍' : note, ["course.price"]:price == 'null' ? '' : price ["course.price"]:price == 'null' ? '' : price, ["course.id"]:id }) }, Loading
pages/document/subsign/subsign.js +40 −21 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ Page({ '专科', '本科','研究生及以上' ], columnsHomework:['电工作业','焊接与热切割作业','高处作业','制冷与空调作业','金属与非金属矿山作业','危险化学品作业'], columnsHomework:[], // columnsHomework:[ // {text:'电工作业',index:1}, // {text:'焊接与热切割作业',index:2}, Loading @@ -66,7 +66,7 @@ Page({ // {text:'金属与非金属矿山作业',index:5}, // {text:'危险化学品作业',index:6}, // ], columnsZige:['职业资格'], columnsZige:[], columnsPeixun:['新办','复审','换证'] // columnsPeixun:[ // {text:'新办',index:1}, Loading Loading @@ -116,22 +116,30 @@ Page({ onConfirmHomework(event){ const { picker, value, index } = event.detail; console.log(event.detail); //根据选中状态,请求下面列表,动态生成列表项 app.colorUISdk.request({ url:'wxcourse/list', url:'dictionary/listByPar3', method: 'GET', data: { a:'xx' parentKey:value.constantKey } }).then(res=> { this.setData({courseData: res.data.records}) console.log(res); if(res.code == 0){ let col = res.dictionary.map((a)=>{ return a.fieldKey; }); this.setData({ columnsZige:col }) } }).catch(err=>{ console.log(err) }) this.setData({ ["fromDate.homework"]:value,["popup.homeworkText"]:value, ["fromDate.homework"]:value.text,["popup.homeworkText"]:value.text, isShowHomework:false, } ) }, Loading Loading @@ -216,28 +224,39 @@ Page({ this.setData({ ["fromDate.price"]:options.price, phone:app.phone, ["fromDate.phone"]:app.phone }) }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { //获取作业类别列表 ["fromDate.phone"]:app.phone, }); //获取课程类型,动态生成列表 app.colorUISdk.request({ url:'wxcourse/list', url:'dictionary/listByPar2', method: 'GET', data: { a:'xx' courseId:options.id } }).then(res=> { this.setData({courseData: res.data.records}) console.log(res); if(res.code == 0){ let col = res.dictionary.map((a)=>{ return {text:a.fieldKey,constantKey:a.constantKey} }); this.setData({ columnsHomework:col }); console.log(this.data.columnsHomework) } // this.setData({courseData: res.data.records}) }).catch(err=>{ console.log(err) }) }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生命周期函数--监听页面显示 */ Loading