|
|
|
|
@ -371,7 +371,7 @@ export default class Instrument extends Component<any, any> {
|
|
|
|
|
msg("绑定成功");
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
setStorageSync("instrument_detail", JSON.stringify(channelInfo));
|
|
|
|
|
go("/pages/instrument/intro?id=" + channelInfo.id);
|
|
|
|
|
go("/instrument/pages/instrument/intro?id=" + channelInfo.id);
|
|
|
|
|
}, 1000);
|
|
|
|
|
} else if (res.data.code === 202) {
|
|
|
|
|
this.changeBindBox();
|
|
|
|
|
@ -403,7 +403,7 @@ export default class Instrument extends Component<any, any> {
|
|
|
|
|
msg("绑定成功");
|
|
|
|
|
setStorageSync("instrument_detail", JSON.stringify(channelInfo));
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
go("/pages/instrument/intro?id=" + channelInfo.id);
|
|
|
|
|
go("/instrument/pages/instrument/intro?id=" + channelInfo.id);
|
|
|
|
|
}, 1000);
|
|
|
|
|
} else if (res.data.code === 202) {
|
|
|
|
|
this.changeBindBox();
|
|
|
|
|
@ -529,7 +529,7 @@ export default class Instrument extends Component<any, any> {
|
|
|
|
|
confirm={this.closeDev}
|
|
|
|
|
/> */}
|
|
|
|
|
<Navbar
|
|
|
|
|
titleSlot='仪器绑定'
|
|
|
|
|
titleSlot="仪器绑定"
|
|
|
|
|
isBack
|
|
|
|
|
isCustomBack
|
|
|
|
|
customBack={this.customBack}
|
|
|
|
|
@ -546,74 +546,74 @@ export default class Instrument extends Component<any, any> {
|
|
|
|
|
/>
|
|
|
|
|
<PopupAlert
|
|
|
|
|
isShow={isBindingError}
|
|
|
|
|
title='提示'
|
|
|
|
|
content='序列号库仍在更新,请联系微信助手'
|
|
|
|
|
confirmButtonText='知道了'
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
title="提示"
|
|
|
|
|
content="序列号库仍在更新,请联系微信助手"
|
|
|
|
|
confirmButtonText="知道了"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
close={this.onBindErrorClose}
|
|
|
|
|
confirm={this.onBindErrorConfirm}
|
|
|
|
|
></PopupAlert>
|
|
|
|
|
<PopupAlert
|
|
|
|
|
isShow={isBindingError203}
|
|
|
|
|
title='提示'
|
|
|
|
|
content='序列码已被别人绑定,请联系微信助手'
|
|
|
|
|
confirmButtonText='知道了'
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
title="提示"
|
|
|
|
|
content="序列码已被别人绑定,请联系微信助手"
|
|
|
|
|
confirmButtonText="知道了"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
close={this.onBindErrorClose203}
|
|
|
|
|
confirm={this.onBindErrorConfirm203}
|
|
|
|
|
></PopupAlert>
|
|
|
|
|
<PopupAlert
|
|
|
|
|
isShow={isBindingCheckError}
|
|
|
|
|
title='提示'
|
|
|
|
|
content='您选择的仪器有误,请重新选择确认'
|
|
|
|
|
confirmButtonText='知道了'
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
title="提示"
|
|
|
|
|
content="您选择的仪器有误,请重新选择确认"
|
|
|
|
|
confirmButtonText="知道了"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
close={this.onBindCheckErrorClose}
|
|
|
|
|
confirm={this.onBindCheckErrorClose}
|
|
|
|
|
></PopupAlert>
|
|
|
|
|
</View>
|
|
|
|
|
<Canvas
|
|
|
|
|
style='position: fixed;left:-10000px;max-width: 1024px;max-height: 768px;'
|
|
|
|
|
id='compressImage'
|
|
|
|
|
canvasId='compressImage'
|
|
|
|
|
type='2d'
|
|
|
|
|
style="position: fixed;left:-10000px;max-width: 1024px;max-height: 768px;"
|
|
|
|
|
id="compressImage"
|
|
|
|
|
canvasId="compressImage"
|
|
|
|
|
type="2d"
|
|
|
|
|
></Canvas>
|
|
|
|
|
|
|
|
|
|
<View></View>
|
|
|
|
|
<View className='main'>
|
|
|
|
|
<View className='top'>
|
|
|
|
|
<View className='top_title'>仪器绑定</View>
|
|
|
|
|
<View className='top_tips'>
|
|
|
|
|
<View className="main">
|
|
|
|
|
<View className="top">
|
|
|
|
|
<View className="top_title">仪器绑定</View>
|
|
|
|
|
<View className="top_tips">
|
|
|
|
|
请参考图片指引,扫描或输入产品序列号
|
|
|
|
|
</View>
|
|
|
|
|
<View className='top_tips'>完成花至美容仪绑定</View>
|
|
|
|
|
<View className="top_tips">完成花至美容仪绑定</View>
|
|
|
|
|
</View>
|
|
|
|
|
<View className='banner_list'>
|
|
|
|
|
<View className="banner_list">
|
|
|
|
|
{inputType === 1 ? (
|
|
|
|
|
<Video
|
|
|
|
|
className='banner_item'
|
|
|
|
|
className="banner_item"
|
|
|
|
|
autoplay
|
|
|
|
|
loop
|
|
|
|
|
objectFit='cover'
|
|
|
|
|
objectFit="cover"
|
|
|
|
|
enablePlayGesture
|
|
|
|
|
showFullscreenBtn={false}
|
|
|
|
|
playBtnPosition='center'
|
|
|
|
|
playBtnPosition="center"
|
|
|
|
|
src={channelInfo.manualCodeBinding}
|
|
|
|
|
/>
|
|
|
|
|
) : (
|
|
|
|
|
<Image
|
|
|
|
|
className='banner_item'
|
|
|
|
|
className="banner_item"
|
|
|
|
|
src={channelInfo.scanCodeBinding}
|
|
|
|
|
mode='aspectFill'
|
|
|
|
|
mode="aspectFill"
|
|
|
|
|
></Image>
|
|
|
|
|
)}
|
|
|
|
|
</View>
|
|
|
|
|
<View className='form'>
|
|
|
|
|
<View className='form_item is-instrument'>
|
|
|
|
|
<View className='label_box'>
|
|
|
|
|
<View className="form">
|
|
|
|
|
<View className="form_item is-instrument">
|
|
|
|
|
<View className="label_box">
|
|
|
|
|
<View
|
|
|
|
|
className='label'
|
|
|
|
|
style='font-size: 32rpx; margin: 0 0 0rpx 2rpx'
|
|
|
|
|
className="label"
|
|
|
|
|
style="font-size: 32rpx; margin: 0 0 0rpx 2rpx"
|
|
|
|
|
>
|
|
|
|
|
需要绑定的仪器
|
|
|
|
|
<Text style={{ color: "#EB5858", marginLeft: "20rpx" }}>
|
|
|
|
|
@ -624,10 +624,10 @@ export default class Instrument extends Component<any, any> {
|
|
|
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
|
scrollX
|
|
|
|
|
className='instrument_list'
|
|
|
|
|
style='width: 100%; white-space: nowrap;'
|
|
|
|
|
className="instrument_list"
|
|
|
|
|
style="width: 100%; white-space: nowrap;"
|
|
|
|
|
scrollIntoView={"scroll" + channelInfo.id}
|
|
|
|
|
scrollIntoViewAlignment='center'
|
|
|
|
|
scrollIntoViewAlignment="center"
|
|
|
|
|
>
|
|
|
|
|
{equipmentList.length > 0 &&
|
|
|
|
|
equipmentList.map((item, index) => {
|
|
|
|
|
@ -641,11 +641,11 @@ export default class Instrument extends Component<any, any> {
|
|
|
|
|
onClick={this.onSelectChange.bind(this, item)}
|
|
|
|
|
>
|
|
|
|
|
<Image
|
|
|
|
|
className='instrument_img'
|
|
|
|
|
className="instrument_img"
|
|
|
|
|
src={item.banner}
|
|
|
|
|
mode='aspectFill'
|
|
|
|
|
mode="aspectFill"
|
|
|
|
|
></Image>
|
|
|
|
|
<View className='desc'>{item.name}</View>
|
|
|
|
|
<View className="desc">{item.name}</View>
|
|
|
|
|
</View>
|
|
|
|
|
);
|
|
|
|
|
})}
|
|
|
|
|
@ -659,8 +659,8 @@ export default class Instrument extends Component<any, any> {
|
|
|
|
|
)}
|
|
|
|
|
</ScrollView>
|
|
|
|
|
</View>
|
|
|
|
|
<View className='form_item is-tab'>
|
|
|
|
|
<View className='tab_list'>
|
|
|
|
|
<View className="form_item is-tab">
|
|
|
|
|
<View className="tab_list">
|
|
|
|
|
<View
|
|
|
|
|
className={classnames("tab_item", {
|
|
|
|
|
"is-active": inputType === 1,
|
|
|
|
|
@ -668,7 +668,7 @@ export default class Instrument extends Component<any, any> {
|
|
|
|
|
onClick={this.onTabTap.bind(this, 1)}
|
|
|
|
|
>
|
|
|
|
|
<Text>手写输入绑定</Text>
|
|
|
|
|
<View className='tab_active_line'></View>
|
|
|
|
|
<View className="tab_active_line"></View>
|
|
|
|
|
</View>
|
|
|
|
|
{channelInfo.isScanCode === 1 && (
|
|
|
|
|
<View
|
|
|
|
|
@ -678,7 +678,7 @@ export default class Instrument extends Component<any, any> {
|
|
|
|
|
onClick={this.onTabTap.bind(this, 2)}
|
|
|
|
|
>
|
|
|
|
|
<Text>扫码绑定</Text>
|
|
|
|
|
<View className='tab_active_line'></View>
|
|
|
|
|
<View className="tab_active_line"></View>
|
|
|
|
|
</View>
|
|
|
|
|
)}
|
|
|
|
|
</View>
|
|
|
|
|
@ -686,38 +686,38 @@ export default class Instrument extends Component<any, any> {
|
|
|
|
|
|
|
|
|
|
{inputType == 1 && (
|
|
|
|
|
<Block>
|
|
|
|
|
<View className='inputCode_box'>
|
|
|
|
|
<View className='form_item is-inputCode'>
|
|
|
|
|
<View className='label_box'>
|
|
|
|
|
<View className='label'>
|
|
|
|
|
<View className="inputCode_box">
|
|
|
|
|
<View className="form_item is-inputCode">
|
|
|
|
|
<View className="label_box">
|
|
|
|
|
<View className="label">
|
|
|
|
|
填写序列号
|
|
|
|
|
<Text style={{ color: "#EB5858", marginLeft: "20rpx" }}>
|
|
|
|
|
*
|
|
|
|
|
</Text>
|
|
|
|
|
</View>
|
|
|
|
|
<View className='label_text' onClick={this.onTipShow}>
|
|
|
|
|
<Text className='label-tips'>查看序列号位置</Text>
|
|
|
|
|
<View className="label_text" onClick={this.onTipShow}>
|
|
|
|
|
<Text className="label-tips">查看序列号位置</Text>
|
|
|
|
|
<Image
|
|
|
|
|
className='right_icon'
|
|
|
|
|
className="right_icon"
|
|
|
|
|
src={require("@/img/index-right.png")}
|
|
|
|
|
mode='aspectFill'
|
|
|
|
|
mode="aspectFill"
|
|
|
|
|
/>
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
<View className='ipt_box'>
|
|
|
|
|
<View className="ipt_box">
|
|
|
|
|
<Input
|
|
|
|
|
maxlength={50}
|
|
|
|
|
className='ipt'
|
|
|
|
|
placeholder='例如:FR10*********1'
|
|
|
|
|
className="ipt"
|
|
|
|
|
placeholder="例如:FR10*********1"
|
|
|
|
|
placeholder-style={style}
|
|
|
|
|
onInput={this.onSerial}
|
|
|
|
|
value={channelInfo.serialCode}
|
|
|
|
|
></Input>
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
<View className='form_item'>
|
|
|
|
|
<View className='label_box'>
|
|
|
|
|
<View className='label'>
|
|
|
|
|
<View className="form_item">
|
|
|
|
|
<View className="label_box">
|
|
|
|
|
<View className="label">
|
|
|
|
|
上传序列号照片
|
|
|
|
|
<Text style={{ color: "#EB5858", marginLeft: "20rpx" }}>
|
|
|
|
|
*
|
|
|
|
|
@ -725,20 +725,20 @@ export default class Instrument extends Component<any, any> {
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
<View
|
|
|
|
|
className='photo_box'
|
|
|
|
|
className="photo_box"
|
|
|
|
|
onClick={this.onChangeImg.bind(this)}
|
|
|
|
|
>
|
|
|
|
|
{channelInfo.serialImage && (
|
|
|
|
|
<Image
|
|
|
|
|
src={channelInfo.serialImage}
|
|
|
|
|
mode='aspectFill'
|
|
|
|
|
mode="aspectFill"
|
|
|
|
|
></Image>
|
|
|
|
|
)}
|
|
|
|
|
{!channelInfo.serialImage && (
|
|
|
|
|
<Image
|
|
|
|
|
className='add'
|
|
|
|
|
className="add"
|
|
|
|
|
src={require("@/img/welcome/add.png")}
|
|
|
|
|
mode='aspectFit'
|
|
|
|
|
mode="aspectFit"
|
|
|
|
|
></Image>
|
|
|
|
|
)}
|
|
|
|
|
</View>
|
|
|
|
|
@ -748,10 +748,10 @@ export default class Instrument extends Component<any, any> {
|
|
|
|
|
)}
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
<View className='footer'>
|
|
|
|
|
<View className="footer">
|
|
|
|
|
{inputType == 1 && (
|
|
|
|
|
<View
|
|
|
|
|
className='btn'
|
|
|
|
|
className="btn"
|
|
|
|
|
onClick={throttle(this.onSubmit.bind(this), 300)}
|
|
|
|
|
>
|
|
|
|
|
确认绑定
|
|
|
|
|
@ -759,9 +759,9 @@ export default class Instrument extends Component<any, any> {
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{inputType == 2 && (
|
|
|
|
|
<View className='btn footer-btn-scan' onClick={this.onScanTap}>
|
|
|
|
|
<View className="btn footer-btn-scan" onClick={this.onScanTap}>
|
|
|
|
|
<Image
|
|
|
|
|
className='footer-btn-scan-img'
|
|
|
|
|
className="footer-btn-scan-img"
|
|
|
|
|
src={require("@/img/icon-scan.png")}
|
|
|
|
|
></Image>
|
|
|
|
|
扫码绑定
|
|
|
|
|
|