Commit e7db956e by 李长胜

xiugai

1 parent dbc949cf
......@@ -314,6 +314,7 @@ mounted () {
this.ruleForm.price = res.goodPrice
this.ruleForm.marketPrice = res.marketPrice
this.ruleForm.linkUrl = res.freeUrl
this.ruleForm.tryAble=res.tryAble
})
},
openEditWrap() {
......
......@@ -4,7 +4,13 @@
<div class="live-room container">
<div class="btnWrap">
<el-button :size="size" type="primary" @click="handleCreate" icon="el-icon-plus">创建套餐</el-button>
<el-button :size="size" @click="isDialogVisible = true">查看示例效果</el-button>
<!-- @click="isDialogVisible = true" -->
<div class="seeBtnWrap">
<el-button :size="size" @click="previewPic">查看示例效果</el-button>
<div class="demo-image__preview">
<el-image ref="previewImg" style="width: 110px; height: 32px" :src="surl" :preview-src-list="srcList"></el-image>
</div>
</div>
</div>
<GLTable ref="memberSetMealRef" :noDataImg="url" @setTableFinishFun="setTableFinishFun" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<span slot="list" slot-scope="scope">
......@@ -28,21 +34,17 @@
</span>
</GLTable>
</div>
<!-- btnCancelLabel="关闭" -->
<!-- btnCancelLabel="关闭" -->
<glsx-dialog title="示例效果" width="1142px" :hasScroll="false" :noBtnOk="true" :noCancel="true" :noClose="false" typeName="primary" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleClose">
<div class="content-body">
<div class="content-item col1">
<div class="subTitle">
1、管理后台先创建套餐
</div>
<div class="subTitle">1、管理后台先创建套餐</div>
<div class="imageWrap">
<img src="@/assets/table.png" alt="" />
</div>
</div>
<div class="content-item col2">
<div class="subTitle">
2、小程序端进行展示
</div>
<div class="subTitle">2、小程序端进行展示</div>
<div class="twoImageWrap">
<img src="@/assets/card1.png" alt="" />
<img src="@/assets/card2.png" alt="" />
......@@ -55,13 +57,12 @@
<script>
import glsxDialog from '@/components/glsx-dialog'
import url from "@/assets/empty.png"
import url from '@/assets/empty.png'
import { getSetMealListApi, deleteSetMeal, upDownPackage } from '@/api/modules/setmeal'
import { getLoginCount } from '@/api/modules/service'
import { stateList } from '@/common/constant'
import tipPanel from '@/components/tipPanel/index.vue'
export default {
components: {
tipPanel,
......@@ -70,6 +71,8 @@ export default {
data() {
return {
url: url,
surl: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/memberCase.png',
srcList: ['https://img01.glsx.com.cn/weapp/resource/saas/scrm/memberCase.png'],
isFirstShow: false,
panelContent: '会员套餐:将已经创建好的会员服务打包成一个套餐售卖给客户。',
size: 'small',
......@@ -134,9 +137,11 @@ export default {
created() {
this.getLoginCountFun()
},
mounted () {
},
mounted() {},
methods: {
previewPic() {
this.$refs.previewImg.showViewer = true
},
getLoginCountFun() {
//loginType:5是查会员套餐浏览次数
getLoginCount({ loginType: 5 }).then(res => {
......@@ -162,7 +167,6 @@ export default {
this.$refs.memberSetMealRef.setTableHeightFun()
}
},
//创建套餐
handleCreate() {
this.$router.push({
......@@ -245,6 +249,19 @@ export default {
<style lang="scss" scoped>
.btnWrap {
margin-bottom: 20px;
.seeBtnWrap {
margin-left: 20px;
display: inline-block;
position: relative;
.demo-image__preview {
position: absolute;
left: 0px;
top: 0;
width: 68px;
height: 32px;
opacity: 0;
}
}
}
/deep/ .el-dialog__header {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!