Merge branch 'main' of http://sl.vrgon.com:3000/LuYaShi/InspectionCleaning
This commit is contained in:
commit
d36758ee68
|
@ -27,7 +27,7 @@ export const page = data => request.get('/api/page', data)
|
||||||
export const auth = data => request.post('/api/auth', data)
|
export const auth = data => request.post('/api/auth', data)
|
||||||
//修改密码
|
//修改密码
|
||||||
export const password = data => request.post('/api/password', data)
|
export const password = data => request.post('/api/password', data)
|
||||||
//注销帐号
|
//退出帐号
|
||||||
export const logout_account = data => request.post('/api/logout_account', data)
|
export const logout_account = data => request.post('/api/logout_account', data)
|
||||||
//修改手机号
|
//修改手机号
|
||||||
export const phoneBind = data => request.get('/api/phoneBind', data)
|
export const phoneBind = data => request.get('/api/phoneBind', data)
|
||||||
|
|
|
@ -154,7 +154,7 @@
|
||||||
{
|
{
|
||||||
"path": "pages/my/account/logout_account",
|
"path": "pages/my/account/logout_account",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "注销帐号",
|
"navigationBarTitleText": "退出帐号",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -96,7 +96,7 @@ export default {
|
||||||
path: "/pages/user/versionInfo/index",
|
path: "/pages/user/versionInfo/index",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "注销",
|
title: "退出",
|
||||||
icon: "/static/adminImg/item5.png",
|
icon: "/static/adminImg/item5.png",
|
||||||
path: "",
|
path: "",
|
||||||
},
|
},
|
||||||
|
@ -131,10 +131,10 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
toPage(path, item) {
|
toPage(path, item) {
|
||||||
if (item.title === "注销") {
|
if (item.title === "退出") {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "提示",
|
title: "提示",
|
||||||
content: "确定注销吗?",
|
content: "确定退出吗?",
|
||||||
showCancel: true,
|
showCancel: true,
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
if (!res.confirm) { return }
|
if (!res.confirm) { return }
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
</u-cell-group>
|
</u-cell-group>
|
||||||
|
|
||||||
<u-cell-group title="帐号:">
|
<u-cell-group title="帐号:">
|
||||||
<u-cell-item icon="minus-people-fill" title="注销帐号" value="" @click="logout_account"></u-cell-item>
|
<u-cell-item icon="minus-people-fill" title="退出帐号" value="" @click="logout_account"></u-cell-item>
|
||||||
</u-cell-group>
|
</u-cell-group>
|
||||||
|
|
||||||
<u-button @click="showModal=true" type="primary" style="margin-top: 20rpx;width:98%">
|
<u-button @click="showModal=true" type="primary" style="margin-top: 20rpx;width:98%">
|
||||||
|
|
|
@ -7,15 +7,15 @@
|
||||||
|
|
||||||
<view class="tipsArea">
|
<view class="tipsArea">
|
||||||
<view class="operation">
|
<view class="operation">
|
||||||
<u-checkbox v-model="agree">我同意<<注销协议>>,提交后帐号将不再恢复</u-checkbox>
|
<u-checkbox v-model="agree">我同意<<退出协议>>,提交后帐号将不再恢复</u-checkbox>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn">
|
<view class="btn">
|
||||||
<u-button type="primary" style="width: 98%;margin-bottom: 15rpx;" @click="confirme">注销帐号</u-button>
|
<u-button type="primary" style="width: 98%;margin-bottom: 15rpx;" @click="confirme">退出帐号</u-button>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<u-modal v-model="showModal" showCancelButton title="注销" content='确定要注销帐号吗?' @cancel="closeShowModal" @confirm="confirmOperation"></u-modal>
|
<u-modal v-model="showModal" showCancelButton title="退出" content='确定要退出帐号吗?' @cancel="closeShowModal" @confirm="confirmOperation"></u-modal>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -101,7 +101,7 @@ export default {
|
||||||
path: "/pages/user/versionInfo/index",
|
path: "/pages/user/versionInfo/index",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "注销",
|
title: "退出",
|
||||||
icon: "/static/images/icon-logout.png",
|
icon: "/static/images/icon-logout.png",
|
||||||
path: "",
|
path: "",
|
||||||
},
|
},
|
||||||
|
@ -190,11 +190,11 @@ export default {
|
||||||
toPage(path,item) {
|
toPage(path,item) {
|
||||||
console.log(item,'item--')
|
console.log(item,'item--')
|
||||||
// return
|
// return
|
||||||
if(item.title === '注销'){
|
if(item.title === '退出'){
|
||||||
|
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "提示",
|
title: "提示",
|
||||||
content: "确定注销吗?",
|
content: "确定退出吗?",
|
||||||
showCancel: true,
|
showCancel: true,
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
if(!res.confirm){return}
|
if(!res.confirm){return}
|
||||||
|
|
Loading…
Reference in New Issue