Commit f323a04f authored by wangxuelai's avatar wangxuelai

'模板接口添加'

parent bbcbd058
<wxs src="../../../filter/index.wxs" module="filter" />
<view class="container" style="display: {{videostatus.videoShow ? 'none' : 'block'}}">
营销页列表
<view class="helpenterbox">
<text class="helpenter">打卡营销页是什么?</text>
</view>
<view class="listbox">
<view class="listitem">
<image class="itemcover" src="https://cdn.img.shangjiadao.cn/qingxiao/daka/images/2c/sharemoretheme/newunlockbg.png" mode="aspectFill"></image>
<view class="iteminfo">
<view>
<view class="itemtitle">小天鹅舞蹈班21天拉伸打小天鹅舞蹈班21天拉伸打卡小天鹅舞蹈班21天拉伸打卡</view>
<view class="itemdesc">养成练字习惯将有助于培养耐性,同时还能陶冶情操、提升审美能养成练字习惯将有助于培养耐性,同时还能陶冶情操、提升审美能力</view>
</view>
<view class="itembottom">
<view class="status">当前使用</view>
<view class="itembtnbox">
<view class="itembtn">立即使用</view>
<view class="itembtn">查看模板</view>
</view>
</view>
</view>
</view>
<view class="listitem">
<image class="itemcover" src="https://cdn.img.shangjiadao.cn/qingxiao/daka/images/2c/sharemoretheme/newunlockbg.png" mode="aspectFill"></image>
<view class="iteminfo">
<view>
<view class="itemtitle">小天鹅舞蹈班21天拉伸打小天鹅舞蹈班21天拉伸打卡小天鹅舞蹈班21天拉伸打卡</view>
<view class="itemdesc">养成练字习惯将有助于培养耐性,同时还能陶冶情操、提升审美能养成练字习惯将有助于培养耐性,同时还能陶冶情操、提升审美能力</view>
</view>
<view class="itembottom">
<view class="status">当前使用</view>
<view class="itembtnbox">
<view class="itembtn">立即使用</view>
<view class="itembtn">查看模板</view>
</view>
</view>
</view>
</view>
<view class="listitem">
<image class="itemcover" src="https://cdn.img.shangjiadao.cn/qingxiao/daka/images/2c/sharemoretheme/newunlockbg.png" mode="aspectFill"></image>
<view class="iteminfo">
<view>
<view class="itemtitle">小天鹅舞蹈班21天拉伸打小天鹅舞蹈班21天拉伸打卡小天鹅舞蹈班21天拉伸打卡</view>
<view class="itemdesc">养成练字习惯将有助于培养耐性,同时还能陶冶情操、提升审美能养成练字习惯将有助于培养耐性,同时还能陶冶情操、提升审美能力</view>
</view>
<view class="itembottom">
<view class="status">当前使用</view>
<view class="itembtnbox">
<view class="itembtn">立即使用</view>
<view class="itembtn">查看模板</view>
</view>
</view>
</view>
</view>
<view class="listitem">
<image class="itemcover" src="https://cdn.img.shangjiadao.cn/qingxiao/daka/images/2c/sharemoretheme/newunlockbg.png" mode="aspectFill"></image>
<view class="iteminfo">
<view>
<view class="itemtitle">小天鹅舞蹈班21天拉伸打小天鹅舞蹈班21天拉伸打卡小天鹅舞蹈班21天拉伸打卡</view>
<view class="itemdesc">养成练字习惯将有助于培养耐性,同时还能陶冶情操、提升审美能养成练字习惯将有助于培养耐性,同时还能陶冶情操、提升审美能力</view>
</view>
<view class="itembottom">
<view class="status">当前使用</view>
<view class="itembtnbox">
<view class="itembtn">立即使用</view>
<view class="itembtn">查看模板</view>
</view>
</view>
</view>
</view>
<view class="listitem">
<image class="itemcover" src="https://cdn.img.shangjiadao.cn/qingxiao/daka/images/2c/sharemoretheme/newunlockbg.png" mode="aspectFill"></image>
<view class="iteminfo">
<view>
<view class="itemtitle">小天鹅舞蹈班21天拉伸打小天鹅舞蹈班21天拉伸打卡小天鹅舞蹈班21天拉伸打卡</view>
<view class="itemdesc">养成练字习惯将有助于培养耐性,同时还能陶冶情操、提升审美能养成练字习惯将有助于培养耐性,同时还能陶冶情操、提升审美能力</view>
</view>
<view class="itembottom">
<view class="status">当前使用</view>
<view class="itembtnbox">
<view class="itembtn">立即使用</view>
<view class="itembtn">查看模板</view>
</view>
</view>
</view>
</view>
<view class="listitem">
<image class="itemcover" src="https://cdn.img.shangjiadao.cn/qingxiao/daka/images/2c/sharemoretheme/newunlockbg.png" mode="aspectFill"></image>
<view class="iteminfo">
<view>
<view class="itemtitle">小天鹅舞蹈班21天拉伸打小天鹅舞蹈班21天拉伸打卡小天鹅舞蹈班21天拉伸打卡</view>
<view class="itemdesc">养成练字习惯将有助于培养耐性,同时还能陶冶情操、提升审美能养成练字习惯将有助于培养耐性,同时还能陶冶情操、提升审美能力</view>
</view>
<view class="itembottom">
<view class="status">当前使用</view>
<view class="itembtnbox">
<view class="itembtn">立即使用</view>
<view class="itembtn">查看模板</view>
</view>
</view>
</view>
</view>
<view class="listitem">
<image class="itemcover" src="https://cdn.img.shangjiadao.cn/qingxiao/daka/images/2c/sharemoretheme/newunlockbg.png" mode="aspectFill"></image>
<view class="iteminfo">
<view>
<view class="itemtitle">小天鹅舞蹈班21天拉伸打小天鹅舞蹈班21天拉伸打卡小天鹅舞蹈班21天拉伸打卡</view>
<view class="itemdesc">养成练字习惯将有助于培养耐性,同时还能陶冶情操、提升审美能养成练字习惯将有助于培养耐性,同时还能陶冶情操、提升审美能力</view>
</view>
<view class="itembottom">
<view class="status">当前使用</view>
<view class="itembtnbox">
<view class="itembtn">立即使用</view>
<view class="itembtn">查看模板</view>
</view>
</view>
</view>
</view>
</view>
<view class="adpage">新建打卡营销页</view>
</view>
.container {
min-height: 100vh;
background-color: #fff;
padding: 0 20rpx 28rpx;
}
.helpenterbox {
text-align: right;
line-height: 86rpx;
}
.helpenter {
color: #16B0FD;
font-size: 22rpx;
}
.listitem {
border: 1px solid #EBEDF0;
border-radius: 4rpx;
background-color: #fff;
padding: 12rpx;
display: flex;
align-items: flex-start;
margin-bottom: 20rpx;
}
.itemcover {
width: 256rpx;
height: 160rpx;
margin-right: 12rpx;
}
.iteminfo {
width: 418rpx;
height: 160rpx;
display: flex;
justify-content: space-between;
flex-direction: column;
}
.itemtitle {
color: #222222;
font-size: 26rpx;
text-overflow: -o-ellipsis-lastline;
letter-spacing: 0;
overflow: hidden;
display: -webkit-box;
text-overflow: ellipsis;
-webkit-line-clamp: 2; /*要显示的行数*/
-webkit-box-orient: vertical;
font-size:12px;
margin-bottom: 8rpx;
}
.itemdesc {
color: #666666;
font-size: 22rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.itembottom {
display: flex;
align-items: flex-end;
justify-content: space-between;
}
.status {
color: #FEA917;
font-size: 22rpx;
line-height: 1;
}
.itembtnbox {
display: flex;
align-items: center;
}
.itembtn {
margin-left: 20rpx;
width: 104rpx;
height: 40rpx;
color: #fff;
font-size: 22rpx;
display: flex;
align-items: center;
justify-content: center;
background-color: #16B0FD;
border-radius: 4rpx;
}
.adpage {
text-align: center;
color: #16B0FD;
font-size: 28rpx;
width: 100%;
/* position: absolute; */
/* left: 0; */
/* bottom: 28rpx; */
}
\ No newline at end of file
......@@ -377,7 +377,6 @@ const apis = {
memberMe: `${api}member/me`,//获取当前身份
getschooluuid: `${api}member/school_uuid`,// 简单报名(加入学校)获取uuid
subjectTemplates: `${api}member/subject_templates`,//主题模板列表
},
shopeditor: {
infoGet: `${api}member/clock/address/get`,
......@@ -549,6 +548,9 @@ const apis = {
// 权限配置
permissionMgt: {
myMenulist: `${api}member/erp/my_menus`, //我的菜单列表
},
themeAd: {
index: `${api}member/landing_pages`, //我的菜单列表
}
}
}
......
import {
wxRequest
} from '../../utilities/request.js';
import apis from '../../constants/api.js';
function getThemeAdList (data) { // 获取主题营销页列表
return wxRequest({
role: '2b',
url: apis.business.themeAd.index,
data,
method: 'GET',
errorresolve: 1,
})
}
function getThemeAdDetail (data) { // 获取主题营销页详情
return wxRequest({
role: '2b',
url: `apis.business.themeAd.index/${data.id}`,
data,
method: 'GET',
errorresolve: 1,
})
}
function editThemeAd (data) { // 新增或修改主题营销模板
const { id } = data;
return wxRequest({
role: '2b',
url: id == 0 ? apis.business.themeAd.index : `apis.business.themeAd.index/${data.id}`,
data,
method: id == 0 ? 'POST' : 'PUT',
errorresolve: 1,
})
}
export {
getThemeAdList,
getThemeAdDetail,
editThemeAd,
}
\ No newline at end of file
......@@ -50,14 +50,14 @@ function getmycalendar (data) {
errorresolve: 1,
})
}
function getmycalendar (data) {
return wxRequest({
url: apis.customer.themeIndex.mycalendar,
data,
method: 'GET',
errorresolve: 1,
})
}
// function getmycalendar (data) {
// return wxRequest({
// url: apis.customer.themeIndex.mycalendar,
// data,
// method: 'GET',
// errorresolve: 1,
// })
// }
function subjectSignStudents (data) {//主题报名学员
return wxRequest({
url: apis.customer.circleIndex.subjectStudents,
......
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