zhy #49

Merged
hansu merged 4 commits from zhy into master 2020-07-06 09:35:47 +00:00
575 changed files with 82 additions and 4876 deletions
Showing only changes of commit f27d08c224 - Show all commits

View File

@@ -195,7 +195,7 @@ export default {
}, },
// 修改绑定手机号 // 修改绑定手机号
changeMemberPhone({ old_mobile, old_code, new_mobile, new_code }) { changeMemberPhone({ old_mobile, old_code, new_mobile, new_code }) {
return vm.$u.post('Member/changeMemberInfo', { return vm.$u.post('Member/memberChangeMobile', {
old_mobile: old_mobile, old_mobile: old_mobile,
old_code: old_code, old_code: old_code,
new_mobile: new_mobile, new_mobile: new_mobile,

View File

@@ -118,16 +118,19 @@ export default {
// latitude, // latitude,
}).then((res)=>{ }).then((res)=>{
if (res.errCode == 0) { if (res.errCode == 0) {
this.$refs.uToast.show({ uni.redirectTo({
title: res.message, url: '/pageE/more/Address'
type: 'success', });
// url: '/pageE/more/Address', // this.$refs.uToast.show({
callback() { // title: res.message,
uni.redirectTo({ // type: 'success',
url: '/pageE/more/Address' // // url: '/pageE/more/Address',
}); // callback() {
} // uni.redirectTo({
}) // url: '/pageE/more/Address'
// });
// }
// })
} else { } else {
this.showToast(res.message, 'warning'); this.showToast(res.message, 'warning');
} }
@@ -148,16 +151,19 @@ export default {
// latitude, // latitude,
}).then((res)=>{ }).then((res)=>{
if (res.errCode == 0) { if (res.errCode == 0) {
this.$refs.uToast.show({ uni.redirectTo({
title: res.message, url: '/pageE/more/Address'
type: 'success', });
// url: '/pageE/more/Address', // this.$refs.uToast.show({
callback() { // title: res.message,
uni.redirectTo({ // type: 'success',
url: '/pageE/more/Address' // // url: '/pageE/more/Address',
}); // callback() {
} // uni.redirectTo({
}) // url: '/pageE/more/Address'
// });
// }
// })
} else { } else {
this.showToast(res.message, 'warning'); this.showToast(res.message, 'warning');
} }

View File

@@ -91,7 +91,7 @@
"https" : false "https" : false
}, },
"router" : { "router" : {
"base" : "history" "base" : ""
} }
} }
} }

View File

@@ -85,6 +85,7 @@ export default {
}, },
// 结算 // 结算
settlementOrder() { settlementOrder() {
// 拼接后端需要的数据形式
let id = [], temp = ''; let id = [], temp = '';
this.checkedGoods.forEach(item => { this.checkedGoods.forEach(item => {
temp = item.cart_id + '|' + item.goods_num; temp = item.cart_id + '|' + item.goods_num;
@@ -147,16 +148,14 @@ export default {
this.cartUpdateNumber(e.index, e.value); this.cartUpdateNumber(e.index, e.value);
}, },
async cartUpdateNumber(id, number) { async cartUpdateNumber(id, number) {
try { await this.$u.api.cartUpdateNumber({
await this.$u.api.cartUpdateNumber({ cart_id: id,
cart_id: id, quantity: number,
quantity: number, }).then(res => {
}).then(res => {
this.getCartList();
})
} catch (error) {
this.getCartList(); this.getCartList();
} }).catch(() => {
this.geCartList();
})
}, },
totalChange(e) { totalChange(e) {
// 切换所有商品的状态 // 切换所有商品的状态
@@ -193,16 +192,7 @@ export default {
} }
}, },
onNavigationBarButtonTap(btn) { onNavigationBarButtonTap(btn) {
console.log(btn); // console.log(btn);
// this.status = btn.text;
// #ifdef H5
if(this.status == '编辑'){
this.status = "完成";
} else {
this.status = "编辑";
}
console.log(this.status);
// #endif
if(btn.index == 0){ if(btn.index == 0){
let pages = getCurrentPages(); let pages = getCurrentPages();
let page = pages[pages.length - 1]; let page = pages[pages.length - 1];

View File

@@ -2,7 +2,7 @@
<view class="edit-info"> <view class="edit-info">
<view class="user-info"> <view class="user-info">
<view class="info-avatar"> <view class="info-avatar">
<image src="../static/mine/23.png"></image> <image :src="avatar"></image>
</view> </view>
<view class="info-item"> <view class="info-item">
<view class="title">昵称</view> <view class="title">昵称</view>
@@ -26,7 +26,7 @@
<image src="../static/mine/21.png"></image> <image src="../static/mine/21.png"></image>
</view> </view>
</view> </view>
<view class="edit-tips">注意修改手机号需要原手机号获取验证码无原手机验证码请联系后台</view> <view class="edit-tips">注意修改手机号需要原手机号获取验证码无原手机验证码请联系客服</view>
<view class="edit-btn" @click="updateMemberInfo">完成</view> <view class="edit-btn" @click="updateMemberInfo">完成</view>
</view> </view>
</template> </template>
@@ -55,7 +55,7 @@ export default {
minute: false, minute: false,
second: false second: false
}, },
nickname: '胖胖', nickname: '',
gender: '', // 1男 2女 gender: '', // 1男 2女
birthday: '', birthday: '',
phoneNumber: '', phoneNumber: '',
@@ -72,8 +72,9 @@ export default {
let userInfo = res.data.MemberArray; let userInfo = res.data.MemberArray;
[this.nickname, this.phoneNumber, this.birthday, this.gender, this.avatar] = [ [this.nickname, this.phoneNumber, this.birthday, this.gender, this.avatar] = [
userInfo.member_nickname, userInfo.member_nickname,
userInfo.member_mobile, userInfo.member_mobile,
common.timestampToDate({timestamp: userInfo.member_birthday}), userInfo.member_birthday,
// common.timestampToDate({timestamp: userInfo.member_birthday}),
userInfo.member_sex, userInfo.member_sex,
userInfo.member_avatar, userInfo.member_avatar,
]; ];

View File

@@ -1,7 +1,7 @@
<template> <template>
<view class="information"> <view class="information">
<view class="info-avatar"> <view class="info-avatar">
<image src="../static/mine/23.png"></image> <image :src="userInfo.member_avatar"></image>
</view> </view>
<view class="info-item"> <view class="info-item">
<view class="title">昵称</view> <view class="title">昵称</view>
@@ -13,7 +13,7 @@
</view> </view>
<view class="info-item"> <view class="info-item">
<view class="title">生日</view> <view class="title">生日</view>
<view class="value">{{ userInfo.member_birthday | dateFormat }}</view> <view class="value">{{ userInfo.member_birthday }}</view>
</view> </view>
<view class="info-item"> <view class="info-item">
<view class="title">手机号</view> <view class="title">手机号</view>
@@ -21,7 +21,7 @@
</view> </view>
<view class="info-item"> <view class="info-item">
<view class="title">等级</view> <view class="title">等级</view>
<view class="value">{{ userInfo.level }}</view> <view class="value">{{ userInfo.member_level }}</view>
</view> </view>
<view class="info-item"> <view class="info-item">
<view class="title">积分数</view> <view class="title">积分数</view>

View File

@@ -24,11 +24,11 @@
<u-verification-code :seconds="seconds" @end="end" @start="start" ref="uNewCode" @change="newCodeChange" unique-key="new" change-text="x秒"></u-verification-code> <u-verification-code :seconds="seconds" @end="end" @start="start" ref="uNewCode" @change="newCodeChange" unique-key="new" change-text="x秒"></u-verification-code>
<view class="get-code" @click="getCode(1)">{{ btnText[1] }}</view> <view class="get-code" @click="getCode(1)">{{ btnText[1] }}</view>
</view> </view>
<u-toast ref="uToast" />
</view> </view>
</view> </view>
<view class="tips">注意修改手机号需要原手机号获取验证码无原手机验证码请联系客服</view> <view class="tips">注意修改手机号需要原手机号获取验证码无原手机验证码请联系客服</view>
<view class="btn" @click="changeMemberPhone">保存</view> <view class="btn" @click="changeMemberPhone">保存</view>
<u-toast ref="uToast" />
</view> </view>
</template> </template>
<script> <script>
@@ -43,6 +43,9 @@ export default {
seconds: 60, // 获取验证码间隔时间 seconds: 60, // 获取验证码间隔时间
} }
}, },
onNavigationBarButtonTap(e) {
if( e.index == 0 ) uni.navigateBack();
},
methods: { methods: {
// 验证发送验证码 // 验证发送验证码
verifySendCode(type) { verifySendCode(type) {
@@ -102,6 +105,12 @@ export default {
this.$u.toast(res.message); this.$u.toast(res.message);
// 通知验证码组件内部开始倒计时 // 通知验证码组件内部开始倒计时
refs.start(); refs.start();
} else {
this.$refs.uToast.show({
type: 'error',
title: res.message,
duration: 3000,
})
} }
}).catch(() => { }).catch(() => {
uni.hideLoading(); uni.hideLoading();
@@ -120,7 +129,12 @@ export default {
new_code: this.newCode, new_code: this.newCode,
}).then(res => { }).then(res => {
if(res.errCode == 0) { if(res.errCode == 0) {
uni.navigateBack();
} else {
this.$refs.uToast.show({
type: 'error',
title: res.message
})
} }
}) })
}, },
@@ -129,7 +143,7 @@ export default {
}, },
start() { start() {
// this.$u.toast('倒计时开始'); // this.$u.toast('倒计时开始');
} },
}, },
}; };
</script> </script>

View File

@@ -41,11 +41,14 @@ export default {
address_id: this.address.address_id address_id: this.address.address_id
}).then((res)=>{ }).then((res)=>{
if(res.errCode == 0) { if(res.errCode == 0) {
this.$refs.uToast.show({ uni.redirectTo({
title: res.message,
type: 'success',
url: '/pageE/more/Address' url: '/pageE/more/Address'
}) });
// this.$refs.uToast.show({
// title: res.message,
// type: 'success',
// url: '/pageE/more/Address'
// })
} else { } else {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: res.message, title: res.message,

View File

@@ -56,11 +56,14 @@ export default {
time: new Date(this.time) time: new Date(this.time)
}).then((res)=>{ }).then((res)=>{
if(res.errCode == 0) { if(res.errCode == 0) {
this.$refs.uToast.show({ uni.redirectTo({
title: res.message,
type: 'success',
url: '/pageE/tool/Manicure' url: '/pageE/tool/Manicure'
}) });
// this.$refs.uToast.show({
// title: res.message,
// type: 'success',
// url: '/pageE/tool/Manicure'
// })
} else { } else {
this.showToast(res.message, 'error'); this.showToast(res.message, 'error');
} }

View File

@@ -629,11 +629,7 @@
"fontSrc": "/static/fonts/customer.ttf", "fontSrc": "/static/fonts/customer.ttf",
"fontSize":"20" "fontSize":"20"
} }
], ]
"autoBackButton": true,
"backButton": {
"badgeText": "取消"
}
} }
} }
} }
@@ -645,6 +641,7 @@
"app-plus": { "app-plus": {
"titleSize": "36px", "titleSize": "36px",
"titleNView": { "titleNView": {
"autoBackButton": false,
"backgroundColor": "#FFFFFF", "backgroundColor": "#FFFFFF",
"titleColor": "#333333", "titleColor": "#333333",
"buttons": [ "buttons": [

View File

@@ -2,7 +2,7 @@
<view class="mine"> <view class="mine">
<view class="mine-top"> <view class="mine-top">
<view class="top"> <view class="top">
<image src="/static/image/mine/23.png" class="avatar" @click="toOtherPage('/mine/MineInfo')" /> <image :src="userInfo.member_avatar" class="avatar" @click="toOtherPage('/mine/MineInfo')" />
<view class="user-info"> <view class="user-info">
<view class="info-left"> <view class="info-left">
<view class="user-nickname" @click="toOtherPage('/mine/MineInfo')">{{ userInfo.member_nickname }}</view> <view class="user-nickname" @click="toOtherPage('/mine/MineInfo')">{{ userInfo.member_nickname }}</view>
@@ -13,7 +13,7 @@
</view> </view>
<view class="info-right"> <view class="info-right">
<view class="info-phone">{{ userInfo.member_mobile | phoneFormat }}</view> <view class="info-phone">{{ userInfo.member_mobile | phoneFormat }}</view>
<view class="user-rank">等级:{{ userInfo.level }}</view> <view class="user-rank">等级:{{ userInfo.member_level }}</view>
</view> </view>
</view> </view>
<view class="member-service" @click="toOtherPage('/mine/MemberServe')">会员服务</view> <view class="member-service" @click="toOtherPage('/mine/MemberServe')">会员服务</view>
@@ -32,7 +32,7 @@
<view>图文收藏</view> <view>图文收藏</view>
</view> </view>
<view @click="toOtherPage('/mine/Integral')"> <view @click="toOtherPage('/mine/Integral')">
<view>{{ userInfo.member_points }}</view> <view>{{ userInfo ? userInfo.member_points : 0 }}</view>
<view>积分数</view> <view>积分数</view>
</view> </view>
<view @click="toOtherPage('/mine/MineConcerns')"> <view @click="toOtherPage('/mine/MineConcerns')">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 779 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 830 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 822 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 843 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 817 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 844 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 822 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 650 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 815 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 719 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 727 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 758 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 753 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 753 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 658 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 654 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More