提交 90ad1082 authored 作者: 刘旭's avatar 刘旭

上传代码

上级 67445e8c
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
<view class="detail"> <view class="detail">
<view>中国茅台镇</view> <view>中国茅台镇</view>
<view>高端定制酱酒首选品牌</view> <view>高端定制酱酒首选品牌</view>
<view>Maotai Town,China The preferred brand</view> <view class="smallsize-font">Maotai Town, China The preferred brand</view>
<view class="english">of high-end customized sauce wine</view> <view class="smallsize-font">of high-end customized sauce wine</view>
</view> </view>
<view class="content"> <view class="content">
<view class="top"> <view class="top">
...@@ -152,17 +152,20 @@ initHavePage(); ...@@ -152,17 +152,20 @@ initHavePage();
font-weight: 600; font-weight: 600;
&:nth-child(3) { &:nth-child(3) {
font-size: 15rpx;
width: 460rpx;
margin-top: 20rpx; margin-top: 20rpx;
font-weight: normal; text-align: right;
margin-left: 28%;
}
&:nth-child(4) {
margin-left: 24%;
} }
} }
.english { .smallsize-font {
font-size: 15rpx; font-size: 12px;
width: 426rpx;
font-weight: normal; font-weight: normal;
-webkit-transform-origin-x: 0;
-webkit-transform: scale(0.55);
} }
} }
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<view class="pre-container"> <view class="pre-container">
<view class="pre-image" v-for="(item, i) in pageData" :key="i"> <view class="pre-image" v-for="(item, i) in pageData" :key="i">
<image v-if="item.type == 'image/jpeg'" :src="baseURL + item.pageComponent" mode="widthFix" style="width: 100%;"></image> <image v-if="item.type == 'image/jpeg'" :src="baseURL + item.pageComponent" mode="widthFix" style="width: 100%;"></image>
<video v-else :src="baseURL + item.pageComponent" class="pre-video" />
</view> </view>
<view class="pre-video" v-for="(item, i) in pageData" :key="i"><video v-if="item.type != 'image/jpeg'" :src="baseURL + item.pageComponent" /></view>
</view> </view>
</template> </template>
......
...@@ -4,22 +4,25 @@ ...@@ -4,22 +4,25 @@
<headerVue :color1="color"></headerVue> <headerVue :color1="color"></headerVue>
<view class="query-content"> <view class="query-content">
<view class="query-record"> <view class="query-record">
<view class="content"><uni-search-bar cancelButton="always" v-model="searchValue" placeholder="SN" /></view> <view class="content"><uni-search-bar cancelButton="always" v-model="searchValue" placeholder="SN" @confirm="confirm" /></view>
</view> </view>
<view class="query-list"> <view v-for="(item, i) in queryRecord" :key="i">
<image src="/static/msjf-picture/msjf-17.jpg" mode="heightFix" /> <view class="query-list">
<view class="record"> <image :src="baseURL + item.goodsPicUrl" mode="scaleToFill" />
<text class="record-text">轻奢纯棉刺绣水洗四件套</text> <view class="record">
<view class="record-center"> <text class="record-text">{{ item.goodsName }}</text>
<uni-tag text="已开瓶" type="primary" :circle="true" size="mini"></uni-tag> <view class="record-center">
<!-- <uni-tag text="未开瓶" :circle="true" size="mini"></uni-tag> --> <text v-show="'phoneAndTime' in queryRecord[i]">扫码手机:{{ 'phoneAndTime' in queryRecord[i] ? item.phoneAndTime[0].phone : '' }}</text>
<text style="margin-left: 20rpx;">17300762589</text> </view>
</view> <view class="record-footer">
<view class="record-footer"> <text class="price">{{ item.goodsPrice }}</text>
<text class="price">¥178.0</text> <text style="color: #ccc; margin-top: 3%;">{{ item.sameDay }}</text>
<text style="color: #ccc;">订单编号</text> <text v-if="item.used" style="color: #ccc; margin-top: 3%;">{{ item.strength }}</text>
</view>
</view> </view>
<view :class="item.used ? 'tag' : 'info-tag'">{{ item.used ? '已开瓶' : '未开瓶' }}</view>
</view> </view>
<text style="font-size: 26rpx; color: #313131; margin: 20rpx 60rpx">订单编号:{{ item.orderSn }}</text>
</view> </view>
</view> </view>
<!-- <view class="footer"> <!-- <view class="footer">
...@@ -38,8 +41,16 @@ ...@@ -38,8 +41,16 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref } from 'vue'; import { ref } from 'vue';
import headerVue from '@/pages/header/index.vue'; import headerVue from '@/pages/header/index.vue';
import { searchSnInfo } from '@/services/api';
import { baseURL } from '@/services/request';
import { onLoad } from '@dcloudio/uni-app';
let color = ref('#a27443'); let color = ref('#a27443');
let used = ref(false);
let queryRecord = ref();
let queryPwd = () => { let queryPwd = () => {
uni.navigateTo({ uni.navigateTo({
url: './queryPwd' url: './queryPwd'
...@@ -51,6 +62,17 @@ let importExcel = () => { ...@@ -51,6 +62,17 @@ let importExcel = () => {
url: './importExcel' url: './importExcel'
}); });
}; };
let confirm = async (data: any) => {
// MSJF-0000001
if (data.value) {
let res: any = await searchSnInfo({ code: data.value });
if (res.data.errno == 0) {
queryRecord.value = res.data.data;
console.log(queryRecord.value);
}
}
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -76,49 +98,73 @@ page { ...@@ -76,49 +98,73 @@ page {
} }
.query-list { .query-list {
margin: 10rpx 0; margin-top: 20rpx;
padding: 10rpx 50rpx 10rpx 30rpx; padding: 10rpx 30rpx;
box-sizing: border-box; box-sizing: border-box;
border-radius: 10rpx; border-radius: 10rpx;
width: 100%; width: 100%;
height: 200rpx; height: 200rpx;
background-color: #fff; background-color: #fff;
border: 1px solid #ccc;
display: flex; display: flex;
justify-content: flex-start; justify-content: space-between;
align-items: center;
image { image {
height: 100%; width: 160rpx;
margin-right: 50rpx; height: 160rpx;
border-radius: 10px;
} }
.record { .record {
box-sizing: border-box;
height: 100%;
padding: 9px 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: flex-start;
align-content: space-between;
font-size: 12px; font-size: 12px;
.record-text { .record-text {
font-size: 16px; font-size: 15px;
font-weight: 500; font-weight: 600;
// margin-bottom: 20rpx; // margin-bottom: 20rpx;
} }
.record-center { .record-center {
display: flex; height: 20%;
justify-content: space-between; margin: 5% 0 6% 0;
.uni-tag--circle {
width: 100rpx;
text-align: center;
}
} }
.record-footer { .record-footer {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.price { .price {
color: red; color: red;
font-size: 18px; font-size: 16px;
} }
} }
} }
.tag {
align-self: flex-end;
font-size: 14px;
color: #fff;
width: 120rpx;
height: 50rpx;
background-color: #172372;
text-align: center;
line-height: 50rpx;
border-radius: 20rpx;
margin-bottom: 16rpx;
}
.info-tag {
align-self: flex-end;
font-size: 14px;
color: #fff;
width: 120rpx;
height: 50rpx;
text-align: center;
line-height: 50rpx;
border-radius: 20rpx;
margin-bottom: 16rpx;
background-color: #7e7e7e;
}
} }
} }
......
...@@ -20,3 +20,6 @@ export let getPageComponent = (pageId: number) => request('/wx/customPage/getPag ...@@ -20,3 +20,6 @@ export let getPageComponent = (pageId: number) => request('/wx/customPage/getPag
// 删除模板 // 删除模板
export let deletePageComponent = (id: number) => request('/wx/customPage/delete', 'POST', id); export let deletePageComponent = (id: number) => request('/wx/customPage/delete', 'POST', id);
// 查询记录
export let searchSnInfo = (sn: string) => request('/wx/orderSequence/searchRecordInfo', 'GET', sn);
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论