修改发票显示问题和暂存工作台修改
This commit is contained in:
		@@ -0,0 +1,50 @@
 | 
			
		||||
import { alertInfo, alertSuccess } from "../../../../../../utils/index";
 | 
			
		||||
import request from "../../../../../../utils/request"
 | 
			
		||||
const { OK } = request
 | 
			
		||||
// pages/workBench/components/account/components/editModal/index.js
 | 
			
		||||
Component({
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * 组件的属性列表
 | 
			
		||||
   */
 | 
			
		||||
  properties: {
 | 
			
		||||
    type: String,
 | 
			
		||||
    title: String,
 | 
			
		||||
    visible: Boolean,
 | 
			
		||||
    onOk: Function,
 | 
			
		||||
    onCancel: Function,
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * 组件的初始数据
 | 
			
		||||
   */
 | 
			
		||||
  data: {
 | 
			
		||||
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * 组件的方法列表
 | 
			
		||||
   */
 | 
			
		||||
  methods: {
 | 
			
		||||
    async onSubmit() {
 | 
			
		||||
      const { phone, name } = this.data;
 | 
			
		||||
      if (!phone) {
 | 
			
		||||
        alertInfo("请输入手机号")
 | 
			
		||||
        return
 | 
			
		||||
      }
 | 
			
		||||
      if (!name) {
 | 
			
		||||
        alertInfo("请输入昵称")
 | 
			
		||||
        return
 | 
			
		||||
      }
 | 
			
		||||
      // const { code, message } = await update()
 | 
			
		||||
      // if (code !== OK) {
 | 
			
		||||
      //   alertInfo(message)
 | 
			
		||||
      //   return;
 | 
			
		||||
      // }
 | 
			
		||||
      // alertSuccess("操作成功")
 | 
			
		||||
      // if (this.onOk) {
 | 
			
		||||
      //   this.onOk()
 | 
			
		||||
      // }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
})
 | 
			
		||||
@@ -0,0 +1,8 @@
 | 
			
		||||
{
 | 
			
		||||
  "component": true,
 | 
			
		||||
  "usingComponents": {
 | 
			
		||||
    "van-dialog": "@vant/weapp/dialog/index",
 | 
			
		||||
    "search-select": "/components/searchSelect/index",
 | 
			
		||||
    "van-field": "@vant/weapp/field/index"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@@ -0,0 +1,30 @@
 | 
			
		||||
<!--pages/workBench/components/account/components/editModal/index.wxml-->
 | 
			
		||||
<van-dialog
 | 
			
		||||
  use-slot
 | 
			
		||||
  title="{{title}}"
 | 
			
		||||
  show="{{ visible }}"
 | 
			
		||||
  show-cancel-button
 | 
			
		||||
  bind:confirm="onSubmit"
 | 
			
		||||
>
 | 
			
		||||
  <view class="modalContentWrapper">
 | 
			
		||||
    <van-field
 | 
			
		||||
        value=""
 | 
			
		||||
        label="昵称"
 | 
			
		||||
        readonly
 | 
			
		||||
        type="textarea"
 | 
			
		||||
        autosize="{{true}}"
 | 
			
		||||
        title-width="120rpx"
 | 
			
		||||
        border="{{false}}"
 | 
			
		||||
    />
 | 
			
		||||
    <van-field
 | 
			
		||||
        value="{{ meterName }}"
 | 
			
		||||
        placeholder="请选择电表"
 | 
			
		||||
        label="手机号"
 | 
			
		||||
        readonly
 | 
			
		||||
        border="{{ false }}"
 | 
			
		||||
        title-width="120rpx"
 | 
			
		||||
    >
 | 
			
		||||
    </van-field>
 | 
			
		||||
</view>
 | 
			
		||||
 
 | 
			
		||||
</van-dialog>
 | 
			
		||||
@@ -0,0 +1 @@
 | 
			
		||||
/* pages/workBench/components/account/components/editModal/index.wxss */
 | 
			
		||||
		Reference in New Issue
	
	Block a user