123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <!DOCTYPE html>
- <html lang="zh-cn">
- <head>
- <meta charset="utf-8">
- <title>政策服务</title>
- <meta name="renderer" content="webkit">
- <meta name="viewport"
- content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover"/>
- <meta name="apple-mobile-web-app-capable" content="yes"/>
- <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
- <link rel="stylesheet" href="__MCSS__/vant4.6.min.css">
- <link rel="stylesheet" href="__MCSS__/style.css">
- <script src="__COMMON_JS__/vue3.3.4.min.js"></script>
- <script src="__MJS__/vant4.6.min.js"></script>
- <script src="__COMMON_JS__/axios1.4.min.js"></script>
- <script>
- const baseUrl = "{:url('/')}";
- </script>
- <script src="__MJS__/axios_instance.js"></script>
- <style>
- .policy-item {
- width: 90%;
- border: 1px solid #eee;
- margin: 20px auto 0 auto;
- padding: 10px 10px;
- border-radius: 10px;
- box-shadow: 0 0 10px #ccc;
- box-sizing: border-box;
- }
- .policy-header {
- font-size: 15px;
- font-weight: bold;
- padding-bottom: 10px;
- }
- .policy-footer {
- font-size: 12px;
- display: flex;
- color: #8C8C8C;
- border-top: 1px solid #ccc;
- padding-top: 10px;
- }
- .policy-footer-left {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- width: calc(100% - 110px);
- }
- .policy-footer-right {
- margin-left: auto;
- width: 100px;
- text-align: right;
- }
- </style>
- </head>
- <body>
- <div id="app">
- <van-nav-bar
- class="nav-theme"
- :fixed="true"
- :placeholder="true"
- left-text="返回"
- left-arrow
- @click-left="onBack"
- >
- <template #title>
- <span class="text-white">政策服务</span>
- </template>
- </van-nav-bar>
- <div class="policy-list">
- <div class="policy-item" v-for="item in list" @click="toDetail(item.id)">
- <div class="policy-header">
- <van-image src="__MIMAGES__/icon_policy.png" height="14px" width="13px"></van-image>
- {{item.title}}
- </div>
- <div class="policy-footer">
- <div class="policy-footer-left">{{item.government}}</div>
- <div class="policy-footer-right">{{item.publish_time}}</div>
- </div>
- </div>
- </div>
- </div>
- <script>
- function v_setup() {
- let base = {};
- base.list = {$list};
- base.toDetail = (id) => {
- location.href = "{:url('jfm/policyDetail1')}?id=" + id;
- };
- base.onBack = () => {
- history.back();
- };
- return base;
- }
- const vue3 = {
- setup() {
- return v_setup();
- }
- };
- const app = Vue.createApp(vue3)
- .use(vant)
- .use(vant.Lazyload);
- app.mount('#app');
- </script>
- </body>
- </html>
|