更新统一三个页面

lijinlong
李劲龙 7 months ago
parent c2434a4e9b
commit 2bd0b8f26d

@ -33,63 +33,63 @@ export default {
this.globalData.config = config;
},
checkLogin() {
const launchOptions = uni.getLaunchOptionsSync();
const { query } = launchOptions;
console.log(query, "query");
// const launchOptions = uni.getLaunchOptionsSync();
// const { query } = launchOptions;
// console.log(query, "query");
// console.log(Object.keys(query).length,"query.lengh");
console.log(getToken(), "getToken()");
if (!getToken()) {
if (Object.keys(query).length !== 0) {
console.log("获取query");
// let params = this.getRequestParams();
// console.log(params,"params");
// if (location.href.includes("code=")) {
const code = query.code;
const token = query.token;
uni.setStorageSync("token", token);
// console.log(code,"code");
// console.log(token,"token");
getSqByaccesstoken({
code: code,
})
.then((res) => {
// console.log("accessToken");
uni.setStorageSync("accessToken", res.data.accessToken);
return getUserinfo({
accessToken: res.data.accessToken,
});
})
.then((el) => {
this.$tab.switchTab("/pages/index");
uni.setStorageSync("userInfo", el.data);
setToken(el.data.token);
// location.reload();
console.log("用户信息", el);
});
// }
} else {
// // #ifdef APP
console.log("进入APP判断");
// this.$tab.reLaunch("/pages/myLogin");
uni.reLaunch({
url: "/pages/myLogin",
});
// 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(getToken(), "getToken()");
// if (!getToken()) {
// if (Object.keys(query).length !== 0) {
// console.log("query");
// // let params = this.getRequestParams();
// // console.log(params,"params");
// // if (location.href.includes("code=")) {
// const code = query.code;
// const token = query.token;
// uni.setStorageSync("token", token);
// // console.log(code,"code");
// // console.log(token,"token");
// getSqByaccesstoken({
// code: code,
// })
// .then((res) => {
// // console.log("accessToken");
// uni.setStorageSync("accessToken", res.data.accessToken);
// return getUserinfo({
// accessToken: res.data.accessToken,
// });
// })
// .then((el) => {
// this.$tab.switchTab("/pages/index");
// uni.setStorageSync("userInfo", el.data);
// setToken(el.data.token);
// // location.reload();
// console.log("", el);
// });
// // }
// } else {
// // // #ifdef APP
// console.log("APP");
// // this.$tab.reLaunch("/pages/myLogin");
// uni.reLaunch({
// url: "/pages/myLogin",
// });
// // 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");
// this.$tab.reLaunch("/pages/myLogin");
// uni.navigateTo({
// url:'https://t-jn-development-manager.jsszkd.com/login?clientId=641775453324'
// })
}
} else {
this.$tab.reLaunch("/pages/index");
}
// console.log("Before navigateTo or reLaunch");
// // this.$tab.reLaunch("/pages/myLogin");
// // uni.navigateTo({
// // url:'https://t-jn-development-manager.jsszkd.com/login?clientId=641775453324'
// // })
// }
// } else {
// this.$tab.reLaunch("/pages/index");
// }
},
openErr(err) {
console.log(err, "报错信息");

@ -7,8 +7,22 @@ export function listActivity(query) {
method: "get",
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) {
return request({
@ -41,4 +55,11 @@ export function delActivity(id) {
url: "/jn/activity/" + id,
method: "delete",
});
}
//获取沿街店铺列表详细信息
export function jnshop(id) {
return request({
url: "/jn/shop/" + id,
method: "GET",
});
}

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

@ -1,6 +1,6 @@
// 应用全局配置
module.exports = {
// baseUrl: "http://39.101.188.84:9037",
// baseUrl: "http://192.168.0.105:9037",
TEST_LOGIN:"https://t-jn-development-manager.jsszkd.com/login", // ?clientId=
baseUrl: "https://t-jn-bjh-admin-server.jsszkd.com",

@ -11,7 +11,7 @@ Vue.use(uView)
// import 'video.js/dist/video-js.css'
// 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'
Vue.component('fixedButtom', fixedButtom)

@ -105,7 +105,7 @@
"subPackages": [
{
"root": "subcontract/work/",
"pages": [
"pages": [
{
"path": "event/index",
"style": {
@ -256,7 +256,15 @@
"navigationBarTitleText": "新增店铺活动",
"enablePullDownRefresh": false
}
},
},
{
"path" : "activity/activitydetails",
"style" :
{
"navigationBarTitleText": "活动详情",
"enablePullDownRefresh": false
}
},
{
"path": "threeGuarantees/index",
"style": {
@ -298,7 +306,8 @@
"navigationBarTitleText": "消息中心",
"enablePullDownRefresh": false
}
}
}
]
}
],

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

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

@ -0,0 +1,299 @@
<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,241 +1,177 @@
<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="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 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: [],
//
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();
},
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 "#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>
<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 {
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>
<template>
<view class="app-container">
<u-navbar leftText="返回" title="店铺活动管理" :autoBack="true" :placeholder="true">
<view slot="right">
<text class="nav-right"></text>
</view>
</u-navbar>
<view class="list-item">
<view class="list-item-title">{{levelList[0].activeName || ""}}</view>
<view>
<view class="Mytitle">
</view>
<view class="mytext">
{{levelList[0].activeRequest}}
</view>
</view>
</view>
</view>
</template>
<script>
import {
listActivity,
} from "../../api/jn/apply";
export default {
data() {
return {
//
form: {},
levelList: [{activeName:"",activeRequest:""}],
//
queryParams: {
sbLevelName: null,
pageNum: 1,
pageSize: 10,
},
};
},
onLoad() {
this.getList();
},
methods: {
onSearch() {
this.getList();
},
onClear() {
this.queryParams.sbLevelName = "";
this.getList();
},
getList() {
listActivity(this.queryParams).then((res) => {
console.log(res);
if(res.rows.length !=0){
this.levelList = res.rows;
}else{
this.levelList = [{activeName:"",activeRequest:""}]
}
});
},
//
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>
<style lang="scss" scoped>
.app-container {
.list-item {
background-color: #fff;
border-radius: 16rpx;
box-sizing: border-box;
padding: 25rpx;
margin-bottom: 30rpx;
margin-top: 30rpx;
.list-item-title {
text-align: center;
border-bottom: 1rpx solid #000000;
font-size: 35rpx;
font-weight: bold;
}
.Mytitle {
font-size: 30rpx;
margin: 20rpx 0;
font-weight: 550;
}
.mytext {
line-height: 45rpx;
}
.item-cell {
display: flex;
align-items: center;
.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;
}
}
</style>

@ -0,0 +1,129 @@
<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,191 +1,265 @@
<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>
<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> -->
<view class="form-item">
<view class="form-title">
上传附件
<text></text>
</view>
<view class="item-input view-global">
<view class="" @click="openFile" v-show="!fileName">
点击上传
</view>
<view class="view-globalFell" v-show="fileName">
<view class="fileName">
{{fileName}}
</view>
<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>
</view>
</template>
<script>
import {
addActivity
} from "../../api/jn/apply";
export default {
data() {
return {
form: {},
fileName: "",
isCalendar: false,
calendarRang: "",
mode: "range",
fileWhiteList: ['txt', 'doc', 'docx', 'xls', 'xlsx', 'pdf', ]
};
},
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";
},
//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>
<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;
}
.view-globalFell {
display: flex;
align-items: center;
.fileName {
max-width: 400rpx;
white-space: nowrap;
/* 不换行 */
overflow: hidden;
/* 溢出部分隐藏 */
text-overflow: ellipsis;
/* 显示省略号 */
margin-right: 30rpx;
}
.fileNamedelet {
width: 100rpx;
color: red;
}
}
}
</style>

@ -0,0 +1,191 @@
<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,142 +1,245 @@
<template>
<view class="app-container">
<u-navbar
leftText="返回"
title="店铺店招预审"
:autoBack="true"
:placeholder="true"
>
<view slot="right">
<text class="nav-right"></text>
</view>
</u-navbar>
<view class="list-item">
<view>江宁开发区店招店牌申报流程</view>
<view>
所需材料
1.实景效果图A4纸全页近景1份远景2份包含白天和夜晚店招亮化远景实景效果图
要点照片要求横向拍摄原图制作彩色打印
2.房屋租赁合同复印件房屋产权证复印件营业执照副本复印件
3.法人身份证复印件或经办人身份证复印件(经办人办理需法人开具委托书
4.施工说明
要点用文字描述设置所使用的材质总体长度宽度厚度字体及英文长数量LOGO长宽等
5.加盟协议授权书商标注册证涉及注册商标需提供
6.安全检测报告涉及墙体广告字LED显示屏
7.洗衣店宠物店等需办理排水证
8.涉及舞台活动搭建需提供舞台搭建资质舞台结构图专家论证方案如涉及外来人员参与表演需到区防疫指挥中心进行报备
注意事项
1.店招店牌设置地址必须与营业执照地址相符合
2.店招店牌不宜使用泡沫即时贴扣板等材料制作店招店牌主要街路窗口地区按总体规划不得使用灯箱布和喷绘布等材料设置店招广告一般为铝塑底板亚克力字
3.店招店牌内容仅限于本单位的名称字号标识禁止出现商品营销经营服务范围电话号码变相发布广告等不符合规定的内容
4.店招店牌字体大小应与店招广告尺寸相协调
5.店招店牌效果图必须为实景拍摄门面整体轮廓真实准确反映现场所设置位置电脑准确制作设置画面要求画面清晰店面环境整洁无乱堆放晾晒张贴等位置准确
6.完全检测报告需在安装完成后一个月内送至我局备案
7.经批准后安装店招店牌的应设置围挡及警示标志做到安全施工文明施工
8.案件办理时间为上午8301200 下午200600
联系方式
邮箱280754057@qq.com 电话18151671177
店招店牌备案需要一定的时间请耐心等待没有收到前来办理的通知前请勿制作以及安装如在备案过程当中进行制作及安装所造成的一切后果由其自行承担
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
//
form: {},
levelList: [],
//
queryParams: {
sbLevelName: null,
},
};
},
onLoad() {
this.getList();
},
methods: {
onSearch() {
this.getList();
},
onClear() {
this.queryParams.sbLevelName = "";
this.getList();
},
getList() {
},
//
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>
<style lang="scss" scoped>
.app-container {
.list-item {
background-color: #fff;
border-radius: 16rpx;
box-sizing: border-box;
padding: 25rpx;
margin-bottom: 30rpx;
margin-top: 30rpx;
.item-cell {
display: flex;
align-items: center;
.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>
<template>
<view class="app-container">
<u-navbar leftText="返回" title="店牌店招预审" :autoBack="true" :placeholder="true">
<view slot="right">
<text class="nav-right"></text>
</view>
</u-navbar>
<view class="list-item">
<view class="list-item-title">{{levelList[0].name || ""}}</view>
<view>
<view class="mytext">
{{levelList[0].msg || ""}}
</view>
<!-- <view class="Mytitle">
所需材料
</view>
<view class="mytext">
1.实景效果图A4纸全页近景1份远景2份包含白天和夜晚店招亮化远景实景效果图<br />
要点照片要求横向拍摄原图制作彩色打印<br />
2.房屋租赁合同复印件房屋产权证复印件营业执照副本复印件<br />
3.法人身份证复印件或经办人身份证复印件(经办人办理需法人开具委托书<br />
4.施工说明<br />
要点用文字描述设置所使用的材质总体长度宽度厚度字体及英文长数量LOGO长宽等<br />
5.加盟协议授权书商标注册证涉及注册商标需提供<br />
6.安全检测报告涉及墙体广告字LED显示屏<br />
7.洗衣店宠物店等需办理排水证<br />
8.涉及舞台活动搭建需提供舞台搭建资质舞台结构图专家论证方案如涉及外来人员参与表演需到区防疫指挥中心进行报备<br />
</view>
<view class="Mytitle">
注意事项
</view>
<view class="mytext">
1.店招店牌设置地址必须与营业执照地址相符合<br />
2.店招店牌不宜使用泡沫即时贴扣板等材料制作店招店牌主要街路窗口地区按总体规划不得使用灯箱布和喷绘布等材料设置店招广告一般为铝塑底板亚克力字<br />
3.店招店牌内容仅限于本单位的名称字号标识禁止出现商品营销经营服务范围电话号码变相发布广告等不符合规定的内容<br />
4.店招店牌字体大小应与店招广告尺寸相协调<br />
5.店招店牌效果图必须为实景拍摄门面整体轮廓真实准确反映现场所设置位置电脑准确制作设置画面要求画面清晰店面环境整洁无乱堆放晾晒张贴等位置准确<br />
6.完全检测报告需在安装完成后一个月内送至我局备案<br />
7.经批准后安装店招店牌的应设置围挡及警示标志做到安全施工文明施工<br />
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>
<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,
},
};
},
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 {
this.levelList = [{
name: "",
msg: "",
img: ""
}]
}
});
},
//
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>
<style lang="scss" scoped>
.app-container {
.list-item {
background-color: #fff;
border-radius: 16rpx;
box-sizing: border-box;
padding: 25rpx;
margin-bottom: 30rpx;
margin-top: 30rpx;
.list-item-title {
text-align: center;
border-bottom: 1rpx solid #000000;
font-size: 35rpx;
font-weight: bold;
}
.Mytitle {
font-size: 30rpx;
margin: 20rpx 0;
font-weight: 550;
}
.mytext {
line-height: 45rpx;
}
.myimg {
text-align: center;
}
.item-cell {
display: flex;
align-items: center;
.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,155 +1,236 @@
<template>
<view class="app-container">
<u-navbar
leftText="返回"
title="门前三包服务"
:autoBack="true"
:placeholder="true"
>
<view slot="right">
<text class="nav-right">评级规则</text>
</view>
</u-navbar>
<u-search
height="75rpx"
placeholder="搜索关键词"
v-model="queryParams.sbLevelName"
shape="square"
:showAction="false"
:clearabled="true"
class="view-global"
bgColor="#fff"
@search="onSearch"
@clear="onClear"
></u-search>
<view
class="list-item active view-global"
v-for="(item, index) in levelList"
:key="index"
>
<view>
<image
width="100%"
src="/static/images/umale/sanbao.png"
mode="scaleToFill"
/>
</view>
<view class="item-cell">
<view class="cell-lable">店铺名称</view>
<view class="cell-value">{{ item.sbLevelName }}</view>
</view>
<view class="item-cell">
<view class="cell-lable">三包等级</view>
<view class="cell-value">{{ item.relationRateRule }}</view>
</view>
<view class="item-cell">
<view class="cell-lable">有效期</view>
<view class="cell-value">{{ item.createTime }}</view>
</view>
</view>
</view>
</template>
<script>
import { listLevel } from "../../api/jn/level";
export default {
data() {
return {
//
form: {},
levelList: [],
//
queryParams: {
sbLevelName: null,
},
};
},
onLoad() {
this.getList();
},
methods: {
onSearch() {
this.getList();
},
onClear() {
this.queryParams.sbLevelName = "";
this.getList();
},
getList() {
listLevel(this.queryParams).then((res) => {
// console.log(res);
this.levelList = res.rows;
});
},
//
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>
<style lang="scss" scoped>
.app-container {
.list-item {
background-color: #fff;
border-radius: 16rpx;
box-sizing: border-box;
padding: 25rpx;
margin-bottom: 30rpx;
margin-top: 30rpx;
.item-cell {
display: flex;
align-items: center;
.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>
<template>
<view class="app-container">
<u-navbar leftText="返回" title="门前三包服务" :autoBack="true" :placeholder="true">
<view slot="right">
<text class="nav-right"></text>
</view>
</u-navbar>
<view class="list-item">
<view class="list-item-box">
<view class="list-item-box-top">
店铺名称:
</view>
<view class="list-item-box-bottom">
{{titleObj.shopName || '优秀店铺'}}
</view>
</view>
<view class="list-item-box">
<view class="list-item-box-top">
三包等级:
</view>
<view class="list-item-box-bottom " :class="titleObj.sbLevel==3?'red':titleObj.sbLevel==4?'yellow':titleObj.sbLevel==5?'good':''">
<!-- 3 4 5绿 -->
{{titleObj.sbLevel==3?'红牌':titleObj.sbLevel==4?'黄牌':titleObj.sbLevel==5?'绿牌':'暂无'}}
</view>
</view>
</view>
<view class="list-item">
<view class="list-item-title">{{levelList[0].rateRuleName || ''}}</view>
<view>
<view class="Mytitle">
</view>
<view class="mytext">
{{levelList[0].rateRuleContent || ""}}
</view>
</view>
</view>
</view>
</template>
<script>
import {
listraterule,
jnshop
} from "../../api/jn/apply";
export default {
data() {
return {
//
form: {},
levelList: [{
rateRuleName: "",
rateRuleContent: ""
}],
//
queryParams: {
sbLevelName: null,
pageNum: 1,
pageSize: 10,
},
titleObj:{
sbLevel:"",
shopName:""
}
};
},
onLoad() {
this.getList();
this.getXinxi();
},
methods: {
getXinxi() {
const launchOptions = uni.getLaunchOptionsSync();
const {
query
} = launchOptions;
console.log(query, "query");
console.log(Object.keys(query).length,"query.lengh");
if(Object.keys(query).length!=0){
// 3 4 5绿 sbLevel shopName
jnshop(query.storeId).then((item)=>{
console.log(item);
if(item.code == 200 && item.data){
this.titleObj.sbLevel = item.data.sbLevel
this.titleObj.shopName = item.data.shopName
}else{
}
})
}
},
onSearch() {
this.getList();
},
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>
<style lang="scss" scoped>
.app-container {
.list-item {
background-color: #fff;
border-radius: 16rpx;
box-sizing: border-box;
padding: 25rpx;
margin-bottom: 30rpx;
margin-top: 30rpx;
.list-item-title {
text-align: center;
border-bottom: 1rpx solid #000000;
font-size: 35rpx;
font-weight: bold;
}
.Mytitle {
font-size: 30rpx;
margin: 20rpx 0;
font-weight: 550;
}
.mytext {
line-height: 45rpx;
}
.item-cell {
display: flex;
align-items: center;
.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>

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

Loading…
Cancel
Save