diff --git a/pages/account/setting/setUserInfo.vue b/pages/account/setting/setUserInfo.vue
index 323bbec..b59c767 100644
--- a/pages/account/setting/setUserInfo.vue
+++ b/pages/account/setting/setUserInfo.vue
@@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-03-28 15:38:23
* @LastEditors: ch
- * @LastEditTime: 2022-05-05 10:45:27
+ * @LastEditTime: 2022-05-17 17:42:23
* @Description: file content
-->
@@ -43,7 +43,8 @@ export default {
return curSex ? curSex.label : '未知';
},
sexDefault (){
- return [this.sexData[0].findIndex(i => i.val === this.userInfo.gender)];
+ let defaultVal = this.userInfo.gender || 1
+ return [this.sexData[0].findIndex(i => i.val === defaultVal)];
}
},
onShow(){
@@ -52,8 +53,9 @@ export default {
/**
* 切换性别,发起性别修改请求
*/
- async sexChange(val){
- const value = val.value[0].val;
+ async sexChange(target){
+ let value = target.value[0];
+ value = value ? value.val : this.sexData[0][0].val
const {error, result} = await ApiPutUser({gender:value});
if(error){
ui.$u.totas(error.message);
diff --git a/pages/cart/components/PageCtx.vue b/pages/cart/components/PageCtx.vue
index b0bf228..ae70d33 100644
--- a/pages/cart/components/PageCtx.vue
+++ b/pages/cart/components/PageCtx.vue
@@ -53,7 +53,7 @@
- 重新选择
+ 重选
@@ -273,6 +273,9 @@ export default {
* 选中商品
*/
handleCheckItem(cartId, status) {
+ if(status !== 'normal'){
+ return flase
+ }
const { checkedIds } = this
const index = checkedIds.findIndex(id => id === cartId)
index < 0 ? checkedIds.push(cartId) : checkedIds.splice(index, 1)
diff --git a/pages/order/logisitcsInfo.vue b/pages/order/logisitcsInfo.vue
index a7679d9..7109673 100644
--- a/pages/order/logisitcsInfo.vue
+++ b/pages/order/logisitcsInfo.vue
@@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-04-18 15:28:14
* @LastEditors: ch
- * @LastEditTime: 2022-04-29 23:03:22
+ * @LastEditTime: 2022-05-17 17:55:56
* @Description: file content
-->
@@ -15,7 +15,7 @@
{{orderInfo.companyName}}
{{orderInfo.trackingNo}}
-
+
@@ -74,6 +74,9 @@ page {
display: flex;
align-items: center;
justify-content: space-between;
+ &--copy{
+ margin-left: 20rpx;
+ }
}
.title{
height: 98rpx;
diff --git a/unpackage/dist/build/h5/index.html b/unpackage/dist/build/h5/index.html
index 20c0b97..c240db9 100644
--- a/unpackage/dist/build/h5/index.html
+++ b/unpackage/dist/build/h5/index.html
@@ -1,2 +1,2 @@
马士兵严选
\ No newline at end of file
+ document.write('')