|
@@ -13,11 +13,17 @@
|
|
@cancel="onCancelSelection('sky')"
|
|
@cancel="onCancelSelection('sky')"
|
|
></SelectedImage>
|
|
></SelectedImage>
|
|
<div class="bottom-right">
|
|
<div class="bottom-right">
|
|
- <img
|
|
|
|
|
|
+ <!-- <img
|
|
class="select-pic-btn"
|
|
class="select-pic-btn"
|
|
:src="require('@/assets/images/select_pic_btn.png')" alt=""
|
|
:src="require('@/assets/images/select_pic_btn.png')" alt=""
|
|
@click="onSelectPic('sky')"
|
|
@click="onSelectPic('sky')"
|
|
|
|
+ > -->
|
|
|
|
+ <button
|
|
|
|
+ class="ui-button submit"
|
|
|
|
+ @click="onSelectPic('sky')"
|
|
>
|
|
>
|
|
|
|
+ 选择图片
|
|
|
|
+ </button>
|
|
<div class="ui-remark">建议500*500px,<br/>支持jpg/png格式</div>
|
|
<div class="ui-remark">建议500*500px,<br/>支持jpg/png格式</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -31,11 +37,17 @@
|
|
@cancel="onCancelSelection('earth')"
|
|
@cancel="onCancelSelection('earth')"
|
|
></SelectedImage>
|
|
></SelectedImage>
|
|
<div class="bottom-right">
|
|
<div class="bottom-right">
|
|
- <img
|
|
|
|
|
|
+ <!-- <img
|
|
class="select-pic-btn"
|
|
class="select-pic-btn"
|
|
:src="require('@/assets/images/select_pic_btn.png')" alt=""
|
|
:src="require('@/assets/images/select_pic_btn.png')" alt=""
|
|
@click="onSelectPic('earth')"
|
|
@click="onSelectPic('earth')"
|
|
|
|
+ > -->
|
|
|
|
+ <button
|
|
|
|
+ class="ui-button submit"
|
|
|
|
+ @click="onSelectPic('earth')"
|
|
>
|
|
>
|
|
|
|
+ 选择图片
|
|
|
|
+ </button>
|
|
<div class="ui-remark">建议500*500px,<br/>支持jpg/png格式</div>
|
|
<div class="ui-remark">建议500*500px,<br/>支持jpg/png格式</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -76,19 +88,21 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
onSelectPic(selectingFor) {
|
|
onSelectPic(selectingFor) {
|
|
- getUserInfo((res) => {
|
|
|
|
- try {
|
|
|
|
- if (res.data.incrementNum > 0) {
|
|
|
|
- this.selectingFor = selectingFor
|
|
|
|
- this.isShowSelectionWindow = true
|
|
|
|
- } else {
|
|
|
|
- // 非会员,点击跳转四维看看会员权益页。
|
|
|
|
- window.open('/#/mall/member')
|
|
|
|
- }
|
|
|
|
- } catch(e) {
|
|
|
|
- console.error('解析会员身份失败:', e)
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ this.selectingFor = selectingFor
|
|
|
|
+ this.isShowSelectionWindow = true
|
|
|
|
+ // getUserInfo((res) => {
|
|
|
|
+ // try {
|
|
|
|
+ // if (res.data.incrementNum > 0) {
|
|
|
|
+ // this.selectingFor = selectingFor
|
|
|
|
+ // this.isShowSelectionWindow = true
|
|
|
|
+ // } else {
|
|
|
|
+ // // 非会员,点击跳转四维看看会员权益页。
|
|
|
|
+ // window.open('/#/mall/member')
|
|
|
|
+ // }
|
|
|
|
+ // } catch(e) {
|
|
|
|
+ // console.error('解析会员身份失败:', e)
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
},
|
|
},
|
|
handleSubmitFromMaterialSelector(selected) {
|
|
handleSubmitFromMaterialSelector(selected) {
|
|
this.info.customMask[this.selectingFor] = selected[0].icon
|
|
this.info.customMask[this.selectingFor] = selected[0].icon
|