|
@@ -26,13 +26,21 @@
|
|
|
<u-switch v-model="is_open" size="20"></u-switch>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="two_2" v-if="is_open">
|
|
|
- <view class="left">收货地址</view>
|
|
|
- <view class="right">1</view>
|
|
|
+ <view class="two_2">
|
|
|
+ <view class="left">公证费</view>
|
|
|
+ <view class="right money">¥{{info.money||'0'}}</view>
|
|
|
</view>
|
|
|
<view class="two_2" v-if="is_open">
|
|
|
<view class="left">邮费</view>
|
|
|
- <view class="right">1</view>
|
|
|
+ <view class="right" v-if="info.postage=='0'">包邮</view>
|
|
|
+ <view class="right money" v-else>¥{{info.postage||'暂无'}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="two_3" v-if="is_open">
|
|
|
+ <view class="left">请选择收货地址</view>
|
|
|
+ <view class="right">
|
|
|
+ <text>{{data.address||''}}</text>
|
|
|
+ <u-icon name="arrow-right" size="18"></u-icon>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="thr">
|
|
@@ -61,11 +69,15 @@
|
|
|
import { onLoad } from "@dcloudio/uni-app";
|
|
|
// 请求接口
|
|
|
const $api = getCurrentInstance()?.appContext.config.globalProperties.$api;
|
|
|
- // 基本信息
|
|
|
- const config = ref({ logo: [], file: [] });
|
|
|
const id = ref('');
|
|
|
+ // 用户信息
|
|
|
+ const user = ref({});
|
|
|
const info = ref({});
|
|
|
const form = ref({});
|
|
|
+ const data = ref({
|
|
|
+ user: user.value._id,
|
|
|
+ business: id.value
|
|
|
+ });
|
|
|
const text = ref('请输入');
|
|
|
// 是否需要邮寄
|
|
|
const is_open = ref(false);
|
|
@@ -76,13 +88,13 @@
|
|
|
uni.setNavigationBarTitle({
|
|
|
title: options && options.name || '公证详情'
|
|
|
});
|
|
|
- await searchConfig();
|
|
|
+ await searchUser();
|
|
|
await searchOther();
|
|
|
await search();
|
|
|
})
|
|
|
- // config信息
|
|
|
- const searchConfig = async () => {
|
|
|
- config.value = uni.getStorageSync('config');
|
|
|
+ // 用户信息
|
|
|
+ const searchUser = async () => {
|
|
|
+ user.value = uni.getStorageSync('user');
|
|
|
};
|
|
|
// 其他查询信息
|
|
|
const searchOther = async () => {
|
|
@@ -182,6 +194,16 @@
|
|
|
padding: 3vw;
|
|
|
background-color: var(--mainColor);
|
|
|
font-size: var(--font14Size);
|
|
|
+
|
|
|
+ .money {
|
|
|
+ color: var(--fF0Color);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .two_3 {
|
|
|
+ padding: 3vw;
|
|
|
+ background-color: var(--mainColor);
|
|
|
+ font-size: var(--font14Size);
|
|
|
}
|
|
|
}
|
|
|
|