代码提交

test
zhangdi 1 year ago
parent 327bf20cc4
commit ee2068a72a
  1. 7
      App.vue
  2. 7
      manifest.json
  3. 90
      pages.json
  4. 3
      pages/inspection/planDetails.vue
  5. 3
      pages/inspection/questDetails.vue
  6. 3
      pages/inspection/questOrder.vue
  7. 65
      pages/login/forgotPassword.vue
  8. 13
      pages/login/login.vue
  9. 3
      pages/register/index.vue
  10. BIN
      static/images/betone-sp-component/pay-icon/bkash-ac.png
  11. BIN
      static/images/betone-sp-component/pay-icon/easypaisa-ac.png
  12. BIN
      static/images/betone-sp-component/pay-icon/jazzcash-ac.png
  13. BIN
      static/images/betone-sp-component/pay-icon/mercado_pago-ac.png
  14. BIN
      static/images/betone-sp-component/pay-icon/mobikwik-ac.png
  15. BIN
      static/images/betone-sp-component/pay-icon/netbanking-ac.png
  16. BIN
      static/images/betone-sp-component/pay-icon/paypal-ac.png
  17. 15
      uni_modules/uview-ui/components/u-button/u-button.vue
  18. 10
      uni_modules/uview-ui/components/u-loadmore/u-loadmore.vue
  19. 2
      uni_modules/uview-ui/components/u-number-box/u-number-box.vue

@ -9,7 +9,8 @@ export default {
"pages/login/login", "pages/login/login",
"pages/register/index", "pages/register/index",
"pages/register/registerSuccess", "pages/register/registerSuccess",
"pages/login/authInfo" "pages/login/authInfo",
"pages/login/forgotPassword"
]; ];
const value = uni.getStorageSync("token"); const value = uni.getStorageSync("token");
@ -52,9 +53,9 @@ export default {
"addressLon": 120.4732160947301, "addressLon": 120.4732160947301,
"addressLat": 36.17767397801995 "addressLat": 36.17767397801995
} }
this.$u.api.updatePosition(query).then(res => { // this.$u.api.updatePosition(query).then(res => {
}) // })
// }, // },
// fail: (err) => { // fail: (err) => {
// this.error = err; // this.error = err;

@ -112,7 +112,12 @@
"mp-weixin" : { "mp-weixin" : {
"appid" : "wx81368cd255de5182", "appid" : "wx81368cd255de5182",
"setting" : { "setting" : {
"urlCheck" : true "urlCheck" : true,
"minified" : true
},
"lazyCodeLoading" : "requiredComponents",
"optimization" : {
"subPackages" : true
}, },
"permission" : {} "permission" : {}
}, },

@ -148,36 +148,10 @@
{ {
"path": "pages/inspection/quest", "path": "pages/inspection/quest",
"style": { "style": {
"navigationStyle": "custom", "navigationStyle": "custom",
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
} }
}, },
{
"path": "pages/inspection/questDetails",
"style": {
"navigationBarTitleText": "巡检任务单",
"enablePullDownRefresh": false,
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#F8F8F8",
"app-plus": {
"titleNView": {}
}
}
},
{
"path": "pages/inspection/questOrder",
"style": {
"navigationBarTitleText": "巡检任务单",
"enablePullDownRefresh": false,
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#F8F8F8",
"app-plus": {
"titleNView": {}
}
}
},
{ {
"path": "pages/inspection/plan", "path": "pages/inspection/plan",
"style": { "style": {
@ -190,18 +164,60 @@
} }
} }
}, },
{ {
"path": "pages/inspection/planDetails", "root": "pages",
"style": { "pages": [
"navigationBarTitleText": "巡检计划详情", {
"enablePullDownRefresh": false, "path": "pages/inspection/questOrder",
"navigationBarTextStyle": "black", "style": {
"navigationBarBackgroundColor": "#F8F8F8", "navigationBarTitleText": "巡检任务单",
"app-plus": { "enablePullDownRefresh": false,
"titleNView": {} "navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#F8F8F8",
"app-plus": {
"titleNView": {}
}
}
} }
} ]
}
],
"subPackages": [
{
"root": "pages",
"pages": [
{
"path": "inspection/planDetails",
"style": {
"navigationBarTitleText": "巡检计划详情",
"enablePullDownRefresh": false,
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#F8F8F8",
"app-plus": {
"titleNView": {}
}
}
},
{
"path": "inspection/questDetails",
"style": {
"navigationBarTitleText": "巡检任务单",
"enablePullDownRefresh": false,
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#F8F8F8",
"app-plus": {
"titleNView": {}
}
}
},
{
"path": "login/forgotPassword",
"style": {
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
}
]
} }
], ],
"globalStyle": { "globalStyle": {

@ -62,8 +62,7 @@
</template> </template>
<script> <script>
export default { export default {
components: {
},
computed: { computed: {
dataTypes() { dataTypes() {
return this.$store.state.dataType return this.$store.state.dataType

@ -92,8 +92,7 @@
</template> </template>
<script> <script>
export default { export default {
components: {
},
computed: { computed: {
dataTypes() { dataTypes() {
return this.$store.state.dataType return this.$store.state.dataType

@ -250,8 +250,7 @@
import website from '@/utils/website' import website from '@/utils/website'
import { dateFormat } from '@/utils/util.js' import { dateFormat } from '@/utils/util.js'
export default { export default {
components: {
},
computed: { computed: {
dataTypes() { dataTypes() {
return this.$store.state.dataType return this.$store.state.dataType

@ -0,0 +1,65 @@
<template>
<view class="page_css">
<view class="container">
<betone-header-top :title="title" />
<u-form labelPosition="left" :model="forgotInfo" :rules="rules" ref="registerForm">
<u-form-item prop="businessName" :border-bottom="false" label-position="top" label="手机号">
<u-input v-model="forgotInfo.mobile" :border="true" placeholder="请输入" />
</u-form-item>
<u-form-item prop="businessName" :border-bottom="false" label-position="top" label="验证码">
</u-form-item>
<u-form-item prop="businessName" :border-bottom="false" label-position="top" label="密码">
<u-input v-model="forgotInfo.password" type="password" :border="true" :password-icon="true" />
</u-form-item>
<u-form-item prop="businessName" :border-bottom="false" label-position="top" label="确认密码">
<u-input v-model="forgotInfo.confirmPassword" type="password" :border="true" :password-icon="true" />
</u-form-item>
</u-form>
<!-- <u-button @click="submit">确定</u-button> -->
</view>
</view>
</template>
<script>
export default {
data() {
return {
title: "忘记密码",
forgotInfo: {
mobile: '',
verificationCode:'',//
password:"",//
confirmPassword:'',//
},
rules: {
mobile: [
{
required: true,
message: '请输入手机号',
trigger: ['change', 'blur'],
},
{
//
validator: (rule, value, callback) => {
// truefalse
// this.$u.test.mobile()truefalse
return this.$u.test.mobile(value);
},
message: '手机号码不正确',
// blurchange
trigger: ['change', 'blur'],
}
]
},
}
}
}
</script>
<style lang="scss" scoped>
.page_css {
.container {
padding: 32rpx 64rpx 32rpx 64rpx;
}
}
</style>

@ -3,10 +3,12 @@
<view class="container"> <view class="container">
<view class="title">科研医疗建筑运维平台</view> <view class="title">科研医疗建筑运维平台</view>
<view class="sp-login-form"> <view class="sp-login-form">
<betone-new-input :value="userInfo.username" placeholder="请输入用户名" icon="account-fill" <u-input v-model="userInfo.username" :border="true" placeholder="请输入手机号" style="margin-bottom: 32rpx" prefix-icon="search" />
<u-input v-model="userInfo.pwd" type="password" :border="true" :password-icon="true" placeholder="请输入密码" style="margin-bottom: 32rpx" />
<!-- <betone-new-input :value="userInfo.username" placeholder="请输入用户名" icon="account-fill"
style="margin-bottom: 32rpx" @changevalue="userInfo.username = $event" /> style="margin-bottom: 32rpx" @changevalue="userInfo.username = $event" />
<betone-new-input style="margin-bottom: 32rpx" v-model="userInfo.pwd" placeholder="请输入密码" :type="'password'" <betone-new-input style="margin-bottom: 32rpx" v-model="userInfo.pwd" placeholder="请输入密码" :type="'password'"
icon="lock-fill" @changevalue="userInfo.pwd = $event" /> icon="lock-fill" @changevalue="userInfo.pwd = $event" /> -->
<u-checkbox-group> <u-checkbox-group>
<u-checkbox @change="rememberPwdChange" v-model="rememberPwd" key="index" name="记住密码">记住密码</u-checkbox> <u-checkbox @change="rememberPwdChange" v-model="rememberPwd" key="index" name="记住密码">记住密码</u-checkbox>
</u-checkbox-group> </u-checkbox-group>
@ -15,7 +17,7 @@
</u-button> </u-button>
<view class="footer"> <view class="footer">
<span @click="linkRegister()">注册账号</span> <span @click="linkRegister()">注册账号</span>
<!-- <span>忘记密码</span> --> <span @click="forgotPassword()">忘记密码</span>
</view> </view>
</view> </view>
</view> </view>
@ -159,6 +161,11 @@ export default {
url: "/pages/register/index", url: "/pages/register/index",
}); });
}, },
forgotPassword(){
uni.navigateTo({
url: "/pages/login/forgotPassword",
});
},
}, },
}; };
</script> </script>

@ -53,9 +53,6 @@
<script> <script>
import addrList from "@/utils/addr.js"; import addrList from "@/utils/addr.js";
export default { export default {
components: {
},
data() { data() {
return { return {
title: "注册", title: "注册",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

@ -212,7 +212,7 @@ export default {
// //
throttleTime: { throttleTime: {
type: [String, Number], type: [String, Number],
default: 1000 default: 3000
}, },
// //
hoverStartTime: { hoverStartTime: {
@ -248,12 +248,21 @@ export default {
rippleTop: 0, // Y rippleTop: 0, // Y
rippleLeft: 0, // X rippleLeft: 0, // X
fields: {}, // fields: {}, //
waveActive: false // waveActive: false ,//
lock: false,
}; };
}, },
methods: { methods: {
// //
click(e) { click(e) {
if(this.lock) return;
this.$emit('click', e);
this.lock = true;
clearTimeout(this.timer);
this.timer = setTimeout(() => {
this.lock = false;
}, this.throttleTime);
// this.throttle // this.throttle
this.$u.throttle(() => { this.$u.throttle(() => {
// disabledloading // disabledloading
@ -266,7 +275,7 @@ export default {
this.getWaveQuery(e); this.getWaveQuery(e);
}); });
} }
this.$emit('click', e);
}, this.throttleTime); }, this.throttleTime);
}, },
// //

@ -151,12 +151,14 @@
else text = this.loadText.nomore || this.loadTextCom.nomore else text = this.loadText.nomore || this.loadTextCom.nomore
return text; return text;
}, },
tComULoadmore() {
return this.$t('tComULoadmore')
},
loadTextCom() { loadTextCom() {
return { return {
loadmore : '加载更多', loadmore : this.$t('tComULoadmore.text1'),
loading : '正在加载...', loading : this.$t('tComULoadmore.text2'),
nomore : '没有更多了' nomore : this.$t('tComULoadmore.text3')
} }
} }
}, },

@ -10,7 +10,7 @@
</view> </view>
<input :disabled="disabledInput || disabled" :cursor-spacing="getCursorSpacing" :class="{ 'u-input-disabled': disabled }" <input :disabled="disabledInput || disabled" :cursor-spacing="getCursorSpacing" :class="{ 'u-input-disabled': disabled }"
v-model="inputVal" class="u-number-input" @blur="onBlur" @focus="onFocus" v-model="inputVal" class="u-number-input" @blur="onBlur" @focus="onFocus"
type="digit" :style="{ type="number" :style="{
color: color, color: color,
fontSize: size + 'rpx', fontSize: size + 'rpx',
background: bgColor, background: bgColor,

Loading…
Cancel
Save