6.28-提交页面

lijinlong
李劲龙 12 months ago
parent 2bd0b8f26d
commit 4842173222

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

@ -2,7 +2,8 @@
module.exports = { module.exports = {
// baseUrl: "http://192.168.0.105:9037", // baseUrl: "http://192.168.0.105: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",
// 应用信息 // 应用信息
appInfo: { appInfo: {

@ -12,9 +12,8 @@ Vue.use(uView)
// 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,17 +1,16 @@
<template> <template>
<view class="app-container"> <view class="app-container">
<u-navbar leftText="返回" title="店铺活动管理" :autoBack="true" :placeholder="true"> <!-- <u-navbar leftText="返回" title="店铺活动管理" :autoBack="true" :placeholder="true">
<view slot="right"> <view slot="right">
<text class="nav-right"></text> <text class="nav-right"></text>
</view> </view>
</u-navbar> </u-navbar> -->
<view class="list-item"> <view class="list-item">
<view class="list-item-title">{{levelList[0].activeName || ""}}</view> <view class="list-item-title">{{levelList[0].activeName || ""}}</view>
<view> <view>
<view class="Mytitle"> <view class="Mytitle">
</view> </view>
<view class="mytext"> <view class="mytext" v-html="levelList[0].activeRequest">
{{levelList[0].activeRequest}}
</view> </view>
</view> </view>
@ -35,6 +34,7 @@
sbLevelName: null, sbLevelName: null,
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
activeState:"1"
}, },
}; };
}, },
@ -116,7 +116,7 @@
} }
.mytext { .mytext {
line-height: 45rpx; line-height: 2;
} }
.item-cell { .item-cell {

@ -1,15 +1,17 @@
<template> <template>
<view class="app-container"> <view class="app-container">
<u-navbar leftText="返回" title="店牌店招预审" :autoBack="true" :placeholder="true"> <!-- <u-navbar leftText="返回" title="店牌店招预审" :autoBack="true" :placeholder="true">
<view slot="right"> <view slot="right">
<text class="nav-right"></text> <text class="nav-right"></text>
</view> </view>
</u-navbar> </u-navbar> -->
<view class="list-item"> <view class="list-item">
<view class="list-item-title">{{levelList[0].name || ""}}</view> <view class="list-item-title">{{levelList[0].name || ""}}</view>
<view> <view>
<view class="mytext"> <view class="mytext" v-html="levelList[0].msg">
{{levelList[0].msg || ""}} <!-- {{levelList[0].msg || ""}} -->
</view> </view>
<!-- <view class="Mytitle"> <!-- <view class="Mytitle">
所需材料 所需材料
@ -89,12 +91,12 @@
7.南京江宁经济技术开发区管理委员会宁经管委发[2005]284关于对开发区胜太路等主要街道商业经营门类进行规范管理的通知<br /> 7.南京江宁经济技术开发区管理委员会宁经管委发[2005]284关于对开发区胜太路等主要街道商业经营门类进行规范管理的通知<br />
8.南京江宁经济技术开发区管理委员会宁经管委发[2008]283关于新增庄排路等街区实行商业经营门类规范管理的通知<br /> 8.南京江宁经济技术开发区管理委员会宁经管委发[2008]283关于新增庄排路等街区实行商业经营门类规范管理的通知<br />
</view> --> </view> -->
</view> </view>
<view class="myimg"> <view class="myimg">
<!-- <img src="../../static/images/banner/liucheng.png" alt="" /> --> <!-- <img src="../../static/images/banner/liucheng.png" alt="" /> -->
<img :src="baseUrl + levelList[0].img" alt="" /> <img :src="baseUrl + levelList[0].img" alt="" />
</view> </view>
</view> </view>
</view> </view>
</template> </template>
@ -109,7 +111,7 @@
return { return {
// //
form: {}, form: {},
baseUrl:config.baseUrl, baseUrl: config.baseUrl,
levelList: [{ levelList: [{
name: "", name: "",
msg: "", msg: "",
@ -118,7 +120,8 @@
// //
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
status: "1"
}, },
}; };
}, },
@ -202,7 +205,7 @@
} }
.mytext { .mytext {
line-height: 45rpx; line-height: 2;
} }
.myimg { .myimg {

@ -1,10 +1,10 @@
<template> <template>
<view class="app-container"> <view class="app-container">
<u-navbar leftText="返回" title="门前三包服务" :autoBack="true" :placeholder="true"> <!-- <u-navbar leftText="返回" title="门前三包服务" :autoBack="true" :placeholder="true">
<view slot="right"> <view slot="right">
<text class="nav-right"></text> <text class="nav-right"></text>
</view> </view>
</u-navbar> </u-navbar> -->
<view class="list-item"> <view class="list-item">
<view class="list-item-box"> <view class="list-item-box">
<view class="list-item-box-top"> <view class="list-item-box-top">
@ -18,7 +18,8 @@
<view class="list-item-box-top"> <view class="list-item-box-top">
三包等级: 三包等级:
</view> </view>
<view class="list-item-box-bottom " :class="titleObj.sbLevel==3?'red':titleObj.sbLevel==4?'yellow':titleObj.sbLevel==5?'good':''"> <view class="list-item-box-bottom "
:class="titleObj.sbLevel==3?'red':titleObj.sbLevel==4?'yellow':titleObj.sbLevel==5?'good':''">
<!-- 3 4 5绿 --> <!-- 3 4 5绿 -->
{{titleObj.sbLevel==3?'红牌':titleObj.sbLevel==4?'黄牌':titleObj.sbLevel==5?'绿牌':'暂无'}} {{titleObj.sbLevel==3?'红牌':titleObj.sbLevel==4?'黄牌':titleObj.sbLevel==5?'绿牌':'暂无'}}
</view> </view>
@ -31,10 +32,11 @@
<view class="Mytitle"> <view class="Mytitle">
</view> </view>
<view class="mytext"> <view class="mytext" v-html="levelList[0].rateRuleContent">
{{levelList[0].rateRuleContent || ""}}
</view> </view>
<!-- <view class="mytext">
<u-parse :content="levelList[0].rateRuleContent" :tag-style="style"></u-parse>
</view> -->
</view> </view>
@ -43,6 +45,7 @@
</template> </template>
<script> <script>
// import uParse from '@/components/u-parse/u-parse.vue'
import { import {
listraterule, listraterule,
jnshop jnshop
@ -61,10 +64,14 @@
sbLevelName: null, sbLevelName: null,
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
state: "1"
},
titleObj: {
sbLevel: "",
shopName: "",
}, },
titleObj:{ style: {
sbLevel:"", p:'font-size:20rpx;!important'
shopName:""
} }
}; };
}, },
@ -79,16 +86,16 @@
query query
} = launchOptions; } = launchOptions;
console.log(query, "query"); console.log(query, "query");
console.log(Object.keys(query).length,"query.lengh"); console.log(Object.keys(query).length, "query.lengh");
if(Object.keys(query).length!=0){ if (Object.keys(query).length != 0) {
// 3 4 5绿 sbLevel shopName // 3 4 5绿 sbLevel shopName
jnshop(query.storeId).then((item)=>{ jnshop(query.storeId).then((item) => {
console.log(item); console.log(item);
if(item.code == 200 && item.data){ if (item.code == 200 && item.data) {
this.titleObj.sbLevel = item.data.sbLevel this.titleObj.sbLevel = item.data.sbLevel
this.titleObj.shopName = item.data.shopName this.titleObj.shopName = item.data.shopName
}else{ } else {
} }
}) })
} }
@ -169,7 +176,13 @@
} }
.mytext { .mytext {
line-height: 45rpx; // line-height: 45rpx;
margin-top: 38rpx;
display: grid;
grid-template-columns: 1fr;
grid-row-gap: 20rpx;
line-height: 2;
overflow: hidden;
} }
.item-cell { .item-cell {
@ -226,11 +239,14 @@
.good { .good {
color: green; color: green;
} }
.red { .red {
color: red; color: red;
} }
.yellow{
.yellow {
color: yellowgreen; color: yellowgreen;
} }
} }
</style> </style>
Loading…
Cancel
Save