lijinlong
吕天方 5 months ago
parent e153d434a4
commit 3732848a77

@ -4,7 +4,8 @@ module.exports = {
TEST_LOGIN:"https://t-jn-development-manager.jsszkd.com/login", // ?clientId= TEST_LOGIN:"https://t-jn-development-manager.jsszkd.com/login", // ?clientId=
// baseUrl: "https://t-jn-bjh-admin-server.jsszkd.com", // baseUrl: "https://t-jn-bjh-admin-server.jsszkd.com",
baseUrl: "https://bjh.jndz.cn/bjh-admin-server", baseUrl: "https://bjh.jndz.cn/bjh-admin-server",
// baseUrl: "http://192.168.0.108:9037", // baseUrl: "http://192.168.0.107:9037",
// baseUrl: "http://10.236.2.28:54567/bjh-admin-server",
// 应用信息 // 应用信息
appInfo: { appInfo: {

@ -1,6 +1,6 @@
{ {
"name" : "江宁城管app", "name" : "江宁城管app",
"appid" : "__UNI__9199720", "appid" : "__UNI__722F3C8",
"description" : "", "description" : "",
"versionName" : "1.1.0", "versionName" : "1.1.0",
"versionCode" : "100", "versionCode" : "100",

@ -110,7 +110,7 @@ export default {
}, },
// ... // ...
onBackPress(options) { onBackPress(options) {
console.log("返回", options); // console.log("", options);
if (options.from == "backbutton" || options.from == "navigateBack") { if (options.from == "backbutton" || options.from == "navigateBack") {
// //
uni.showModal({ uni.showModal({
@ -140,7 +140,7 @@ export default {
}, },
mounted() { mounted() {
this.userInfo = uni.getStorageSync("userInfo"); this.userInfo = uni.getStorageSync("userInfo");
console.log(JSON.stringify(this.userInfo), "用户信息"); // console.log(JSON.stringify(this.userInfo), "");
const currentDate = new Date(); const currentDate = new Date();
const year = currentDate.getFullYear(); // const year = currentDate.getFullYear(); //
const month = currentDate.getMonth() + 1; // 01 const month = currentDate.getMonth() + 1; // 01

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

@ -16,6 +16,40 @@
</view> </view>
<view class="yingfuDom">
<view class="items">
<view class="label">
活动名称
</view>
<view class="value">
店铺周年庆
</view>
</view>
<view class="items">
<view class="label">
活动内容
</view>
<view class="value">
消费满500元打8折
</view>
</view>
<view class="items">
<view class="label">
活动地点
</view>
<view class="value">
南京市江宁区佳湖西路19号
</view>
</view>
<view class="items">
<view class="label">
参与条件
</view>
<view class="value">
所有人可参加
</view>
</view>
</view>
</view> </view>
</template> </template>
@ -151,6 +185,22 @@
&>.list-item:last-child { &>.list-item:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
.yingfuDom {
padding: 20rpx 0;
display: grid;
grid-template-columns: 1fr;
row-gap: 10rpx;
.items{
display: flex;
.label {
}
.value {
}
}
}
} }

@ -1,11 +1,11 @@
<template> <template>
<view class="app-container"> <view class="app-container">
<u-navbar title="消息列表" :autoBack="true" <!-- <u-navbar title="消息列表" :autoBack="true"
:placeholder="true" leftText="返回"> :placeholder="true" leftText="返回">
<view slot="right" @click="onAllclear"> <view slot="right" @click="onAllclear">
<text class="nav-right">全部清空</text> <text class="nav-right">全部清空</text>
</view> </view>
</u-navbar> </u-navbar> -->
<u-search <u-search
height="75rpx" height="75rpx"
placeholder="搜索关键词" placeholder="搜索关键词"
@ -78,6 +78,9 @@
</view> --> </view> -->
</view> </view>
<u-modal :show="show" :title="msgInfo.title" :content='msgInfo.content' @confirm="confirm"></u-modal> <u-modal :show="show" :title="msgInfo.title" :content='msgInfo.content' @confirm="confirm"></u-modal>
<view class="delete-box" @click="onAllclear">
<image class="delete_img_box" src="/static/images/delete2.png" mode="aspectFill"></image> 全部清空
</view>
</view> </view>
</template> </template>
<script> <script>
@ -89,7 +92,7 @@ export default {
// //
queryParams: { queryParams: {
title: "", title: "",
id:'', id:'5',
}, },
show: false, show: false,
msgInfo: { msgInfo: {
@ -108,11 +111,12 @@ export default {
} else { } else {
uni.$u.toast('店铺id为空') uni.$u.toast('店铺id为空')
} }
// this.ListMsg();
}, },
methods: { methods: {
onAllclear() { onAllclear() {
this.$modal.confirm('确定删除所有消息吗?').then(() => { this.$modal.confirm('确定删除所有消息吗?').then(() => {
deleteShopId(15).then((res) => { deleteShopId(this.queryParams.id).then((res) => {
if(res.code == 200) { if(res.code == 200) {
uni.showToast({ title: "删除成功", icon: 'success' }) uni.showToast({ title: "删除成功", icon: 'success' })
this.ListMsg(); this.ListMsg();
@ -200,4 +204,24 @@ export default {
} }
} }
} }
.delete-box {
position: fixed;
right: 20rpx;
bottom: 80rpx;
background-color: #fff;
width: 200rpx;
// height: 50rpx;
border-radius: 30rpx;
display: flex;
align-items: center;
justify-content: center;
padding: 10rpx;
color: #367bef;
.delete_img_box {
width: 35rpx;
height: 35rpx;
margin-right: 10rpx;
}
}
</style> </style>

Loading…
Cancel
Save