2023-12-1

This commit is contained in:
2023-12-01 12:31:42 +08:00
parent 83f1e822c1
commit 7d72abd693
15 changed files with 114 additions and 26 deletions

View File

@@ -4,13 +4,15 @@
<z-paging ref="paging" v-model="data" @query="queryList" :auto='true'>
<view @click="bind"
style="background: #f1f2f3;width: 100%;height: 35px;line-height: 35px;text-align: center;color: red;">
绑定新卡</view>
style="background: #f1f2f3;width: 100%;height: 35px;display: flex;flex-direction: row;justify-content: center;align-items: center;">
<image src="../../static/btn_bj.png" style="width: 15px;height: 15px;"></image>
<text style="line-height: 35px;text-align: center;color: red;margin-left: 5px;">绑定新卡</text>
</view>
<view style="display: flex;flex-direction: column;padding-top: 10px;">
<view v-for="(item,index) in data" style="display: flex;flex-direction: column;align-items: center;"
:class="item.showBtn==true?'oragin':'gray'" @click="detail(item.sid)">
<view v-for="(item,index) in data" :key="index" style="display: flex;flex-direction: column;align-items: center;"
:class="item.showBtn==true?'oragin':'gray'" @click="detail(item)">
<view
style="display: flex;flex-direction: column;border: 1px solid #e29a68;width: 90%;border-radius: 20rpx;margin-top: 8px;">
@@ -94,10 +96,20 @@
url: '/pages/card/card_bind'
})
},
detail(sid) {
uni.navigateTo({
url: '/pages/card/card_detail?sid=' + sid
})
detail(item) {
if (item.state == '失效') {
// 记录
uni.navigateTo({
url: '/pages/card/card_record?sid=' + item.sid
})
} else {
// 详情
uni.navigateTo({
url: '/pages/card/card_detail?sid=' + item.sid
})
}
},
booking(sid) {
uni.navigateTo({

View File

@@ -5,7 +5,7 @@
<view style="display: flex;flex-direction: column;margin-top: -10vw;box-sizing: border-box;">
<view
style="display: flex;flex-direction: column;border-radius: 20rpx;background: #FFFFFF;z-index: 1;align-items: center;box-sizing: border-box;">
<view style="margin: 15px;">绑定礼包</view>
<view style="margin: 15px;">绑定云菜窖</view>
<view
style="display: flex;flex-direction: row;justify-content: space-between;box-sizing: border-box;width: calc(100vw - 60px);align-items: center;">
<input maxlength="20" placeholder="请输入/扫码 提货编码"

View File

@@ -8,7 +8,7 @@
<view style="display: flex;flex-direction: column;margin-top: -10vw;box-sizing: border-box;">
<view
style="display: flex;flex-direction: column;border-radius: 20rpx;background: #FFFFFF;z-index: 1;align-items: center;box-sizing: border-box;">
<view style="margin: 15px;">绑定礼包</view>
<view style="margin: 15px;">绑定云菜窖</view>
<view
style="display: flex;flex-direction: row;justify-content: space-between;box-sizing: border-box;width: calc(100vw - 60px);align-items: center;">
<input maxlength="20" placeholder="请输入/扫码 提货编码"

View File

@@ -40,15 +40,15 @@
</view>
<view
style="display: flex;align-items: center;padding-right: 10px;margin-top: 6px;margin-bottom: 8px;">
<text style="flex-shrink: 0;font-size: 13px;margin-left: 10px;margin-right: 10px;">提货人员</text>
<input placeholder="请输入提货人"
<text style="flex-shrink: 0;font-size: 13px;margin-left: 10px;margin-right: 10px; " decode="true">&ensp;&ensp;</text>
<input placeholder="请输入提货人"
style="font-size: 30rpx;flex: 1;background: #F8F8F8;border-radius: 5px;height: 40px;line-height: 40px;padding-left: 10px;"
:value="data.userName" @input="onKeyInput1" />
</view>
<view
style="display: flex;align-items: center;padding-right: 10px;margin-top: 6px;margin-bottom: 8px;">
<text style="flex-shrink: 0;font-size: 13px;margin-left: 10px;margin-right: 10px;">手机号码</text>
<input maxlength="11" placeholder="请输入手机号码"
<text style="flex-shrink: 0;font-size: 13px;margin-left: 10px;margin-right: 10px;">联系电话</text>
<input maxlength="11" placeholder="请输入联系电话"
style="font-size: 30rpx;flex: 1;background: #F8F8F8;border-radius: 5px;height: 40px;line-height: 40px;padding-left: 10px;"
type="number" :value="data.userPhone" @input="onKeyInput2" />
</view>
@@ -64,12 +64,14 @@
</view>
<view v-for="(item,index) in data.goodsVos"
style="display: flex;flex-direction: row;margin-top: 15px;">
<image :src="item.pic" style="width: 60px;height: 60px;flex-shrink: 0;"></image>
<image :src="item.pic" style="width: 60px;height: 60px;flex-shrink: 0;" @click="goodDetail(item.goodsSid)"></image>
<view
style="margin-left: 10px;margin-right: 10px;flex: 1;display: flex;flex-direction: column;justify-content: space-between;align-items: flex-end;">
<text class="text" style="font-weight: 500;width: 100%;">{{item.goods}}
</text>
<uni-number-box ref="box" :min="0" :max="item.lnum" v-model="item.select"
<text class="text" style="width: 100%;font-size: 12px; color: #666666;margin-top: 10px;">{{item.remarks}}
</text>
<uni-number-box ref="box" style="margin-top: -25px;" :min="0" :max="item.lnum" v-model="item.select"
:showTextView="page.showTextView"></uni-number-box>
</view>
</view>
@@ -181,6 +183,12 @@
_this.shortToast('发生异常')
})
},
goodDetail(sid){
// 商品详情
uni.navigateTo({
url: '/pages/good/goodsDetail?sid=' + sid
})
}
}
}

View File

@@ -36,15 +36,19 @@
<image src="../../static/mingxi.png" style="width: 15px;height: 15px;"></image>
<view style="margin-left: 10px;font-size: 14px;">商品明细</view>
</view>
<view v-for="(item,index) in data.goodsVos"
<view v-for="(item,index) in data.goodsVos" :key="index"
style="display: flex;flex-direction: row;margin-top: 15px;">
<image :src="item.pic" style="width: 60px;height: 60px;flex-shrink: 0;"></image>
<image :src="item.pic" style="width: 60px;height: 60px;flex-shrink: 0;" @click="goodDetail(item.goodsSid)"></image>
<view style="margin-left: 10px;margin-right: 10px;flex: 1;">
<text class="text" style="font-weight: 500;">{{item.goods}}
</text>
<view style="font-size: 12px;color: #666666;">剩余数量{{item.lnum}}</view>
<view style="font-size: 12px;color: #666666;margin-top: 10px;">{{item.remarks}}</view>
</view>
<view style="display: flex;flex-direction: row;">
<text style="font-size: 12px;color: #666666;margin-right: 10px;">总数{{item.num}}
</text>
<view style="font-size: 12px;color: #666666;">剩余{{item.lnum}}</view>
</view>
<view style="flex-shrink: 0;font-size: 12px;color: #666666;">x{{item.num}}</view>
</view>
</view>
</view>
@@ -119,6 +123,12 @@
uni.navigateTo({
url: '/pages/card/card_booking?sid=' + sid
})
},
goodDetail(sid){
// 商品详情
uni.navigateTo({
url: '/pages/good/goodsDetail?sid=' + sid
})
}
}
}

View File

@@ -62,6 +62,14 @@
_this.$nextTick(() => {
_this.$refs.pageView.setLoadState(2)
})
// 无数据
if(_this.data.length==0){
_this.$nextTick(() => {
_this.$refs.pageView.setLoadState(100)
})
}
}).catch(e => {
// 错误 1
_this.$nextTick(() => {