Compare commits
5 Commits
1e01569286
...
a70790a56e
| Author | SHA1 | Date |
|---|---|---|
|
|
a70790a56e | |
|
|
2040f7c833 | |
|
|
42b93add91 | |
|
|
50aed06318 | |
|
|
7d7827e480 |
|
|
@ -1,4 +1,4 @@
|
|||
ENV = 'production'
|
||||
|
||||
VUE_APP_BASE_API = 'http://lcny.sk797.cn'
|
||||
VUE_APP_BASE_API = 'http://36.133.205.221:81'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
ENV = 'test'
|
||||
|
||||
VUE_APP_BASE_API = 'http://lcny.sk797.cn/h5/'
|
||||
VUE_APP_BASE_API = 'http://lcny.sk797.cn'
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
<!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title></title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
|
||||
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel="stylesheet" href="http://lcny.sk797.cn/h5/static/index.97465e7b.css"></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id="app"></div><script src="http://lcny.sk797.cn/h5/static/js/chunk-vendors.959091ef.js"></script><script src="http://lcny.sk797.cn/h5/static/js/index.24f854c0.js"></script></body></html>
|
||||
|
Before Width: | Height: | Size: 158 KiB |
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 158 KiB |
|
Before Width: | Height: | Size: 220 B |
|
|
@ -1 +0,0 @@
|
|||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-password-edit"],{"0771":function(n,t,o){"use strict";o.d(t,"b",(function(){return a})),o.d(t,"c",(function(){return e})),o.d(t,"a",(function(){return s}));var s={uForm:o("aa8f").default,uFormItem:o("e0a3").default,uInput:o("d5da").default,uButton:o("d9ad").default},a=function(){var n=this,t=n.$createElement,o=n._self._c||t;return o("v-uni-view",{staticClass:"password-page"},[o("u-form",{ref:"uForm",attrs:{model:n.form}},[o("u-form-item",{attrs:{label:"密码:","label-width":"100"}},[o("u-input",{attrs:{type:n.type,"password-icon":n.passwordIcon,clearable:!0},model:{value:n.form.password,callback:function(t){n.$set(n.form,"password",t)},expression:"form.password"}})],1),o("u-form-item",{attrs:{label:"确认密码:","label-width":"150"}},[o("u-input",{attrs:{type:n.type,"password-icon":n.passwordIcon,clearable:!0},model:{value:n.form.password_confirmation,callback:function(t){n.$set(n.form,"password_confirmation",t)},expression:"form.password_confirmation"}})],1),o("v-uni-view",{staticClass:"btns",staticStyle:{"margin-top":"68rpx"}},[o("u-button",{attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n.passwordEditFn()}}},[n._v("确定")])],1)],1)],1)},e=[]},"37df":function(n,t,o){"use strict";o.r(t);var s=o("0771"),a=o("b082");for(var e in a)["default"].indexOf(e)<0&&function(n){o.d(t,n,(function(){return a[n]}))}(e);o("ad0e");var r,i=o("f0c5"),u=Object(i["a"])(a["default"],s["b"],s["c"],!1,null,"c5bae556",null,!1,s["a"],r);t["default"]=u.exports},"413f":function(n,t,o){var s=o("24fb");t=s(!1),t.push([n.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.password-page[data-v-c5bae556]{padding:%?32?%}',""]),n.exports=t},5947:function(n,t,o){var s=o("413f");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[n.i,s,""]]),s.locals&&(n.exports=s.locals);var a=o("4f06").default;a("c342612e",s,!0,{sourceMap:!1,shadowMode:!1})},"95f7":function(n,t,o){"use strict";o("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=o("815d");t.default={data:function(){return{form:{password:"",password_confirmation:""},type:"password",passwordIcon:!0}},onLoad:function(){},methods:{passwordEditFn:function(){console.log(this.form),this.form.password?this.form.password_confirmation?this.form.password==this.form.password_confirmation?((0,s.showLoading)("请稍等..."),this.$http.put("/api/users/reset-password",this.form).then((function(n){var t=n.data;(0,s.hideLoading)(),console.log(t),200==t.code?uni.showToast({title:"修改成功",icon:"none"}):uni.showToast({title:t.message,icon:"none"})})).catch((function(){(0,s.hideLoading)()}))):uni.showToast({title:"两次密码不一致",icon:"none"}):uni.showToast({title:"请输入确认密码",icon:"none"}):uni.showToast({title:"请输入新密码",icon:"none"})}}}},ad0e:function(n,t,o){"use strict";var s=o("5947"),a=o.n(s);a.a},b082:function(n,t,o){"use strict";o.r(t);var s=o("95f7"),a=o.n(s);for(var e in s)["default"].indexOf(e)<0&&function(n){o.d(t,n,(function(){return s[n]}))}(e);t["default"]=a.a}}]);
|
||||
|
Before Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
|
@ -1,9 +1,11 @@
|
|||
<script>
|
||||
import store from './store/index.js'
|
||||
import jwt from '@/api/jwt.js'
|
||||
import globalMixin from './globalMixin'
|
||||
export default {
|
||||
onLaunch: function () {
|
||||
mixins: [globalMixin],
|
||||
onLaunch: function (e) {
|
||||
console.log('App Launch')
|
||||
|
||||
if (!store.state.user_access_token) {
|
||||
//未登录
|
||||
uni.redirectTo({
|
||||
|
|
@ -29,6 +31,7 @@ export default {
|
|||
<style lang="scss">
|
||||
@import 'uview-ui/index.scss';
|
||||
/*每个页面公共css */
|
||||
|
||||
body,
|
||||
uni-page-body {
|
||||
background-color: #f8f8f8;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,14 @@
|
|||
<template>
|
||||
<u-navbar
|
||||
:title="title"
|
||||
:title="show ? title : ''"
|
||||
:background="background"
|
||||
:custom-back="goback"
|
||||
:title-color="titleColor"
|
||||
:isBack="show"
|
||||
:back-icon-color="titleColor"
|
||||
>
|
||||
<template #right>
|
||||
<template #right
|
||||
>
|
||||
<slot name="right"></slot>
|
||||
</template>
|
||||
</u-navbar>
|
||||
|
|
@ -15,6 +17,10 @@
|
|||
import { navigateBack } from '@/com/utils.js'
|
||||
export default {
|
||||
props: {
|
||||
show: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
title: {
|
||||
type: String,
|
||||
default: '',
|
||||
|
|
|
|||
|
|
@ -0,0 +1,14 @@
|
|||
import store from './store/index.js'
|
||||
export default {
|
||||
onLaunch(e) {
|
||||
const { appbar, token } = e.query
|
||||
if (token) {
|
||||
jwt.setAccessToken(token)
|
||||
}
|
||||
if (appbar == 'hidden') {
|
||||
store.commit('showAppbar', false)
|
||||
} else {
|
||||
store.commit('showAppbar', true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3,6 +3,10 @@ import App from './App'
|
|||
import PortalVue from 'portal-vue'
|
||||
import './uni.promisify.adaptor'
|
||||
import uView from "uview-ui";
|
||||
import mixin from './mixin'
|
||||
|
||||
Vue.mixin(mixin)
|
||||
|
||||
Vue.use(uView);
|
||||
Vue.use(PortalVue)
|
||||
import {http,getFullUrl} from '@/api/index.js'
|
||||
|
|
|
|||
|
|
@ -0,0 +1,33 @@
|
|||
|
||||
import { mapGetters } from 'vuex'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
h5NavHeightP: 44,
|
||||
// showAppbar:true
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['showAppbar'])
|
||||
},
|
||||
onLoad({ appbar }) {
|
||||
if (appbar == 'hidden') {
|
||||
this.h5NavHeightP = 0
|
||||
// this.showAppbar = false
|
||||
this.hideNavBar()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
hideNavBar() {
|
||||
/*#ifdef H5*/
|
||||
this.$nextTick(() => {
|
||||
let head = document.getElementsByTagName('uni-page-head')
|
||||
if (head[0]) {
|
||||
head[0].remove()
|
||||
}
|
||||
// console.log(head);
|
||||
})
|
||||
/*#endif*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view>
|
||||
<Appbar title="基地数据">
|
||||
<Appbar :show="showAppbar" title="基地数据">
|
||||
<template #right>
|
||||
<view
|
||||
v-auth="['endpoint.agricultural_basic.create']"
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="w-full h-20rpx"></view>
|
||||
<u-sticky>
|
||||
<u-sticky :h5NavHeight="h5NavHeightP">
|
||||
<view class="bg-white">
|
||||
<view class="flex items-center p-20rpx">
|
||||
<u-input
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view>
|
||||
<Appbar title="基地农作物">
|
||||
<Appbar :show="showAppbar" title="基地农作物">
|
||||
<template #right>
|
||||
<view v-auth="['endpoint.crops.create']" class="text-white mr-20px" @click="handleCreate">新增</view>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view>
|
||||
<Appbar title="城镇农作物">
|
||||
<Appbar :show="showAppbar" title="城镇农作物">
|
||||
<template #right>
|
||||
<view
|
||||
v-auth="['endpoint.town_crops.create']"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view class="bg-page">
|
||||
<u-navbar title="设备管理" :background="background" :custom-back="goback"
|
||||
<u-navbar :isBack="showAppbar" :title="showAppbar?'设备管理':''" :background="background" :custom-back="goback"
|
||||
:title-color="titleColor" :back-icon-color="titleColor">
|
||||
<view class="nav_slot_right_box" slot="right">
|
||||
<view v-auth="['endpoint.device.create']" class="custom_btn add_btn" @click="addBtn()">新增</view>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<view class="bg-page">
|
||||
<u-navbar
|
||||
title="稻虾流向"
|
||||
<u-navbar :isBack="showAppbar"
|
||||
:title="showAppbar?'稻虾流向':''"
|
||||
:background="background"
|
||||
:custom-back="goback"
|
||||
:title-color="titleColor"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view class="bg-page">
|
||||
<u-navbar title="稻虾产业" :background="background" :custom-back="goback"
|
||||
<u-navbar :isBack="showAppbar" :title="showAppbar?'稻虾产业':''" :background="background" :custom-back="goback"
|
||||
:title-color="titleColor" :back-icon-color="titleColor">
|
||||
<view class="nav_slot_right_box" slot="right">
|
||||
<view v-auth="['endpoint.rice_shrimp_industries.create']" class="custom_btn add_btn" @click="addBtn()">新增</view>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view class="bg-page">
|
||||
<u-navbar title="大宗物资" :background="background" :custom-back="goback"
|
||||
<u-navbar :isBack="showAppbar" :title="showAppbar?'大宗物资':''" :background="background" :custom-back="goback"
|
||||
:title-color="titleColor" :back-icon-color="titleColor">
|
||||
<view class="nav_slot_right_box" slot="right">
|
||||
<view v-auth="['endpoint.materiels.create']" class="custom_btn add_btn" @click="addBtn()">新增</view>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
<template>
|
||||
<view class="bg-page">
|
||||
<u-navbar
|
||||
title="稻虾价格"
|
||||
<u-navbar :isBack="showAppbar"
|
||||
|
||||
:title="showAppbar?'稻虾价格':''"
|
||||
:background="background"
|
||||
:custom-back="goback"
|
||||
:title-color="titleColor"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<view class="bg-page">
|
||||
<u-navbar
|
||||
title="稻虾每周价格"
|
||||
<u-navbar :isBack="showAppbar"
|
||||
:title="showAppbar?'稻虾每周价格':''"
|
||||
:background="background"
|
||||
:custom-back="goback"
|
||||
:title-color="titleColor"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view>
|
||||
<u-sticky>
|
||||
<u-sticky :h5NavHeight="h5NavHeightP">
|
||||
<view class="bg-white">
|
||||
<SearchForm
|
||||
:schemas="searchFormSchema"
|
||||
|
|
|
|||
|
|
@ -205,7 +205,6 @@ export default {
|
|||
},
|
||||
|
||||
linknavFn(item) {
|
||||
console.log(item)
|
||||
uni.navigateTo({
|
||||
url: `${item.url}`,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view>
|
||||
<u-sticky>
|
||||
<u-sticky :h5NavHeight="h5NavHeightP">
|
||||
<view class="bg-white">
|
||||
<SearchForm
|
||||
:schemas="searchFormSchema"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view>
|
||||
<u-sticky>
|
||||
<u-sticky :h5NavHeight="h5NavHeightP">
|
||||
<view class="bg-white">
|
||||
<SearchForm
|
||||
:schemas="searchFormSchema"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view>
|
||||
<u-sticky>
|
||||
<u-sticky :h5NavHeight="h5NavHeightP">
|
||||
<view class="px-26rpx">
|
||||
<u-subsection
|
||||
:list="list"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view class="bg-page">
|
||||
<u-navbar title="预警列表" :background="background" :custom-back="goback"
|
||||
<u-navbar v-if="showAppbar" title="预警列表" :background="background" :custom-back="goback"
|
||||
:title-color="titleColor" :back-icon-color="titleColor">
|
||||
</u-navbar>
|
||||
<view class="secreen-section" style="background-color: #fff;">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view class="role-page bg-page">
|
||||
<u-sticky>
|
||||
<u-sticky :h5NavHeight="h5NavHeightP">
|
||||
<view class="top-title-box">
|
||||
<view class="title">账号列表</view>
|
||||
<view class="handle-option">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view class="bg-page">
|
||||
<u-navbar title="友情链接" :background="background" :custom-back="goback"
|
||||
<u-navbar :isBack="showAppbar" :title="showAppbar?'友情链接':''" :background="background" :custom-back="goback"
|
||||
:title-color="titleColor" :back-icon-color="titleColor">
|
||||
<view class="nav_slot_right_box" slot="right">
|
||||
<view v-auth="['endpoint.friend_links.edit']" class="custom_btn add_btn" @click="addBtn()">新增</view>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view class="role-page bg-page">
|
||||
<u-sticky>
|
||||
<u-sticky :h5NavHeight="h5NavHeightP">
|
||||
<view class="top-title-box">
|
||||
<view class="title">角色列表</view>
|
||||
<view class="handle-option">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view>
|
||||
<Appbar title="基地产量">
|
||||
<Appbar :show="showAppbar" title="基地产量">
|
||||
<template #right>
|
||||
<view v-auth="['endpoint.crops_output.create']" class="text-white mr-20px" @click="handleCreate">新增</view>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view>
|
||||
<Appbar title="城镇产量">
|
||||
<Appbar :show="showAppbar" title="城镇产量">
|
||||
<template #right>
|
||||
<view v-auth="['endpoint.town_crops_output.create']" class="text-white mr-20px" @click="handleCreate">新增</view>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -10,5 +10,8 @@ const mutations = {
|
|||
[types.USERKEY](state, userkey) {
|
||||
state.user_key = userkey
|
||||
},
|
||||
showAppbar: (state, e) => {
|
||||
state.showAppbar = e
|
||||
}
|
||||
};
|
||||
export default mutations;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ const state = {
|
|||
userInfo: {},
|
||||
user_access_token: '',
|
||||
user_key:'',
|
||||
showAppbar:true
|
||||
};
|
||||
|
||||
export default state;
|
||||