feat: feat: 订单详情新增订单编号
This commit is contained in:
parent
a7e92995e2
commit
700b86f3b8
|
|
@ -1,57 +1,59 @@
|
|||
.icon-progress-2-line:before {
|
||||
.icon-copy:before {
|
||||
content: "\e900";
|
||||
}
|
||||
.icon-money-cny-circle-line:before {
|
||||
content: "\e901";
|
||||
}
|
||||
.icon-user:before {
|
||||
content: "\e902";
|
||||
}
|
||||
.icon-upload-cloud-fill:before {
|
||||
content: "\e903";
|
||||
}
|
||||
.icon-time:before {
|
||||
content: "\e904";
|
||||
}
|
||||
.icon-reset-left-line:before {
|
||||
content: "\e905";
|
||||
}
|
||||
.icon-reset-left-fill:before {
|
||||
content: "\e906";
|
||||
}
|
||||
.icon-navigation:before {
|
||||
content: "\e907";
|
||||
}
|
||||
.icon-logout:before {
|
||||
content: "\e908";
|
||||
}
|
||||
.icon-info:before {
|
||||
content: "\e909";
|
||||
}
|
||||
.icon-flashlight:before {
|
||||
content: "\e90a";
|
||||
}
|
||||
.icon-edit-line:before {
|
||||
content: "\e902";
|
||||
}
|
||||
.icon-user:before {
|
||||
content: "\e903";
|
||||
}
|
||||
.icon-upload-cloud-fill:before {
|
||||
content: "\e904";
|
||||
}
|
||||
.icon-time:before {
|
||||
content: "\e905";
|
||||
}
|
||||
.icon-reset-left-line:before {
|
||||
content: "\e906";
|
||||
}
|
||||
.icon-reset-left-fill:before {
|
||||
content: "\e907";
|
||||
}
|
||||
.icon-progress-2-line:before {
|
||||
content: "\e908";
|
||||
}
|
||||
.icon-navigation:before {
|
||||
content: "\e909";
|
||||
}
|
||||
.icon-logout:before {
|
||||
content: "\e90a";
|
||||
}
|
||||
.icon-info:before {
|
||||
content: "\e90b";
|
||||
}
|
||||
.icon-close-circle-fill:before {
|
||||
.icon-flashlight:before {
|
||||
content: "\e90c";
|
||||
}
|
||||
.icon-checkbox-circle:before {
|
||||
.icon-close-circle-fill:before {
|
||||
content: "\e90d";
|
||||
}
|
||||
.icon-checkbox-blank-circle:before {
|
||||
.icon-checkbox-circle:before {
|
||||
content: "\e90e";
|
||||
}
|
||||
.icon-call:before {
|
||||
.icon-checkbox-blank-circle:before {
|
||||
content: "\e90f";
|
||||
}
|
||||
.icon-arrow-up-line:before {
|
||||
.icon-call:before {
|
||||
content: "\e910";
|
||||
}
|
||||
.icon-arrow-right:before {
|
||||
.icon-arrow-up-line:before {
|
||||
content: "\e911";
|
||||
}
|
||||
.icon-arrow-right-circle:before {
|
||||
.icon-arrow-right:before {
|
||||
content: "\e912";
|
||||
}
|
||||
.icon-arrow-right-circle:before {
|
||||
content: "\e913";
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -18,9 +18,10 @@
|
|||
|
||||
<view class="info">
|
||||
<view class="item-row flex-sb line-after">
|
||||
<view class="title flex-l">订单编号</view>
|
||||
<view class="value flex-r value-theme">
|
||||
<view class="title flex-l">工单号</view>
|
||||
<view class="value flex-r value-theme" @click="helpers.copy(data.order_info.order_no)">
|
||||
<text>{{ data.order_info.order_no }}</text>
|
||||
<me-icon class="icon" type="icon-copy" color="var(--themeColor)" size="36rpx"></me-icon>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-row flex-sb line-after">
|
||||
|
|
@ -426,13 +427,13 @@ const getOrderStatusText = (status) => {
|
|||
height: 80rpx;
|
||||
position: relative;
|
||||
.title {
|
||||
width: 200rpx;
|
||||
width: 190rpx;
|
||||
height: 100%;
|
||||
font-size: 30rpx;
|
||||
color: var(--summaryColor);
|
||||
}
|
||||
.value {
|
||||
width: 446rpx;
|
||||
width: 456rpx;
|
||||
height: 100%;
|
||||
font-size: 30rpx;
|
||||
color: var(--titleColor);
|
||||
|
|
|
|||
1
svg_icons/copy.svg
Normal file
1
svg_icons/copy.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="18" height="18" viewBox="0 0 18 18"><defs><clipPath id="master_svg0_4011_4445"><rect x="0" y="0" width="18" height="18" rx="0"/></clipPath></defs><g clip-path="url(#master_svg0_4011_4445)"><g><path d="M15.0703,12.625L13.31861,12.625Q13.26937,12.625,13.22107,12.6346Q13.17277,12.6442,13.12727,12.6631Q13.08177,12.6819,13.04083,12.7093Q12.99988,12.7366,12.96506,12.7714Q12.93024,12.8063,12.90288,12.8472Q12.87552,12.8882,12.856670000000001,12.9337Q12.83783,12.9792,12.82822,13.0275Q12.81861,13.0758,12.81861,13.125Q12.81861,13.1742,12.82822,13.2225Q12.83783,13.2708,12.856670000000001,13.3163Q12.87552,13.3618,12.90288,13.4028Q12.93024,13.4437,12.96506,13.4786Q12.99988,13.5134,13.04083,13.5407Q13.08177,13.5681,13.12727,13.5869Q13.17277,13.6058,13.22107,13.6154Q13.26937,13.625,13.31861,13.625L15.0703,13.625Q15.7143,13.625,16.169600000000003,13.1696Q16.625,12.7143,16.625,12.0703L16.625,2.92969Q16.625,2.285715,16.169600000000003,1.8303578Q15.7143,1.375,15.0703,1.375L5.92969,1.375Q5.285715,1.375,4.8303575,1.8303575Q4.375,2.285715,4.375,2.92969L4.375,4.661849999999999Q4.375,4.7111,4.384607,4.75939Q4.394215,4.80769,4.41306,4.85319Q4.431906,4.89869,4.459265,4.93963Q4.486625,4.98058,4.521447,5.0154Q4.556269,5.0502199999999995,4.597215,5.07758Q4.638161,5.10494,4.683658,5.12379Q4.729155,5.1426300000000005,4.7774549,5.15224Q4.8257543,5.161849999999999,4.875,5.161849999999999Q4.9242457,5.161849999999999,4.9725451,5.15224Q5.020845,5.1426300000000005,5.066342,5.12379Q5.111839,5.10494,5.152785,5.07758Q5.193731,5.0502199999999995,5.228553,5.0154Q5.263375,4.98058,5.290735,4.93963Q5.318094,4.89869,5.33694,4.85319Q5.355785,4.80769,5.365393,4.75939Q5.375,4.7111,5.375,4.661849999999999L5.375,2.92969Q5.375,2.375,5.92969,2.375L15.0703,2.375Q15.625,2.375,15.625,2.92969L15.625,12.0703Q15.625,12.625,15.0703,12.625Z" fill-rule="evenodd" fill="#2772F0" fill-opacity="1"/></g><g><path d="M13.625,15.0703L13.625,5.92969Q13.625,5.285715,13.1696,4.8303578Q12.7143,4.375,12.0703,4.375L2.92969,4.375Q2.285715,4.375,1.8303575,4.8303575Q1.375,5.285715,1.375,5.92969L1.375,15.0703Q1.375,15.7143,1.8303574,16.169600000000003Q2.285715,16.625,2.92969,16.625L12.0703,16.625Q12.7143,16.625,13.1696,16.169600000000003Q13.625,15.7143,13.625,15.0703ZM12.0703,5.375Q12.625,5.375,12.625,5.92969L12.625,15.0703Q12.625,15.625,12.0703,15.625L2.92969,15.625Q2.375,15.625,2.375,15.0703L2.375,5.92969Q2.375,5.375,2.92969,5.375L12.0703,5.375Z" fill-rule="evenodd" fill="#2772F0" fill-opacity="1"/></g></g></svg>
|
||||
|
After Width: | Height: | Size: 2.5 KiB |
|
|
@ -196,5 +196,24 @@ class helpers {
|
|||
});
|
||||
}
|
||||
|
||||
static copy = (content) => {
|
||||
if (!content) {
|
||||
helpers.showToast('复制的内容不能为空')
|
||||
return
|
||||
}
|
||||
|
||||
// 复制内容,必须字符串,数字需要转换为字符串
|
||||
content = typeof content === 'string' ? content : content.toString()
|
||||
uni.setClipboardData({
|
||||
data: content,
|
||||
success: function() {
|
||||
helpers.showToast('复制成功')
|
||||
},
|
||||
fail:function(){
|
||||
helpers.showToast('复制失败')
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
export default helpers
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user