From 44dbae4a6ffb73478cd7980f37f1760e9a070c07 Mon Sep 17 00:00:00 2001
From: xuxy <1059738716@qq.com>
Date: 星期日, 28 七月 2024 23:55:21 +0800
Subject: [PATCH] add 帮助富文本等页面
---
sub_pages/customer/shopping/confirm.vue | 34 ++++++++++++++++++++++++++++++++--
1 files changed, 32 insertions(+), 2 deletions(-)
diff --git a/sub_pages/customer/shopping/confirm.vue b/sub_pages/customer/shopping/confirm.vue
index 776d98d..18ecf6c 100644
--- a/sub_pages/customer/shopping/confirm.vue
+++ b/sub_pages/customer/shopping/confirm.vue
@@ -25,6 +25,18 @@
...this.dto,
...item
}
+ this.$http.request('get', '/api/code/value', {
+ params: {
+ type: 'SPEC_REQ'
+ }
+ }).then(res => {
+ var data = res.data
+ this.need_columns = [data || []]
+ this.need_columns[0].unshift({
+ label: '暂无',
+ value: ''
+ })
+ })
//先获取直接的全部地址
// @ApiModelProperty(value = "订单商品")
// private List<FlowerCartListDTO> flowers;
@@ -37,6 +49,7 @@
dto: {
remarks: '',
specialNeeds: '',
+ specialNeedsStr: '',
transportId: '',
addressId: '',
flowers: [],
@@ -44,7 +57,10 @@
current_transport: {},
cacheAddressId: '',
transportList: [],
-
+ show_select_need: false,
+ need_columns: [
+ []
+ ],
}
},
@@ -58,6 +74,11 @@
}
},
methods: {
+ select_need(e) {
+ this.show_select_need = false
+ this.dto.specialNeedsStr = e.value[0].label
+ this.dto.specialNeeds = e.value[0].value
+ },
async loadTransportList() {
let that = this;
console.log('address', that.address, that.cacheAddressId)
@@ -222,12 +243,18 @@
<view class="p10 bg-white m-t-20 br-4">
<view class="form-item ">
<view class="label">特殊需求</view>
- <view class="m-l-a m-r-0 flex1">
+ <!-- <view class="m-l-a m-r-0 flex1">
<view class="m-t-12 m-b-12">
<u-textarea v-model="dto.specialNeeds" placeholder="请输入特殊需求">
</u-textarea>
</view>
+ </view> -->
+ <view class="m-l-a m-r-0 flex " :class="[!dto.specialNeeds?'desc-gray':'']" @click="()=>{
+ show_select_need=true
+ }">
+ <view>{{dto.specialNeedsStr||dto.specialNeeds || '请选择'}}</view>
+ <u-icon class="m-l-a" name="arrow-right"></u-icon>
</view>
</view>
<view class="form-item m-t-12 ">
@@ -276,6 +303,9 @@
提交订单
</view>
</view>
+
+ <u-picker :show="show_select_need" @confirm="select_need" keyName="label" :columns="need_columns"
+ @cancel="show_select_need=false"></u-picker>
</view>
</template>
--
Gitblit v1.9.3