Merge branch 'lx-dev' of gitee.com:cabbage_qd/web-base-h5 into lx-online

This commit is contained in:
woody 2025-05-15 10:10:12 +08:00
commit 37049df9ec
14 changed files with 37 additions and 244 deletions

View File

@ -16,7 +16,7 @@ export const getData = (params) => http.get('/member/api/member/get-data', { par
export const getCard = (params) => http.get('/member/api/member/get-card', { params }) export const getCard = (params) => http.get('/member/api/member/get-card', { params })
//获取验证码 //获取验证码
export const verification = (params) => http.get('/member/api/sms/verification', { params }) export const verification = (params) => http.get('/member/api/sms/self-verification', { params })
//忘记密码获取验证码 //忘记密码获取验证码
export const forgetVerification = (params) => http.get('/member/api/sms/forget-verification', { params }) export const forgetVerification = (params) => http.get('/member/api/sms/forget-verification', { params })
@ -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 })
//上传图片 //上传图片
@ -101,7 +100,8 @@ export const fansConvertCode = (params) => http.get('/member/api/member/fans-con
export const getIndexAwards = (params) => http.get('/member/api/member/index-awards', { params }) export const getIndexAwards = (params) => http.get('/member/api/member/index-awards', { params })
//当前用户短信验证码 //当前用户短信验证码
export const selfVerification = (params) => http.get('/member/api/sms/self-verification', { params }) export const selfVerification = (params) => http.get('/member/api/sms/self-verification', { params })
// 重置支付密码获取验证码
export const resetPayPasswordVerification = (params) => http.get('/member/api/sms/reset-verification', { params })
//更新支付密码 //更新支付密码
export const forgetPayPassword = (data) => http.put('/member/api/member/forget-pay-password', data) export const forgetPayPassword = (data) => http.put('/member/api/member/forget-pay-password', data)

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

@ -50,17 +50,19 @@
<u-form-item :label="'验证码'" <u-form-item :label="'验证码'"
label-width="80px" label-width="80px"
prop="code"> prop="code">
<u-input v-model="emailObj.code" <view style="display: flex; align-items: center; padding-right:10rpx;">
class="border-color width-s" <u-input v-model="emailObj.code"
:placeholder="'请输入验证码'" class="border-color"
placeholder-class="place-class" /> :placeholder="'请输入验证码'"
style="width: auto;"
<button :disabled="disabled" placeholder-class="place-class" />
class="yzm"
@click.stop="getCode()">
{{getCodeText}}
</button>
<button :disabled="disabled"
class="yzm"
@click.stop="getCode()">
{{getCodeText}}
</button>
</view>
</u-form-item> </u-form-item>
</u-form> </u-form>
</view> </view>

View File

@ -137,7 +137,7 @@ export default {
this.getYzm() this.getYzm()
}, },
getYzm() { getYzm() {
api.selfVerification().then(res => { api.resetPayPasswordVerification().then(res => {
if (res.code == '200') { if (res.code == '200') {
setTimeout(() => { setTimeout(() => {
uni.showToast({ uni.showToast({

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

@ -26,12 +26,12 @@
<u-form-item label-width="200rpx" :label="'联系方式'" prop="phone" borderBottom ref="item1"> <u-form-item label-width="200rpx" :label="'联系方式'" prop="phone" borderBottom ref="item1">
<u--input v-model="dataForm.phone" :placeholder="'请输入'" maxlength="20" border="none"></u--input> <u--input v-model="dataForm.phone" :placeholder="'请输入'" maxlength="20" border="none"></u--input>
</u-form-item> </u-form-item>
<!-- <u-form-item v-if="userInfo.pkCountry==1&&cancode" label-width="200rpx" :label="'验证码'" <u-form-item v-if="userInfo.pkCountry==1&&cancode" label-width="200rpx" :label="'验证码'"
prop="verificationCode" borderBottom ref="item1"> prop="verificationCode" borderBottom ref="item1">
<u--input v-model="dataForm.verificationCode" :placeholder="'请输入'" border="none"></u--input> <u--input v-model="dataForm.verificationCode" :placeholder="'请输入'" border="none"></u--input>
<u-button @tap='getCode' class="getcodes" type="primary" shape="circle" :text="tips" <u-button @tap='getCode' class="getcodes" type="primary" shape="circle" :text="tips"
color="#2FBC42"></u-button> color="#2FBC42"></u-button>
</u-form-item> --> </u-form-item>
<u-code :seconds="seconds" @end="end" @start="start" ref="uCode" @change="codeChange"></u-code> <u-code :seconds="seconds" @end="end" @start="start" ref="uCode" @change="codeChange"></u-code>
<u-picker @cancel='showAmount=false' :show="showAmount" ref="uPicker" :columns="bankCardChioceList" <u-picker @cancel='showAmount=false' :show="showAmount" ref="uPicker" :columns="bankCardChioceList"
@ -235,7 +235,7 @@
.theform { .theform {
margin-top: 6rpx; margin-top: 6rpx;
background: #FFFFFF; background: #FFFFFF;
padding: 20rpx 23rpx 48rpx 23rpx; padding: 20rpx 23rpx 0rpx 23rpx;
.contentye { .contentye {
font-size: 28rpx; font-size: 28rpx;

View File

@ -473,7 +473,6 @@ export default {
onShow() { onShow() {
this.getInfo(); this.getInfo();
this.orderNum(); this.orderNum();
this.getLanguage();
this.getUserAwardss(); this.getUserAwardss();
}, },
@ -564,30 +563,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;

View File

@ -183,7 +183,7 @@
> >
<u--input v-model="dataForm.phone" :placeholder="'请输入'"></u--input> <u--input v-model="dataForm.phone" :placeholder="'请输入'"></u--input>
</u-form-item> </u-form-item>
<!-- <u-form-item <u-form-item
required required
label-width="180rpx" label-width="180rpx"
:label="'验证码'" :label="'验证码'"
@ -195,7 +195,8 @@
<text style="color: #18acff" @tap="getCode">{{ tips }}</text> <text style="color: #18acff" @tap="getCode">{{ tips }}</text>
</template> </template>
</u--input> </u--input>
</u-form-item> --> </u-form-item>
<u-code <u-code
:seconds="seconds" :seconds="seconds"

View File

@ -27,7 +27,7 @@
</view> </view>
<view class=""> <view class="">
<u-button shape="circle" color="#f93025" size="small" :text="'申请变更'" <u-button shape="circle" color="#005BAC" size="small" :text="'申请变更'"
@click="updateDomicile(item)"></u-button> @click="updateDomicile(item)"></u-button>
</view> </view>
</view> </view>

View File

@ -24,7 +24,7 @@
class="border-style"> class="border-style">
<view slot="title" <view slot="title"
class="u-slot-title"> class="u-slot-title">
<text class="u-cell-text">{{'重置支付密码'}}</text> <text class="u-cell-text">重置支付密码</text>
</view> </view>
</u-cell> </u-cell>
<u-cell v-if="showFix == 1"> <u-cell v-if="showFix == 1">
@ -92,24 +92,8 @@ export default {
}) })
}, },
goUrl() { goUrl() {
ban.authenticationDetails().then((res) => { uni.navigateTo({
if (res.data) { url: '/pages/forgetPayPassword/index',
uni.navigateTo({
url: '/pages/forgetPayPassword/index',
})
} else {
uni.showModal({
title: '提示',
content: '请先进行实名认证',
success: (res) => {
if (res.confirm) {
uni.navigateTo({
url: '/pages/selfService/realName/realName',
})
}
},
})
}
}) })
}, },
surePsw() { surePsw() {