pull/1/head
liudan 1 year ago
parent df55739493
commit b1be25ecbb
  1. 6
      pages.json
  2. 2
      pages/ConfirmOrder/ConfirmOrder.scss
  3. 31
      pages/ConfirmOrder/ConfirmOrder.vue
  4. 4
      pages/home/home.vue
  5. 10
      pages/qianggou/productList.vue
  6. 43
      pages/warehouse/pay.vue
  7. 2
      unpackage/dist/build/h5/index.html
  8. 1
      unpackage/dist/build/h5/static/js/index.577ed345.js
  9. 1
      unpackage/dist/build/h5/static/js/index.b16753bf.js
  10. 1
      unpackage/dist/build/h5/static/js/pages-ConfirmOrder-ConfirmOrder.1e51ad66.js
  11. 1
      unpackage/dist/build/h5/static/js/pages-ConfirmOrder-ConfirmOrder.44de8227.js
  12. 1
      unpackage/dist/build/h5/static/js/pages-home-home.2c282a48.js
  13. 1
      unpackage/dist/build/h5/static/js/pages-home-home.7d3e7f0c.js
  14. 1
      unpackage/dist/build/h5/static/js/pages-home-home~pages-my-richText.2989ecf9.js
  15. 1
      unpackage/dist/build/h5/static/js/pages-my-richText.d0a82c3b.js
  16. 1
      unpackage/dist/build/h5/static/js/pages-my-richText.f5248732.js
  17. 1
      unpackage/dist/build/h5/static/js/pages-qianggou-productList.4e45bfc6.js
  18. 1
      unpackage/dist/build/h5/static/js/pages-qianggou-productList.bee56b41.js
  19. 1
      unpackage/dist/build/h5/static/js/pages-warehouse-pay.1ac2dd1c.js
  20. 1
      unpackage/dist/build/h5/static/js/pages-warehouse-pay.a25f14fc.js

@ -181,8 +181,7 @@
{ {
"path" : "pages/qianggou/productList", "path" : "pages/qianggou/productList",
"style" : { "style" : {
"navigationBarTitleText": "抢购", "navigationStyle": "custom",
"navigationBarBackgroundColor": "#FFFFFF",
"onReachBottomDistance":100 "onReachBottomDistance":100
} }
}, },
@ -226,8 +225,7 @@
{ {
"path" : "pages/ConfirmOrder/ConfirmOrder", "path" : "pages/ConfirmOrder/ConfirmOrder",
"style" : { "style" : {
"navigationBarTitleText": "确认订单", "navigationStyle": "custom"
"navigationBarBackgroundColor": "#FFFFFF"
} }
}, },
{ {

@ -8,7 +8,7 @@
background-color: #FFFFFF; background-color: #FFFFFF;
margin:0 24rpx; margin:0 24rpx;
overflow: hidden; overflow: hidden;
margin-top:24rpx; margin-top:110rpx;
border-radius: 8rpx; border-radius: 8rpx;
.address-list{ .address-list{
width: 100%; width: 100%;

@ -1,5 +1,6 @@
<template> <template>
<view class="page"> <view class="page">
<navbar :title="'确认订单'" :isCenter="true" :back="true" @onBack="backHandle"></navbar>
<view v-if="qgSuccess"> <view v-if="qgSuccess">
<!-- 地址 --> <!-- 地址 -->
<view class="address-data"> <view class="address-data">
@ -138,9 +139,9 @@
<script> <script>
import {getAddrList,createOrder} from '@/common/api.js' import {getAddrList,createOrder} from '@/common/api.js'
import navbar from '@/components/navbar.vue'
export default { export default {
components:{navbar},
data() { data() {
return { return {
scrollTop: 0, scrollTop: 0,
@ -172,11 +173,7 @@
close() { close() {
this.show = false this.show = false
}, },
backHandle(){
uni.navigateTo({
url:'/pages/qianggou/productList'
})
},
/** /**
* 提交订单 * 提交订单
*/ */
@ -196,17 +193,17 @@
console.log(res,"==") console.log(res,"==")
if(res.code==1){ if(res.code==1){
this.show = true; this.show = true;
setTimeout(()=>{
uni.redirectTo({
url: '/pages/qianggou/productList',
})
},1000)
}else{ }else{
this.qgSuccess = false; this.qgSuccess = false;
} }
}) })
}, },
backHandle(){
uni.redirectTo({
url: '/pages/qianggou/productList',
})
},
onSkip(type){ onSkip(type){
switch (type){ switch (type){
@ -216,12 +213,12 @@
}) })
break; break;
case 'cangku': case 'cangku':
// uni.navigateTo({
// url: '/pages/warehouse/buy?type=-1',
// })
uni.navigateTo({ uni.navigateTo({
url: '/pages/qianggou/productList', url: '/pages/warehouse/buy?type=-1',
}) })
// uni.navigateTo({
// url: '/pages/qianggou/productList',
// })
break; break;
} }
}, },

@ -4,7 +4,7 @@
<!-- 搜索 --> <!-- 搜索 -->
<view class="head-search"> <view class="head-search">
<navbar :title="'首页'" :isCenter="true" :back="true"></navbar> <navbar :title="'首页'" :isCenter="true" :back="false"></navbar>
<view class="icon-info" @click="onSkip('menu')"> <view class="icon-info" @click="onSkip('menu')">
<u-icon name="grid" size="26"></u-icon> <u-icon name="grid" size="26"></u-icon>
</view> </view>
@ -140,7 +140,7 @@ export default {
// #endif // #endif
}, },
onLoad() { onLoad() {
this.H5Login() // this.H5Login()
}, },
onPageScroll(e){ onPageScroll(e){
let scrollTop = e.scrollTop; let scrollTop = e.scrollTop;

@ -1,5 +1,6 @@
<template> <template>
<view class="page"> <view class="page">
<navbar :title="'抢购列表'" :isCenter="true" :back="true" @onBack="backHandle"></navbar>
<u-sticky bgColor="#fff"> <u-sticky bgColor="#fff">
<u-tabs <u-tabs
@click="getPage" @click="getPage"
@ -49,6 +50,7 @@
</template> </template>
<script> <script>
import navbar from '@/components/navbar.vue'
import {getGoodsList} from '@/common/api.js' import {getGoodsList} from '@/common/api.js'
export default { export default {
data(){ data(){
@ -61,6 +63,7 @@ export default {
warehouse_id:null, warehouse_id:null,
} }
}, },
components:{navbar},
methods:{ methods:{
refrenshHandle(){ refrenshHandle(){
@ -68,6 +71,11 @@ export default {
url: '/pages/qianggou/productList?page='+this.page // url: '/pages/qianggou/productList?page='+this.page //
}); });
}, },
backHandle(){
uni.switchTab({
url:"/pages/qianggou/qianggou"
})
},
getGoodsList(){ getGoodsList(){
this.pagesList=[] this.pagesList=[]
getGoodsList({page:this.page,limit:10,warehouse_id:this.warehouse_id}).then(res=>{ getGoodsList({page:this.page,limit:10,warehouse_id:this.warehouse_id}).then(res=>{
@ -145,7 +153,7 @@ export default {
.recommend-info{ .recommend-info{
width: 100%; width: 100%;
background-color: #f2f2f2; background-color: #f2f2f2;
margin-top:20rpx; margin-top:110rpx;
.goods-list{ .goods-list{
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;

@ -5,7 +5,10 @@
<view class="flag"></view> <view class="flag"></view>
<view class="text">{{num}}</view> <view class="text">{{num}}</view>
</view> </view>
<image src="../../static/image/copy.png" mode="widthFix"></image> <image src="../../static/image/copy.png" mode="widthFix"
v-clipboard:copy="num"
    v-clipboard:success="(type) => onCopyResult('success')"
    v-clipboard:error="(type) => onCopyResult('error')"></image>
</view> </view>
<view class="tabs"> <view class="tabs">
<view :class="activeIndex==item.id?'tabsItem active':'tabsItem'" @click="getPay(item)" v-for="item in list4" :key="item.id"> <view :class="activeIndex==item.id?'tabsItem active':'tabsItem'" @click="getPay(item)" v-for="item in list4" :key="item.id">
@ -21,7 +24,11 @@
</view> </view>
<view class="content"> <view class="content">
<text>{{yhk.bank_realname}}</text> <text>{{yhk.bank_realname}}</text>
<image
v-clipboard:copy="yhk.bank_realname"
    v-clipboard:success="(type) => onCopyResult('success')"
    v-clipboard:error="(type) => onCopyResult('error')"
src="../../static/image/copy.png" mode="widthFix"></image>
</view> </view>
</view> </view>
<view class="list-input"> <view class="list-input">
@ -30,19 +37,24 @@
</view> </view>
<view class="content"> <view class="content">
<text>{{yhk.bank_mobile}}</text> <text>{{yhk.bank_mobile}}</text>
<image
v-clipboard:copy="yhk.bank_mobile"
    v-clipboard:success="(type) => onCopyResult('success')"
    v-clipboard:error="(type) => onCopyResult('error')"
src="../../static/image/copy.png" mode="widthFix"></image>
</view> </view>
</view> </view>
<view class="list-input"> <view class="list-input">
<view class="title"> <view class="title">
<text>卡号</text> <text>卡号</text>
</view> </view>
<view class="content" <view class="content" >
v-clipboard:copy="yhk.bank_no" <text>{{yhk.bank_no}}</text>
    v-clipboard:success="(type) => onCopyResult('success')" <image
    v-clipboard:error="(type) => onCopyResult('error')"> v-clipboard:copy="yhk.bank_no"
<!-- <text></text> -->     v-clipboard:success="(type) => onCopyResult('success')"
{{yhk.bank_no}}     v-clipboard:error="(type) => onCopyResult('error')"
src="../../static/image/copy.png" mode="widthFix"></image>
</view> </view>
</view> </view>
<view class="list-input"> <view class="list-input">
@ -51,7 +63,11 @@
</view> </view>
<view class="content"> <view class="content">
<text>{{yhk.bank_address}}</text> <text>{{yhk.bank_address}}</text>
<image
v-clipboard:copy="yhk.bank_address"
    v-clipboard:success="(type) => onCopyResult('success')"
    v-clipboard:error="(type) => onCopyResult('error')"
src="../../static/image/copy.png" mode="widthFix"></image>
</view> </view>
</view> </view>
@ -251,6 +267,7 @@
padding: 0 4%; padding: 0 4%;
height: 100rpx; height: 100rpx;
border-bottom: 2rpx solid #f6f6f6; border-bottom: 2rpx solid #f6f6f6;
.title{ .title{
display: flex; display: flex;
align-items: center; align-items: center;
@ -261,11 +278,17 @@
font-size: 26rpx; font-size: 26rpx;
} }
} }
image{
margin-left:10rpx;
width:30rpx;
height:auto;
}
.content{ .content{
display: flex; display: flex;
align-items: center; align-items: center;
width: 70%; width: 70%;
height: 100%; height: 100%;
justify-content: space-between;
input{ input{
width: 100%; width: 100%;
height: 100%; height: 100%;

@ -1,2 +1,2 @@
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>商城</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)')) <!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>商城</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.97465e7b.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.1a42ebe2.js></script><script src=/static/js/index.b16753bf.js></script></body></html> document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.97465e7b.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.1a42ebe2.js></script><script src=/static/js/index.577ed345.js></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save