宅男在线永久免费观看网直播,亚洲欧洲日产国码无码久久99,野花社区在线观看视频,亚洲人交乣女bbw,一本一本久久a久久精品综合不卡

全部
常見問題
產(chǎn)品動態(tài)
精選推薦

Pro多店版2.4.0關(guān)于門店財務(wù)設(shè)置的問題

管理 管理 編輯 刪除

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

官方對【提現(xiàn)銀行開戶行】、【銀行卡號】、【支付寶賬號】、【微信賬號】等字段進(jìn)行了限制。可輸入的字符長度為20個。

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

這里需要特別注意的是,在數(shù)據(jù)庫中,官方對數(shù)據(jù)表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="提現(xiàn)銀行開戶行:">
					<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中的值修改成需要限定的字節(jié)長度即可。

如以下全部修改為32個字節(jié):

<Form :model="formItem" :label-width="120" :rules="rules">
				<FormItem label="提現(xiàn)銀行開戶行:">
					<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的限定后,把數(shù)據(jù)庫中的varchar()修改成相應(yīng)的長度。通常,在實例中,varchar()長度應(yīng)當(dāng)?shù)扔趇nput中maxlength的2倍。即32*2,varchar的長度應(yīng)為varchar(64)。

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

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

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

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


【產(chǎn)品名稱】:CRMEB_Pro_M

【產(chǎn)品版本】:v2.4.0

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

【部署環(huán)境】:線上環(huán)境

【php版本】:7.4

【Mysql版本】:5.7

【使用終端】:后臺


請登錄后查看

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

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

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

作者 管理員 企業(yè)

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

{{itemf.name}}

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

{{itemc.user_info.nickname}}

{{itemc.user_name}}

回復(fù) {{itemc.comment_user_info.nickname}}

附件

{{itemf.name}}

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

相關(guān)推薦

快速安全登錄

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

微信登錄/注冊

切換手機號登錄

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

{{codeText}}
切換微信登錄/注冊
暫不綁定
CRMEB客服

CRMEB咨詢熱線 咨詢熱線

400-8888-794

微信掃碼咨詢

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