feat(api): 移除无用接口

This commit is contained in:
woody 2025-05-09 16:09:55 +08:00
parent bbc69676e3
commit b5e1d3974c
8 changed files with 11 additions and 206 deletions

View File

@ -67,7 +67,6 @@ export const queryBonusHaiFun = (data, data1) => http.post('/bonus/api/bonus/que
export const getBonusType = (params) => http.get('/system/api/bd-bonus-items/list', { params }) export const getBonusType = (params) => http.get('/system/api/bd-bonus-items/list', { params })
//获取语言下拉 //获取语言下拉
export const getLanguages = (params) => http.get('/system/pub/enums/get-languages', { params })
//上传图片 //上传图片

View File

@ -48,10 +48,6 @@ export const waresinfo = (params) => http.post('/sale/api/wares/query-confirm-wa
export const confirmShareOrder = (params) => http.post('/sale/api/order/confirm-share-order', params) export const confirmShareOrder = (params) => http.post('/sale/api/order/confirm-share-order', params)
//删除地址 //删除地址
export const delAddress = (data) => http.delete('/member/api/member-address/' + data) export const delAddress = (data) => http.delete('/member/api/member-address/' + data)
//仓库店铺
export const storehouseList = (params) => http.get('/system/api/storehouse/list', { params })
//会员店铺
export const storeList = (params) => http.get('/member/api/store/list', { params })
//省市区 //省市区
export const areaList = (params) => http.get('system/api/area/get-level-list', { params }) export const areaList = (params) => http.get('system/api/area/get-level-list', { params })
//创客空间选择 //创客空间选择

View File

@ -409,18 +409,7 @@
@confirm="sureTrans" @confirm="sureTrans"
:columns="transList" :columns="transList"
keyName="label"></u-picker> keyName="label"></u-picker>
<!-- 发货仓库 -->
<u-picker :show="isCk"
@cancel='isCk=false'
@confirm="sureCk"
:columns="storehouseList"
keyName="label"></u-picker>
<!-- 所属店铺 -->
<u-picker :show="isDp"
@cancel='isDp=false'
@confirm="sureDp"
:columns="storeList"
keyName="label"></u-picker>
<!-- 银行名称 --> <!-- 银行名称 -->
<u-picker :show="isBank" <u-picker :show="isBank"
@cancel='isBank=false' @cancel='isBank=false'
@ -462,7 +451,6 @@ export default {
pt: false, pt: false,
isDp: false, isDp: false,
storeList: [],
storehouseList: [], storehouseList: [],
isCk: false, isCk: false,
delAddress: false, delAddress: false,
@ -667,12 +655,6 @@ export default {
this.getTransList() this.getTransList()
// //
this.getDeliveryList() this.getDeliveryList()
if (this.userInfo.pkCountry != 1) {
//
this.getStoreList()
//
this.getStorehouseList()
}
// //
this.getBank() this.getBank()
// //
@ -925,28 +907,7 @@ export default {
} }
}) })
}, },
getStorehouseList() {
api.storehouseList().then((res) => {
let data = res.rows.map((item) => {
return {
id: item.pkId,
label: item.name,
}
})
this.storehouseList = [data]
})
},
getStoreList() {
api.storeList().then((res) => {
let data = res.rows.map((item) => {
return {
id: item.pkId,
label: item.storeName,
}
})
this.storeList = [data]
})
},
sureBank(e) { sureBank(e) {
const { value } = e const { value } = e
this.form.pkBank = value[0].id this.form.pkBank = value[0].id

View File

@ -207,7 +207,6 @@ export default {
promptMsg: "", promptMsg: "",
confirmText: "", confirmText: "",
userInfo: uni.getStorageSync("User"), userInfo: uni.getStorageSync("User"),
getLanguageList: [],
moreFlag: false, moreFlag: false,
index: 0, index: 0,
indicatorDots: true, indicatorDots: true,
@ -552,12 +551,7 @@ export default {
this.goodsList = res.data; this.goodsList = res.data;
}); });
}, },
bindPickerChange(e) {
this.index = e.detail.value;
uni.setStorageSync("lang", this.getLanguageList[e.detail.value].field);
this.$i18n.locale = this.getLanguageList[e.detail.value].field;
window.location.reload();
},
goUrl(item) { goUrl(item) {
ban.agreementName().then((res) => { ban.agreementName().then((res) => {
if (res.data == 0) { if (res.data == 0) {
@ -656,24 +650,7 @@ export default {
url: "/pages/index/specialArea/index", url: "/pages/index/specialArea/index",
}); });
}, },
getLanguage() {
api.getLanguages().then((res) => {
if (res.code == 200) {
res.data.forEach((item, index) => {
if (item.field == uni.getStorageSync("lang")) {
this.index = index;
}
});
if (
uni.getStorageSync("lang") == undefined ||
uni.getStorageSync("lang") == "undefined"
) {
uni.setStorageSync("lang", "zh-CN");
}
this.getLanguageList = res.data;
}
});
},
}, },
}; };
</script> </script>

View File

@ -1,21 +1,6 @@
<template> <template>
<view class="main"> <view class="main">
<view class="changeLanguages"
v-if="getLanguageList.length>0">
<picker :range="getLanguageList"
:value="index"
range-key="label"
@change="bindPickerChange">
<view class="select-text">
<view class="texts">{{ getLanguageList[index].label }}</view>
<view class="">
<image class="selIcon"
src="../../static/images/drop-666.png"></image>
</view>
</view>
</picker>
</view>
<view class="title"> <view class="title">
{{ '会员登录' }} {{ '会员登录' }}
</view> </view>
@ -155,11 +140,6 @@ export default {
this.loginForm.uuid = res.uuid this.loginForm.uuid = res.uuid
}) })
}, },
getLanguage() {
api.getLanguages().then((res) => {
this.getLanguageList = res.data
})
},
toLogin() { toLogin() {
api.login(this.loginForm).then((res) => { api.login(this.loginForm).then((res) => {
this.isLoading = false this.isLoading = false

View File

@ -468,7 +468,6 @@ export default {
onShow() { onShow() {
this.getInfo(); this.getInfo();
this.orderNum(); this.orderNum();
this.getLanguage();
this.getUserAwardss(); this.getUserAwardss();
}, },
@ -559,30 +558,6 @@ export default {
this.payNum = res.data.payNum; this.payNum = res.data.payNum;
}); });
}, },
getLanguage() {
api.getLanguages().then((res) => {
if (res.code == 200) {
res.data.forEach((item, index) => {
if (item.field == uni.getStorageSync("lang")) {
this.index = index;
}
});
if (
uni.getStorageSync("lang") == undefined ||
uni.getStorageSync("lang") == "undefined"
) {
uni.setStorageSync("lang", "zh-CN");
}
this.getLanguageList = res.data;
}
});
},
bindPickerChange(e) {
this.index = e.detail.value;
uni.setStorageSync("lang", this.getLanguageList[e.detail.value].field);
this.$i18n.locale = this.getLanguageList[e.detail.value].field;
window.location.reload();
},
getInfo() { getInfo() {
api.getInfo().then((res) => { api.getInfo().then((res) => {
if (res) { if (res) {

View File

@ -426,22 +426,8 @@
:columns="queryCardList" :columns="queryCardList"
keyName="label" keyName="label"
></u-picker> ></u-picker>
<!-- 发货仓库 -->
<u-picker
:show="isCk"
@cancel="isCk = false"
@confirm="sureCk"
:columns="storehouseList"
keyName="label"
></u-picker>
<!-- 所属店铺 -->
<u-picker
:show="isDp"
@cancel="isDp = false"
@confirm="sureDp"
:columns="storeList"
keyName="label"
></u-picker>
<!-- 强制阅读协议 --> <!-- 强制阅读协议 -->
<mustAgreeMent :waresCodeList="waresCodeList"></mustAgreeMent> <mustAgreeMent :waresCodeList="waresCodeList"></mustAgreeMent>
<agreement ref="agreement"></agreement> <agreement ref="agreement"></agreement>
@ -488,7 +474,6 @@ export default {
return { return {
isDeliveryWay: true, isDeliveryWay: true,
isDp: false, isDp: false,
storeList: [],
storehouseList: [], storehouseList: [],
isCk: false, isCk: false,
strTitle: '', strTitle: '',
@ -839,12 +824,7 @@ export default {
if (this.specialArea == 3) { if (this.specialArea == 3) {
this.checkGoods() this.checkGoods()
} }
if (this.userInfo.pkSettleCountry != 1) {
//
this.getStoreList()
//
this.getStorehouseList()
}
}) })
}, },
checkGoods() { checkGoods() {
@ -933,28 +913,7 @@ export default {
}) })
} }
}, },
getStorehouseList() {
api.storehouseList().then(res => {
let data = res.rows.map(item => {
return {
id: item.pkId,
label: item.name,
}
})
this.storehouseList = [data]
})
},
getStoreList() {
api.storeList().then(res => {
let data = res.rows.map(item => {
return {
id: item.pkId,
label: item.storeName,
}
})
this.storeList = [data]
})
},
sureCk(e) { sureCk(e) {
const { value } = e const { value } = e
this.form.pkStorehouse = value[0].id this.form.pkStorehouse = value[0].id

View File

@ -529,22 +529,7 @@
:columns="queryCardList" :columns="queryCardList"
keyName="label" keyName="label"
></u-picker> ></u-picker>
<!-- 发货仓库 -->
<u-picker
:show="isCk"
@cancel="isCk = false"
@confirm="sureCk"
:columns="storehouseList"
keyName="label"
></u-picker>
<!-- 所属店铺 -->
<u-picker
:show="isDp"
@cancel="isDp = false"
@confirm="sureDp"
:columns="storeList"
keyName="label"
></u-picker>
<!-- 银行名称 --> <!-- 银行名称 -->
<u-picker <u-picker
:show="isBank" :show="isBank"
@ -592,7 +577,6 @@ export default {
isDeliveryWay: true, isDeliveryWay: true,
pt: false, pt: false,
isDp: false, isDp: false,
storeList: [],
storehouseList: [], storehouseList: [],
isCk: false, isCk: false,
delAddress: false, delAddress: false,
@ -867,12 +851,7 @@ export default {
this.getTransList(); this.getTransList();
// //
this.getDeliveryList(); this.getDeliveryList();
if (this.pkCountry != 1) {
//
this.getStoreList();
//
this.getStorehouseList();
}
// //
this.getBank(); this.getBank();
// //
@ -1222,28 +1201,7 @@ export default {
// } // }
}); });
}, },
getStorehouseList() {
api.storehouseList({ pkCountry: this.pkCountry }).then((res) => {
let data = res.rows.map((item) => {
return {
id: item.pkId,
label: item.name,
};
});
this.storehouseList = [data];
});
},
getStoreList() {
api.storeList({ pkCountry: this.pkCountry }).then((res) => {
let data = res.rows.map((item) => {
return {
id: item.pkId,
label: item.storeName,
};
});
this.storeList = [data];
});
},
sureBank(e) { sureBank(e) {
const { value } = e; const { value } = e;
this.form.pkBank = value[0].id; this.form.pkBank = value[0].id;