forked from angelo/web-retail-h5
feat(api): 移除无用接口
This commit is contained in:
parent
bbc69676e3
commit
b5e1d3974c
|
@ -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 getLanguages = (params) => http.get('/system/pub/enums/get-languages', { params })
|
||||
|
||||
|
||||
//上传图片
|
||||
|
|
|
@ -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 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 })
|
||||
//创客空间选择
|
||||
|
|
|
@ -409,18 +409,7 @@
|
|||
@confirm="sureTrans"
|
||||
:columns="transList"
|
||||
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"
|
||||
@cancel='isBank=false'
|
||||
|
@ -462,7 +451,6 @@ export default {
|
|||
|
||||
pt: false,
|
||||
isDp: false,
|
||||
storeList: [],
|
||||
storehouseList: [],
|
||||
isCk: false,
|
||||
delAddress: false,
|
||||
|
@ -667,12 +655,6 @@ export default {
|
|||
this.getTransList()
|
||||
// 获取发货方式
|
||||
this.getDeliveryList()
|
||||
if (this.userInfo.pkCountry != 1) {
|
||||
//获取会员店铺
|
||||
this.getStoreList()
|
||||
//获取仓库
|
||||
this.getStorehouseList()
|
||||
}
|
||||
// 获取银行
|
||||
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) {
|
||||
const { value } = e
|
||||
this.form.pkBank = value[0].id
|
||||
|
|
|
@ -207,7 +207,6 @@ export default {
|
|||
promptMsg: "",
|
||||
confirmText: "",
|
||||
userInfo: uni.getStorageSync("User"),
|
||||
getLanguageList: [],
|
||||
moreFlag: false,
|
||||
index: 0,
|
||||
indicatorDots: true,
|
||||
|
@ -552,12 +551,7 @@ export default {
|
|||
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) {
|
||||
ban.agreementName().then((res) => {
|
||||
if (res.data == 0) {
|
||||
|
@ -656,24 +650,7 @@ export default {
|
|||
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>
|
||||
|
|
|
@ -1,21 +1,6 @@
|
|||
|
||||
<template>
|
||||
<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>
|
||||
|
@ -155,11 +140,6 @@ export default {
|
|||
this.loginForm.uuid = res.uuid
|
||||
})
|
||||
},
|
||||
getLanguage() {
|
||||
api.getLanguages().then((res) => {
|
||||
this.getLanguageList = res.data
|
||||
})
|
||||
},
|
||||
toLogin() {
|
||||
api.login(this.loginForm).then((res) => {
|
||||
this.isLoading = false
|
||||
|
|
|
@ -468,7 +468,6 @@ export default {
|
|||
onShow() {
|
||||
this.getInfo();
|
||||
this.orderNum();
|
||||
this.getLanguage();
|
||||
this.getUserAwardss();
|
||||
},
|
||||
|
||||
|
@ -559,30 +558,6 @@ export default {
|
|||
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() {
|
||||
api.getInfo().then((res) => {
|
||||
if (res) {
|
||||
|
|
|
@ -426,22 +426,8 @@
|
|||
:columns="queryCardList"
|
||||
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>
|
||||
|
||||
|
||||
<!-- 强制阅读协议 -->
|
||||
<mustAgreeMent :waresCodeList="waresCodeList"></mustAgreeMent>
|
||||
<agreement ref="agreement"></agreement>
|
||||
|
@ -488,7 +474,6 @@ export default {
|
|||
return {
|
||||
isDeliveryWay: true,
|
||||
isDp: false,
|
||||
storeList: [],
|
||||
storehouseList: [],
|
||||
isCk: false,
|
||||
strTitle: '',
|
||||
|
@ -839,12 +824,7 @@ export default {
|
|||
if (this.specialArea == 3) {
|
||||
this.checkGoods()
|
||||
}
|
||||
if (this.userInfo.pkSettleCountry != 1) {
|
||||
//获取会员店铺
|
||||
this.getStoreList()
|
||||
//获取仓库
|
||||
this.getStorehouseList()
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
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) {
|
||||
const { value } = e
|
||||
this.form.pkStorehouse = value[0].id
|
||||
|
|
|
@ -529,22 +529,7 @@
|
|||
:columns="queryCardList"
|
||||
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"
|
||||
|
@ -592,7 +577,6 @@ export default {
|
|||
isDeliveryWay: true,
|
||||
pt: false,
|
||||
isDp: false,
|
||||
storeList: [],
|
||||
storehouseList: [],
|
||||
isCk: false,
|
||||
delAddress: false,
|
||||
|
@ -867,12 +851,7 @@ export default {
|
|||
this.getTransList();
|
||||
// 获取发货方式
|
||||
this.getDeliveryList();
|
||||
if (this.pkCountry != 1) {
|
||||
//获取会员店铺
|
||||
this.getStoreList();
|
||||
//获取仓库
|
||||
this.getStorehouseList();
|
||||
}
|
||||
|
||||
// 获取银行
|
||||
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) {
|
||||
const { value } = e;
|
||||
this.form.pkBank = value[0].id;
|
||||
|
|
Loading…
Reference in New Issue