<noframes id="bhrfl"><address id="bhrfl"></address>

    <address id="bhrfl"></address>

    <noframes id="bhrfl"><address id="bhrfl"><th id="bhrfl"></th></address>

    <form id="bhrfl"><th id="bhrfl"><progress id="bhrfl"></progress></th></form>

    <em id="bhrfl"><span id="bhrfl"></span></em>

    全部
    常見問題
    產品動態
    精選推薦

    Pro多店版2.4.0關于門店財務設置的問題

    管理 管理 編輯 刪除

    在新發布上線的Pro多店版2.4.0版本中,門店操作端(store)的財務-財務設置功能。

    官方對【提現銀行開戶行】、【銀行卡號】、【支付寶賬號】、【微信賬號】等字段進行了限制??奢斎氲淖址L度為20個。

    這里對于使用郵箱作為支付寶賬號的用戶不是很友好。建議解除該限制。

    這里需要特別注意的是,在數據庫中,官方對數據表eb_system_store的字符做出了varchar限定。

    a7e43202304182033592510.png

    在store的代碼文件中,文件路徑為view/store/src/pages/capital/setting/index.vue的文件,代碼中對input限制了maxlength為“20”。源代碼如下:

    <Form :model="formItem" :label-width="120" :rules="rules">
    				<FormItem label="提現銀行開戶行:">
    					<Input maxlength="20" show-word-limit type="text" v-model="formItem.bank_address" placeholder="不超過20字" class="input"></Input>
    				</FormItem>
    				<FormItem label="銀行卡號:" prop="bank_code">
    					<Input maxlength="20" show-word-limit v-model="formItem.bank_code" type="text" placeholder="不超過20字" class="input"></Input>
    				</FormItem>
    				<FormItem label="支付寶賬號:">
    					<Input maxlength="20" show-word-limit v-model="formItem.alipay_account" placeholder="不超過20字" class="input"></Input>
    				</FormItem>
    				<FormItem label="支付寶收款碼:" class="imgbox">
    					<div class="pictrueBox" @click="modalPicTap('dan', 'alipay')">
    						<div class="pictrue" v-if="formItem.alipay_qrcode_url">
    							<img v-lazy="formItem.alipay_qrcode_url" />
    							<Input
    							  v-model="formItem.alipay_qrcode_url"
    							  style="display: none"
    							></Input>
    						</div>
    						<div class="upLoad acea-row row-center-wrapper" v-else>
    							<Input
    							  v-model="formItem.alipay_qrcode_url"
    							  style="display: none"
    							></Input>
    							<Icon type="ios-camera-outline" size="26" />
    						</div>
    					</div>
    				</FormItem>
    				<FormItem label="微信賬號:">
    					<Input maxlength="20" show-word-limit v-model="formItem.wechat" placeholder="不超過20字" class="input"></Input>
    				</FormItem>
    				<FormItem label="微信收款碼:" class="imgbox">
    					<div class="pictrueBox" @click="modalPicTap('dan', 'weixin')">
    						<div class="pictrue" v-if="formItem.wechat_qrcode_url">
    							<img v-lazy="formItem.wechat_qrcode_url" />
    							<Input
    							  v-model="formItem.wechat_qrcode_url"
    							  style="display: none"
    							></Input>
    						</div>
    						<div class="upLoad acea-row row-center-wrapper" v-else>
    							<Input
    							  v-model="formItem.wechat_qrcode_url"
    							  style="display: none"
    							></Input>
    							<Icon type="ios-camera-outline" size="26" />
    						</div>
    					</div>
    				</FormItem>
    			</Form>

    可將input的maxlength中的值修改成需要限定的字節長度即可。

    如以下全部修改為32個字節:

    <Form :model="formItem" :label-width="120" :rules="rules">
    				<FormItem label="提現銀行開戶行:">
    					<Input maxlength="32" show-word-limit type="text" v-model="formItem.bank_address" placeholder="不超過32字" class="input"></Input>
    				</FormItem>
    				<FormItem label="銀行卡號:" prop="bank_code">
    					<Input maxlength="32" show-word-limit v-model="formItem.bank_code" type="text" placeholder="不超過32字" class="input"></Input>
    				</FormItem>
    				<FormItem label="支付寶賬號:">
    					<Input maxlength="32" show-word-limit v-model="formItem.alipay_account" placeholder="不超過32字" class="input"></Input>
    				</FormItem>
    				<FormItem label="支付寶收款碼:" class="imgbox">
    					<div class="pictrueBox" @click="modalPicTap('dan', 'alipay')">
    						<div class="pictrue" v-if="formItem.alipay_qrcode_url">
    							<img v-lazy="formItem.alipay_qrcode_url" />
    							<Input
    							  v-model="formItem.alipay_qrcode_url"
    							  style="display: none"
    							></Input>
    						</div>
    						<div class="upLoad acea-row row-center-wrapper" v-else>
    							<Input
    							  v-model="formItem.alipay_qrcode_url"
    							  style="display: none"
    							></Input>
    							<Icon type="ios-camera-outline" size="26" />
    						</div>
    					</div>
    				</FormItem>
    				<FormItem label="微信賬號:">
    					<Input maxlength="32" show-word-limit v-model="formItem.wechat" placeholder="不超過32字" class="input"></Input>
    				</FormItem>
    				<FormItem label="微信收款碼:" class="imgbox">
    					<div class="pictrueBox" @click="modalPicTap('dan', 'weixin')">
    						<div class="pictrue" v-if="formItem.wechat_qrcode_url">
    							<img v-lazy="formItem.wechat_qrcode_url" />
    							<Input
    							  v-model="formItem.wechat_qrcode_url"
    							  style="display: none"
    							></Input>
    						</div>
    						<div class="upLoad acea-row row-center-wrapper" v-else>
    							<Input
    							  v-model="formItem.wechat_qrcode_url"
    							  style="display: none"
    							></Input>
    							<Icon type="ios-camera-outline" size="26" />
    						</div>
    					</div>
    				</FormItem>
    			</Form>

    在修改完input的限定后,把數據庫中的varchar()修改成相應的長度。通常,在實例中,varchar()長度應當等于input中maxlength的2倍。即32*2,varchar的長度應為varchar(64)。

    =================================================

    在官方數據庫字典中,eb_system_store表下的字段wechat限定了varchar(15),而input中maxlength限定為20,這種方式容易導致數據保存時出錯。

    以上內容是在實際操作中存在的問題,可以參照此方式進行修改。建議官方在下一次版本更新時,優化此部分內容。

    =================================================


    【產品名稱】:CRMEB_Pro_M

    【產品版本】:v2.4.0

    【部署方式】:Linux寶塔面板

    【部署環境】:線上環境

    【php版本】:7.4

    【Mysql版本】:5.7

    【使用終端】:后臺


    請登錄后查看

    碳中和煉金術士 最后編輯于2023-05-23 10:25:02

    快捷回復
    回復
    回復
    回復({{post_count}}) {{!is_user ? '我的回復' :'全部回復'}}
    排序 默認正序 回復倒序 點贊倒序

    {{item.user_info.nickname ? item.user_info.nickname : item.user_name}} LV.{{ item.user_info.bbs_level }}

    作者 管理員 企業

    {{item.floor}}# 同步到gitee 已同步到gitee {{item.is_suggest == 1? '取消推薦': '推薦'}}
    {{item.is_suggest == 1? '取消推薦': '推薦'}}
    沙發 板凳 地板 {{item.floor}}#
    {{item.user_info.title || '暫無簡介'}}
    附件

    {{itemf.name}}

    {{item.created_at}}  {{item.ip_address}}
    打賞
    已打賞¥{{item.reward_price}}
    {{item.like_count}}
    {{item.showReply ? '取消回復' : '回復'}}
    刪除
    回復
    回復

    {{itemc.user_info.nickname}}

    {{itemc.user_name}}

    回復 {{itemc.comment_user_info.nickname}}

    附件

    {{itemf.name}}

    {{itemc.created_at}}
    打賞
    已打賞¥{{itemc.reward_price}}
    {{itemc.like_count}}
    {{itemc.showReply ? '取消回復' : '回復'}}
    刪除
    回復
    回復
    查看更多
    打賞
    已打賞¥{{reward_price}}
    2675
    {{like_count}}
    {{collect_count}}
    添加回復 ({{post_count}})

    相關推薦

    快速安全登錄

    使用微信掃碼登錄
    {{item.label}} 加精
    {{item.label}} {{item.label}} 板塊推薦 常見問題 產品動態 精選推薦 首頁頭條 首頁動態 首頁推薦
    取 消 確 定
    回復
    回復
    問題:
    問題自動獲取的帖子內容,不準確時需要手動修改. [獲取答案]
    答案:
    提交
    bug 需求 取 消 確 定
    打賞金額
    當前余額:¥{{rewardUserInfo.reward_price}}
    {{item.price}}元
    請輸入 0.1-{{reward_max_price}} 范圍內的數值
    打賞成功
    ¥{{price}}
    完成 確認打賞

    微信登錄/注冊

    切換手機號登錄

    {{ bind_phone ? '綁定手機' : '手機登錄'}}

    {{codeText}}
    切換微信登錄/注冊
    暫不綁定
    亚洲欧美字幕
    CRMEB客服

    CRMEB咨詢熱線 咨詢熱線

    400-8888-794

    微信掃碼咨詢

    CRMEB開源商城下載 源碼下載 CRMEB幫助文檔 幫助文檔
    返回頂部 返回頂部
    CRMEB客服