Browse Source

bug修复

devlop
mo-bai 4 years ago
parent
commit
252d2310d0
5 changed files with 11 additions and 12 deletions
  1. 10
      pages/device-operation/index.vue
  2. 4
      pages/mine/index.vue
  3. 7
      pages/production-operation/index.vue
  4. 2
      pages/select-role/index.vue
  5. BIN
      static/imgs/mine/cancel-account-icon.png

10
pages/device-operation/index.vue

@ -230,12 +230,14 @@ export default {
}) })
}, },
selectImg() { selectImg() {
uploadImage()
uploadImage(['album', 'camera'], 5 - this.form.imgItemList.length)
.then((urls) => { .then((urls) => {
if (urls) { if (urls) {
this.form.imgItemList.push({
url: urls[0],
type: fileType.IMG
urls.forEach((url) => {
this.form.imgItemList.push({
url,
fileType: fileType.IMG
})
}) })
} }
}) })

4
pages/mine/index.vue

@ -101,7 +101,7 @@
<text class="label">地址管理</text> <text class="label">地址管理</text>
</view> </view>
<view class="icon-item" @click="cancelAccount"> <view class="icon-item" @click="cancelAccount">
<image class="icon" src="/static/imgs/mine/enterprise-icon.png"></image>
<image class="icon" src="/static/imgs/mine/cancel-account-icon.png"></image>
<text class="label">账号注销</text> <text class="label">账号注销</text>
</view> </view>
</view> </view>
@ -232,8 +232,6 @@ export default {
} }
}, },
userInfo() { userInfo() {
console.log('userInfo:', this.$store.state.userInfo)
console.log('companyInfo:', this.$store.state.companyInfo)
return { return {
avatar: this.$store.state.userInfo.avatar || '', avatar: this.$store.state.userInfo.avatar || '',
name: this.$store.state.userInfo.name || this.$store.state.userInfo.mobile || '', name: this.$store.state.userInfo.name || this.$store.state.userInfo.mobile || '',

7
pages/production-operation/index.vue

@ -136,12 +136,11 @@ export default {
}) })
}, },
selectImg() { selectImg() {
uploadImage()
uploadImage(['album', 'camera'], 5 - this.form.imgItemList)
.then((urls) => { .then((urls) => {
if (urls) { if (urls) {
this.form.imgItemList.push({
url: urls[0],
type: fileType.IMG
urls.forEach((url) => {
this.form.imgItemList.push({ url, type: fileType.IMG })
}) })
} }
}) })

2
pages/select-role/index.vue

@ -3,7 +3,7 @@
<uni-nav-bar left-icon="back" @clickLeft="back" statusBar fixed title="选择角色"></uni-nav-bar> <uni-nav-bar left-icon="back" @clickLeft="back" statusBar fixed title="选择角色"></uni-nav-bar>
<view class="flex-col"> <view class="flex-col">
<view class="flex-col items-start text-wrapper"> <view class="flex-col items-start text-wrapper">
<text class="text_4">温馨提示角色选定后无法变更请按需选择</text>
<text class="text_4">温馨提示角色选定后无法变更请按需选择</text>
</view> </view>
<text class="text_5">请选择你的角色</text> <text class="text_5">请选择你的角色</text>
<view class="flex-col section_1"> <view class="flex-col section_1">

BIN
static/imgs/mine/cancel-account-icon.png

Before After
Width: 68  |  Height: 68  |  Size: 5.4 KiB
Loading…
Cancel
Save