首页栏目
This commit is contained in:
parent
afa042ae16
commit
786f7d5d3c
7
app.js
7
app.js
@ -24,14 +24,9 @@ App({
|
|||||||
//获取手机屏幕高度、宽度
|
//获取手机屏幕高度、宽度
|
||||||
_self.globalData.windowHeight = wx.getSystemInfoSync().windowHeight
|
_self.globalData.windowHeight = wx.getSystemInfoSync().windowHeight
|
||||||
_self.globalData.windowWidth = wx.getSystemInfoSync().windowWidth
|
_self.globalData.windowWidth = wx.getSystemInfoSync().windowWidth
|
||||||
wx.setInnerAudioOption({
|
|
||||||
mixWithOther: false,
|
|
||||||
obeyMuteSwitch: false,
|
|
||||||
speakerOn: false
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
globalData: {
|
globalData: {
|
||||||
userInfo: {},
|
userInfo: {},
|
||||||
token: 'T3hrM2Y1eFB5eERaNXQ2bDdxZ3Y4elZVQnl6U3FWdlNBT3dGUENFNlNObjA5MWpTMW1CMG1iaSsvZmxGcERlMzV5RWw5TnplZjVIbmVQRTQ5SkVnWFF3YjdvWnVaRHhrL2l5TUNGWmFZcnJZVzI5UEhJdFVzdG55b3RLOTdKTzhmeFZvZ1hTd29qbnlYeWVSMURiTmpNNGJDOTFVbDVsMk5Ed3FiREh2QnpCN0RRSTM3eVViN2NvK1VQbzZiMXQyL1VodDhPaUwrd2pSU3RTWWFiYWlCbFQ4blZoRHo2c3BObFRaY1pTMjR3cW5VLzl6SEswemNoS0V2SGNLMXJiU2QrdGxOajJXeWtqYWEwbDhOTzRod00xQTdWNUxFOU9Wd1FkUWJwSHoramFPdUJ0MG9UbEJocFUzTkZiUy83Q2xaL2RVSXhLYnNMNGZhYm5DZ1VXOUtVUVVQR2FMQjFqaCs0NVowVDJrMFpjUFdpK0dZb0JKVWxTOCswamVXbkZQUWk5Vi9hQ0h3ci93QzJpVDA1aEt2ZlM1NWlPOW5MTGFNdmhLZDM4K0lscC9jejR2c29ON1dLeXhSbXF3QVNtNQ=='
|
token: ''
|
||||||
},
|
},
|
||||||
})
|
})
|
@ -1600,7 +1600,7 @@ button.icon.lg {
|
|||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
min-height: 100rpx;
|
min-height: 60rpx;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2417,7 +2417,7 @@ button.icon.lg {
|
|||||||
background-color: var(--white);
|
background-color: var(--white);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
min-height: 100rpx;
|
min-height: 60rpx;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4148,7 +4148,7 @@ l .text-depblack {
|
|||||||
.shadow-box {
|
.shadow-box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
border: 1rpx solid #f5f5f5;
|
border: 1rpx solid #f9f9f9;
|
||||||
}
|
}
|
||||||
|
|
||||||
.border-blue-radius {
|
.border-blue-radius {
|
||||||
|
@ -1,24 +1,16 @@
|
|||||||
// index.js
|
|
||||||
// 获取应用实例
|
|
||||||
const app = getApp()
|
const app = getApp()
|
||||||
|
var innerAudioContext = wx.createInnerAudioContext()
|
||||||
Page({
|
Page({
|
||||||
data: {
|
data: {
|
||||||
nameTxt: '名片'
|
nameTxt: '名片',
|
||||||
|
dataList: [],
|
||||||
|
curIndex: 0, //用来记录请求次数
|
||||||
|
speedStep: 5, //快进快退秒数
|
||||||
|
waitFlag: false,
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.doLogin()
|
this.doLogin()
|
||||||
},
|
},
|
||||||
show() {
|
|
||||||
wx.navigateTo({
|
|
||||||
url: '/pages/moments/publish/momentpublish',
|
|
||||||
})
|
|
||||||
},
|
|
||||||
showList() {
|
|
||||||
wx.navigateTo({
|
|
||||||
url: '/pages/moments/list/momentslist',
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 登录
|
// 登录
|
||||||
doLogin() {
|
doLogin() {
|
||||||
var self = this;
|
var self = this;
|
||||||
@ -34,35 +26,326 @@ Page({
|
|||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
wx.hideLoading({})
|
wx.hideLoading({})
|
||||||
console.log(res)
|
|
||||||
var token = res.data.data.split('_')[0]
|
var token = res.data.data.split('_')[0]
|
||||||
wx.setStorageSync('token', token)
|
wx.setStorageSync('token', token)
|
||||||
wx.setStorageSync('bindPhone', res.data.data.split('_')[1])
|
wx.setStorageSync('bindPhone', res.data.data.split('_')[1])
|
||||||
app.globalData.token = token
|
app.globalData.token = token
|
||||||
|
self.getMainColumn()
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
wx.hideLoading({})
|
wx.hideLoading({})
|
||||||
console.log(err)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
// {
|
|
||||||
// jsCode: res.code
|
|
||||||
// }, null, function (code, data) {
|
|
||||||
// var token = data.data.split('_')[0]
|
|
||||||
// self.setData({
|
|
||||||
// token: token,
|
|
||||||
// bindPhone: data.data.split('_')[1]
|
|
||||||
// })
|
|
||||||
// wx.setStorageSync('token', token)
|
|
||||||
// wx.setStorageSync('bindPhone', data.data.split('_')[1])
|
|
||||||
// app.globalData.token = token
|
|
||||||
// self.getUserInfo()
|
|
||||||
// self.getHomeColumnList()
|
|
||||||
// }, function (code, data) {
|
|
||||||
// app.dialog.msg(data.msg);
|
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
//获取首页展示的栏目
|
||||||
|
getMainColumn() {
|
||||||
|
var _self = this
|
||||||
|
app.http.get(app.urls.getMainColumn, {
|
||||||
|
header: {
|
||||||
|
token: app.globalData.token
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.then(res => {
|
||||||
|
wx.showLoading({
|
||||||
|
title: '加载中...',
|
||||||
|
})
|
||||||
|
_self.getMainMoment(res.data, 0)
|
||||||
|
})
|
||||||
|
.catch(err => {
|
||||||
|
wx.stopPullDownRefresh({})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getMainMoment(datas, index) {
|
||||||
|
var _self = this
|
||||||
|
var count = datas.length
|
||||||
|
if (index < count) {
|
||||||
|
app.http.get(app.urls.getMainMoment.format({
|
||||||
|
configColumnId: datas[_self.data.curIndex].configColumnId
|
||||||
|
}), {
|
||||||
|
header: {
|
||||||
|
token: app.globalData.token
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.then(res => {
|
||||||
|
if (res.data.length > 0) {
|
||||||
|
var tempItem = {
|
||||||
|
name: datas[_self.data.curIndex].configColumnName,
|
||||||
|
list: res.data
|
||||||
|
}
|
||||||
|
_self.data.dataList.push(tempItem)
|
||||||
|
}
|
||||||
|
_self.setData({
|
||||||
|
curIndex: ++_self.data.curIndex
|
||||||
|
})
|
||||||
|
_self.getMainMoment(datas, _self.data.curIndex)
|
||||||
|
})
|
||||||
|
.catch(err => {
|
||||||
|
_self.setData({
|
||||||
|
curIndex: ++_self.data.curIndex
|
||||||
|
})
|
||||||
|
_self.getMainMoment(datas, _self.data.curIndex)
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
wx.hideLoading({})
|
||||||
|
wx.stopPullDownRefresh({})
|
||||||
|
_self.buildMainData()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//构建主页显示数据
|
||||||
|
buildMainData() {
|
||||||
|
var _self = this
|
||||||
|
_self.data.dataList.forEach(it => {
|
||||||
|
it.list.forEach(item => {
|
||||||
|
item.list.forEach(iem => {
|
||||||
|
switch (iem.dataType) {
|
||||||
|
case '2': //图片
|
||||||
|
var items = iem.value.split(',')
|
||||||
|
var tempList = []
|
||||||
|
items.forEach(item => {
|
||||||
|
var tempItem = {
|
||||||
|
id: item,
|
||||||
|
path: app.urls.baseImgUrl + item,
|
||||||
|
}
|
||||||
|
tempList.push(tempItem)
|
||||||
|
})
|
||||||
|
iem.valueList = tempList
|
||||||
|
break
|
||||||
|
case '3': //音频
|
||||||
|
var items = iem.value.split(',')
|
||||||
|
var tempList = []
|
||||||
|
items.forEach(item => {
|
||||||
|
var tempItem = {
|
||||||
|
id: item, //id
|
||||||
|
path: app.urls.baseImgUrl + item, //地址
|
||||||
|
isPlay: false, //是否播放中
|
||||||
|
duration: 100000, //时长
|
||||||
|
curDuration: 0,
|
||||||
|
curDurationStr: '00:00',
|
||||||
|
totalDurationStr: '00:00'
|
||||||
|
}
|
||||||
|
tempList.push(tempItem)
|
||||||
|
})
|
||||||
|
iem.valueList = tempList
|
||||||
|
break
|
||||||
|
case '4': //视频
|
||||||
|
var items = iem.value.split(',')
|
||||||
|
var tempList = []
|
||||||
|
items.forEach(item => {
|
||||||
|
var tempItem = {
|
||||||
|
id: item,
|
||||||
|
path: app.urls.baseImgUrl + item,
|
||||||
|
imgPath: '/images/ic_temp.png'
|
||||||
|
}
|
||||||
|
tempList.push(tempItem)
|
||||||
|
})
|
||||||
|
iem.valueList = tempList
|
||||||
|
break
|
||||||
|
case '6':
|
||||||
|
var items = iem.value.split('-')
|
||||||
|
var tempList = []
|
||||||
|
items.forEach(item => {
|
||||||
|
var latlng = item.split(',')
|
||||||
|
var tempItem = {
|
||||||
|
name: '',
|
||||||
|
address: '',
|
||||||
|
latitude: latlng[0],
|
||||||
|
longitude: latlng[1],
|
||||||
|
}
|
||||||
|
tempList.push(tempItem)
|
||||||
|
})
|
||||||
|
iem.valueList = tempList
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
_self.setData({
|
||||||
|
curIndex: 0,
|
||||||
|
dataList: _self.data.dataList
|
||||||
|
})
|
||||||
|
console.log(_self.data.dataList)
|
||||||
|
},
|
||||||
|
onPullDownRefresh() {
|
||||||
|
this.setData({
|
||||||
|
dataList: []
|
||||||
|
})
|
||||||
|
this.getMainColumn()
|
||||||
|
},
|
||||||
|
//预览图片
|
||||||
|
viewImg(e) {
|
||||||
|
wx.previewImage({
|
||||||
|
urls: [e.currentTarget.dataset.url],
|
||||||
|
})
|
||||||
|
},
|
||||||
|
//预览视频
|
||||||
|
viewVideo(e) {
|
||||||
|
var url = e.currentTarget.dataset.url
|
||||||
|
wx.previewMedia({
|
||||||
|
sources: [{
|
||||||
|
url: url,
|
||||||
|
type: 'video'
|
||||||
|
}],
|
||||||
|
})
|
||||||
|
},
|
||||||
|
play(e) {
|
||||||
|
//进行播放
|
||||||
|
const _self = this
|
||||||
|
const index = e.currentTarget.dataset.index
|
||||||
|
const idx = e.currentTarget.dataset.idx
|
||||||
|
const ix = e.currentTarget.dataset.i
|
||||||
|
const a = e.currentTarget.dataset.a
|
||||||
|
var audio = e.currentTarget.dataset.item
|
||||||
|
//先需要停止其他录音文件的播放
|
||||||
|
_self.data.dataList.forEach(it => {
|
||||||
|
it.list.forEach(item => {
|
||||||
|
item.list.forEach(ix => {
|
||||||
|
if (ix.dataType == '3') {
|
||||||
|
if (ix.valueList) {
|
||||||
|
ix.valueList.forEach(ii => {
|
||||||
|
if (ii.isPlay) {
|
||||||
|
innerAudioContext.stop()
|
||||||
|
}
|
||||||
|
ii.isPlay = false
|
||||||
|
ii.curDuration = 0
|
||||||
|
ii.curDuationStr = '00:00'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
if (!audio.isPlay) {
|
||||||
|
innerAudioContext = wx.createInnerAudioContext()
|
||||||
|
innerAudioContext.src = _self.data.dataList[index].list[idx].list[ix].valueList[a].path + '.mp3'
|
||||||
|
innerAudioContext.autoplay = true
|
||||||
|
console.log(_self.data.dataList[index].list[idx].list[ix].valueList[a].path)
|
||||||
|
} else {
|
||||||
|
innerAudioContext.stop()
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
innerAudioContext.onPlay(() => {
|
||||||
|
console.log('onPlay')
|
||||||
|
_self.data.dataList[index].list[idx].list[ix].valueList[a]['isPlay'] = true
|
||||||
|
_self.setData({
|
||||||
|
dataList: _self.data.dataList
|
||||||
|
})
|
||||||
|
});
|
||||||
|
|
||||||
|
innerAudioContext.onCanplay((res) => {
|
||||||
|
// if (_self.data.waitFlag) {
|
||||||
|
// innerAudioContext.play()
|
||||||
|
// _self.setData({
|
||||||
|
// waitFlag: false
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
})
|
||||||
|
innerAudioContext.onStop((res) => {
|
||||||
|
console.log('停止播放')
|
||||||
|
_self.data.dataList[index].list[idx].list[ix].valueList[a].isPlay = false
|
||||||
|
_self.data.dataList[index].list[idx].list[ix].valueList[a].curDuration = 0
|
||||||
|
_self.data.dataList[index].list[idx].list[ix].valueList[a].curDurationStr = '00:00'
|
||||||
|
_self.setData({
|
||||||
|
dataList: _self.data.dataList,
|
||||||
|
})
|
||||||
|
innerAudioContext.destroy()
|
||||||
|
})
|
||||||
|
innerAudioContext.onEnded((res) => {
|
||||||
|
console.log(res)
|
||||||
|
console.log('播放完毕')
|
||||||
|
_self.data.dataList[index].list[idx].list[ix].valueList[a].isPlay = false
|
||||||
|
_self.data.dataList[index].list[idx].list[ix].valueList[a].curDuration = 0
|
||||||
|
_self.data.dataList[index].list[idx].list[ix].valueList[a].curDurationStr = '00:00'
|
||||||
|
_self.setData({
|
||||||
|
dataList: _self.data.dataList,
|
||||||
|
})
|
||||||
|
innerAudioContext.destroy()
|
||||||
|
})
|
||||||
|
innerAudioContext.onError((res) => {
|
||||||
|
console.log('播放错误')
|
||||||
|
console.log(res)
|
||||||
|
_self.data.dataList[index].list[idx].list[ix].valueList[a].isPlay = false
|
||||||
|
_self.data.dataList[index].list[idx].list[ix].valueList[a].curDuration = 0
|
||||||
|
_self.data.dataList[index].list[idx].list[ix].valueList[a].curDurationStr = '00:00'
|
||||||
|
_self.setData({
|
||||||
|
dataList: _self.data.dataList,
|
||||||
|
})
|
||||||
|
innerAudioContext.destroy()
|
||||||
|
})
|
||||||
|
innerAudioContext.onSeeking(() => {
|
||||||
|
// console.log(innerAudioContext.currentTime)
|
||||||
|
})
|
||||||
|
innerAudioContext.onWaiting(() => {
|
||||||
|
// console.log('onWaiting')
|
||||||
|
// innerAudioContext.pause()
|
||||||
|
// _self.setData({
|
||||||
|
// waitFlag: true
|
||||||
|
// })
|
||||||
|
})
|
||||||
|
innerAudioContext.onTimeUpdate(() => {
|
||||||
|
if (innerAudioContext.duration != Infinity) {
|
||||||
|
_self.data.dataList[index].list[idx].list[ix].valueList[a].curDuration = parseInt(innerAudioContext.currentTime)
|
||||||
|
_self.data.dataList[index].list[idx].list[ix].valueList[a].duration = parseInt(innerAudioContext.duration)
|
||||||
|
var curM = parseInt(innerAudioContext.currentTime / 60) //分钟
|
||||||
|
var curS = parseInt(innerAudioContext.currentTime % 60) //秒
|
||||||
|
var tM = parseInt(innerAudioContext.duration / 60) //分钟
|
||||||
|
var tS = parseInt(innerAudioContext.duration % 60) //秒
|
||||||
|
var curMStr = curM > 9 ? curM : '0' + curM
|
||||||
|
var curSStr = curS > 9 ? curS : '0' + curS
|
||||||
|
var totalMStr = tM > 9 ? tM : '0' + tM
|
||||||
|
var totalSStr = +tS > 9 ? tS : '0' + tS
|
||||||
|
_self.data.dataList[index].list[idx].list[ix].valueList[a].curDurationStr = curMStr + ':' + curSStr
|
||||||
|
_self.data.dataList[index].list[idx].list[ix].valueList[a].totalDurationStr = totalMStr + ':' + totalSStr
|
||||||
|
_self.setData({
|
||||||
|
dataList: _self.data.dataList
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
//倒退5秒
|
||||||
|
rewind(e) {
|
||||||
|
var _self = this
|
||||||
|
var index = e.currentTarget.dataset.index
|
||||||
|
var item = e.currentTarget.dataset.item
|
||||||
|
var idx = e.currentTarget.dataset.idx
|
||||||
|
var a = e.currentTarget.dataset.a
|
||||||
|
var ix = e.currentTarget.dataset.i
|
||||||
|
if (item.isPlay) {
|
||||||
|
_self.data.dataList[index].list[idx].list[ix].valueList[a].curDuration = _self.data.dataList[index].list[idx].list[ix].valueList[a].curDuration - _self.data.speedStep
|
||||||
|
innerAudioContext.seek(_self.data.dataList[index].list[idx].list[ix].valueList[a].curDuration)
|
||||||
|
_self.setData({
|
||||||
|
dataList: _self.data.dataList
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
//快进5秒
|
||||||
|
speed(e) {
|
||||||
|
var _self = this
|
||||||
|
var index = e.currentTarget.dataset.index
|
||||||
|
var item = e.currentTarget.dataset.item
|
||||||
|
var idx = e.currentTarget.dataset.idx
|
||||||
|
var a = e.currentTarget.dataset.a
|
||||||
|
var ix = e.currentTarget.dataset.i
|
||||||
|
if (item.isPlay) {
|
||||||
|
_self.data.dataList[index].list[idx].list[ix].valueList[a].curDuration = _self.data.dataList[index].list[idx].list[ix].valueList[a].curDuration + _self.data.speedStep
|
||||||
|
innerAudioContext.seek(_self.data.dataList[index].list[idx].list[ix].valueList[a].curDuration)
|
||||||
|
_self.setData({
|
||||||
|
dataList: _self.data.dataList
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
slider4change(e) {
|
||||||
|
var index = e.currentTarget.dataset.index
|
||||||
|
var item = e.currentTarget.dataset.item
|
||||||
|
if (item.isPlay) {
|
||||||
|
innerAudioContext.seek(e.detail.value)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
testPlay() {
|
||||||
|
innerAudioContext = wx.createInnerAudioContext()
|
||||||
|
innerAudioContext.src = 'http://192.168.0.115:8091/systemcard/route/file/download/true/aae9bede-3499-4b63-8ee3-75a5ae390335'
|
||||||
|
innerAudioContext.autoplay = true
|
||||||
|
}
|
||||||
})
|
})
|
@ -1,3 +1,4 @@
|
|||||||
{
|
{
|
||||||
|
"enablePullDownRefresh": true,
|
||||||
"usingComponents": {}
|
"usingComponents": {}
|
||||||
}
|
}
|
@ -1,11 +1,159 @@
|
|||||||
<cu-custom id="head" isCustom="{{false}}" isBack="{{false}}" isIndex="{{true}}">
|
<cu-custom id="head" isCustom="{{false}}" isBack="{{false}}" isIndex="{{true}}">
|
||||||
<view slot="content">{{nameTxt}}</view>
|
<view slot="content">{{nameTxt}}</view>
|
||||||
</cu-custom>
|
</cu-custom>
|
||||||
|
<view wx:if="{{dataList.length>0}}">
|
||||||
|
<!-- 栏目组 -->
|
||||||
|
<view wx:for="{{dataList}}" wx:key="index">
|
||||||
|
<view class="flex flex-direction margin-sm">
|
||||||
|
<!-- 栏目 -->
|
||||||
|
<view class="catelog-title" data-item="{{item}}" bindtap="showMore">
|
||||||
|
<view class="action">
|
||||||
|
<view class="title intro-title">
|
||||||
|
<text class="cuIcon-vipcard"></text>
|
||||||
|
<text> {{item.name}}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="action">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view wx:for="{{item.list}}" wx:for-index="idx" wx:key="idx" wx:for-item="it"
|
||||||
|
class="padding-lef-sm padding-right-sm bg-white radius flex flex-direction" style="width:100%;">
|
||||||
|
<!-- 栏目数据 -->
|
||||||
|
<view wx:for="{{it.list}}" wx:for-index="i" wx:for-item="child" wx:key="i">
|
||||||
|
<!-- 具体数据 -->
|
||||||
|
<!-- 文本 -->
|
||||||
|
<view wx:if="{{child.dataType=='1'}}" class="align-center">
|
||||||
|
<view class="cu-bar bg-white">
|
||||||
|
<view class="action">
|
||||||
|
<text class="cuIcon-vipcard"></text> <text>{{child.comment}}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="bg-white">
|
||||||
|
<view class="cu-form-group">
|
||||||
|
<view id="content" class="padding-left-xs padding-right-xs margin-left-xs margin-right-xs"
|
||||||
|
style="line-height:40rpx;">
|
||||||
|
{{child.value}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- 图片 -->
|
||||||
|
<view wx:if="{{child.dataType=='2'}}">
|
||||||
|
<view class="cu-bar bg-white">
|
||||||
|
<view class="action">
|
||||||
|
<text class="cuIcon-vipcard"></text> <text>{{child.comment}}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="cu-form-group padding-sm">
|
||||||
|
<view class="grid col-4 grid-square flex-sub">
|
||||||
|
<view class="bg-img" wx:for="{{child.valueList}}" wx:key="d" wx:for-item="photo" catchtap="viewImg"
|
||||||
|
data-url="{{photo.path}}">
|
||||||
|
<image src='{{photo.path}}' mode='scaleToFill'></image>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- 视频 -->
|
||||||
|
<view wx:if="{{child.dataType=='4'}}">
|
||||||
|
<view class="cu-bar bg-white">
|
||||||
|
<view class="action">
|
||||||
|
<text class="cuIcon-vipcard"></text> <text>{{child.comment}}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="cu-form-group margin-top-sm padding-sm" style="border:1rpx solid #f9f9f9;border-radius:10rpx;">
|
||||||
|
<view class="grid col-{{count>3 ? count : 1}} grid-square flex-sub">
|
||||||
|
<view class="bg-img" wx:for="{{child.valueList}}" wx:for-index="d" wx:key="d" wx:for-item="video"
|
||||||
|
catchtap="viewVideo" style="{{count > 3 ? '' :'height:280rpx;width:100%;padding-bottom:0px;'}}"
|
||||||
|
data-url="{{video.path}}">
|
||||||
|
<image style="width:100%;height:100%;" src='{{video.imgPath}}' mode='scaleToFill'></image>
|
||||||
|
<view class="{{count > 3 ? 'play-box-arrow-pos':'play-box-arrow-flex'}}">
|
||||||
|
<image src="/images/ic_video_play.png" mode="scaleToFill"
|
||||||
|
style="{{count > 3 ? 'width:32px;height:32px':'height:64px;width:64px;'}}"></image>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<view bindtap="show">
|
</view>
|
||||||
测试
|
<!-- 音频 -->
|
||||||
</view>
|
<view wx:if="{{child.dataType=='3'}}" style="width:100%;">
|
||||||
|
<view class="cu-bar bg-white">
|
||||||
|
<view class="action">
|
||||||
|
<text class="cuIcon-vipcard"></text> <text>{{child.comment}}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="cu-form-group padding-sm">
|
||||||
|
<view class="flex align-center shadow-box margin-top-xs" style="width:100%;" wx:for="{{child.valueList}}"
|
||||||
|
wx:for-index="a" wx:key="a" wx:for-item="audio">
|
||||||
|
<image src="/images/ic_user_default.png" mode="scaleToFill" style="width:80rpx;height:80rpx;">
|
||||||
|
</image>
|
||||||
|
<view class="play-box">
|
||||||
|
<view class="flex justify-between align-center" style="width:80%;">
|
||||||
|
<text>{{audio.curDurationStr}}</text>
|
||||||
|
<slider class="flex-sub" bindchange="slider4change" min="{{0}}" max="{{audio.duration}}"
|
||||||
|
value="{{audio.curDuration}}" backgroundColor="#cacaca" activeColor="#1296db"
|
||||||
|
data-index="{{index}}" data-idx="{{idx}}" data-i="{{i}}" data-item="{{audio}}" data-a="{{a}}"
|
||||||
|
block-size="14" block-color="#1296db" />
|
||||||
|
<text>{{audio.totalDurationStr}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="flex justify-between" style="width:80%;">
|
||||||
|
<image src="/images/ic_audio_rewind.png" mode="scaleToFill" data-index="{{index}}"
|
||||||
|
data-idx="{{idx}}" data-a="{{a}}" data-i="{{i}}" data-item="{{audio}}" catchtap="rewind"></image>
|
||||||
|
<image src="{{audio.isPlay ? '/images/ic_audio_playing.png':'/images/ic_audio_play.png'}}"
|
||||||
|
mode="scaleToFill" catchtap="play" data-index="{{index}}" data-i="{{i}}" data-idx="{{idx}}"
|
||||||
|
data-a="{{a}}" data-item="{{audio}}"></image>
|
||||||
|
<image src="/images/ic_audio_speed.png" mode="scaleToFill" catchtap="speed" data-index="{{index}}"
|
||||||
|
data-a="{{a}}" data-idx="{{idx}}" data-i="{{i}}" data-item="{{audio}}"></image>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<view bindtap="showList">
|
</view>
|
||||||
列表
|
<!-- 地图定位 -->
|
||||||
|
<view wx:if="{{child.dataType=='6'}}">
|
||||||
|
<view class="cu-bar bg-white">
|
||||||
|
<view class="action">
|
||||||
|
<text class="cuIcon-vipcard"></text> <text>{{child.comment}}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="padding-sm">
|
||||||
|
<view wx:for="{{child.valueList}}" wx:key="mindex" wx:for-index="mindex" wx:for-item="m"
|
||||||
|
style="width:100%;" class="margin-top-xs">
|
||||||
|
<view class="flex justify-between">
|
||||||
|
<view>
|
||||||
|
</view>
|
||||||
|
<view></view>
|
||||||
|
</view>
|
||||||
|
<view style="border-radius:10rpx;overflow:hidden;margin-top:10rpx;">
|
||||||
|
<map style="width:100%;height:300rpx;" longitude="{{m.longitude}}" latitude="{{m.latitude}}"
|
||||||
|
scale="12" enable-scroll="{{false}}" enable-zoom="{{false}}" enable-rotate="{{false}}"
|
||||||
|
enable-traffic="{{false}}" markers="{{[{latitude:m.latitude,longitude:m.longitude}]}}"></map>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- 文本域 -->
|
||||||
|
<view wx:if="{{child.dataType == '7'}}">
|
||||||
|
<view class="cu-bar bg-white">
|
||||||
|
<view class="action">
|
||||||
|
<text class="cuIcon-vipcard"></text> <text>{{child.comment}}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="bg-white">
|
||||||
|
<view class="cu-form-group">
|
||||||
|
<view id="content" class="padding-left-xs padding-right-xs margin-left-xs margin-right-xs"
|
||||||
|
style="line-height:40rpx;">
|
||||||
|
{{child.value}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view wx:else style="margin-top:200rpx;width:100%;">
|
||||||
|
<van-empty description="暂无数据" image="/images/ic_empty_data.png" />
|
||||||
</view>
|
</view>
|
@ -17,3 +17,35 @@
|
|||||||
.usermotto {
|
.usermotto {
|
||||||
margin-top: 200px;
|
margin-top: 200px;
|
||||||
}
|
}
|
||||||
|
.intro-title image {
|
||||||
|
width: 28rpx;
|
||||||
|
height: 30rpx;
|
||||||
|
vertical-align: middle;
|
||||||
|
margin-top: -4px;
|
||||||
|
}
|
||||||
|
.catelog-title {
|
||||||
|
display: flex;
|
||||||
|
position: relative;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.catelog-title .action {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
max-width: 100%;
|
||||||
|
padding-right: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 32rpx;
|
||||||
|
position: relative;
|
||||||
|
color: #fff;
|
||||||
|
border-top-right-radius: 20rpx;
|
||||||
|
border-top-left-radius: 20rpx;
|
||||||
|
padding-left: 15rpx;
|
||||||
|
background: #0054bd;
|
||||||
|
display: inline-block;
|
||||||
|
padding: 25rpx 35rpx 20rpx;
|
||||||
|
}
|
@ -45,7 +45,7 @@ Page({
|
|||||||
setInter: '', //定时器
|
setInter: '', //定时器
|
||||||
currentItem: undefined,
|
currentItem: undefined,
|
||||||
isAuthAudio: false,
|
isAuthAudio: false,
|
||||||
title:'栏目内容修改'
|
title: '栏目内容修改'
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -55,7 +55,7 @@ Page({
|
|||||||
this.setData({
|
this.setData({
|
||||||
columnId: options.id,
|
columnId: options.id,
|
||||||
uId: options.uid,
|
uId: options.uid,
|
||||||
title:options.title+'修改'
|
title: options.title + '修改'
|
||||||
})
|
})
|
||||||
this.checkPermission()
|
this.checkPermission()
|
||||||
this.getMomentContent()
|
this.getMomentContent()
|
||||||
@ -606,6 +606,7 @@ Page({
|
|||||||
},
|
},
|
||||||
//删除视频
|
//删除视频
|
||||||
delAudio(e) {
|
delAudio(e) {
|
||||||
|
console.log(e)
|
||||||
let _self = this
|
let _self = this
|
||||||
wx.showModal({
|
wx.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
@ -614,9 +615,9 @@ Page({
|
|||||||
confirmText: '确定',
|
confirmText: '确定',
|
||||||
success: res => {
|
success: res => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
_self.data.audioList.splice(e.currentTarget.dataset.index, 1)
|
_self.data.fieldList[e.currentTarget.dataset.index].valueList.splice(e.currentTarget.dataset.idx, 1)
|
||||||
_self.setData({
|
_self.setData({
|
||||||
audioList: _self.data.audioList
|
fieldList: _self.data.fieldList
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -800,12 +801,12 @@ Page({
|
|||||||
});
|
});
|
||||||
|
|
||||||
innerAudioContext.onCanplay((res) => {
|
innerAudioContext.onCanplay((res) => {
|
||||||
if (_self.data.waitFlag) {
|
// if (_self.data.waitFlag) {
|
||||||
innerAudioContext.play()
|
// innerAudioContext.play()
|
||||||
_self.setData({
|
// _self.setData({
|
||||||
waitFlag: false
|
// waitFlag: false
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
})
|
})
|
||||||
innerAudioContext.onStop((res) => {
|
innerAudioContext.onStop((res) => {
|
||||||
_self.data.fieldList[index].valueList[idx].isPlay = false
|
_self.data.fieldList[index].valueList[idx].isPlay = false
|
||||||
@ -835,10 +836,10 @@ Page({
|
|||||||
console.log(innerAudioContext.currentTime)
|
console.log(innerAudioContext.currentTime)
|
||||||
})
|
})
|
||||||
innerAudioContext.onWaiting(() => {
|
innerAudioContext.onWaiting(() => {
|
||||||
innerAudioContext.pause()
|
// innerAudioContext.pause()
|
||||||
_self.setData({
|
// _self.setData({
|
||||||
waitFlag: true
|
// waitFlag: true
|
||||||
})
|
// })
|
||||||
})
|
})
|
||||||
innerAudioContext.onTimeUpdate(() => {
|
innerAudioContext.onTimeUpdate(() => {
|
||||||
if (innerAudioContext.duration != Infinity) {
|
if (innerAudioContext.duration != Infinity) {
|
||||||
|
@ -85,13 +85,13 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="flex justify-between" style="width:80%;">
|
<view class="flex justify-between" style="width:80%;">
|
||||||
<image src="/images/ic_audio_rewind.png" mode="scaleToFill" data-index="{{index}}"
|
<image src="/images/ic_audio_rewind.png" mode="scaleToFill" data-index="{{index}}"
|
||||||
data-idx="{{idx}}" data-item="{{audio}}" bindtap="rewind"></image>
|
data-idx="{{idx}}" data-item="{{audio}}" catchtap="rewind"></image>
|
||||||
<image
|
<image
|
||||||
src="{{audio.isPlay ? '/images/ic_audio_playing.png':'/images/ic_audio_play.png'}}"
|
src="{{audio.isPlay ? '/images/ic_audio_playing.png':'/images/ic_audio_play.png'}}"
|
||||||
mode="scaleToFill" bindtap="play" data-index="{{index}}" data-idx="{{idx}}"
|
mode="scaleToFill" catchtap="play" data-index="{{index}}" data-idx="{{idx}}"
|
||||||
data-item="{{audio}}">
|
data-item="{{audio}}">
|
||||||
</image>
|
</image>
|
||||||
<image src="/images/ic_audio_speed.png" mode="scaleToFill" bindtap="speed"
|
<image src="/images/ic_audio_speed.png" mode="scaleToFill" catchtap="speed"
|
||||||
data-index="{{index}}" data-idx="{{idx}}" data-item="{{audio}}"></image>
|
data-index="{{index}}" data-idx="{{idx}}" data-item="{{audio}}"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -158,7 +158,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex flex-direction align-center bg-white radius padding-sm">
|
<view class="flex flex-direction align-center bg-white radius padding-sm">
|
||||||
<view wx:if="{{item.valueList.length>0}}">
|
<view wx:if="{{item.valueList.length>0}}" style="width:100%;">
|
||||||
<view wx:for="{{item.valueList}}" wx:for-index="idx" wx:key="idx" wx:for-item="m"
|
<view wx:for="{{item.valueList}}" wx:for-index="idx" wx:key="idx" wx:for-item="m"
|
||||||
style="width:100%;" class="margin-top-xs">
|
style="width:100%;" class="margin-top-xs">
|
||||||
<view class="flex justify-between">
|
<view class="flex justify-between">
|
||||||
|
@ -208,12 +208,12 @@ Page({
|
|||||||
});
|
});
|
||||||
|
|
||||||
innerAudioContext.onCanplay((res) => {
|
innerAudioContext.onCanplay((res) => {
|
||||||
if (_self.data.waitFlag) {
|
// if (_self.data.waitFlag) {
|
||||||
innerAudioContext.play()
|
// innerAudioContext.play()
|
||||||
_self.setData({
|
// _self.setData({
|
||||||
waitFlag: false
|
// waitFlag: false
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
})
|
})
|
||||||
innerAudioContext.onStop((res) => {
|
innerAudioContext.onStop((res) => {
|
||||||
_self.data.dataList[index].list[idx].valueList[ix].isPlay = false
|
_self.data.dataList[index].list[idx].valueList[ix].isPlay = false
|
||||||
@ -243,10 +243,10 @@ Page({
|
|||||||
console.log(innerAudioContext.currentTime)
|
console.log(innerAudioContext.currentTime)
|
||||||
})
|
})
|
||||||
innerAudioContext.onWaiting(() => {
|
innerAudioContext.onWaiting(() => {
|
||||||
innerAudioContext.pause()
|
// innerAudioContext.pause()
|
||||||
_self.setData({
|
// _self.setData({
|
||||||
waitFlag: true
|
// waitFlag: true
|
||||||
})
|
// })
|
||||||
})
|
})
|
||||||
innerAudioContext.onTimeUpdate(() => {
|
innerAudioContext.onTimeUpdate(() => {
|
||||||
if (innerAudioContext.duration != Infinity) {
|
if (innerAudioContext.duration != Infinity) {
|
||||||
@ -292,7 +292,7 @@ Page({
|
|||||||
var idx = e.currentTarget.dataset.idx
|
var idx = e.currentTarget.dataset.idx
|
||||||
var ix = e.currentTarget.dataset.i
|
var ix = e.currentTarget.dataset.i
|
||||||
if (item.isPlay) {
|
if (item.isPlay) {
|
||||||
_self.data.dataList[index].list[idx].valueList[ix].curDuration = _self.data.dataList[index].list[idx].valueList[ix] + _self.data.speedStep
|
_self.data.dataList[index].list[idx].valueList[ix].curDuration = _self.data.dataList[index].list[idx].valueList[ix].curDuration + _self.data.speedStep
|
||||||
innerAudioContext.seek(_self.data.dataList[index].list[idx].valueList[ix].curDuration)
|
innerAudioContext.seek(_self.data.dataList[index].list[idx].valueList[ix].curDuration)
|
||||||
_self.setData({
|
_self.setData({
|
||||||
dataList: _self.data.dataList
|
dataList: _self.data.dataList
|
||||||
|
@ -68,11 +68,11 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="flex justify-between" style="width:80%;">
|
<view class="flex justify-between" style="width:80%;">
|
||||||
<image src="/images/ic_audio_rewind.png" mode="scaleToFill" data-index="{{index}}"
|
<image src="/images/ic_audio_rewind.png" mode="scaleToFill" data-index="{{index}}"
|
||||||
data-idx="{{idx}}" data-i="{{i}}" data-item="{{audio}}" bindtap="rewind"></image>
|
data-idx="{{idx}}" data-i="{{i}}" data-item="{{audio}}" catchtap="rewind"></image>
|
||||||
<image src="{{audio.isPlay ? '/images/ic_audio_playing.png':'/images/ic_audio_play.png'}}"
|
<image src="{{audio.isPlay ? '/images/ic_audio_playing.png':'/images/ic_audio_play.png'}}"
|
||||||
mode="scaleToFill" bindtap="play" data-index="{{index}}" data-i="{{i}}"
|
mode="scaleToFill" catchtap="play" data-index="{{index}}" data-i="{{i}}"
|
||||||
data-idx="{{idx}}" data-item="{{audio}}"></image>
|
data-idx="{{idx}}" data-item="{{audio}}"></image>
|
||||||
<image src="/images/ic_audio_speed.png" mode="scaleToFill" bindtap="speed"
|
<image src="/images/ic_audio_speed.png" mode="scaleToFill" catchtap="speed"
|
||||||
data-index="{{index}}" data-idx="{{idx}}" data-i="{{i}}" data-item="{{audio}}"></image>
|
data-index="{{index}}" data-idx="{{idx}}" data-i="{{i}}" data-item="{{audio}}"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -608,7 +608,7 @@ Page({
|
|||||||
var _self = this;
|
var _self = this;
|
||||||
clearInterval(_self.data.setInter);
|
clearInterval(_self.data.setInter);
|
||||||
// 获取到结束时间
|
// 获取到结束时间
|
||||||
if (_self.data.speck_time > 3) {
|
if (_self.data.speck_time > 10) {
|
||||||
//清除计时器 即清除setInter
|
//清除计时器 即清除setInter
|
||||||
clearInterval(_self.data.setInter);
|
clearInterval(_self.data.setInter);
|
||||||
// 获取到结束时间
|
// 获取到结束时间
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<view wx:for="{{fieldList}}" wx:key="index">
|
<view wx:for="{{fieldList}}" wx:key="index">
|
||||||
<!-- 文本 -->
|
<!-- 文本 -->
|
||||||
<view wx:if="{{item.dataType == '1'}}" class="margin-top-xs">
|
<view wx:if="{{item.dataType == '1'}}" class="margin-top-xs">
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group padding-xs">
|
||||||
<view class="title margin-left-sm">{{item.comment}}</view>
|
<view class="title margin-left-sm">{{item.comment}}</view>
|
||||||
<input placeholder="请输入内容" maxlength="{{item.maxLength}}" data-key="{{item.name}}"
|
<input placeholder="请输入内容" maxlength="{{item.maxLength}}" data-key="{{item.name}}"
|
||||||
data-value="{{item.value}}" bindinput="inputText" data-index="{{index}}"></input>
|
data-value="{{item.value}}" bindinput="inputText" data-index="{{index}}"></input>
|
||||||
@ -20,7 +20,7 @@
|
|||||||
<text>{{item.comment}}</text>
|
<text>{{item.comment}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="bg-white">
|
<view class="bg-white padding-xs">
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group">
|
||||||
<textarea class="border-line padding-left-xs padding-right-xs margin-left-xs margin-right-xs"
|
<textarea class="border-line padding-left-xs padding-right-xs margin-left-xs margin-right-xs"
|
||||||
maxlength="{{item.maxLength}}" data-key="{{item.name}}" data-value="{{item.value}}"
|
maxlength="{{item.maxLength}}" data-key="{{item.name}}" data-value="{{item.value}}"
|
||||||
@ -38,7 +38,7 @@
|
|||||||
{{item.valueList.length}}/{{item.maxCount}}
|
{{item.valueList.length}}/{{item.maxCount}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group padding-xs">
|
||||||
<view class="grid col-4 grid-square flex-sub">
|
<view class="grid col-4 grid-square flex-sub">
|
||||||
<view class="bg-img" wx:for="{{item.valueList}}" wx:for-index="idx" wx:key="idx"
|
<view class="bg-img" wx:for="{{item.valueList}}" wx:for-index="idx" wx:key="idx"
|
||||||
bindtap="viewImg" wx:for-item="photo" data-url="{{photo.path}}">
|
bindtap="viewImg" wx:for-item="photo" data-url="{{photo.path}}">
|
||||||
@ -122,7 +122,7 @@
|
|||||||
{{item.valueList.length}}/{{item.maxCount}}
|
{{item.valueList.length}}/{{item.maxCount}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group padding-xs">
|
||||||
<view class="grid col-4 grid-square flex-sub">
|
<view class="grid col-4 grid-square flex-sub">
|
||||||
<view class="bg-img" wx:for="{{item.valueList}}" wx:for-index="idx" wx:key="idx"
|
<view class="bg-img" wx:for="{{item.valueList}}" wx:for-index="idx" wx:key="idx"
|
||||||
wx:for-item="video" bindtap="viewVideo" data-url="{{video.path}}">
|
wx:for-item="video" bindtap="viewVideo" data-url="{{video.path}}">
|
||||||
@ -140,8 +140,8 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 链接 -->
|
<!-- 链接 -->
|
||||||
<view wx:if="{{item.dataType == '5'}}" class=" margin-top-xs">
|
<view wx:if="{{item.dataType == '5'}}" class=" margin-top-xs">
|
||||||
<view class="cu-form-group">
|
<view class="cu-form-group ">
|
||||||
<view class="title margin-left-sm">{{item.comment}}</view>
|
<view class="title margin-left-sm padding-xs">{{item.comment}}</view>
|
||||||
<input placeholder="请输入内容" maxlength="{{item.maxLength}}" data-key="{{item.name}}"
|
<input placeholder="请输入内容" maxlength="{{item.maxLength}}" data-key="{{item.name}}"
|
||||||
data-value="{{item.value}}" bindinput="inputText" data-index="{{index}}"></input>
|
data-value="{{item.value}}" bindinput="inputText" data-index="{{index}}"></input>
|
||||||
</view>
|
</view>
|
||||||
|
12
utils/api.js
12
utils/api.js
@ -49,11 +49,13 @@ var apis = {
|
|||||||
|
|
||||||
//个人中心列表
|
//个人中心列表
|
||||||
//栏目数据
|
//栏目数据
|
||||||
getMomentsList: `app/configcolumndata/listrelease/{configColumnId}`, //获取栏目数据列表
|
getMomentsList: `app/configcolumndata/list/{configColumnId}`, //获取栏目数据列表
|
||||||
doSaveMoments: `app/configcolumndata/saverelease/{configColumnId}`, //保存栏目数据
|
doSaveMoments: `app/configcolumndata/save/{configColumnId}`, //保存栏目数据
|
||||||
getMomentsField: `app/configcolumndata/listfieldrelease/{configColumnId}`, //获取栏目字段列表
|
getMomentsField: `app/configcolumndata/listfield/{configColumnId}`, //获取栏目字段列表
|
||||||
doDelMoment: `app/configcolumndata/deleterelease/{configColumnId}/{uid}`, //删除栏目数据
|
doDelMoment: `app/configcolumndata/delete/{configColumnId}/{uid}`, //删除栏目数据
|
||||||
getMomentsContent: `app/configcolumndata/getrelease/{configColumnId}/{uid}`, //获取栏目数据
|
getMomentsContent: `app/configcolumndata/get/{configColumnId}/{uid}`, //获取栏目数据
|
||||||
|
getMainColumn: `app/configcolumn/listhome`, //获取首页显示栏目
|
||||||
|
getMainMoment: `app/configcolumndata/list/{configColumnId}`, //获取首页栏目数据 通过栏目ID获取栏目下的数据列表(包含每条数据的字段集合) 传入userId参数则查询指定人的 , 没传入userId参数则查询当前token的
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
Loading…
Reference in New Issue
Block a user