123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- <!--parents/pages/information/information.wxml-->
- <import src="../../../templates/loading/loading.wxml" />
- <view class='container'>
- <template is='loading' wx:if='{{!isLoaded}}'></template>
- <view class='wrapper' wx:else>
- <!-- 选择页面 -->
- <view class='list' wx:if='{{isFirst}}'>
- <view class='list-logo'>
- <image src='../../../assets/ssj_logo.png' class='list-logo-img'></image>
- </view>
- <view class='list-btn' wx:if='{{!isScan}}' bindtap='codeScanCtl'>扫一扫书籍标签二维码</view>
- <view class='list-btns' wx:if='{{isScan}}'>
- <view class='list-btns-yellow' bindtap='scanFn'>扫一扫书籍ISBN绑定</view>
- <view class='list-btns-blue' bindtap='getOperation'>手动输入书籍ISBN绑定</view>
- </view>
- </view>
- <!-- 图书录入-书籍详情 -->
- <view class='list' wx:if='{{isDetail}}'>
- <view class='li' bindtap='uploadImgCtl'>
- <view class="uploadImg">
- <image class='{{bookInfo.localImage ? "li-imageTip" : "li-image"}}' src='{{bookInfo.localImage ? baseImgUrl + bookInfo.localImage : "../../../assets/cameare.png"}}'></image>
- <view class="upload-text" wx:if='{{!bookInfo.localImage}}'>上传封面</view>
- <view class="upload-Model" wx:if='{{bookInfo.localImage}}'>
- <view class="upload-refrehtext">更换封面</view>
- </view>
- </view>
- </view>
- <view class='li'>
- <view class='li-label'>书名</view>
- <input class='li-input' type='text' placeholder='请输入书名' placeholder-class='input-placeholder' value='{{bookInfo.title}}' bindinput='inputCtl' data-type='title'></input>
- </view>
- <view class='li'>
- <view class='li-label'>作者</view>
- <input class='li-input' type='text' placeholder='请输入作者' placeholder-class='input-placeholder' value='{{bookInfo.author}}' bindinput='inputCtl' data-type='author'></input>
- </view>
- <view class='li'>
- <view class='li-label'>ISBN号码</view>
- <input class='li-input' type='text' placeholder='' placeholder-class='input-placeholder' value='{{bookInfo.isbn13}}' bindinput='inputCtl' data-type='isbn13'></input>
- </view>
- <view class='li' wx:if='{{serialType==3}}'>
- <view class='li-label'>丛书序号</view>
- <picker bindchange='pickerGradeCtl' value='{{numIndex}}' range='{{list}}'>
- <view class='li-picker' style='display:inline-block'>{{csIndex || '请选择年段'}}</view>
- <image src='../../../assets/right_gray.png' class='li-label-right'></image>
- </picker>
- </view>
- <view class='li'>
- <view class='li-label'>主题</view>
- <picker bindchange='pickerThemeCtl' value='{{themeListIndex}}' range='{{themeList}}'>
- <view class='li-picker' style='display:inline-block'>{{childTheme || '请选择主题'}}</view>
- <image src='../../../assets/right_gray.png' class='li-label-right'></image>
- </picker>
- </view>
- <view class='li'>
- <view class='li-label'>年段</view>
- <picker bindchange='pickerGradeCtl' value='{{gradeIndex}}' range='{{gradeArray}}'>
- <view class='li-picker' style='display:inline-block'>{{bookInfo.section || '请选择年段'}}</view>
- <image src='../../../assets/right_gray.png' class='li-label-right'></image>
- </picker>
- </view>
- <view class='li'>
- <view class='li-label'>价格</view>
- <input class='li-input' type='text' placeholder='请输入价格' placeholder-class='input-placeholder' value='{{bookInfo.price}}' bindinput='inputCtl' data-type='price'></input>
- </view>
- <view class='li'>
- <view class='li-label'>简介</view>
- <textarea class='li-input-text' type='text' placeholder='请输入书籍简介' placeholder-class='input-placeholder' value='{{bookInfo.summary}}' bindinput='inputCtl' data-type='summary'></textarea>
- </view>
-
-
- </view>
- <!-- 手动输入书籍详情 -->
- <view class='list' wx:if='{{isOperation}}'>
- <view class='list-logo'>
- <image src='../../../assets/ssj_logo.png' class='list-logo-img'></image>
- </view>
- <view class='li' style='margin-bottom:220rpx;border-top:solid 1rpx #e6e6e6;'>
- <view class='li-label'>ISBN号码</view>
- <input class='li-input' type='number' placeholder='请输入ISBN码' placeholder-class='input-placeholder' value='{{isbn13}}' bindinput='isbn13Ctl' data-type='isbn13'></input>
- </view>
- <view class='footer-box'>
- <view class='footer-box-item' data-type='{{1}}' bindtap='operationCtl'>取消</view>
- <view class='footer-box-item' data-type='{{2}}' bindtap='operationCtl'>提交</view>
- </view>
- </view>
- <!-- 扫一扫---图书录入-完善货架 -->
- <view wx:if='{{isTwo}}'>
- <view class='scan-btn' bindtap="ferfectScanCtl">
- <image class='scan-btn-icon' src='../../../assets/scan_large.png'></image>
- <view class='scan-btn-text'>扫一扫</view>
- </view>
- <view class='scan-row'>
- <image class='scan-row-icon' src='../../../assets/circle_gray_2.png'></image>
- <text class='scan-row-text'>扫描书上二维码完善书籍信息</text>
- </view>
- </view>
- <!-- 图书录入-完善货架 -->
- <view class='list' wx:if='{{isFerfect}}'>
- <view class='list-info' >
- <image src='{{localImage ? baseImgUrl + localImage : "../../../assets/default_headicon.png"}}' class='list-book-header'></image>
- <view class='list-logo-text'>{{title}}</view>
- </view>
- <view class='li'>
- <view class='li-label'>价格</view>
- <input class='li-input' type='text' placeholder='请输入价格' placeholder-class='input-placeholder' value='{{price}}' bindinput='priceInputCtl' data-type='price'></input>
- </view>
- <view class='li'>
- <view class='li-label'>货架位置AB</view>
- <view bindtap='clickAB'>
- <view class='li-picker' style='display:inline-block'>{{abNumber || '请完善货架位置'}}</view>
- <image src='../../../assets/right_gray.png' class='li-label-right'></image>
- </view>
- </view>
- <view class='li'>
- <view class='li-label'>货架位置CD</view>
- <view bindtap='clickCD'>
- <view class='li-picker' style='display:inline-block'>{{cdNumber || '请完善货架位置'}}</view>
- <image src='../../../assets/right_gray.png' class='li-label-right'></image>
- </view>
- </view>
- <view class='footer-box' wx:if='{{!pickerABShow&&!pickerCDShow}}'>
- <view class='footer-box-item' wx:for='{{footerArray}}' wx:key='index' data-type='{{item.type}}' bindtap='saveGoods'>{{item.text}}</view>
- </view>
- </view>
- <view class='picker' wx:if='{{pickerABShow}}'>
- <view class='picker-btn' data-type='{{0}}' bindtap='finish'>完成</view>
- <picker-view indicator-style="height: 40px;font-weight: bold" class='li-label-picker' value="{{abValue}}" bindchange="bindChangeAB">
- <picker-view-column>
- <view wx:for='{{A}}' wx:key='index' class='picker-item' wx:if='{{A.length>0}}'>{{item.code}}</view>
- </picker-view-column>
- <picker-view-column>
- <view wx:for='{{B}}' wx:key='index' class='picker-item' wx:if='{{B.length>0}}'>{{item.code}}</view>
- </picker-view-column>
- </picker-view>
- </view>
- <view class='picker' wx:if='{{pickerCDShow}}'>
- <view class='picker-btn' data-type='{{1}}' bindtap='finish'>完成</view>
- <picker-view indicator-style="height: 40px;font-weight: bold" class='li-label-picker' value="{{cdValue}}" bindchange="bindChangeCD">
- <picker-view-column>
- <view wx:for='{{C}}' wx:key='index' class='picker-item' wx:if='{{C.length>0}}'>{{item.code}}</view>
- </picker-view-column>
- <picker-view-column>
- <view wx:for='{{D}}' wx:key='index' class='picker-item' wx:if='{{D.length>0}}'>{{item.code}}</view>
- </picker-view-column>
- </picker-view>
- </view>
- <view class='footer-box' wx:if='{{isBtn}}'>
- <view class='footer-box-item' wx:for='{{footerArray}}' wx:key='index' data-type='{{item.type}}' bindtap='submitCtl'>{{item.text}}</view>
- </view>
- </view>
- </view>
|