.
This commit is contained in:
@@ -98,7 +98,13 @@
|
||||
<view class="ss-m-t-60 ss-flex ss-flex-wrap ss-row-center">
|
||||
<!-- 团长 -->
|
||||
<view class="header-avatar ss-m-r-24 ss-m-b-20">
|
||||
<image :src="sheep.$url.cdn(state.data.headRecord.avatar) || sheep.$url.static('/static/img/shop/default_avatar.png')" class="avatar-img"></image>
|
||||
<image
|
||||
:src="
|
||||
sheep.$url.cdn(state.data.headRecord.avatar) ||
|
||||
sheep.$url.static('https://puton.huimeimeta.com/imgs/default_avatar.png')
|
||||
"
|
||||
class="avatar-img"
|
||||
></image>
|
||||
<view class="header-tag ss-flex ss-col-center ss-row-center">团长</view>
|
||||
</view>
|
||||
<!-- 团员 -->
|
||||
@@ -107,7 +113,13 @@
|
||||
v-for="item in state.data.memberRecords"
|
||||
:key="item.id"
|
||||
>
|
||||
<image :src="sheep.$url.cdn(item.avatar) || sheep.$url.static('/static/img/shop/default_avatar.png')" class="avatar-img"></image>
|
||||
<image
|
||||
:src="
|
||||
sheep.$url.cdn(item.avatar) ||
|
||||
sheep.$url.static('https://puton.huimeimeta.com/imgs/default_avatar.png')
|
||||
"
|
||||
class="avatar-img"
|
||||
></image>
|
||||
<view
|
||||
class="header-tag ss-flex ss-col-center ss-row-center"
|
||||
v-if="item.is_leader == '1'"
|
||||
|
||||
+1
-1
@@ -283,7 +283,7 @@
|
||||
right: -10rpx;
|
||||
top: -6rpx;
|
||||
font-size: 20rpx;
|
||||
color: red;
|
||||
color: #9251eb;
|
||||
}
|
||||
|
||||
// 签到按钮
|
||||
|
||||
@@ -7,15 +7,15 @@
|
||||
<view
|
||||
class="uni-easyinput__content"
|
||||
:class="{
|
||||
'is-input-border': inputBorder,
|
||||
'is-input-error-border': inputBorder && msg,
|
||||
'is-textarea': type === 'textarea',
|
||||
'is-disabled': disabled
|
||||
}"
|
||||
'is-input-border': inputBorder,
|
||||
'is-input-error-border': inputBorder && msg,
|
||||
'is-textarea': type === 'textarea',
|
||||
'is-disabled': disabled,
|
||||
}"
|
||||
:style="{
|
||||
'border-color': inputBorder && msg ? '#dd524d' : styles.borderColor,
|
||||
'background-color': disabled ? styles.disableColor : ''
|
||||
}"
|
||||
'border-color': inputBorder && msg ? '#dd524d' : styles.borderColor,
|
||||
'background-color': disabled ? styles.disableColor : '',
|
||||
}"
|
||||
>
|
||||
<uni-icons
|
||||
v-if="prefixIcon"
|
||||
@@ -48,10 +48,9 @@
|
||||
:type="type === 'password' ? 'text' : type"
|
||||
class="uni-easyinput__content-input"
|
||||
:style="{
|
||||
'padding-right': type === 'password' || clearable || prefixIcon ? '' : '10px',
|
||||
'padding-left': paddingLeft + 'px'
|
||||
|
||||
}"
|
||||
'padding-right': type === 'password' || clearable || prefixIcon ? '' : '10px',
|
||||
'padding-left': paddingLeft + 'px',
|
||||
}"
|
||||
:name="name"
|
||||
:value="val"
|
||||
:password="!showPassword && type === 'password'"
|
||||
@@ -159,7 +158,7 @@
|
||||
emits: ['click', 'iconClick', 'update:modelValue', 'input', 'focus', 'blur', 'confirm'],
|
||||
model: {
|
||||
prop: 'modelValue',
|
||||
event: 'update:modelValue'
|
||||
event: 'update:modelValue',
|
||||
},
|
||||
props: {
|
||||
name: String,
|
||||
@@ -167,57 +166,57 @@
|
||||
modelValue: [Number, String],
|
||||
type: {
|
||||
type: String,
|
||||
default: 'text'
|
||||
default: 'text',
|
||||
},
|
||||
clearable: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
default: true,
|
||||
},
|
||||
autoHeight: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
default: false,
|
||||
},
|
||||
placeholder: String,
|
||||
placeholderStyle: String,
|
||||
focus: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
default: false,
|
||||
},
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
default: false,
|
||||
},
|
||||
maxlength: {
|
||||
type: [Number, String],
|
||||
default: 140
|
||||
default: 140,
|
||||
},
|
||||
confirmType: {
|
||||
type: String,
|
||||
default: 'done'
|
||||
default: 'done',
|
||||
},
|
||||
clearSize: {
|
||||
type: [Number, String],
|
||||
default: 15
|
||||
default: 15,
|
||||
},
|
||||
inputBorder: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
default: true,
|
||||
},
|
||||
prefixIcon: {
|
||||
type: String,
|
||||
default: ''
|
||||
default: '',
|
||||
},
|
||||
suffixIcon: {
|
||||
type: String,
|
||||
default: ''
|
||||
default: '',
|
||||
},
|
||||
trim: {
|
||||
type: [Boolean, String],
|
||||
default: true
|
||||
default: true,
|
||||
},
|
||||
passwordIcon: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
default: true,
|
||||
},
|
||||
styles: {
|
||||
type: Object,
|
||||
@@ -225,18 +224,18 @@
|
||||
return {
|
||||
color: '#333',
|
||||
disableColor: '#F7F6F6',
|
||||
borderColor: '#e5e5e5'
|
||||
borderColor: '#e5e5e5',
|
||||
};
|
||||
}
|
||||
},
|
||||
},
|
||||
errorMessage: {
|
||||
type: [String, Boolean],
|
||||
default: ''
|
||||
default: '',
|
||||
},
|
||||
paddingLeft:{
|
||||
paddingLeft: {
|
||||
type: [Number, String],
|
||||
default: 0
|
||||
}
|
||||
default: 0,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -247,7 +246,7 @@
|
||||
border: false,
|
||||
isFirstBorder: false,
|
||||
showClearIcon: false,
|
||||
showPassword: false
|
||||
showPassword: false,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -257,7 +256,7 @@
|
||||
// 因为uniapp的input组件的maxlength组件必须要数值,这里转为数值,用户可以传入字符串数值
|
||||
inputMaxlength() {
|
||||
return Number(this.maxlength);
|
||||
}
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
value(newVal) {
|
||||
@@ -281,7 +280,7 @@
|
||||
this.$nextTick(() => {
|
||||
this.focused = this.focus;
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
created() {
|
||||
if (!this.value && this.value !== 0) {
|
||||
@@ -389,8 +388,8 @@
|
||||
return str;
|
||||
}
|
||||
return str;
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -529,7 +528,7 @@
|
||||
}
|
||||
|
||||
.is-disabled {
|
||||
border-color: red;
|
||||
border-color: #9251eb;
|
||||
background-color: #f7f6f6;
|
||||
color: #d5d5d5;
|
||||
.uni-easyinput__placeholder-class {
|
||||
|
||||
@@ -315,7 +315,7 @@
|
||||
.top {
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx 20rpx 0 0;
|
||||
-webkit-mask: radial-gradient(circle at 16rpx 100%, #0000 16rpx, red 0) -16rpx;
|
||||
-webkit-mask: radial-gradient(circle at 16rpx 100%, #0000 16rpx, #9251eb 0) -16rpx;
|
||||
padding: 110rpx 0 0 0;
|
||||
position: relative;
|
||||
z-index: 5;
|
||||
@@ -364,7 +364,7 @@
|
||||
.bottom {
|
||||
background-color: #fff;
|
||||
border-radius: 0 0 20rpx 20rpx;
|
||||
-webkit-mask: radial-gradient(circle at 16rpx 0%, #0000 16rpx, red 0) -16rpx;
|
||||
-webkit-mask: radial-gradient(circle at 16rpx 0%, #0000 16rpx, #9251eb 0) -16rpx;
|
||||
padding: 40rpx 30rpx;
|
||||
|
||||
.type {
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
:src="
|
||||
isLogin && userInfo.avatar
|
||||
? sheep.$url.cdn(userInfo.avatar)
|
||||
: sheep.$url.static('/static/img/shop/default_avatar.png')
|
||||
: sheep.$url.static('https://puton.huimeimeta.com/imgs/default_avatar.png')
|
||||
"
|
||||
mode="aspectFill"
|
||||
@tap="sheep.$router.go('/pages/user/info')"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view>
|
||||
<s-layout title="试衣间" navbar="custom" tabbar="" :bgStyle="{ color: '#fff' }">
|
||||
<web-view :src="webviewUrl" ref="webviewRef">
|
||||
<web-view :src="webviewUrl" ref="webviewRef" @message="handleMessage">
|
||||
<cover-view-tabbar activeUrl="/pages/index/room" />
|
||||
</web-view>
|
||||
</s-layout>
|
||||
@@ -65,6 +65,10 @@
|
||||
tokenCheckTimer.value = null;
|
||||
}
|
||||
}
|
||||
|
||||
function handleMessage(e) {
|
||||
console.log('收到H5消息:', e.detail.data);
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.highlight {
|
||||
color: red; /* 高亮颜色 */
|
||||
color: #9251eb; /* 高亮颜色 */
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
+4
-1
@@ -15,7 +15,10 @@
|
||||
class="content-img"
|
||||
isPreview
|
||||
:current="0"
|
||||
:src="state.model?.avatar || sheep.$url.static('/static/img/shop/default_avatar.png')"
|
||||
:src="
|
||||
state.model?.avatar ||
|
||||
sheep.$url.static('https://puton.huimeimeta.com/imgs/default_avatar.png')
|
||||
"
|
||||
:height="160"
|
||||
:width="160"
|
||||
:radius="80"
|
||||
|
||||
Reference in New Issue
Block a user