diff --git a/components/Authorize.vue b/components/Authorize.vue index b69365f..cfb0ef7 100644 --- a/components/Authorize.vue +++ b/components/Authorize.vue @@ -1,351 +1,365 @@ \ No newline at end of file diff --git a/pages/nongKe/cloud_entrepot/index.vue b/pages/nongKe/cloud_entrepot/index.vue index b7cdbb1..bf60242 100644 --- a/pages/nongKe/cloud_entrepot/index.vue +++ b/pages/nongKe/cloud_entrepot/index.vue @@ -256,6 +256,71 @@ + + + + + + + + + + + + + + fsdfsdfsdfffffffff + + + + 79.00 + + + 库存:999 + + + + + + + + + 尺码 + + + 大号 + + + + + 数量 + + + + + + + + 加入购物车 + + + + + + + + + + + + + + + + + + @@ -285,17 +350,26 @@ import { postCartAdd, } from '@/api/store.js'; + import authorize from '@/components/Authorize'; + import { + mapGetters + } from "vuex"; export default { + components: { + authorize, + }, data() { let src = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/13'; return { + skuNumber: 0, + showcartpop: false, trnList: [], act_cart: false, appInfo: {}, pocls: "", type: "", act_swiper: "", - current: 1, + current: 3, goodsNum: 0, goodsList: [], isEmpty: false, @@ -316,6 +390,7 @@ page_num: 1, act_img: "", cartTagInfo: {}, + isAuto: false, actList: [{ tit: '综合', act: "", @@ -332,9 +407,14 @@ }], status: "loadmore", flag: false, + isShowAuth: false, //是否隐藏授权 } }, + computed: { + ...mapGetters(['isLogin', 'viewColor', 'uid']), + }, + // ...mapGetters(['isLogin', 'viewColor', 'uid']), onLoad(e) { // this.cartFn() this.appInfo = this.$appInfo.safeAreaInsets @@ -434,6 +514,23 @@ // }, methods: { + valChange(e) { + this.valChange = e + }, + closecartpop() { + this.showcartpop = false + }, + opencartpop() { + this.showcartpop = true + }, + // 授权关闭 + authColse: function(e) { + this.isShowAuth = e; + }, + + onLoadFun() { + this.isShowAuth = false; + }, clickSwiperFn(i) { // console.log(i) this.current = i @@ -528,6 +625,14 @@ }, addcart(item, i) { + // this.showcartpop = true + // return + // console.log(this.isLogin) + if (!this.isLogin) { + this.isAuto = true; + this.isShowAuth = true + return + } let data = { cart_num: 1, @@ -635,6 +740,39 @@ } } + .sku { + padding: 20rpx; + + .sku_head { + display: flex; + + .sku_head_r { + margin-left: 20rpx; + display: flex; + justify-content: space-between; + flex-direction: column; + } + + // justify-content; + } + + .sku_num { + display: flex; + justify-content: space-between; + } + + .skuaddcart { + width: 50vw; + background-color: #FEAB00; + margin: 0 auto; + height: 80rpx; + line-height: 80rpx; + text-align: center; + color: white; + border-radius: 80rpx; + } + } + .flags { background-color: red; z-index: 99999999; @@ -958,7 +1096,7 @@ .card { width: 720rpx; - z-index: 999999; + z-index: 99; // margin:auto; left: 50%; transform: translateX(-50%); diff --git a/pages/trading_hall/transfer_goods/index.vue b/pages/trading_hall/transfer_goods/index.vue index fec3e7c..793fc2b 100644 --- a/pages/trading_hall/transfer_goods/index.vue +++ b/pages/trading_hall/transfer_goods/index.vue @@ -319,6 +319,8 @@ }, onLoad(options) { // uni.hideTabBar() + // console.log(this.isLogin, "sdfsdkfhjsdhgfsdf") + // return this.id = options.id; this.type = options.gtype @@ -617,7 +619,7 @@ this.formData.product_info = [] } this.productList = [] - this.price = 0; + this.price = 0; if (data.length > 0) { this.productList = data; for (let i in data) {