'
main
xingqq 4 months ago
parent 654ead35bb
commit adf9e9db53

@ -1,222 +1,239 @@
{ {
"name": "芋道商城", "name": "芋道商城",
"appid": "__UNI__460BC4C", "appid": "__UNI__460BC4C",
"description": "基于 uni-app + Vue3 技术驱动的在线商城系统,内含诸多功能与丰富的活动,期待您的使用和反馈。", "description": "基于 uni-app + Vue3 技术驱动的在线商城系统,内含诸多功能与丰富的活动,期待您的使用和反馈。",
"versionName": "2.1.0", "versionName": "2.1.0",
"versionCode": 183, "versionCode": 183,
"transformPx": false, "transformPx": false,
"app-plus": { "app-plus": {
"usingComponents": true, "usingComponents": true,
"nvueCompiler": "uni-app", "nvueCompiler": "uni-app",
"nvueStyleCompiler": "uni-app", "nvueStyleCompiler": "uni-app",
"compilerVersion": 3, "compilerVersion": 3,
"nvueLaunchMode": "fast", "nvueLaunchMode": "fast",
"splashscreen": { "splashscreen": {
"alwaysShowBeforeRender": true, "alwaysShowBeforeRender": true,
"waiting": true, "waiting": true,
"autoclose": true, "autoclose": true,
"delay": 0 "delay": 0
}, },
"safearea": { "safearea": {
"bottom": { "bottom": {
"offset": "none" "offset": "none"
} }
}, },
"modules": { "modules": {
"Payment": {}, "Payment": {},
"Share": {}, "Share": {},
"VideoPlayer": {}, "VideoPlayer": {},
"OAuth": {} "OAuth": {}
}, },
"distribute": { "distribute": {
"android": { "android": {
"permissions": [ "permissions": [
"<uses-feature android:name=\"android.hardware.camera\"/>", "<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>", "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_MOCK_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_MOCK_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>", "<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>", "<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>", "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.GET_TASKS\"/>", "<uses-permission android:name=\"android.permission.GET_TASKS\"/>",
"<uses-permission android:name=\"android.permission.INTERNET\"/>", "<uses-permission android:name=\"android.permission.INTERNET\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>", "<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>", "<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>", "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.READ_SMS\"/>", "<uses-permission android:name=\"android.permission.READ_SMS\"/>",
"<uses-permission android:name=\"android.permission.RECEIVE_BOOT_COMPLETED\"/>", "<uses-permission android:name=\"android.permission.RECEIVE_BOOT_COMPLETED\"/>",
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>", "<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
"<uses-permission android:name=\"android.permission.SEND_SMS\"/>", "<uses-permission android:name=\"android.permission.SEND_SMS\"/>",
"<uses-permission android:name=\"android.permission.SYSTEM_ALERT_WINDOW\"/>", "<uses-permission android:name=\"android.permission.SYSTEM_ALERT_WINDOW\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>", "<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>", "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>", "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SMS\"/>", "<uses-permission android:name=\"android.permission.WRITE_SMS\"/>",
"<uses-permission android:name=\"android.permission.RECEIVE_USER_PRESENT\"/>" "<uses-permission android:name=\"android.permission.RECEIVE_USER_PRESENT\"/>"
], ],
"minSdkVersion": 21, "minSdkVersion": 21,
"schemes": "shopro" "schemes": "shopro"
}, },
"ios": { "ios": {
"urlschemewhitelist": ["baidumap", "iosamap"], "urlschemewhitelist": [
"dSYMs": false, "baidumap",
"privacyDescription": { "iosamap"
"NSPhotoLibraryUsageDescription": "需要同意访问您的相册选取图片才能完善该条目", ],
"NSPhotoLibraryAddUsageDescription": "需要同意访问您的相册才能保存该图片", "dSYMs": false,
"NSCameraUsageDescription": "需要同意访问您的摄像头拍摄照片才能完善该条目", "privacyDescription": {
"NSUserTrackingUsageDescription": "开启追踪并不会获取您在其它站点的隐私信息,该行为仅用于标识设备,保障服务安全和提升浏览体验" "NSPhotoLibraryUsageDescription": "需要同意访问您的相册选取图片才能完善该条目",
}, "NSPhotoLibraryAddUsageDescription": "需要同意访问您的相册才能保存该图片",
"urltypes": "shopro", "NSCameraUsageDescription": "需要同意访问您的摄像头拍摄照片才能完善该条目",
"capabilities": { "NSUserTrackingUsageDescription": "开启追踪并不会获取您在其它站点的隐私信息,该行为仅用于标识设备,保障服务安全和提升浏览体验"
"entitlements": { },
"com.apple.developer.associated-domains": ["applinks:shopro.sheepjs.com"] "urltypes": "shopro",
} "capabilities": {
}, "entitlements": {
"idfa": true "com.apple.developer.associated-domains": [
}, "applinks:shopro.sheepjs.com"
"sdkConfigs": { ]
"speech": { }
"ifly": {} },
}, "idfa": true
"ad": {}, },
"oauth": { "sdkConfigs": {
"apple": {}, "speech": {
"weixin": { "ifly": {}
"appid": "wxae7a0c156da9383b", },
"UniversalLinks": "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/" "ad": {},
} "oauth": {
}, "apple": {},
"payment": { "weixin": {
"weixin": { "appid": "wxae7a0c156da9383b",
"__platform__": ["ios", "android"], "UniversalLinks": "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
"appid": "wxae7a0c156da9383b", }
"UniversalLinks": "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/" },
}, "payment": {
"alipay": { "weixin": {
"__platform__": ["ios", "android"] "__platform__": [
} "ios",
}, "android"
"share": { ],
"weixin": { "appid": "wxae7a0c156da9383b",
"appid": "wxae7a0c156da9383b", "UniversalLinks": "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
"UniversalLinks": "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/" },
} "alipay": {
} "__platform__": [
}, "ios",
"orientation": ["portrait-primary"], "android"
"splashscreen": { ]
"androidStyle": "common", }
"iosStyle": "common", },
"useOriginalMsgbox": true "share": {
}, "weixin": {
"icons": { "appid": "wxae7a0c156da9383b",
"android": { "UniversalLinks": "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
"hdpi": "unpackage/res/icons/72x72.png", }
"xhdpi": "unpackage/res/icons/96x96.png", }
"xxhdpi": "unpackage/res/icons/144x144.png", },
"xxxhdpi": "unpackage/res/icons/192x192.png" "orientation": [
}, "portrait-primary"
"ios": { ],
"appstore": "unpackage/res/icons/1024x1024.png", "splashscreen": {
"ipad": { "androidStyle": "common",
"app": "unpackage/res/icons/76x76.png", "iosStyle": "common",
"app@2x": "unpackage/res/icons/152x152.png", "useOriginalMsgbox": true
"notification": "unpackage/res/icons/20x20.png", },
"notification@2x": "unpackage/res/icons/40x40.png", "icons": {
"proapp@2x": "unpackage/res/icons/167x167.png", "android": {
"settings": "unpackage/res/icons/29x29.png", "hdpi": "unpackage/res/icons/72x72.png",
"settings@2x": "unpackage/res/icons/58x58.png", "xhdpi": "unpackage/res/icons/96x96.png",
"spotlight": "unpackage/res/icons/40x40.png", "xxhdpi": "unpackage/res/icons/144x144.png",
"spotlight@2x": "unpackage/res/icons/80x80.png" "xxxhdpi": "unpackage/res/icons/192x192.png"
}, },
"iphone": { "ios": {
"app@2x": "unpackage/res/icons/120x120.png", "appstore": "unpackage/res/icons/1024x1024.png",
"app@3x": "unpackage/res/icons/180x180.png", "ipad": {
"notification@2x": "unpackage/res/icons/40x40.png", "app": "unpackage/res/icons/76x76.png",
"notification@3x": "unpackage/res/icons/60x60.png", "app@2x": "unpackage/res/icons/152x152.png",
"settings@2x": "unpackage/res/icons/58x58.png", "notification": "unpackage/res/icons/20x20.png",
"settings@3x": "unpackage/res/icons/87x87.png", "notification@2x": "unpackage/res/icons/40x40.png",
"spotlight@2x": "unpackage/res/icons/80x80.png", "proapp@2x": "unpackage/res/icons/167x167.png",
"spotlight@3x": "unpackage/res/icons/120x120.png" "settings": "unpackage/res/icons/29x29.png",
} "settings@2x": "unpackage/res/icons/58x58.png",
} "spotlight": "unpackage/res/icons/40x40.png",
} "spotlight@2x": "unpackage/res/icons/80x80.png"
} },
}, "iphone": {
"quickapp": {}, "app@2x": "unpackage/res/icons/120x120.png",
"quickapp-native": { "app@3x": "unpackage/res/icons/180x180.png",
"icon": "/static/logo.png", "notification@2x": "unpackage/res/icons/40x40.png",
"package": "com.example.demo", "notification@3x": "unpackage/res/icons/60x60.png",
"features": [{ "settings@2x": "unpackage/res/icons/58x58.png",
"name": "system.clipboard" "settings@3x": "unpackage/res/icons/87x87.png",
}] "spotlight@2x": "unpackage/res/icons/80x80.png",
}, "spotlight@3x": "unpackage/res/icons/120x120.png"
"quickapp-webview": { }
"icon": "/static/logo.png", }
"package": "com.example.demo", }
"minPlatformVersion": 1070, }
"versionName": "1.0.0", },
"versionCode": 100 "quickapp": {},
}, "quickapp-native": {
"mp-weixin": { "icon": "/static/logo.png",
"appid": "wx53b5ac263b9cdb5b", "package": "com.example.demo",
"setting": { "features": [
"urlCheck": false, {
"minified": true, "name": "system.clipboard"
"postcss": true }
}, ]
"optimization": { },
"subPackages": true "quickapp-webview": {
}, "icon": "/static/logo.png",
"plugins": {}, "package": "com.example.demo",
"lazyCodeLoading": "requiredComponents", "minPlatformVersion": 1070,
"usingComponents": {}, "versionName": "1.0.0",
"permission": {}, "versionCode": 100
"requiredPrivateInfos": ["chooseAddress"] },
}, "mp-weixin": {
"mp-alipay": { "appid": "wx53b5ac263b9cdb5b",
"usingComponents": true "setting": {
}, "urlCheck": false,
"mp-baidu": { "minified": true,
"usingComponents": true "postcss": true
}, },
"mp-toutiao": { "optimization": {
"usingComponents": true "subPackages": true
}, },
"mp-jd": { "plugins": {},
"usingComponents": true "lazyCodeLoading": "requiredComponents",
}, "usingComponents": {},
"h5": { "permission": {},
"template": "index.html", "requiredPrivateInfos": [
"router": { "chooseAddress"
"mode": "hash", ]
"base": "./" },
}, "mp-alipay": {
"sdkConfigs": { "usingComponents": true
"maps": {} },
}, "mp-baidu": {
"async": { "usingComponents": true
"timeout": 20000 },
}, "mp-toutiao": {
"title": "芋道商城", "usingComponents": true
"optimization": { },
"treeShaking": { "mp-jd": {
"enable": true "usingComponents": true
} },
} "h5": {
}, "template": "index.html",
"vueVersion": "3", "router": {
"_spaceID": "192b4892-5452-4e1d-9f09-eee1ece40639", "mode": "hash",
"locale": "zh-Hans", "base": "./"
"fallbackLocale": "zh-Hans" },
"sdkConfigs": {
"maps": {}
},
"async": {
"timeout": 20000
},
"title": "芋道商城",
"optimization": {
"treeShaking": {
"enable": true
}
}
},
"vueVersion": "3",
"_spaceID": "192b4892-5452-4e1d-9f09-eee1ece40639",
"locale": "zh-Hans",
"fallbackLocale": "zh-Hans"
} }

@ -297,6 +297,18 @@
"group": "用户中心" "group": "用户中心"
} }
}, },
{
"path": "address/listt",
"style": {
"navigationBarTitleText": "收货地址"
},
"meta": {
"auth": true,
"sync": true,
"title": "地址管理",
"group": "用户中心"
}
},
{ {
"path": "address/edit", "path": "address/edit",
"style": { "style": {

@ -1,14 +1,27 @@
<template> <template>
<s-layout title="确认订单"> <s-layout title="确认订单">
<!-- TODO这个判断先删除 v-if="state.orderInfo.need_address === 1" --> <!-- TODO这个判断先删除 v-if="state.orderInfo.need_address === 1" -->
<view class="bg-white address-box ss-m-b-14 ss-r-b-10" @tap="onSelectAddress"> <view class="top">
配送方式是否自提
<switch checked @change="switch1Change" />
</view>
<view class="bg-white address-box ss-m-b-14 ss-r-b-10" @tap="onSelectAddress" v-if='state.deliType === 1'>
<s-address-item :item="state.addressInfo" :hasBorderBottom="false"> <s-address-item :item="state.addressInfo" :hasBorderBottom="false">
<view class="ss-rest-button"> <view class="ss-rest-button">
<text class="_icon-forward" /> <text class="_icon-forward" />
</view> </view>
</s-address-item> </s-address-item>
</view> </view>
<view class="pickUpInfo" @tap="onSelectAddress1" v-else>
<view>
<view>门店信息</view>
<view>{{state.pickUpInfo.detailAddress}}</view>
<view>{{state.pickUpInfo.areaName}}</view>
</view>
<view class="ss-rest-button">
<text class="_icon-forward" />
</view>
</view>
<!-- 商品信息 --> <!-- 商品信息 -->
<view class="order-card-box ss-m-b-14"> <view class="order-card-box ss-m-b-14">
<s-goods-item <s-goods-item
@ -173,6 +186,8 @@
items: [], // items: [], //
price: {}, // price: {}, //
}, },
deliType:2,
pickUpInfo:{},//
addressInfo: {}, // addressInfo: {}, //
showCoupon: false, // showCoupon: false, //
couponInfo: [], // couponInfo: [], //
@ -180,13 +195,24 @@
}); });
// //
function onSelectAddress1() {
uni.$once('SELECT_ADDRESS1', (e) => {
changeConsignee1(e.pickUpInfo);
});
sheep.$router.go('/pages/user/address/listt');
}
function changeConsignee1(pickUpInfo = {}) {
if (!isEmpty(pickUpInfo)) {
state.pickUpInfo = pickUpInfo;
}
}
///////////////////////
function onSelectAddress() { function onSelectAddress() {
uni.$once('SELECT_ADDRESS', (e) => { uni.$once('SELECT_ADDRESS', (e) => {
changeConsignee(e.addressInfo); changeConsignee(e.addressInfo);
}); });
sheep.$router.go('/pages/user/address/list'); sheep.$router.go('/pages/user/address/list');
} }
// & // &
async function changeConsignee(addressInfo = {}) { async function changeConsignee(addressInfo = {}) {
if (!isEmpty(addressInfo)) { if (!isEmpty(addressInfo)) {
@ -210,14 +236,22 @@
} }
submitOrder(); submitOrder();
} }
//
const switch1Change = ()=>{
if(state.deliType == 1){
state.deliType = 2
}else{
state.deliType = 1
}
}
// & // &
async function submitOrder() { async function submitOrder() {
const { code, data } = await OrderApi.createOrder({ const { code, data } = await OrderApi.createOrder({
items: state.orderPayload.items, items: state.orderPayload.items,
couponId: state.orderPayload.couponId, couponId: state.orderPayload.couponId,
addressId: state.addressInfo.id, addressId: state.deliType === 1 ? state.addressInfo.id: null,
deliveryType: 1, // TODO pickUpStoreId:state.deliType === 2 ? state.pickUpInfo.id : null,
deliveryType: state.deliType, // TODO
pointStatus: false, // TODO pointStatus: false, // TODO
combinationActivityId: state.orderPayload.combinationActivityId, combinationActivityId: state.orderPayload.combinationActivityId,
combinationHeadId: state.orderPayload.combinationHeadId, combinationHeadId: state.orderPayload.combinationHeadId,
@ -253,7 +287,7 @@
return; return;
} }
state.orderInfo = data; state.orderInfo = data;
// //
if (state.orderInfo.address) { if (state.orderInfo.address) {
state.addressInfo = state.orderInfo.address; state.addressInfo = state.orderInfo.address;
} }
@ -284,6 +318,14 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.pickUpInfo{
display:flex;
background-color: white;
align-items: center ;
justify-content: space-between;
margin-bottom: 2vw;
padding: 2vw;
}
:deep() { :deep() {
.uni-input-wrapper { .uni-input-wrapper {
width: 320rpx; width: 320rpx;

@ -49,9 +49,25 @@
formatOrderStatusDescription(state.orderInfo) formatOrderStatusDescription(state.orderInfo)
}}</view> }}</view>
</view> </view>
<view class="order-address-box" v-if="state.orderInfo.deliveryType === 2">
<view class="ss-flex ss-col-center">
<text class="address-username">
自提核销码
</text>
<text class="address-phone">{{ state.orderInfo.pickUpVerifyCode }}</text>
</view>
<view class="ss-flex ss-col-center">
<text class="address-username">
{{ state.pinkUpInfo.name }}
</text>
<text class="address-phone">{{ state.pinkUpInfo.phone }}</text>
</view>
<view class="address-detail">
{{ state.pinkUpInfo.areaName }} {{ state.pinkUpInfo.detailAddress }}
</view>
</view>
<!-- 收货地址 --> <!-- 收货地址 -->
<view class="order-address-box" v-if="state.orderInfo.receiverAreaId > 0"> <view class="order-address-box" v-else>
<view class="ss-flex ss-col-center"> <view class="ss-flex ss-col-center">
<text class="address-username"> <text class="address-username">
{{ state.orderInfo.receiverName }} {{ state.orderInfo.receiverName }}
@ -268,8 +284,8 @@
orderInfo: {}, orderInfo: {},
merchantTradeNo: '', // merchantTradeNo: '', //
comeinType: '', // comeinType: '', //
pinkUpInfo:{},//
}); });
// //
const onCopy = () => { const onCopy = () => {
sheep.$helper.copyText(state.orderInfo.sn); sheep.$helper.copyText(state.orderInfo.sn);
@ -378,6 +394,7 @@
async function getOrderDetail(id) { async function getOrderDetail(id) {
// //
let res; let res;
// let pinkUP;
if (state.comeinType === 'wechat') { if (state.comeinType === 'wechat') {
// TODO // TODO
res = await OrderApi.getOrder(id, { res = await OrderApi.getOrder(id, {
@ -388,6 +405,9 @@
} }
if (res.code === 0) { if (res.code === 0) {
state.orderInfo = res.data; state.orderInfo = res.data;
const {data} = await OrderApi.getPinkUp(1)
state.pinkUpInfo = data;
console.log(data,state.pinkUpInfo)
handleOrderButtons(state.orderInfo); handleOrderButtons(state.orderInfo);
} else { } else {
sheep.$router.back(); sheep.$router.back();

@ -0,0 +1,91 @@
<!-- 收件地址列表 -->
<template>
<s-layout title="收货地址" :bgStyle="{ color: '#FFF' }">
<view v-if="state.list.length">
<view class="list" v-for="item in state.list" :key="item.id" :item="item" @tap="onSelect(item)">
<view>
{{ item.detailAddress }}
</view>
<view>
{{ item.areaName }}
</view>
</view>
</view>
<s-empty v-if="state.list.length === 0 && !state.loading" text="暂无收货地址" icon="/static/data-empty.png" />
</s-layout>
</template>
<script setup>
import {
reactive,
onBeforeMount
} from 'vue';
import {
onShow
} from '@dcloudio/uni-app';
import sheep from '@/sheep';
import {
isEmpty
} from 'lodash';
import AreaApi from '@/sheep/api/system/area';
import AddressApi from '@/sheep/api/member/address';
const state = reactive({
list: [], //
loading: true,
});
//
const onSelect = (pickUpInfo) => {
uni.$emit('SELECT_ADDRESS1', {
pickUpInfo,
});
sheep.$router.back();
};
//
// TODO
onShow(async () => {
state.list = (await AddressApi.pickUpList()).data;
state.loading = false;
});
</script>
<style lang="scss" scoped>
.list {
margin: 2vw;
background-color: #fff;
border-radius: 3vw;
view {
padding: 1vw;
font-size: 1.3rem;
}
}
.footer-box {
.add-btn {
flex: 1;
background: linear-gradient(90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient));
border-radius: 80rpx;
font-size: 30rpx;
font-weight: 500;
line-height: 80rpx;
color: $white;
position: relative;
z-index: 1;
}
.sync-wxaddress {
flex: 1;
line-height: 80rpx;
background: $white;
border-radius: 80rpx;
font-size: 30rpx;
font-weight: 500;
color: $dark-6;
margin-right: 18rpx;
}
}
</style>

@ -8,6 +8,20 @@ const AddressApi = {
method: 'GET' method: 'GET'
}); });
}, },
//获取门店信息
pickUpList: () => {
return request({
url: '/trade/delivery/pick-up-store/list',
method: 'GET'
});
},
pickUpInfo: (id) => {
return request({
url: `/trade/delivery/pick-up-store/get`,
method: 'GET',
params: { id }
});
},
// 创建用户收件地址 // 创建用户收件地址
createAddress: (data) => { createAddress: (data) => {
return request({ return request({

@ -51,6 +51,16 @@ const OrderApi = {
data, data,
}); });
}, },
//获取门店信息
getPinkUp: (id) => {
return request({
url: `/trade/delivery/pick-up-store/get`,
method: 'GET',
params: {
id,
},
});
},
// 获得订单 // 获得订单
getOrder: (id) => { getOrder: (id) => {
return request({ return request({

Loading…
Cancel
Save