Commit 5d1eb6ff authored by lvtz's avatar lvtz

fix

parent 94440793
export default {
imageRoot: 'https://cdn.img.shangjiadao.cn/qingxiao/daka/images/',
// host: 'https://qxapi.qingxiao.online/daka',
// host2: 'https://wx.m.shangjiadao.cn',
host: 'https://qxapi.qingxiao.online/daka',
host2: 'https://wx.m.shangjiadao.cn',
storageVersion: '4.0',
imageVersion: '20191017',
host: 'https://clock.wp53.cn',
host2: 'https://test.wp53.cn',
// host: 'https://clock.wp53.cn',
// host2: 'https://test.wp53.cn',
appId: 'wxc1246ea029394785',
miniProgram: {
clock: 'wxdeee20e52a1fd7ee'
......
......@@ -114,7 +114,7 @@
<!-- <view class="line-20" wx:if="{{noUserinfo}}">
</view> -->
<view class="introduce" wx:if="{{noUserinfo && clockList.length>0}}">
<view class="introduce" wx:if="{{clockList.length>0}}">
<view class="title">为你推荐更多优秀作品</view>
<!-- <view class="line-16"></view> -->
<view class="content">
......
......@@ -617,10 +617,12 @@ Page({
if(data.sort){
dataSort = JSON.parse(data.sort)
let index = dataSort.findIndex( item => item.name=="course");
if(index!==1){
dataSort.splice(index,1)
console.log(index)
if(index!==2){
dataSort.splice(index,2)
dataSort.splice(1,0,{name: 'course',desc: '体验课'})
}
console.log(dataSort)
}
data.sort = data.sort ? dataSort : [{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment