diff --git a/compoents/addressAdd.vue b/compoents/addressAdd.vue new file mode 100644 index 0000000..dd80ecb --- /dev/null +++ b/compoents/addressAdd.vue @@ -0,0 +1,383 @@ + + + + + 姓名 + + + + 手机号 + + + + 选择地区 + + + + + + + + 详细地址 + + + + 设为默认 + + + + + + + + + + + + diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..922878f --- /dev/null +++ b/package-lock.json @@ -0,0 +1,11 @@ +{ + "requires": true, + "lockfileVersion": 1, + "dependencies": { + "ydui-district": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/ydui-district/-/ydui-district-1.1.0.tgz", + "integrity": "sha512-MBhvfaR5Gkn6MUmEnrH1A7IFB5igALuDgtIF+gz3dRwNwW9+KOmih7z+xZFfGluMsEbWaT7C3lWOckYsLZQnFg==" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..e314e1f --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "ydui-district": "^1.1.0" + } +} diff --git a/pages.json b/pages.json index 02700cc..48bd372 100644 --- a/pages.json +++ b/pages.json @@ -55,6 +55,24 @@ "navigationStyle": "custom" } }, + { + "path": "techan/detail", + "style": { + "navigationBarTitleText": "文创特产详情" + } + }, + { + "path": "techan/order", + "style": { + "navigationBarTitleText": "订单填写" + } + }, + { + "path": "techan/selfPickUpPoint", + "style": { + "navigationBarTitleText": "选择自提点" + } + }, { "path": "line/lineList", "style": { diff --git a/static/css/base.css b/static/css/base.css index e609f7a..39ffd6f 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -138,4 +138,7 @@ view { } .flex-items-center{ align-items: center; +} +.no-scrollbar::-webkit-scrollbar{ + display: none; } \ No newline at end of file diff --git a/subPackages/techan/detail.vue b/subPackages/techan/detail.vue new file mode 100644 index 0000000..17e504b --- /dev/null +++ b/subPackages/techan/detail.vue @@ -0,0 +1,753 @@ + + + + + + + + + + + + + + + + + + {{ info.money / 100 }} + + + {{ info.title }} + + + {{ item }} + + + + + + + 选择: + + + {{sku[productIndex].title}} + + + + + + 产品简介 + + + + + + + + + + + 收藏 + + + + + + + 客服 + + + + + + + 立即购买 + + + + + + + + + + + + + {{showPrice(sku[productIndex].money)}} + 已选择:{{sku[productIndex].title}} + + + + + 规格 + + + + + {{botItem.title}} + + + 不可购买 + + + + + + + 数量 + + + - + + {{ buyNum }} + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/subPackages/techan/order.vue b/subPackages/techan/order.vue new file mode 100644 index 0000000..23c0d04 --- /dev/null +++ b/subPackages/techan/order.vue @@ -0,0 +1,1274 @@ + + + + + + 邮寄配送 + + 到店自提 + + + + + + 收货地址 + + + + + + + + + + {{ contacts.name }} + {{ contacts.tel }} + + {{ contacts.province_text + contacts.city_text + contacts.district_text + contacts.detail_addr }} + + + + + + + + + + + + + + 自提点 + + {{pickupAddress.extract_name||'选择提货地址'}} + + + + + + + + + 提货人信息 + + + + + + 姓名 + + + + 手机号 + + + + + + + + + + + + + + + + {{ detail.title }} + + {{info.money/100}} + + + + {{ info.title }} + + x{{info.buyNum}} + + + + + + + 购买数量 + + + + - + + + + + + + + + 运费 + + + {{post===0?'免邮':post/100}} + + + + + 优惠券 + + 请选择 + + + -¥{{coupon.discounts/100}} + -{{coupon.percent}}% + > + + + + + 订单备注: + + + + + + + + + 合计: + {{ total() }} + 含邮费:¥{{ post / 100 }} + + 立即购买 + + + + + + + + 添加收货地址 + + + + + + {{ item.name }} + {{ item.tel }} + 默认 + + {{ item.address }} + + + + + + + + + + + + + + + 取消 + 添加收货地址 + 保存 + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/subPackages/techan/selfPickUpPoint.vue b/subPackages/techan/selfPickUpPoint.vue new file mode 100644 index 0000000..e3784ef --- /dev/null +++ b/subPackages/techan/selfPickUpPoint.vue @@ -0,0 +1,245 @@ + + + + + {{item.extract_name}} + + 地址: + {{item.detail_addr}} + + + + + + + 去这里 + + + + + + 暂无自提点地址 + + + + + 确定 + + + + + + + + + + diff --git a/subPackages/techan/techanList.vue b/subPackages/techan/techanList.vue index 46f2a29..1bb0560 100644 --- a/subPackages/techan/techanList.vue +++ b/subPackages/techan/techanList.vue @@ -48,7 +48,7 @@ }, goDetail(item) { uni.navigateTo({ - url: '/subPackages/feiyi/feiyiDetails?id=' + item.id + url: '/subPackages/techan/detail?id=' + item.id }) } }, diff --git a/subPackages/ticketBooking/detail.vue b/subPackages/ticketBooking/detail.vue index aa5caa9..85c9c86 100644 --- a/subPackages/ticketBooking/detail.vue +++ b/subPackages/ticketBooking/detail.vue @@ -120,10 +120,10 @@ 选择时段 {{ item.start_time }}-{{ item.end_time }} - {{item.store < 10 ? (item.store === -1 ? '不可定' : item.store === 0 ? '无票' : '(余票' + item.store + ')') : '有票'}} + {{item.stock_number < 10 ? (item.stock_number === -1 ? '不可定' : item.stock_number === 0 ? '无票' : '(余票' + item.stock_number + ')') : '有票'}} @@ -267,11 +267,12 @@ getTimeStock(date) { this.Post({ specifications_id: this.skuInfo.id, - date: date + date: date, + token:'2dd9b712-f118-41f6-b3a8-602e4fbb0ce3', }, '/api/goods/getTimeStock').then(res => { if (res.data.length > 0) { this.timesArr = res.data || [] - this.seldTimeIndex = this.stockList.findIndex(item => item.store != 0) + this.seldTimeIndex = this.timesArr.findIndex(item => item.stock_number > 0) } }) }, diff --git a/subPackages/ticketBooking/ticketBooking.vue b/subPackages/ticketBooking/ticketBooking.vue index 11bc7a4..5095551 100644 --- a/subPackages/ticketBooking/ticketBooking.vue +++ b/subPackages/ticketBooking/ticketBooking.vue @@ -46,7 +46,7 @@ } }, onShow() { - this.headImg = 'https://tongli.sz-trip.com/uploads/20240826/8653c32761e01ee683505eddba1ae22b.png' + this.headImg = 'https://tongli.sz-trip.com/uploads/20240826/a87488f6225789aa19dbb437671d388d.png' this.finished = false this.getList() // this.getHeadImg('piaowu')