Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
wechatapp.shangjiadao.com
Commits
f323a04f
Commit
f323a04f
authored
Mar 20, 2020
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'模板接口添加'
parent
bbcbd058
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
255 additions
and
10 deletions
+255
-10
list.wxml
business/pages/themead/list.wxml
+118
-1
list.wxss
business/pages/themead/list.wxss
+89
-0
api.js
constants/api.js
+3
-1
themead.js
service/business/themead.js
+37
-0
themeindex.js
service/customer/themeindex.js
+8
-8
No files found.
business/pages/themead/list.wxml
View file @
f323a04f
<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>
business/pages/themead/list.wxss
View file @
f323a04f
.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
constants/api.js
View file @
f323a04f
...
...
@@ -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`
,
//我的菜单列表
}
}
}
...
...
service/business/themead.js
0 → 100644
View file @
f323a04f
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
service/customer/themeindex.js
View file @
f323a04f
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment