Browse Source

上传修改

master
前端-胡立永 4 months ago
parent
commit
620faeae99
9 changed files with 154 additions and 6 deletions
  1. +24
    -3
      api/api.js
  2. +3
    -0
      pages.json
  3. +3
    -3
      pages/index/center.vue
  4. +124
    -0
      pages_order/mine/setting.vue
  5. BIN
      pages_order/static/address/icon.png
  6. BIN
      pages_order/static/address/selectIcon.png
  7. BIN
      pages_order/static/setting/1.png
  8. BIN
      pages_order/static/setting/2.png
  9. BIN
      pages_order/static/setting/3.png

+ 24
- 3
api/api.js View File

@ -1,6 +1,5 @@
import http from './http.js'
let limit = {}
let debounce = {}
@ -14,6 +13,12 @@ const config = {
getConfig : {url : '/api/getConfig', method : 'GET', limit : 500},
/**
* 登录的接口
*/
// 微信登录接口
wxLogin: {
url: '/login/login',
@ -39,10 +44,26 @@ const config = {
url: '/login/getUserAgreement',
method: 'GET',
},
/**
* 公共的接口
*/
/**
* 求职者的接口
*/
/**
* boss的接口
*/
}
export function api(key, data, callback, loadingTitle) {
let req = config[key]


+ 3
- 0
pages.json View File

@ -89,6 +89,9 @@
},
{
"path": "work/workList"
},
{
"path": "mine/setting"
}
]
}],


+ 3
- 3
pages/index/center.vue View File

@ -19,9 +19,9 @@
手机号1300000000
</view>
</view>
<view class="headBtn" @click="headBtn">
<!-- <view class="headBtn" @click="headBtn">
角色切换
</view>
</view> -->
<!-- <view class="setting">
<uv-icon name="setting" size="40rpx"></uv-icon>
</view> -->
@ -156,7 +156,7 @@
设置与帮助
</view>
<uv-grid :col="4" :border="false">
<uv-grid-item @click="$utils.navigateTo('/pages_order/mine/address')">
<uv-grid-item @click="$utils.navigateTo('/pages_order/mine/setting')">
<image class="image" src="/static/image/center/setting.png" mode=""></image>
<text class="grid-text">系统设置</text>
</uv-grid-item>


+ 124
- 0
pages_order/mine/setting.vue View File

@ -0,0 +1,124 @@
<template>
<view class="page">
<navbar title="系统设置" leftClick @leftClick="$utils.navigateBack" />
<view class="frame">
<view class="content">
<view class="title">账号设置</view>
<uv-cell
icon="coupon"
title="切换账号"
isLink
iconStyle="font-size: 34rpx;"
rightIconStyle="font-size: 34rpx;">
<template #icon>
<image src="../static/setting/1.png" mode=""
style="width: 30rpx;height: 30rpx;"></image>
</template>
</uv-cell>
<uv-cell
icon="coupon"
title="切换身份"
isLink
iconStyle="font-size: 34rpx;"
rightIconStyle="font-size: 34rpx;">
<template #icon>
<image src="../static/setting/1.png" mode=""
style="width: 30rpx;height: 30rpx;"></image>
</template>
</uv-cell>
<uv-cell
icon="coupon"
title="修改密码"
isLink
iconStyle="font-size: 34rpx;"
rightIconStyle="font-size: 34rpx;">
<template #icon>
<image src="../static/setting/1.png" mode=""
style="width: 30rpx;height: 30rpx;"></image>
</template>
</uv-cell>
</view>
<view class="content">
<view class="title">账号设置</view>
<uv-cell
icon="coupon"
title="清理缓存"
isLink
iconStyle="font-size: 34rpx;"
rightIconStyle="font-size: 34rpx;">
<template #icon>
<image src="../static/setting/1.png" mode=""
style="width: 30rpx;height: 30rpx;"></image>
</template>
</uv-cell>
<uv-cell
icon="coupon"
title="退出登录"
isLink
iconStyle="font-size: 34rpx;"
rightIconStyle="font-size: 34rpx;">
<template #icon>
<image src="../static/setting/1.png" mode=""
style="width: 30rpx;height: 30rpx;"></image>
</template>
</uv-cell>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
tapItem(item, index) {
if (item.text === this.$t('pageTitle.languageSwitch')) {
this.$refs.changeLanguage.open();
}
}
},
}
</script>
<style scoped lang="scss">
.page {
background-color: #FFF;
height: 100vh;
.frame {
.content {
margin: 40rpx 0;
.title {
font-size: 30rpx;
color: #b0b0b0;
padding: 0 30rpx;
}
.uv-cell__body{
padding: 40rpx 20rpx;
margin-top: 10rpx;
}
}
}
}
</style>

BIN
pages_order/static/address/icon.png View File

Before After
Width: 96  |  Height: 96  |  Size: 4.5 KiB

BIN
pages_order/static/address/selectIcon.png View File

Before After
Width: 28  |  Height: 36  |  Size: 1.3 KiB

BIN
pages_order/static/setting/1.png View File

Before After
Width: 32  |  Height: 25  |  Size: 656 B

BIN
pages_order/static/setting/2.png View File

Before After
Width: 25  |  Height: 24  |  Size: 563 B

BIN
pages_order/static/setting/3.png View File

Before After
Width: 24  |  Height: 24  |  Size: 385 B

Loading…
Cancel
Save