Files
decode-mini-app-v5/wx214944c362629fc7/pages/gongzuo/index.wxml
2024-08-22 12:47:21 +08:00

92 lines
5.6 KiB
Plaintext

<view class="container">
<view class="cont-box b-f">
<button bindtap="onSaoMa" class="saoma">扫码</button>
</view>
<view class="dis-flex search-input-box flex-box">
<view class="search-input">
<view class="dis-flex search-box">
<view class="left">
<icon color="rgba(180,180,180,1)" size="15" type="search"></icon>
</view>
<view class="right">
<input bindinput="getSearchContent" class="input" placeholder="输入串号搜索" placeholderStyle="color:#aba9a9" type="number" value="{{searchValue}}"></input>
</view>
</view>
</view>
<view class="serch-button">
<button bindtap="clearNo" type="warn"> 清空 </button>
</view>
</view>
<view wx:for="{{searchGoodsNoArray}}" wx:key="this">
<view bindtap="xuanze" data-goods-id="{{item.goods_no}}" style="background: rgb(248, 136, 136); border: 1rpx solid white; padding:10rpx; text-align: center;">
<text style="text-align: center;">{{item.goods_no}}</text>
</view>
</view>
<view class="cont-box b-f" wx:if="{{goodsNo!==null}}">
<view class="goods-title">
<text>名称:{{detail.goods_name}}</text>
</view>
<view class="goods-title">
<text class="title f-26" style="color: red;">价 格:{{goods_price}}</text>
</view>
<view class="goods-title">
<text class="title f-26" style="color: red;">数 量:{{stock_num}}</text>
</view>
<view class="goods-title">
<text class="title f-26 twolist-hidden" style="color: #555;">标 题:{{detail.goods_title.length>0?detail.goods_title:' '}}</text>
</view>
<view class="goods-title">
<text class="title f-26 twolist-hidden" style="color: red;">状 态:{{detail.goods_status.text}}</text>
</view>
<wxDragImg bind:updateImageList="updateImageList" columns="{{3}}" defaultGoodsId="{{fromData.goods_id}}" defaultImgList="{{imageObjArray}}" defaultImgUrlList="{{imageUrlArray}}" gap="{{9}}" maxCount="{{9}}" previewSize="{{100}}" style="margin:5rpx;"></wxDragImg>
<form bindsubmit="bindFormSubmit">
<view class="ipt-wrap" style="display: flex;align-items: center; padding-bottom: 10rpx; border-bottom: 1px solid red; ">
<label class="f-30" for="" style="color: #555;">价格:</label>
<input name="goods_price" placeholder="请输入姓名" type="number" value="{{goods_price}}"></input>
</view>
<view class="ipt-wrap" style="display: flex;align-items: center; padding-bottom: 10rpx; border-bottom: 1px solid red; ">
<label class="f-30" for="" style="color: #555;">分销价格:</label>
<input name="l_a" placeholder="" type="number" value="{{l_a}}"></input>
</view>
<view class="ipt-wrap" style="display: flex;align-items: center; padding-bottom: 10rpx; border-bottom: 1px solid red; ">
<label class="f-30" for="" style="color: #555;">一级分销价格:</label>
<input name="l_b" placeholder="" type="number" value="{{l_b}}"></input>
</view>
<view class="ipt-wrap" style="display: flex;align-items: center; padding-bottom: 10rpx; border-bottom: 1px solid red; ">
<label class="f-30" for="" style="color: #555;">数量:</label>
<input name="stock_num" placeholder="请输入姓名" type="number" value="{{stock_num}}"></input>
</view>
<view class="ipt-wrap" style=" padding-bottom: 10rpx; border-bottom: 1px solid red;">
<label class="f-30" for="" style="color: #555;">商品介绍:</label>
<textarea autoHeight class="f-30" name="jieshao" placeholder="此处填写商品介绍" style=" width: auto; margin-bottom: 10rpx; line-height: 10rpx;" value="{{fromData.content}}"></textarea>
</view>
<view class="ipt-wrap" style=" padding-bottom: 10rpx; border-bottom: 1px solid red;">
<picker bindchange="bindPickerChangeCate" range="{{cateObjArray}}" rangeKey="name" value="{{indexCate}}">
<view class="f-30" style="color: #555;"> 分类:<text style="color: black;">{{cateObjArray[indexCate].name}}</text>
</view>
</picker>
</view>
<view class="ipt-wrap" style=" padding-bottom: 10rpx; border-bottom: 1px solid red;">
<picker bindchange="bindPickerChangeColour" range="{{colourObjList}}" rangeKey="name" value="{{indexColour}}">
<view class="f-30" style="color: #555;"> 成色:<text style="color: black;">{{colourObjList[indexColour].name}}</text>
</view>
</picker>
</view>
<view style="display: flex; align-items: center;justify-content: space-between; padding-bottom: 10rpx; margin-top: 10rpx; border-bottom: 1px solid red;">
<view style="display: flex; align-items: center;">
<label class="f-30" for="" style="color: #555;">是否上架:</label>
</view>
<view class="flex" style="display: flex;">
<switch bindchange="shangJiaSwitch" checked="{{isShangJia}}" class="switch"></switch>
</view>
</view>
<view class="cont-box b-f">
<button class="sub" formType="submit"> 保存 </button>
</view>
</form>
</view>
<view wx:else>
<view class="center-text">请先扫码或根据串号查询商品</view>
</view>
</view>