master
parent
37cd4278f2
commit
f95efb52ef
@ -0,0 +1,96 @@
|
|||||||
|
<template>
|
||||||
|
<view class="box">
|
||||||
|
<view class="bgtop">
|
||||||
|
<image src="../../static/img/nav_top.png" style="width: 100%;height: 100%;"></image>
|
||||||
|
</view>
|
||||||
|
<view class="bgcenter">
|
||||||
|
|
||||||
|
<view class="box-content">
|
||||||
|
<scroll-view :scroll-y="true" :style="{height:height+'px'}">
|
||||||
|
<rich-text :nodes="info.value"></rich-text>
|
||||||
|
</scroll-view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="bgbottom">
|
||||||
|
<image src="../../static/img/nav_bottom.png" style="width: 100%;height: 100%;"></image>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
height: 0,
|
||||||
|
info: {},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
let that = this;
|
||||||
|
uni.getSystemInfo({
|
||||||
|
success: function(res) {
|
||||||
|
that.height = res.windowHeight - 80;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.loadConfigInfo();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
loadConfigInfo() {
|
||||||
|
var that = this;
|
||||||
|
this.util.request({
|
||||||
|
api: '/api/mobile/other/config-show',
|
||||||
|
data: {
|
||||||
|
tag: "about"
|
||||||
|
},
|
||||||
|
utilSuccess: function(res) {
|
||||||
|
res.value=res.value.replace(/\<img/g,"<img style='width:100%;height:auto;display:block'")
|
||||||
|
that.info = res;
|
||||||
|
},
|
||||||
|
utilFail: function(res) {
|
||||||
|
uni.showToast({
|
||||||
|
icon: "none",
|
||||||
|
title: res,
|
||||||
|
duration: 2000
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.box {
|
||||||
|
padding: 20rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bgtop {
|
||||||
|
height: 40rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.bgcenter {
|
||||||
|
background: url("../../static/img/nav_middle.png") repeat-y;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-content {
|
||||||
|
padding: 15rpx 20rpx;
|
||||||
|
color: #351C1B;
|
||||||
|
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {}
|
||||||
|
|
||||||
|
.time {
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bgbottom {
|
||||||
|
height: 40rpx;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -0,0 +1,120 @@
|
|||||||
|
<template>
|
||||||
|
<view class="box">
|
||||||
|
<view class="bgtop">
|
||||||
|
<image src="../../static/img/nav_top.png" style="width: 100%;height: 100%;"></image>
|
||||||
|
</view>
|
||||||
|
<view class="bgcenter" :style="{height:height+'px'}">
|
||||||
|
<view class="box-content">
|
||||||
|
<u--form labelPosition="top" :model="form">
|
||||||
|
<u-form-item label="手机号" prop="mobile" labelWidth="60px" required>
|
||||||
|
<u-input v-model="form.mobile" placeholder="请输入手机号"></u-input>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="内容" prop="content" labelWidth="60px" required>
|
||||||
|
<u--textarea v-model="form.content" placeholder="请输入内容"></u--textarea>
|
||||||
|
</u-form-item>
|
||||||
|
</u--form>
|
||||||
|
<u-button type="primary" @click="tosubmit">确认提交</u-button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="bgbottom">
|
||||||
|
<image src="../../static/img/nav_bottom.png" style="width: 100%;height: 100%;"></image>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
height: 0,
|
||||||
|
form: {
|
||||||
|
mobile: "",
|
||||||
|
content: ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
let that = this;
|
||||||
|
uni.getSystemInfo({
|
||||||
|
success: function(res) {
|
||||||
|
that.height = res.windowHeight - 60;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
tosubmit() {
|
||||||
|
let that = this;
|
||||||
|
if (this.util.isNull(that.form.mobile)) {
|
||||||
|
this.util.toast("请填写手机号!");
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
if (!uni.$u.test.mobile(that.form.mobile)) {
|
||||||
|
this.util.toast("请填写正确的手机号!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (this.util.isNull(that.form.content)) {
|
||||||
|
this.util.toast("请填写内容!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
this.util.request({
|
||||||
|
api: '/api/mobile/other/tip-store',
|
||||||
|
data: this.form,
|
||||||
|
utilSuccess: function(res) {
|
||||||
|
console.log(res)
|
||||||
|
uni.showToast({
|
||||||
|
icon: "none",
|
||||||
|
title: "投诉建议成功",
|
||||||
|
complete() {
|
||||||
|
uni.reLaunch({
|
||||||
|
url: "/pages/success/success?from=feed"
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
utilFail: function(res) {
|
||||||
|
that.util.toast(res);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.box {
|
||||||
|
padding: 20rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.u-input {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bgtop {
|
||||||
|
height: 40rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bgcenter {
|
||||||
|
background: url("../../static/img/nav_middle.png") repeat-y;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-content {
|
||||||
|
padding: 15rpx 40rpx;
|
||||||
|
color: #351C1B;
|
||||||
|
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {}
|
||||||
|
|
||||||
|
.time {
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bgbottom {
|
||||||
|
height: 40rpx;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -1,22 +1,109 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view class="box">
|
||||||
|
<view class="bgtop">
|
||||||
</view>
|
<image src="../../static/img/nav_top.png" style="width: 100%;height: 100%;"></image>
|
||||||
</template>
|
</view>
|
||||||
|
<view class="bgcenter" :style="{height:height+'px'}">
|
||||||
<script>
|
<view class="box-title">
|
||||||
export default {
|
{{info.name||""}}
|
||||||
data() {
|
</view>
|
||||||
return {
|
<view class="time">
|
||||||
|
{{info.created_at||""}}
|
||||||
}
|
</view>
|
||||||
},
|
<view class="box-content">
|
||||||
methods: {
|
<rich-text :nodes="info.content"></rich-text>
|
||||||
|
</view>
|
||||||
}
|
</view>
|
||||||
}
|
<view class="bgbottom">
|
||||||
</script>
|
<image src="../../static/img/nav_bottom.png" style="width: 100%;height: 100%;"></image>
|
||||||
|
</view>
|
||||||
<style>
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
height: 0,
|
||||||
|
urls: {
|
||||||
|
1: '/api/mobile/other/visit-notice-show',
|
||||||
|
2: '/api/mobile/other/traffic-notice-show',
|
||||||
|
4: '/api/mobile/other/ask-show'
|
||||||
|
},
|
||||||
|
info: {},
|
||||||
|
type: 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad(options) {
|
||||||
|
let that = this;
|
||||||
|
uni.getSystemInfo({
|
||||||
|
success: function(res) {
|
||||||
|
that.height = res.windowHeight - 60;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.type = options.type;
|
||||||
|
that.loadInfo(options.id);
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
loadInfo(id) {
|
||||||
|
var that = this;
|
||||||
|
this.util.request({
|
||||||
|
api: this.urls[this.type],
|
||||||
|
data: {
|
||||||
|
id: id
|
||||||
|
},
|
||||||
|
utilSuccess: function(res) {
|
||||||
|
res.content = res.content.replace(/\<img/g,
|
||||||
|
"<img style='width:100%;height:auto;display:block'")
|
||||||
|
that.info = res;
|
||||||
|
},
|
||||||
|
utilFail: function(res) {
|
||||||
|
uni.showToast({
|
||||||
|
icon: "none",
|
||||||
|
title: res,
|
||||||
|
duration: 2000
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.box {
|
||||||
|
padding: 20rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bgtop {
|
||||||
|
height: 40rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bgcenter {
|
||||||
|
background: url("../../static/img/nav_middle.png") repeat-y;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
padding: 15rpx 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.time {
|
||||||
|
padding: 20rpx 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.newbox {
|
||||||
|
padding: 15rpx 20rpx;
|
||||||
|
color: #351C1B;
|
||||||
|
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {}
|
||||||
|
|
||||||
|
.time {
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bgbottom {
|
||||||
|
height: 40rpx;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -1,22 +1,111 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view class="box">
|
||||||
|
<view class="bgtop">
|
||||||
</view>
|
<image src="../../static/img/nav_top.png" style="width: 100%;height: 100%;"></image>
|
||||||
</template>
|
</view>
|
||||||
|
<view class="bgcenter" :style="{height:height+'px'}">
|
||||||
<script>
|
|
||||||
export default {
|
<view class="listnews">
|
||||||
data() {
|
<view class="newbox justify-between" v-for="(item,index) in list" :key="index" @click="toinfo(item.id)">
|
||||||
return {
|
<view class="newboxleft flex-row">
|
||||||
|
<u-icon name="grid" color="#351C1B" size="24"></u-icon>
|
||||||
}
|
<text class="title" style="margin-left: 10rpx;">{{item.name}}</text>
|
||||||
},
|
</view>
|
||||||
methods: {
|
<view class="newboxright">
|
||||||
|
<text class="time">{{item.created_at}}</text>
|
||||||
}
|
</view>
|
||||||
}
|
</view>
|
||||||
</script>
|
</view>
|
||||||
|
</view>
|
||||||
<style>
|
<view class="bgbottom">
|
||||||
|
<image src="../../static/img/nav_bottom.png" style="width: 100%;height: 100%;"></image>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
height: 0,
|
||||||
|
urls: {
|
||||||
|
1: '/api/mobile/other/visit-notice-index',
|
||||||
|
2: '/api/mobile/other/traffic-notice-index',
|
||||||
|
4: '/api/mobile/other/ask-index'
|
||||||
|
},
|
||||||
|
type: 1,
|
||||||
|
list: [],
|
||||||
|
isloading: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad(options) {
|
||||||
|
let that = this;
|
||||||
|
uni.getSystemInfo({
|
||||||
|
success: function(res) {
|
||||||
|
that.height = res.windowHeight - 60;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.type = options.type;
|
||||||
|
that.loadList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
toinfo(id) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "info?type=" + this.type + "&id=" + id
|
||||||
|
})
|
||||||
|
},
|
||||||
|
loadList(page) {
|
||||||
|
var that = this;
|
||||||
|
this.util.request({
|
||||||
|
api: this.urls[this.type],
|
||||||
|
data: {
|
||||||
|
page: page
|
||||||
|
},
|
||||||
|
utilSuccess: function(res) {
|
||||||
|
that.list = res.data;
|
||||||
|
this.isloading = false;
|
||||||
|
},
|
||||||
|
utilFail: function(res) {
|
||||||
|
uni.showToast({
|
||||||
|
icon: "none",
|
||||||
|
title: res
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.box {
|
||||||
|
padding: 20rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bgtop {
|
||||||
|
height: 40rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bgcenter {
|
||||||
|
background: url("../../static/img/nav_middle.png") repeat-y;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.newbox {
|
||||||
|
padding: 15rpx 20rpx;
|
||||||
|
color: #351C1B;
|
||||||
|
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {}
|
||||||
|
|
||||||
|
.time {
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bgbottom {
|
||||||
|
height: 40rpx;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
|
After Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
Loading…
Reference in new issue