| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <html>
- <head>
- </head>
- <body class="body-bg-white">
- <div id="space-content">
- <div class="content-wrap">
- <!-- 搜索 -->
- <div class="main-search">
- <van-search v-model="obj.content" @search="space.plugin.search.submit();"
- @clear="space.plugin.search.submit();" placeholder="搜索" clearable></van-search>
-
- <div class="main-list-icon-group">
- <!-- 新增按钮 -->
- <div class="main-AdSearch-icon">
- <i class="spaceicon icon-add3" onclick='@service{ type: `appLayer`, refresh:`true`, page:`custom_phrase_add` }@'></i>
- </div>
- </div>
- </div>
- <!-- 列表 -->
- <div id="mescroll" class="mescroll">
- <div class="main-contacts-list">
- <ul>
- <li v-for="item in personCustomPhraseList" :key="item.pcphraseid" @click="personCustomPhraseChange(item.pcphraseid)" >
- <a href="javascript:;">
- <!-- 左边 -->
- <div class="contacts-list-left">
- <van-icon name="comment-o" />
- </div>
- <!-- 右边 -->
- <div class="contacts-list-right">
- <div class="contacts-list-title">
- {{item.content}}
- </div>
- </div>
- </a>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </body>
- <script type="text/javascript">
- space.vue = new Vue({
- el: space.appContent,
- data: function () {
- return {
- obj:
- {
- content: ''
- },
- personCustomPhraseList: [],
- }
- },
- mounted: function () {
- this.initData();
- },
- methods: {
- initData: function () {
- var that = this;
- space.plugin.paging.init({
- url: '@service{name: "personnel.personCustomPhrase_list" }@',
- data: that.obj,
- up: function (resp) {
- that.personCustomPhraseList.push.apply(that.personCustomPhraseList, resp.personCustomPhraseList);
- },
- down: function () {
- that.personCustomPhraseList = [];
- },
- });
- },
- personCustomPhraseChange: function(pcpid) {
- space.plugin.layer.open({
- url: '@service{ name:`personCustomPhrase_info`, page:`custom_phrase_change` }@',
- refresh: true,
- param: {
- "pcphraseid": pcpid
- }
- });
- }
- }
- })
- </script>
- </html>
|