jiazhipeng 1 month ago
parent
commit
2b3f6c5a46
  1. 2
      pages/index/index.vue
  2. 2
      static/js/request.js
  3. 44
      subPackages/activity/suchao.vue
  4. 2
      subPackages/techan/selfPickUpPoint.vue

2
pages/index/index.vue

@ -138,7 +138,7 @@
},
//
onHide() {
// this.getLocation()
this.getLocation()
},
onReady() {
this.initRectInfo()

2
static/js/request.js

@ -51,9 +51,11 @@ Vue.prototype.Post = (params = {}, apiurl) => {
params.token = token;
}
return new Promise((resolve, reject) => {
if (!params.noShowLoading) {
uni.showLoading({
title: '加载中'
});
}
uni.request({
method: params.method || 'GET',
url: Vue.prototype.NEWAPIURL + apiurl,

44
subPackages/activity/suchao.vue

@ -5,10 +5,11 @@
<view class="main-container">
<image class="title-image" src="https://static.ticket.sz-trip.com/uploads/20250903/0962fc4e972a669f83e97a5a126b2f53.png"></image>
<view class="coupon-box">
<view class="flex-between" style="flex-wrap: wrap;margin-top: 26rpx;">
<view class="flex-between">
<image class="coupon-img" v-for="(item,i) in couponList" :key="i"
:src="item.img" @click="getCoupon(item)" mode="aspectFill"></image>
</view>
<view class="rule" @click="goRule(3)">活动规则</view>
</view>
@ -44,10 +45,8 @@
viewNum: 4,
headImg: '',
couponList: [
{id: null, img: "https://static.ticket.sz-trip.com/uploads/20250903/ecbb6d745d444fa838649e67b9901ac8.png"},
{id: null, img: "https://static.ticket.sz-trip.com/uploads/20250903/0d0e31d8cc6b3eef8fa83016b9dd93dd.png"},
{id: null, img: "https://static.ticket.sz-trip.com/uploads/20250903/7762e7eea2e005d8c16587f7065e6d3e.png"},
{id: null, img: "https://static.ticket.sz-trip.com/uploads/20250903/fcd19b70b45f80509b0363ef72902974.png"},
{id: null, img: "https://static.ticket.sz-trip.com/uploads/20250904/6bb90a456a4800a99df91b97197fbc76.png"},
{id: null, img: "https://static.ticket.sz-trip.com/uploads/20250904/a20709036f31e6979c9ae84c543a8538.png"},
],
isReceive: true,
@ -75,15 +74,27 @@
}
});
},
goRule (id) {
uni.navigateTo({
url:"/subPackages/activity/commonRule?id="+id
})
},
//
getGoods() {
// 5
this.Post({
tag_id: 101,
offset: 0,
limit: 999,
limit: 5,
},'/api/product/get_product_by_tag_subject').then(res => {
this.list = res.data.list
this.Post({
tag_id: 101,offset: 0,
limit: 999,noShowLoading: true,
},'/api/product/get_product_by_tag_subject').then(res => {
this.list = res.data.list
})
})
},
@ -150,12 +161,29 @@
display: block;
}
}
.rule{
width: 109rpx;
height: 41rpx;
background: #319F56;
border-radius: 7rpx 0rpx 0rpx 7rpx;
font-weight: 600;
font-size: 24rpx;
color: #FFFFFF;
position: absolute;
top: 20rpx;
right: 0;
display: flex;
align-items: center;
justify-content: center;
line-height: 41rpx;
}
.coupon-box{
height: 466rpx;
height: 293rpx;
background: #F4FFFE;
border-radius:0 0 25rpx 25rpx;
position: relative;
padding: 40rpx 26rpx 0;
padding: 80rpx 26rpx 0;
overflow: hidden;
margin-bottom: 44rpx;

2
subPackages/techan/selfPickUpPoint.vue

@ -51,7 +51,7 @@
this.getList()
},
onShow(options) {
this.getLocation()
},
methods: {

Loading…
Cancel
Save