Compare commits

..

No commits in common. 'lijinlong' and 'main' have entirely different histories.

@ -1,171 +1,152 @@
<script> <script>
import config from "./config"; import config from "./config";
import store from "@/store"; import store from "@/store";
import { import { getToken, setToken, removeToken } from "@/utils/auth";
getToken, import { getSqByaccesstoken, getUserinfo } from "@/api/jn/login.js";
setToken, import permision from "@/utils/permission.js";
removeToken export default {
} from "@/utils/auth"; onLaunch: function () {
import { console.log("初始化进入");
getSqByaccesstoken, this.initApp();
getUserinfo //#ifdef APP-PLUS
} from "@/api/jn/login.js"; this.requestAndroidPermission("android.permission.ACCESS_FINE_LOCATION");
import permision from "@/utils/permission.js"; this.requestAndroidPermission("android.permission.CAMERA");
export default { this.requestAndroidPermission("android.permission.READ_EXTERNAL_STORAGE");
onLaunch: function() { this.requestAndroidPermission("android.permission.RECORD_AUDIO");
console.log("初始化进入"); //#endif
this.initApp(); removeToken();
//#ifdef APP-PLUS },
this.requestAndroidPermission("android.permission.ACCESS_FINE_LOCATION"); onShow() {
this.requestAndroidPermission("android.permission.CAMERA"); console.log("onShow");
this.requestAndroidPermission("android.permission.READ_EXTERNAL_STORAGE"); },
this.requestAndroidPermission("android.permission.RECORD_AUDIO"); methods: {
//#endif //
removeToken(); initApp() {
}, //
onShow() { this.initConfig();
console.log("onShow"); //
}, // // #ifdef APP || H5
methods: { this.checkLogin();
// // //#endif
initApp() { },
// initConfig() {
this.initConfig(); this.globalData.config = config;
// },
// // #ifdef APP || H5 checkLogin() {
this.checkLogin(); const launchOptions = uni.getLaunchOptionsSync();
// //#endif const { query } = launchOptions;
}, console.log(query, "query");
initConfig() { // console.log(Object.keys(query).length,"query.lengh");
this.globalData.config = config; console.log(getToken(), "getToken()");
}, if (!getToken()) {
checkLogin() { if (Object.keys(query).length !== 0) {
// const launchOptions = uni.getLaunchOptionsSync(); console.log("获取query");
// const { query } = launchOptions; // let params = this.getRequestParams();
// console.log(query, "query"); // console.log(params,"params");
// console.log(Object.keys(query).length,"query.lengh"); // if (location.href.includes("code=")) {
// console.log(getToken(), "getToken()"); const code = query.code;
// if (!getToken()) { const token = query.token;
// if (Object.keys(query).length !== 0) { uni.setStorageSync("token", token);
// console.log("query"); // console.log(code,"code");
// // let params = this.getRequestParams(); // console.log(token,"token");
// // console.log(params,"params"); getSqByaccesstoken({
// // if (location.href.includes("code=")) { code: code,
// const code = query.code; })
// const token = query.token; .then((res) => {
// uni.setStorageSync("token", token); // console.log("accessToken");
// // console.log(code,"code"); uni.setStorageSync("accessToken", res.data.accessToken);
// // console.log(token,"token"); return getUserinfo({
// getSqByaccesstoken({ accessToken: res.data.accessToken,
// code: code, });
// }) })
// .then((res) => { .then((el) => {
// // console.log("accessToken"); this.$tab.switchTab("/pages/index");
// uni.setStorageSync("accessToken", res.data.accessToken); uni.setStorageSync("userInfo", el.data);
// return getUserinfo({ setToken(el.data.token);
// accessToken: res.data.accessToken, // location.reload();
// }); console.log("用户信息", el);
// }) });
// .then((el) => { // }
// this.$tab.switchTab("/pages/index"); } else {
// uni.setStorageSync("userInfo", el.data); // // #ifdef APP
// setToken(el.data.token); console.log("进入APP判断");
// // location.reload(); // this.$tab.reLaunch("/pages/myLogin");
// console.log("", el); uni.reLaunch({
// }); url: "/pages/myLogin",
// // } });
// } else { // url
// // // #ifdef APP // plus.runtime.openURL( "https://t-jn-development-manager.jsszkd.com/login?clientId=641775453324", this.openErr );
// console.log("APP"); // // #endif
// // this.$tab.reLaunch("/pages/myLogin"); // // #ifdef H5
// uni.reLaunch({ // location.href = `https://t-jn-development-manager.jsszkd.com/login?clientId=641775453324`
// url: "/pages/myLogin", // // #endif
// });
// // url
// // plus.runtime.openURL( "https://t-jn-development-manager.jsszkd.com/login?clientId=641775453324", this.openErr );
// // // #endif
// // // #ifdef H5
// // location.href = `https://t-jn-development-manager.jsszkd.com/login?clientId=641775453324`
// // // #endif
// console.log("Before navigateTo or reLaunch"); console.log("Before navigateTo or reLaunch");
// // this.$tab.reLaunch("/pages/myLogin"); // this.$tab.reLaunch("/pages/myLogin");
// // uni.navigateTo({ // uni.navigateTo({
// // url:'https://t-jn-development-manager.jsszkd.com/login?clientId=641775453324' // url:'https://t-jn-development-manager.jsszkd.com/login?clientId=641775453324'
// // }) // })
// } }
// } else { } else {
// this.$tab.reLaunch("/pages/index"); this.$tab.reLaunch("/pages/index");
// } }
}, },
openErr(err) { openErr(err) {
console.log(err, "报错信息"); console.log(err, "报错信息");
}, },
// //
getRequestParams() { getRequestParams() {
let url = location.href; let url = location.href;
let requestParams = {}; let requestParams = {};
if (url.indexOf("?") !== -1) { if (url.indexOf("?") !== -1) {
let str = url.substr(url.indexOf("?") + 1); //? let str = url.substr(url.indexOf("?") + 1); //?
// console.log(str, '?'); // console.log(str, '?');
let strs = str.split("&"); //& let strs = str.split("&"); //&
// console.log(strs, '&'); // console.log(strs, '&');
for (let i = 0; i < strs.length; i++) { for (let i = 0; i < strs.length; i++) {
requestParams[strs[i].split("=")[0]] = decodeURI( requestParams[strs[i].split("=")[0]] = decodeURI(
strs[i].split("=")[1] strs[i].split("=")[1]
); );
// '=''=' // '=''='
} }
} }
// console.log(requestParams, ''); // console.log(requestParams, '');
return requestParams; return requestParams;
}, },
async requestAndroidPermission(permisionID) { async requestAndroidPermission(permisionID) {
var result = await permision.requestAndroidPermission(permisionID); var result = await permision.requestAndroidPermission(permisionID);
var strStatus; var strStatus;
if (result == 1) { if (result == 1) {
strStatus = "已获得授权"; strStatus = "已获得授权";
} else if (result == 0) { } else if (result == 0) {
strStatus = "未获得授权"; strStatus = "未获得授权";
uni.showModal({ uni.showModal({
content: "请在设置中打卡相机、麦克风、相册、定位权限", content: "请在设置中打卡相机、麦克风、相册、定位权限",
showCancel: false, showCancel: false,
}); });
console.warn("权限:" + permisionID + strStatus); console.warn("权限:" + permisionID + strStatus);
// App // App
this.gotoAppPermissionSetting(); this.gotoAppPermissionSetting();
} else { } else {
strStatus = "被永久拒绝权限"; strStatus = "被永久拒绝权限";
uni.showModal({ uni.showModal({
content: "请在设置中打卡相机、麦克风、相册、定位权限", content: "请在设置中打卡相机、麦克风、相册、定位权限",
showCancel: false, showCancel: false,
}); });
console.warn("权限:" + permisionID + strStatus); console.warn("权限:" + permisionID + strStatus);
// App // App
this.gotoAppPermissionSetting(); this.gotoAppPermissionSetting();
} }
}, },
gotoAppPermissionSetting: function() { gotoAppPermissionSetting: function () {
permision.gotoAppPermissionSetting(); permision.gotoAppPermissionSetting();
}, },
}, },
}; };
</script> </script>
<style lang="scss"> <style lang="scss">
/* 注意要写在第一行同时给style标签加入lang="scss"属性 */ /* 注意要写在第一行同时给style标签加入lang="scss"属性 */
@import "@/uni_modules/uview-ui/index.scss"; @import "@/uni_modules/uview-ui/index.scss";
@import "@/static/scss/index.scss"; @import "@/static/scss/index.scss";
.mytext {
h4 {
strong {
display: block;
/* 将 <strong> 标签转换为块级元素 */
text-indent: 2em;
// text-align: center;
}
}
}
</style> </style>

@ -8,21 +8,7 @@ export function listActivity(query) {
params: query, params: query,
}); });
} }
//门前三包评级规则
export function listraterule(query) {
return request({
url: "/jn/raterule/list",
method: "get",
params: query,
});
}
export function listysfwlist(query) {
return request({
url: "/jn/ysfw/list",
method: "get",
params: query,
});
}
// 查询活动申请详细 // 查询活动申请详细
export function getActivity(id) { export function getActivity(id) {
return request({ return request({
@ -56,10 +42,3 @@ export function delActivity(id) {
method: "delete", method: "delete",
}); });
} }
//获取沿街店铺列表详细信息
export function jnshop(id) {
return request({
url: "/jn/shop/" + id,
method: "GET",
});
}

@ -42,36 +42,3 @@ export function delNews(id) {
method: 'delete' method: 'delete'
}) })
} }
// 根据商家id清空该商家所有的消息
export function deleteShopId(id) {
return request({
url: '/jn/news/deleteShopId/' + id,
method: 'get'
})
}
// 根据商家id查询该商家所有的消息
export function shopIdlist(params) {
return request({
url: '/jn/news/shopIdlist',
method: 'get',
params
})
}
// 某条商家端消息进行已读
export function getInfoShop(id) {
return request({
url: '/jn/news/getInfoShop/' + id,
method: 'get'
})
}
// 根据商家id查询未读消息个数
export function isLookCount(id) {
return request({
url: '/jn/news/isLookCount/' + id,
method: 'get'
})
}

@ -45,6 +45,5 @@
padding: 20rpx 20rpx calc(20rpx + env(safe-area-inset-bottom)); padding: 20rpx 20rpx calc(20rpx + env(safe-area-inset-bottom));
/* 兼容 iOS >= 11.2 */ /* 兼容 iOS >= 11.2 */
border-top: 1px solid #DCE3EC; border-top: 1px solid #DCE3EC;
z-index: 3;
} }
</style> </style>

@ -1,10 +1,8 @@
// 应用全局配置 // 应用全局配置
module.exports = { module.exports = {
// baseUrl: "http://39.101.188.84:9037",
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: "http://192.168.0.107:9037",
// baseUrl: "http://10.236.2.28:54567/bjh-admin-server",
// 应用信息 // 应用信息
appInfo: { appInfo: {

@ -11,9 +11,10 @@ Vue.use(uView)
// import 'video.js/dist/video-js.css' // import 'video.js/dist/video-js.css'
// Vue.prototype.$video = Videojs // Vue.prototype.$video = Videojs
// import 'mui-player/dist/mui-player.min.css' import 'mui-player/dist/mui-player.min.css'
import fixedButtom from '@/components/fixedButtom/fixedButtom.vue' import fixedButtom from '@/components/fixedButtom/fixedButtom.vue'
Vue.component('fixedButtom', fixedButtom) Vue.component('fixedButtom', fixedButtom)
Vue.use(plugins) Vue.use(plugins)

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

@ -257,14 +257,6 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{
"path" : "activity/activitydetails",
"style" :
{
"navigationBarTitleText": "活动详情",
"enablePullDownRefresh": false
}
},
{ {
"path": "threeGuarantees/index", "path": "threeGuarantees/index",
"style": { "style": {
@ -307,7 +299,6 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
} }
] ]
} }
], ],

@ -52,7 +52,7 @@ export default {
return { return {
grids: [ grids: [
{ {
name: "水生态治理科教", name: "水生态治理科教(公众)",
gridImg: "/static/images/umale/gr8.png", gridImg: "/static/images/umale/gr8.png",
color: "#0D306B", color: "#0D306B",
subcolor: "", subcolor: "",
@ -60,7 +60,7 @@ export default {
toPage: "/subPublic/waterEducation/index", toPage: "/subPublic/waterEducation/index",
}, },
{ {
name: "活动管理", name: "活动管理(商家)",
gridImg: "/static/images/umale/gr8.png", gridImg: "/static/images/umale/gr8.png",
color: "#0D306B", color: "#0D306B",
subcolor: "", subcolor: "",
@ -68,7 +68,7 @@ export default {
toPage: "/subEnterprise/activity/activity", toPage: "/subEnterprise/activity/activity",
}, },
{ {
name: "消息中心", name: "消息中心(商家)",
gridImg: "/static/images/umale/gr8.png", gridImg: "/static/images/umale/gr8.png",
color: "#0D306B", color: "#0D306B",
subcolor: "", subcolor: "",
@ -76,7 +76,7 @@ export default {
toPage: "/subEnterprise/msg/index", toPage: "/subEnterprise/msg/index",
}, },
{ {
name: "门前三包服务", name: "门前三包服务(商家)",
gridImg: "/static/images/umale/gr8.png", gridImg: "/static/images/umale/gr8.png",
color: "#0D306B", color: "#0D306B",
subcolor: "", subcolor: "",
@ -84,7 +84,7 @@ export default {
toPage: "/subEnterprise/threeGuarantees/index", toPage: "/subEnterprise/threeGuarantees/index",
}, },
{ {
name: "店牌店招预审", name: "店铺店招预审(商家)",
gridImg: "/static/images/umale/gr8.png", gridImg: "/static/images/umale/gr8.png",
color: "#0D306B", color: "#0D306B",
subcolor: "", subcolor: "",
@ -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({
@ -132,15 +132,15 @@ export default {
onLoad() { onLoad() {
// this.getCircle(); // this.getCircle();
// this.getUserLocation(); this.getUserLocation();
// this.times = setInterval(() => { this.times = setInterval(() => {
// console.log(""); console.log("获取用户位置信息");
// this.getUserLocation(); this.getUserLocation();
// }, 10000); }, 10000);
}, },
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

@ -35,7 +35,7 @@ export default {
this.webview.overrideUrlLoading({ mode: "reject" }, (e) => { this.webview.overrideUrlLoading({ mode: "reject" }, (e) => {
//,!url,.OK.json //,!url,.OK.json
console.warn("参数为:" + e.url); console.warn("参数为:" + e.url);
// http://39.101.188.84:9999/demo/JiangNingUmale-App/#/?code=ckyb2r&clientId=641775453324&token=pygHmfvDNt4YxbucxXiIm0dN8d0IuLmd
// URL // URL
var url = e.url; var url = e.url;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

@ -1,299 +0,0 @@
<template>
<view class="app-container">
<u-navbar leftText="返回" title="店铺活动管理" :autoBack="true" :placeholder="true" />
<view class="list-item active view-global" v-for="(item, index) in applyList" :key="index">
<view class="" @click="goactivitydetails(item)">
<view class="item-header" :class="bgmImg(item.activeState)">
<view class="item-header-font" >
{{ item.activeState | activeState }}
</view>
</view>
<view class="item-cell">
<view class="cell-lable">活动名称</view>
<view class="cell-value">{{ item.activeName }}</view>
</view>
<view class="item-cell">
<view class="cell-lable">活动时间</view>
<view class="cell-value">{{ item.activeStart }}{{ item.activeEnd }}</view>
</view>
<view class="item-cell">
<view class="cell-lable">活动内容</view>
<view class="cell-value">{{ item.activeContent }}</view>
</view>
<view class="item-cell" style="align-items: flex-start">
<view class="cell-lable">活动地点</view>
<view class="cell-value">{{ item.activePoint }}</view>
</view>
<!-- <view class="item-cell" style="align-items: flex-start">
<view class="cell-lable">参与条件</view>
<view class="cell-value">{{ item.joinRequire }}</view>
</view> -->
<!-- <view class="item-cell" style="align-items: flex-start">
<view class="cell-lable">活动状态</view>
<view class="cell-value" :style="{ color: activeStateColor(item.activeState) }">
{{ item.activeState | activeState }}
</view>
</view> -->
</view>
<!-- <view class="cell-btn">
<u-button v-show="item.activeState == 2" text="终止活动" size="small"
color="linear-gradient(90deg, #FF4B4B 0%, #FA4D4D 100%)" :custom-style="{
width: '130rpx',
height: '65rpx',
margin: '0',
}" @click="handleUpdate(item)"></u-button>
<u-button v-show="item.activeState == 1" text="取消活动" size="small"
color="linear-gradient(90deg, #F18939 0%, #F6A53C 100%)" :custom-style="{
width: '130rpx',
height: '65rpx',
margin: '0',
}" @click="handleUpdate(item)"></u-button>
</view> -->
</view>
<fixed-buttom title="新增活动" @click="handleAdd()"></fixed-buttom>
</view>
</template>
<script>
import {
listActivity,
updateActivity
} from "../../api/jn/apply";
export default {
data() {
return {
//
form: {},
applyList: [
// {
// activeName: "",
// activeStart: "2024-1-17",
// activeEnd: "2024-1-19",
// activeContent: "",
// activePoint: "",
// joinRequire: "",
// activeState: 1,
// },{
// activeName: "",
// activeStart: "2024-1-17",
// activeEnd: "2024-1-19",
// activeContent: "",
// activePoint: "",
// joinRequire: "",
// activeState: 2,
// },{
// activeName: "",
// activeStart: "2024-1-17",
// activeEnd: "2024-1-19",
// activeContent: "",
// activePoint: "",
// joinRequire: "",
// activeState: 3,
// },
],
//
queryParams: {
pageNum: 1,
pageSize: 10,
activeName: null,
activeStart: null,
activeEnd: null,
activeContent: null,
activePoint: null,
joinRequire: null,
activeState: null,
createId: null,
updateId: null,
gridId: null,
gridName: null,
partId: null,
partName: null,
},
};
},
onLoad() {
this.getList();
},
onShow() {
this.getList();
},
methods: {
getList() {
listActivity(this.queryParams).then((res) => {
console.log(res);
this.applyList = res.rows;
});
},
//
handleAdd() {
uni.$u.route({
url: "/subEnterprise/activity/add",
});
},
//
handleUpdate(item) {
this.reset();
item["activeState"] =
item.activeState == 1 ?
3 :
item.activeState == 2 ?
4 :
item.activeState;
this.form = item;
console.log(this.form);
updateActivity(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
});
},
activeStateColor: function(value) {
switch (value) {
case "1":
return "#F75D23";
case "2":
return "#32B78B";
case "3":
return "#FF0000";
}
},
bgmImg(value){
switch (value) {
case "1":
return "item-headerorng";
case "2":
return "item-headergreen";
case "3":
return "item-headerred";
}
},
//
goactivitydetails(item) {
uni.navigateTo({
url: `/subEnterprise/activity/activitydetails?item=${JSON.stringify(item)}`,
})
},
//
reset() {
this.form = {
id: null,
activeName: null,
activeStart: null,
activeEnd: null,
activeContent: null,
activePoint: null,
joinRequire: null,
activeState: null,
createId: null,
createBy: null,
createTime: null,
updateId: null,
updateBy: null,
updateTime: null,
remark: null,
gridId: null,
gridName: null,
partId: null,
partName: null,
};
},
},
filters: {
activeState: function(value) {
// console.log(value);
switch (value) {
case "1":
return "审核中";
case "2":
return "审核通过";
case "3":
return "审核驳回";
case" 4":
return "已终止";
case "5":
return "已结束";
default:
return "";
}
},
},
};
</script>
<style lang="scss" scoped>
.app-container {
.list-item {
background-color: #fff;
border-radius: 16rpx;
box-sizing: border-box;
padding: 25rpx;
margin-bottom: 30rpx;
position: relative;
.item-header {
width: 200rpx;
height: 200rpx;
position: absolute;
top: -30rpx;
right: -30rpx;
z-index: 2;
background-size: 100% 100%;
background-repeat: no-repeat;
.item-header-font{
color: #ffffff;
font-size: 25rpx;
transform: translate(25rpx, 60rpx) rotate(45deg);
text-align: center;
}
}
.item-headergreen{
background-image: url("@/static/images/banner/green.png");
}
.item-headerred{
background-image: url("@/static/images/banner/red.png");
}
.item-headerorng{
background-image: url("@/static/images/banner/orng.png");
}
.item-cell {
display: flex;
align-items: center;
margin: 20rpx 0;
.cell-lable {
width: 200rpx;
font-size: 28rpx;
font-weight: 400;
color: #9da2ab;
}
.cell-value {
flex: 1;
font-size: 28rpx;
font-weight: 400;
color: #2e2f31;
}
}
.cell-btn {
display: flex;
flex-direction: row-reverse;
}
&>view:not(.cell-btn) {
margin-bottom: 20rpx;
}
}
&>.list-item:last-child {
margin-bottom: 0;
}
}
</style>

@ -1,240 +1,241 @@
<template> <template>
<view class="app-container"> <view class="app-container">
<!-- <u-navbar leftText="返回" title="店铺活动管理" :autoBack="true" :placeholder="true"> <u-navbar
<view slot="right"> leftText="返回"
<text class="nav-right"></text> title="店铺活动管理"
</view> :autoBack="true"
</u-navbar> --> :placeholder="true"
<view class="list-item"> />
<view class="list-item-title">{{levelList[0].activeName || ""}}</view> <view
<view> class="list-item active view-global"
<view class="Mytitle"> v-for="(item, index) in applyList"
</view> :key="index"
<view class="mytext" v-html="levelList[0].activeRequest"> >
</view> <view class="item-cell">
</view> <view class="cell-lable">活动名称</view>
<view class="cell-value">{{ item.activeName }}</view>
</view>
</view> <view class="item-cell">
<view class="yingfuDom"> <view class="cell-lable">活动时间</view>
<view class="items"> <view class="cell-value"
<view class="label"> >{{ item.activeStart }}{{ item.activeEnd }}</view
活动名称 >
</view> </view>
<view class="value"> <view class="item-cell">
店铺周年庆 <view class="cell-lable">活动内容</view>
</view> <view class="cell-value">{{ item.activeContent }}</view>
</view> </view>
<view class="items"> <view class="item-cell" style="align-items: flex-start">
<view class="label"> <view class="cell-lable">活动地点</view>
活动内容 <view class="cell-value">{{ item.activePoint }}</view>
</view> </view>
<view class="value"> <view class="item-cell" style="align-items: flex-start">
消费满500元打8折 <view class="cell-lable">参与条件</view>
</view> <view class="cell-value">{{ item.joinRequire }}</view>
</view> </view>
<view class="items"> <view class="item-cell" style="align-items: flex-start">
<view class="label"> <view class="cell-lable">活动状态</view>
活动地点 <view
</view> class="cell-value"
<view class="value"> :style="{ color: activeStateColor(item.activeState) }"
南京市江宁区佳湖西路19号 >
</view> {{ item.activeState | activeState }}
</view> </view>
<view class="items"> </view>
<view class="label"> <view class="cell-btn">
参与条件 <u-button
</view> v-show="item.activeState == 2"
<view class="value"> text="终止活动"
所有人可参加 size="small"
</view> color="linear-gradient(90deg, #FF4B4B 0%, #FA4D4D 100%)"
</view> :custom-style="{
<view class="items"> width: '130rpx',
<view class="label"> height: '65rpx',
活动时间 margin: '0',
</view> }"
<view class="value"> @click="handleUpdate(item)"
2024-10-01 ></u-button>
</view> <u-button
</view> v-show="item.activeState == 1"
</view> text="取消活动"
</view> size="small"
color="linear-gradient(90deg, #F18939 0%, #F6A53C 100%)"
:custom-style="{
width: '130rpx',
height: '65rpx',
margin: '0',
}"
@click="handleUpdate(item)"
></u-button>
</view>
</view>
<fixed-buttom title="新增活动" @click="handleAdd()"></fixed-buttom>
</view>
</template> </template>
<script> <script>
import { import { listActivity, updateActivity } from "../../api/jn/apply";
listActivity,
} from "../../api/jn/apply"; export default {
export default { data() {
data() { return {
return { //
// form: {},
form: {}, applyList: [],
levelList: [{activeName:"",activeRequest:""}], //
// queryParams: {
queryParams: { pageNum: 1,
sbLevelName: null, pageSize: 10,
pageNum: 1, activeName: null,
pageSize: 10, activeStart: null,
activeState:"1" activeEnd: null,
}, activeContent: null,
}; activePoint: null,
}, joinRequire: null,
onLoad() { activeState: null,
this.getList(); createId: null,
}, updateId: null,
methods: { gridId: null,
onSearch() { gridName: null,
this.getList(); partId: null,
}, partName: null,
onClear() { },
this.queryParams.sbLevelName = ""; };
this.getList(); },
}, onLoad() {
getList() { this.getList();
listActivity(this.queryParams).then((res) => { },
console.log(res); methods: {
getList() {
if(res.rows.length !=0){ listActivity(this.queryParams).then((res) => {
this.levelList = res.rows; console.log(res);
this.applyList = res.rows;
}else{ });
this.levelList = [{activeName:"",activeRequest:""}] },
} //
}); handleAdd() {
}, uni.$u.route({
// url: "/subEnterprise/activity/add",
reset() { });
this.form = { },
id: null, //
activeName: null, handleUpdate(item) {
activeStart: null, this.reset();
activeEnd: null, item["activeState"] =
activeContent: null, item.activeState == 1
activePoint: null, ? 3
joinRequire: null, : item.activeState == 2
activeState: null, ? 4
createId: null, : item.activeState;
createBy: null, this.form = item;
createTime: null, console.log(this.form);
updateId: null, updateActivity(this.form).then((response) => {
updateBy: null, this.$modal.msgSuccess("修改成功");
updateTime: null, });
remark: null, },
gridId: null, activeStateColor: function (value) {
gridName: null, switch (value) {
partId: null, case 1:
partName: null, return "#F75D23";
}; case 2:
}, return "#32B78B";
}, case 3:
}; return "#000000";
case 4:
return "#000000";
case 5:
return "#32B78B";
default:
return "#000000";
}
},
//
reset() {
this.form = {
id: null,
activeName: null,
activeStart: null,
activeEnd: null,
activeContent: null,
activePoint: null,
joinRequire: null,
activeState: null,
createId: null,
createBy: null,
createTime: null,
updateId: null,
updateBy: null,
updateTime: null,
remark: null,
gridId: null,
gridName: null,
partId: null,
partName: null,
};
},
},
filters: {
activeState: function (value) {
// console.log(value);
switch (value) {
case 1:
return "审核中";
case 2:
return "进行中";
case 3:
return "已取消";
case 4:
return "已终止";
case 5:
return "已结束";
default:
return "";
}
},
},
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.app-container { .app-container {
.list-item { .list-item {
background-color: #fff; background-color: #fff;
border-radius: 16rpx; border-radius: 16rpx;
box-sizing: border-box; box-sizing: border-box;
padding: 25rpx; padding: 25rpx;
margin-bottom: 30rpx; margin-bottom: 30rpx;
margin-top: 30rpx;
.item-cell {
display: flex;
align-items: center;
.list-item-title {
text-align: center; .cell-lable {
border-bottom: 1rpx solid #000000; width: 200rpx;
font-size: 35rpx; font-size: 28rpx;
font-weight: bold; font-weight: 400;
} color: #9da2ab;
}
.Mytitle {
font-size: 30rpx; .cell-value {
margin: 20rpx 0; flex: 1;
font-weight: 550; font-size: 28rpx;
font-weight: 400;
} color: #2e2f31;
}
.mytext { }
line-height: 2;
} .cell-btn {
display: flex;
.item-cell { flex-direction: row-reverse;
display: flex; }
align-items: center;
& > view:not(.cell-btn) {
.cell-lable { margin-bottom: 20rpx;
width: 200rpx; }
font-size: 28rpx; }
font-weight: 400;
color: #9da2ab; & > .list-item:last-child {
} margin-bottom: 0;
}
.cell-value { }
flex: 1;
font-size: 28rpx;
font-weight: 400;
color: #2e2f31;
}
}
.cell-btn {
display: flex;
flex-direction: row-reverse;
}
&>view:not(.cell-btn) {
margin-bottom: 20rpx;
}
}
&>.list-item:last-child {
margin-bottom: 0;
}
.yingfuDom {
padding: 20rpx 0;
display: grid;
grid-template-columns: 1fr;
row-gap: 10rpx;
.items{
display: flex;
align-items: center;
.label {
// display: flex;
// align-items: center;
// justify-content: center;
}
.value {
// display: flex;
// align-items: center;
// justify-content: center;
}
}
}
}
.list-item-box {
display: flex;
text-align: center;
.list-item-box-top {
font-size: 30rpx;
font-weight: bold;
margin-right: 20rpx;
}
.list-item-box-bottom {
font-size: 30rpx;
font-weight: bold;
}
.good {
color: green;
}
}
</style> </style>

@ -1,129 +0,0 @@
<template>
<view class="app-container"> class="app-container"
<u-navbar leftText="返回" title="活动详情" :autoBack="true" :placeholder="true" />
<view class="list-item active view-global">
<view class="item-cell">
<view class="cell-lable">活动名称</view>
<view class="cell-value">{{ data.activeName || "-"}}</view>
</view>
<view class="item-cell">
<view class="cell-lable">活动时间</view>
<view class="cell-value">{{ data.activeStart || "-"}}{{data.activeEnd || "-"}}</view>
</view>
<view class="item-cell">
<view class="cell-lable">活动内容</view>
<view class="cell-value">{{ data.activeContent || '-'}}</view>
</view>
<view class="item-cell" style="align-items: flex-start">
<view class="cell-lable">活动地点</view>
<view class="cell-value">{{data.activePoint || '-'}}</view>
</view>
<view class="item-cell" style="align-items: flex-start">
<view class="cell-lable">附件</view>
<view class="cell-value">{{ data.joinRequire || '-'}}</view>
</view>
<view class="item-cell" style="align-items: flex-start">
<view class="cell-lable">审核结果</view>
<view class="cell-value">{{data.activeState | activeState}}</view>
</view>
<view class="item-cell" style="align-items: flex-start">
<view class="cell-lable">审核意见</view>
<view class="cell-value">{{ data.opinion || '-'}}</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
onLoad(opiect) {
this.data = JSON.parse(opiect.item)
},
data() {
return {
data: {}
}
},
methods: {
//
previewAll(res) {
}
},
filters: {
activeState: function(value) {
// console.log(value);
switch (value) {
case "1":
return "审核中";
case "2":
return "审核通过";
case "3":
return "审核驳回";
case " 4":
return "已终止";
case "5":
return "已结束";
default:
return "";
}
},
},
}
</script>
<style lang="scss" scoped>
.app-container {
.list-item {
background-color: #fff;
border-radius: 16rpx;
box-sizing: border-box;
padding: 25rpx;
margin-bottom: 30rpx;
.item-cell {
display: flex;
align-items: center;
.cell-lable {
width: 200rpx;
font-size: 28rpx;
font-weight: 400;
color: #9da2ab;
}
.cell-value {
width: 500rpx;
font-size: 28rpx;
font-weight: 400;
color: #2e2f31;
white-space: nowrap;
/* 防止内容换行 */
overflow: hidden;
/* 隐藏超出内容 */
text-overflow: ellipsis;
/* 显示省略号 */
}
}
.cell-btn {
display: flex;
flex-direction: row-reverse;
}
&>view:not(.cell-btn) {
margin-bottom: 20rpx;
}
}
&>.list-item:last-child {
margin-bottom: 0;
}
}
</style>

@ -1,265 +1,191 @@
<template> <template>
<view class="app-container"> <view class="app-container">
<u-navbar leftText="返回" title="新增店铺活动" :autoBack="true" :placeholder="true" /> <u-navbar
<view class="form-item"> leftText="返回"
<view class="form-title"> title="新增店铺活动"
活动名称 :autoBack="true"
<text></text> :placeholder="true"
</view> />
<view class="item-input view-global"> <view class="form-item">
<u--input placeholder="请输入名称" border="none" :customStyle="{ height: '45rpx' }" <view class="form-title">
v-model="form.activeName"></u--input> 活动名称
</view> <text></text>
</view> </view>
<view class="form-item"> <view class="item-input view-global">
<view class="form-title"> <u--input
活动时间 placeholder="请输入名称"
<text></text> border="none"
</view> :customStyle="{ height: '45rpx' }"
<view class="item-input view-global" style=" v-model="form.activeName"
></u--input>
</view>
</view>
<view class="form-item">
<view class="form-title">
活动时间
<text></text>
</view>
<view
class="item-input view-global"
style="
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
" @click="isCalendar = true"> "
<text :style="'color:' + fColor(calendarRang)">{{ @click="isCalendar = true"
>
<text :style="'color:' + fColor(calendarRang)">{{
calendarRang || "请选择日期" calendarRang || "请选择日期"
}}</text> }}</text>
<u-icon name="arrow-right" color="#D5D5D5"></u-icon> <u-icon name="arrow-right" color="#D5D5D5"></u-icon>
</view> </view>
</view> </view>
<view class="form-item"> <view class="form-item">
<view class="form-title"> <view class="form-title">
活动描述 活动内容
<text></text> <text></text>
</view> </view>
<view class="item-input view-global"> <view class="item-input view-global">
<u--textarea v-model="form.activeContent" placeholder="请输入内容" border="none"></u--textarea> <u--textarea
</view> v-model="form.activeContent"
</view> placeholder="请输入内容"
<view class="form-item"> border="none"
<view class="form-title"> ></u--textarea>
活动地点 </view>
<text></text> </view>
</view> <view class="form-item">
<view class="item-input view-global"> <view class="form-title">
<u--input placeholder="请输入活动地点" border="none" :customStyle="{ height: '45rpx' }" 活动地点
v-model="form.activePoint"></u--input> <text></text>
</view> </view>
</view> <view class="item-input view-global">
<!-- <view class="form-item"> <u--input
<view class="form-title"> placeholder="请输入活动地点"
参与条件 border="none"
<text></text> :customStyle="{ height: '45rpx' }"
</view> v-model="form.activePoint"
<view class="item-input view-global"> ></u--input>
<u--textarea v-model="form.joinRequire" placeholder="请输入内容" border="none"></u--textarea> </view>
</view> </view>
</view> --> <view class="form-item">
<view class="form-item"> <view class="form-title">
<view class="form-title"> 参与条件
上传附件 <text></text>
<text></text> </view>
</view> <view class="item-input view-global">
<view class="item-input view-global"> <u--textarea
<view class="" @click="openFile" v-show="!fileName"> v-model="form.joinRequire"
点击上传 placeholder="请输入内容"
</view> border="none"
<view class="view-globalFell" v-show="fileName"> ></u--textarea>
<view class="fileName"> </view>
{{fileName}} </view>
</view> <fixed-buttom title="提交" @click="handleAdd"></fixed-buttom>
<view class="fileNamedelet" @click="fileName = ''">
删除
</view>
</view>
</view>
</view>
<fixed-buttom title="提交" @click="handleAdd"></fixed-buttom>
<!-- 日历 --> <!-- 日历 -->
<u-calendar :show="isCalendar" :mode="mode" @confirm="onCalendar" @close="onCloseCalendar"></u-calendar> <u-calendar
</view> :show="isCalendar"
:mode="mode"
@confirm="onCalendar"
@close="onCloseCalendar"
></u-calendar>
</view>
</template> </template>
<script> <script>
import { import { addActivity } from "../../api/jn/apply";
addActivity
} from "../../api/jn/apply";
export default { export default {
data() { data() {
return { return {
form: {}, form: {},
fileName: "", isCalendar: false,
isCalendar: false, calendarRang: "",
calendarRang: "", mode: "range",
mode: "range", };
fileWhiteList: ['txt', 'doc', 'docx', 'xls', 'xlsx', 'pdf', ] },
}; onLoad() {
}, this.reset();
onLoad() { },
this.reset(); methods: {
}, //
methods: { reset() {
// this.form = {
reset() { id: null,
this.form = { activeName: null,
id: null, activeStart: null,
activeName: null, activeEnd: null,
activeStart: null, activeContent: null,
activeEnd: null, activePoint: null,
activeContent: null, joinRequire: null,
activePoint: null, activeState: 1,
joinRequire: null, createId: null,
activeState: 1, createBy: null,
createId: null, createTime: null,
createBy: null, updateId: null,
createTime: null, updateBy: null,
updateId: null, updateTime: null,
updateBy: null, remark: null,
updateTime: null, gridId: null,
remark: null, gridName: null,
gridId: null, partId: null,
gridName: null, partName: null,
partId: null, };
partName: null, },
}; onCloseCalendar() {
}, this.isCalendar = false;
onCloseCalendar() { },
this.isCalendar = false; onCalendar(e) {
}, console.log(e);
onCalendar(e) { this.calendarRang = `${e[0]}——${e[e.length - 1]}`;
console.log(e); this.form.activeStart = e[0];
this.calendarRang = `${e[0]}——${e[e.length - 1]}`; this.form.activeEnd = e[e.length - 1];
this.form.activeStart = e[0]; this.isCalendar = false;
this.form.activeEnd = e[e.length - 1]; },
this.isCalendar = false; handleAdd() {
}, console.log(this.form);
handleAdd() { addActivity(this.form).then((response) => {
console.log(this.form); uni.navigateBack({
addActivity(this.form).then((response) => { delta: 1,
uni.navigateBack({ });
delta: 1, });
}); },
}); fColor(calendarRang) {
}, return calendarRang ? "#2e2f31" : "#c0c4cc";
fColor(calendarRang) { },
return calendarRang ? "#2e2f31" : "#c0c4cc"; },
}, };
//2
//
openFile() {
uni.chooseFile({
count: 1, //100
extension: ['.zip', '.doc', '.xls', '.pdf', 'docx', '.rar', '.7z', '.jpg', '.png', '.jpeg'],
success: (res) => {
console.log(res);
if (res.tempFiles[0].size / 1024 / 1024 > 20) {
this.$refs.uToast.show({
title: '附件大小不能超过20M',
type: 'warning',
})
return;
}
this.resultPath(res.tempFilePaths[0], res.tempFiles[0].name);
}
});
},
//
resultPath(path, fileName) {
console.log(path)
console.log(fileName)
uni.showLoading({
title: '上传中...',
});
uni.uploadFile({
url: "https://t-jn-bjh-admin-server.jsszkd.com/common/upload",
filePath: path,
header: {
// "Authorization": "xxx",
// 'content-type':'multipart/form-data; boundary=----WebKitFormBoundaryHEdN1AIjcdUkAaXM',
},
formData: {
// 'user': 'test'
},
success: (uploadFileRes) => {
let obj = JSON.parse(uploadFileRes.data);
console.log(obj);
this.fileName = obj.originalFilename
this.form.joinRequire = obj.url
uni.showToast({
title: obj.msg,
icon: 'none',
duration: 1500
})
},
fail: (err) => {
this.$refs.uToast.show({
title: '上传失败',
type: 'error',
});
uni.hideLoading();
}
});
},
},
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.form-item { .form-item {
.form-title { .form-title {
position: relative; position: relative;
font-size: 30rpx; font-size: 30rpx;
font-weight: bold; font-weight: bold;
color: #2e2f31; color: #2e2f31;
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
.form-title text {
content: "";
position: absolute;
left: 0;
bottom: 0;
height: 12rpx;
width: 140rpx;
background: url("/static/images/juxing.png");
background-size: cover;
max-width: 300rpx;
z-index: 0;
}
.item-input {
margin-bottom: 30rpx;
border-radius: 16rpx;
background-color: #fff;
box-sizing: border-box;
padding: 25rpx;
}
.view-globalFell {
display: flex;
align-items: center;
.fileName { .form-title text {
max-width: 400rpx; content: "";
white-space: nowrap; position: absolute;
/* 不换行 */ left: 0;
overflow: hidden; bottom: 0;
/* 溢出部分隐藏 */ height: 12rpx;
text-overflow: ellipsis; width: 140rpx;
/* 显示省略号 */ background: url("/static/images/juxing.png");
margin-right: 30rpx; background-size: cover;
} max-width: 300rpx;
z-index: 0;
}
.fileNamedelet { .item-input {
width: 100rpx; margin-bottom: 30rpx;
color: red; border-radius: 16rpx;
} background-color: #fff;
} box-sizing: border-box;
} padding: 25rpx;
}
}
</style> </style>

@ -1,191 +0,0 @@
<template>
<view class="app-container">
<u-navbar
leftText="返回"
title="新增店铺活动"
:autoBack="true"
:placeholder="true"
/>
<view class="form-item">
<view class="form-title">
活动名称
<text></text>
</view>
<view class="item-input view-global">
<u--input
placeholder="请输入名称"
border="none"
:customStyle="{ height: '45rpx' }"
v-model="form.activeName"
></u--input>
</view>
</view>
<view class="form-item">
<view class="form-title">
活动时间
<text></text>
</view>
<view
class="item-input view-global"
style="
display: flex;
align-items: center;
justify-content: space-between;
"
@click="isCalendar = true"
>
<text :style="'color:' + fColor(calendarRang)">{{
calendarRang || "请选择日期"
}}</text>
<u-icon name="arrow-right" color="#D5D5D5"></u-icon>
</view>
</view>
<view class="form-item">
<view class="form-title">
活动内容
<text></text>
</view>
<view class="item-input view-global">
<u--textarea
v-model="form.activeContent"
placeholder="请输入内容"
border="none"
></u--textarea>
</view>
</view>
<view class="form-item">
<view class="form-title">
活动地点
<text></text>
</view>
<view class="item-input view-global">
<u--input
placeholder="请输入活动地点"
border="none"
:customStyle="{ height: '45rpx' }"
v-model="form.activePoint"
></u--input>
</view>
</view>
<view class="form-item">
<view class="form-title">
参与条件
<text></text>
</view>
<view class="item-input view-global">
<u--textarea
v-model="form.joinRequire"
placeholder="请输入内容"
border="none"
></u--textarea>
</view>
</view>
<fixed-buttom title="提交" @click="handleAdd"></fixed-buttom>
<!-- 日历 -->
<u-calendar
:show="isCalendar"
:mode="mode"
@confirm="onCalendar"
@close="onCloseCalendar"
></u-calendar>
</view>
</template>
<script>
import { addActivity } from "../../api/jn/apply";
export default {
data() {
return {
form: {},
isCalendar: false,
calendarRang: "",
mode: "range",
};
},
onLoad() {
this.reset();
},
methods: {
//
reset() {
this.form = {
id: null,
activeName: null,
activeStart: null,
activeEnd: null,
activeContent: null,
activePoint: null,
joinRequire: null,
activeState: 1,
createId: null,
createBy: null,
createTime: null,
updateId: null,
updateBy: null,
updateTime: null,
remark: null,
gridId: null,
gridName: null,
partId: null,
partName: null,
};
},
onCloseCalendar() {
this.isCalendar = false;
},
onCalendar(e) {
console.log(e);
this.calendarRang = `${e[0]}——${e[e.length - 1]}`;
this.form.activeStart = e[0];
this.form.activeEnd = e[e.length - 1];
this.isCalendar = false;
},
handleAdd() {
console.log(this.form);
addActivity(this.form).then((response) => {
uni.navigateBack({
delta: 1,
});
});
},
fColor(calendarRang) {
return calendarRang ? "#2e2f31" : "#c0c4cc";
},
},
};
</script>
<style lang="scss" scoped>
.form-item {
.form-title {
position: relative;
font-size: 30rpx;
font-weight: bold;
color: #2e2f31;
margin-bottom: 20rpx;
}
.form-title text {
content: "";
position: absolute;
left: 0;
bottom: 0;
height: 12rpx;
width: 140rpx;
background: url("/static/images/juxing.png");
background-size: cover;
max-width: 300rpx;
z-index: 0;
}
.item-input {
margin-bottom: 30rpx;
border-radius: 16rpx;
background-color: #fff;
box-sizing: border-box;
padding: 25rpx;
}
}
</style>

@ -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="搜索关键词"
@ -15,13 +15,13 @@
:clearabled="true" :clearabled="true"
class="view-global" class="view-global"
bgColor="#fff" bgColor="#fff"
@change="ListMsg" @search="onSearch"
@clear="onClear"
></u-search> ></u-search>
<view class="msg-list"> <view class="msg-list">
<view <view
class="msg-item view-global" class="msg-item view-global"
v-for="(item, index) in listMsgs" v-for="(item, index) in listMsgs"
@click="getMesInfo(item)"
:key="index" :key="index"
> >
<view class="msg-icon" style="background-color: #367bef"> <view class="msg-icon" style="background-color: #367bef">
@ -29,7 +29,7 @@
<u-badge <u-badge
bgColor="#FE3434" bgColor="#FE3434"
max="99" max="99"
:isDot="item.isLook == 1 ? false : true"
:absolute="true" :absolute="true"
:offset="[0, 0]" :offset="[0, 0]"
></u-badge> ></u-badge>
@ -77,74 +77,68 @@
<view class="msg-date">19:18</view> <view class="msg-date">19:18</view>
</view> --> </view> -->
</view> </view>
<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>
import { shopIdlist, deleteShopId, getInfoShop, isLookCount } from "../../api/jn/news"; import { listNews, delNews } from "../../api/jn/news";
export default { export default {
data() { data() {
return { return {
listMsgs: [], listMsgs: [],
// //
queryParams: { queryParams: {
pageNum: 1,
pageSize: 10,
title: "", title: "",
id:'5', status: 0
}, },
show: false,
msgInfo: {
title:"",
content:""
},
}; };
}, },
onLoad() { onLoad() {
const launchOptions = uni.getLaunchOptionsSync();
const { query } = launchOptions; },
// console.log(query,"query"); onShow() {
if(query.storeId) { this.ListMsg();
this.queryParams.id = query.storeId;
this.ListMsg();
} else {
uni.$u.toast('店铺id为空')
}
// this.ListMsg();
}, },
methods: { methods: {
onAllclear() { onAllclear() {
this.$modal.confirm('确定删除所有消息吗?').then(() => { this.$modal.confirm('确定删除所有消息吗?').then(() => {
deleteShopId(this.queryParams.id).then((res) => { let ids = [];
if(res.code == 200) { this.listMsgs.forEach(element => {
uni.showToast({ title: "删除成功", icon: 'success' }) ids.push(element.id);
this.ListMsg(); });
} if(ids.length == 0) {
}) return;
}) } else {
delNews(ids).then((res) => {
console.log(JSON.stringify(res),"删除接口");
if(res.code == 200) {
this.ListMsg();
}
});
}
})
},
onSearch() {
this.ListMsg();
},
onClear() {
this.queryParams.title = "";
this.ListMsg();
}, },
getMesInfo(item) {
this.show = true;
this.msgInfo = item;
getInfoShop(item.id).then(res=>{})
},
ListMsg() { ListMsg() {
shopIdlist(this.queryParams).then((res) => { listNews(this.queryParams).then((res) => {
this.listMsgs = res.data; // console.log(res);
// if(res.code == 200) { this.listMsgs = res.rows;
// uni.setTabBarBadge({ if(res.code == 200) {
// // uni.setTabBarBadge({
// index: 1, //tabbar //
// text: res.total + '', // index: 1, //tabbar
// }); text: res.total + '', //
// } });
}
}); });
}, },
confirm(){
this.show = false
this.ListMsg();
},
}, },
}; };
</script> </script>
@ -167,11 +161,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
.u-badge {
width: 10px;
height: 10px;
left: 0px;
}
image { image {
height: 44rpx; height: 44rpx;
width: 44rpx; width: 44rpx;
@ -204,24 +194,4 @@ 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>

@ -1,248 +1,142 @@
<template> <template>
<view class="app-container"> <view class="app-container">
<!-- <u-navbar leftText="返回" title="店牌店招预审" :autoBack="true" :placeholder="true"> <u-navbar
<view slot="right"> leftText="返回"
<text class="nav-right"></text> title="店铺店招预审"
</view> :autoBack="true"
</u-navbar> --> :placeholder="true"
<view class="list-item"> >
<view slot="right">
<view class="list-item-title">{{levelList[0].name || ""}}</view> <text class="nav-right"></text>
<view> </view>
<view class="mytext" v-html="levelList[0].msg"> </u-navbar>
<!-- {{levelList[0].msg || ""}} --> <view class="list-item">
<view>江宁开发区店招店牌申报流程</view>
</view> <view>
<!-- <view class="Mytitle"> 所需材料
所需材料 1.实景效果图A4纸全页近景1份远景2份包含白天和夜晚店招亮化远景实景效果图
</view> 要点照片要求横向拍摄原图制作彩色打印
<view class="mytext"> 2.房屋租赁合同复印件房屋产权证复印件营业执照副本复印件
1.实景效果图A4纸全页近景1份远景2份包含白天和夜晚店招亮化远景实景效果图<br /> 3.法人身份证复印件或经办人身份证复印件(经办人办理需法人开具委托书
要点照片要求横向拍摄原图制作彩色打印<br /> 4.施工说明
2.房屋租赁合同复印件房屋产权证复印件营业执照副本复印件<br /> 要点用文字描述设置所使用的材质总体长度宽度厚度字体及英文长数量LOGO长宽等
3.法人身份证复印件或经办人身份证复印件(经办人办理需法人开具委托书<br /> 5.加盟协议授权书商标注册证涉及注册商标需提供
4.施工说明<br /> 6.安全检测报告涉及墙体广告字LED显示屏
要点用文字描述设置所使用的材质总体长度宽度厚度字体及英文长数量LOGO长宽等<br /> 7.洗衣店宠物店等需办理排水证
5.加盟协议授权书商标注册证涉及注册商标需提供<br /> 8.涉及舞台活动搭建需提供舞台搭建资质舞台结构图专家论证方案如涉及外来人员参与表演需到区防疫指挥中心进行报备
6.安全检测报告涉及墙体广告字LED显示屏<br /> 注意事项
7.洗衣店宠物店等需办理排水证<br /> 1.店招店牌设置地址必须与营业执照地址相符合
8.涉及舞台活动搭建需提供舞台搭建资质舞台结构图专家论证方案如涉及外来人员参与表演需到区防疫指挥中心进行报备<br /> 2.店招店牌不宜使用泡沫即时贴扣板等材料制作店招店牌主要街路窗口地区按总体规划不得使用灯箱布和喷绘布等材料设置店招广告一般为铝塑底板亚克力字
</view> 3.店招店牌内容仅限于本单位的名称字号标识禁止出现商品营销经营服务范围电话号码变相发布广告等不符合规定的内容
<view class="Mytitle"> 4.店招店牌字体大小应与店招广告尺寸相协调
注意事项 5.店招店牌效果图必须为实景拍摄门面整体轮廓真实准确反映现场所设置位置电脑准确制作设置画面要求画面清晰店面环境整洁无乱堆放晾晒张贴等位置准确
</view> 6.完全检测报告需在安装完成后一个月内送至我局备案
<view class="mytext"> 7.经批准后安装店招店牌的应设置围挡及警示标志做到安全施工文明施工
1.店招店牌设置地址必须与营业执照地址相符合<br /> 8.案件办理时间为上午8301200 下午200600
2.店招店牌不宜使用泡沫即时贴扣板等材料制作店招店牌主要街路窗口地区按总体规划不得使用灯箱布和喷绘布等材料设置店招广告一般为铝塑底板亚克力字<br /> 联系方式
3.店招店牌内容仅限于本单位的名称字号标识禁止出现商品营销经营服务范围电话号码变相发布广告等不符合规定的内容<br /> 邮箱280754057@qq.com 电话18151671177
4.店招店牌字体大小应与店招广告尺寸相协调<br /> 店招店牌备案需要一定的时间请耐心等待没有收到前来办理的通知前请勿制作以及安装如在备案过程当中进行制作及安装所造成的一切后果由其自行承担
5.店招店牌效果图必须为实景拍摄门面整体轮廓真实准确反映现场所设置位置电脑准确制作设置画面要求画面清晰店面环境整洁无乱堆放晾晒张贴等位置准确<br /> </view>
6.完全检测报告需在安装完成后一个月内送至我局备案<br /> </view>
7.经批准后安装店招店牌的应设置围挡及警示标志做到安全施工文明施工<br /> </view>
8.案件办理时间为上午8301200 下午200600<br />
</view>
<view class="Mytitle">
联系方式
</view>
<view class="mytext">
邮箱280754057@qq.com <br />
电话18151671177 <br />
店招店牌备案需要一定的时间请耐心等待没有收到前来办理的通知前请勿制作以及安装如在备案过程当中进行制作及安装所造成的一切后果由其自行承担<br />
</view>
</view>
<view class="Mytitle">
受理材料:
</view>
<view class="mytext">
受理材料如下<br />
1.店招店牌设置申请表<br />
2.实景效果图A4纸彩色全页近景远景各一份<br />
3.营业执照或者其他证明主体资格合法有效的文件复印件一份<br />
4.房屋租赁合同A4纸复印件和房屋产权证A4纸复印件<br />
5.施工说明用文字描述设置所使用的材质总体长度宽度厚度字体及英文长数量LOGO长宽等<br />
6.提供商标注册证版权证著作证加盟协议或名称使用授权书复印件涉及商标版权著作权<br />
7.法人身份证复印件或经办人身份证复印件经办人办理需法人或公司开具委托书<br />
8.店招店牌承诺书
</view>
<view class="Mytitle">
注意事项:
</view>
<view class="mytext">
注意事项如下<br />
1.店招标牌设置地址必须与营业执照地址相符合<br />
2.店招标牌设置名称必须与营业执照名称相符合加盟除外<br />
3.店招标牌效果图必须为实景拍摄房屋整体轮廓真实准确反映现场所设置位置电脑准确制作设置画面要求画面清晰店面环境整洁位置准确实景效果图需将相邻两家全部反映出来<br />
4.其他广告效果图必须能够准确体现设置位置要求画面清晰<br />
5.设置与申报效果图保持一致<br />
6.履行门前三包责任<br />
7.符合开发区商铺经营门类<br />
8.依法合法经营严格按照市场监督局核准的经营范围经营<br />
</view>
<view class="Mytitle">
支撑文件:
</view>
<view class="mytext">
1.南京市店招店牌设置准则<br />
2.南京市店招标牌设置管理办法<br />
3南京市店招店牌设置导则<br />
4.江苏省广告管理条例<br />
5.城市市容和环境卫生管理条例<br />
6.南京市江宁区人民政府办公室文件江宁政办发[2013]56关于全区核心城区商业业态控制调整工作的实施方案<br />
7.南京江宁经济技术开发区管理委员会宁经管委发[2005]284关于对开发区胜太路等主要街道商业经营门类进行规范管理的通知<br />
8.南京江宁经济技术开发区管理委员会宁经管委发[2008]283关于新增庄排路等街区实行商业经营门类规范管理的通知<br />
</view> -->
</view>
<view class="myimg">
<!-- <img src="../../static/images/banner/liucheng.png" alt="" /> -->
<img :src="baseUrl + levelList[0].img" alt="" />
</view>
</view>
</view>
</template> </template>
<script> <script>
import {
listysfwlist,
} from "../../api/jn/apply";
import config from '@/config'
export default {
data() {
return {
//
form: {},
baseUrl: config.baseUrl,
levelList: [{
name: "",
msg: "",
img: ""
}],
//
queryParams: {
pageNum: 1,
pageSize: 10,
status: "1"
},
};
},
onLoad() {
this.getList();
},
methods: {
onSearch() {
this.getList();
},
onClear() {
this.queryParams.sbLevelName = "";
this.getList();
},
getList() {
listysfwlist(this.queryParams).then((res) => {
console.log(res);
if (res.rows.length != 0) {
this.levelList = res.rows;
} else { export default {
this.levelList = [{ data() {
name: "", return {
msg: "", //
img: "" form: {},
}] levelList: [],
} //
}); queryParams: {
}, sbLevelName: null,
// },
reset() { };
this.form = { },
id: null, onLoad() {
activeName: null, this.getList();
activeStart: null, },
activeEnd: null, methods: {
activeContent: null, onSearch() {
activePoint: null, this.getList();
joinRequire: null, },
activeState: null, onClear() {
createId: null, this.queryParams.sbLevelName = "";
createBy: null, this.getList();
createTime: null, },
updateId: null, getList() {
updateBy: null,
updateTime: null, },
remark: null, //
gridId: null, reset() {
gridName: null, this.form = {
partId: null, id: null,
partName: null, activeName: null,
}; activeStart: null,
}, activeEnd: null,
}, activeContent: null,
}; activePoint: null,
joinRequire: null,
activeState: null,
createId: null,
createBy: null,
createTime: null,
updateId: null,
updateBy: null,
updateTime: null,
remark: null,
gridId: null,
gridName: null,
partId: null,
partName: null,
};
},
},
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.app-container { .app-container {
.list-item { .list-item {
background-color: #fff; background-color: #fff;
border-radius: 16rpx; border-radius: 16rpx;
box-sizing: border-box; box-sizing: border-box;
padding: 25rpx; padding: 25rpx;
margin-bottom: 30rpx; margin-bottom: 30rpx;
margin-top: 30rpx; margin-top: 30rpx;
.item-cell {
.list-item-title { display: flex;
text-align: center; align-items: center;
border-bottom: 1rpx solid #000000;
font-size: 35rpx; .cell-lable {
font-weight: bold; width: 200rpx;
} font-size: 28rpx;
font-weight: 400;
.Mytitle { color: #9da2ab;
font-size: 30rpx; }
margin: 20rpx 0;
font-weight: 550; .cell-value {
flex: 1;
} font-size: 28rpx;
font-weight: 400;
.mytext { color: #2e2f31;
line-height: 2; }
} }
.myimg { .cell-btn {
text-align: center; display: flex;
} flex-direction: row-reverse;
}
.item-cell {
display: flex; & > view:not(.cell-btn) {
align-items: center; margin-bottom: 20rpx;
}
.cell-lable { }
width: 200rpx;
font-size: 28rpx; & > .list-item:last-child {
font-weight: 400; margin-bottom: 0;
color: #9da2ab; }
} }
.cell-value {
flex: 1;
font-size: 28rpx;
font-weight: 400;
color: #2e2f31;
}
}
.cell-btn {
display: flex;
flex-direction: row-reverse;
}
&>view:not(.cell-btn) {
margin-bottom: 20rpx;
}
}
&>.list-item:last-child {
margin-bottom: 0;
}
}
</style> </style>

@ -1,281 +1,155 @@
<template> <template>
<view class="app-container"> <view class="app-container">
<!-- <u-navbar leftText="返回" title="门前三包服务" :autoBack="true" :placeholder="true"> <u-navbar
<view slot="right"> leftText="返回"
<text class="nav-right"></text> title="门前三包服务"
</view> :autoBack="true"
</u-navbar> --> :placeholder="true"
<u-search height="75rpx" placeholder="输入评级规则查询" v-model="queryParams.rateRuleName" shape="square" >
:showAction="false" :clearabled="true" class="view-global" bgColor="#fff" @search="onSearch" <view slot="right">
@clear="onClear"></u-search> <text class="nav-right">评级规则</text>
<view class="list-item"> </view>
<view class="list-item-box"> </u-navbar>
<view class="list-item-box-top"> <u-search
店铺名称: height="75rpx"
</view> placeholder="搜索关键词"
<view class="list-item-box-bottom"> v-model="queryParams.sbLevelName"
{{titleObj.shopName || '优秀店铺'}} shape="square"
</view> :showAction="false"
</view> :clearabled="true"
<view class="list-item-box"> class="view-global"
<view class="list-item-box-top"> bgColor="#fff"
三包等级: @search="onSearch"
</view> @clear="onClear"
<view class="list-item-box-bottom " ></u-search>
:class="titleObj.sbLevel==3?'red':titleObj.sbLevel==4?'yellow':titleObj.sbLevel==5?'good':''"> <view
<!-- 3 4 5绿 --> class="list-item active view-global"
{{titleObj.sbLevel==3?'红牌':titleObj.sbLevel==4?'黄牌':titleObj.sbLevel==5?'绿牌':'暂无'}} v-for="(item, index) in levelList"
</view> :key="index"
</view> >
<view class="list-item-box"> <view>
<view class="list-item-box-top"> <image
三包等级凭证: width="100%"
</view> src="/static/images/umale/sanbao.png"
<view class="list-item-box-bottom"> mode="scaleToFill"
暂无 />
</view> </view>
</view> <view class="item-cell">
<view class="list-item-box"> <view class="cell-lable">店铺名称</view>
<view class="list-item-box-top"> <view class="cell-value">{{ item.sbLevelName }}</view>
有效期: </view>
</view> <view class="item-cell">
<view class="list-item-box-bottom"> <view class="cell-lable">三包等级</view>
长期有效 <view class="cell-value">{{ item.relationRateRule }}</view>
</view> </view>
</view> <view class="item-cell">
<view class="cell-lable">有效期</view>
</view> <view class="cell-value">{{ item.createTime }}</view>
<view class="list-item"> </view>
<view class="list-item-title">{{levelList[0].rateRuleName || ''}}</view> </view>
<view> </view>
<view class="Mytitle">
</view>
<view class="mytext" v-html="levelList[0].rateRuleContent">
</view>
<!-- <view class="mytext">
<u-parse :content="levelList[0].rateRuleContent" :tag-style="style"></u-parse>
</view> -->
</view>
<u-toast ref="uToast"></u-toast>
</view>
</view>
</template> </template>
<script> <script>
// import uParse from '@/components/u-parse/u-parse.vue' import { listLevel } from "../../api/jn/level";
import {
listraterule, export default {
jnshop data() {
} from "../../api/jn/apply"; return {
export default { //
data() { form: {},
return { levelList: [],
// //
form: {}, queryParams: {
levelList: [{ sbLevelName: null,
rateRuleName: "", },
rateRuleContent: "" };
}], },
// onLoad() {
queryParams: { this.getList();
rateRuleName: "", },
sbLevelName: null, methods: {
pageNum: 1, onSearch() {
pageSize: 10, this.getList();
state: "1" },
}, onClear() {
titleObj: { this.queryParams.sbLevelName = "";
sbLevel: "", this.getList();
shopName: "", },
}, getList() {
style: { listLevel(this.queryParams).then((res) => {
p: 'font-size:20rpx;!important' // console.log(res);
} this.levelList = res.rows;
}; });
}, },
onLoad() { //
this.getList(); reset() {
this.getXinxi(); this.form = {
}, id: null,
methods: { activeName: null,
getXinxi() { activeStart: null,
const launchOptions = uni.getLaunchOptionsSync(); activeEnd: null,
const { activeContent: null,
query activePoint: null,
} = launchOptions; joinRequire: null,
// console.log(query, "query"); activeState: null,
// console.log(Object.keys(query).length, "query.lengh"); createId: null,
if (Object.keys(query).length != 0) { createBy: null,
// 3 4 5绿 sbLevel shopName createTime: null,
jnshop(query.storeId).then((item) => { updateId: null,
// console.log(item); updateBy: null,
if (item.code == 200 && item.data) { updateTime: null,
this.titleObj.sbLevel = item.data.sbLevel remark: null,
this.titleObj.shopName = item.data.shopName gridId: null,
} else { gridName: null,
partId: null,
} partName: null,
}) };
} },
}, },
onSearch() { };
// this.getList();
this.$refs.uToast.show({
type: 'default',
title: '默认主题',
message: "暂无更多评级规则",
complete() {
}
})
},
onClear() {
this.queryParams.sbLevelName = "";
// this.getList();
},
getList() {
listraterule(this.queryParams).then((res) => {
// console.log(res);
if (res.rows.length != 0) {
this.levelList = res.rows;
} else {
this.levelList = [{
rateRuleName: "",
rateRuleContent: ""
}]
}
});
},
//
reset() {
this.form = {
id: null,
activeName: null,
activeStart: null,
activeEnd: null,
activeContent: null,
activePoint: null,
joinRequire: null,
activeState: null,
createId: null,
createBy: null,
createTime: null,
updateId: null,
updateBy: null,
updateTime: null,
remark: null,
gridId: null,
gridName: null,
partId: null,
partName: null,
};
},
},
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.app-container { .app-container {
.list-item { .list-item {
background-color: #fff; background-color: #fff;
border-radius: 16rpx; border-radius: 16rpx;
box-sizing: border-box; box-sizing: border-box;
padding: 25rpx; padding: 25rpx;
margin-bottom: 30rpx; margin-bottom: 30rpx;
margin-top: 30rpx; margin-top: 30rpx;
.item-cell {
display: flex;
align-items: center;
.list-item-title {
text-align: center; .cell-lable {
border-bottom: 1rpx solid #000000; width: 200rpx;
font-size: 35rpx; font-size: 28rpx;
font-weight: bold; font-weight: 400;
} color: #9da2ab;
}
.Mytitle {
font-size: 30rpx; .cell-value {
margin: 20rpx 0; flex: 1;
font-weight: 550; font-size: 28rpx;
font-weight: 400;
} color: #2e2f31;
}
.mytext { }
// line-height: 45rpx;
margin-top: 38rpx; .cell-btn {
display: grid; display: flex;
grid-template-columns: 1fr; flex-direction: row-reverse;
grid-row-gap: 20rpx; }
line-height: 2;
overflow: hidden; & > view:not(.cell-btn) {
} margin-bottom: 20rpx;
}
.item-cell { }
display: flex;
align-items: center; & > .list-item:last-child {
margin-bottom: 0;
.cell-lable { }
width: 200rpx; }
font-size: 28rpx;
font-weight: 400;
color: #9da2ab;
}
.cell-value {
flex: 1;
font-size: 28rpx;
font-weight: 400;
color: #2e2f31;
}
}
.cell-btn {
display: flex;
flex-direction: row-reverse;
}
&>view:not(.cell-btn) {
margin-bottom: 20rpx;
}
}
&>.list-item:last-child {
margin-bottom: 0;
}
}
.list-item-box {
display: flex;
text-align: center;
.list-item-box-top {
font-size: 30rpx;
font-weight: bold;
margin-right: 20rpx;
}
.list-item-box-bottom {
font-size: 30rpx;
font-weight: bold;
}
.good {
color: green;
}
.red {
color: red;
}
.yellow {
color: yellowgreen;
}
}
</style> </style>

@ -3,7 +3,7 @@ function scroll(event, ownerInstance) {
var detail = event.detail var detail = event.detail
var scrollWidth = detail.scrollWidth var scrollWidth = detail.scrollWidth
var scrollLeft = detail.scrollLeft var scrollLeft = detail.scrollLeft
// 获取当前组件的dataset说白了就是搞出来的垃ji // 获取当前组件的dataset说白了就是祸国殃民的腾xun搞出来的垃ji
var dataset = event.currentTarget.dataset var dataset = event.currentTarget.dataset
// 此为scroll-view外部包裹元素的宽度 // 此为scroll-view外部包裹元素的宽度
// 某些HX版本(3.1.18)发现view元素中大写的data-scrollWidth在wxs中变成了全部小写所以这里需要特别处理 // 某些HX版本(3.1.18)发现view元素中大写的data-scrollWidth在wxs中变成了全部小写所以这里需要特别处理

Loading…
Cancel
Save