|
@@ -57,7 +57,12 @@
|
|
<text class="bigTitle title">商品列表</text>
|
|
<text class="bigTitle title">商品列表</text>
|
|
</view>
|
|
</view>
|
|
<view class="goodsList">
|
|
<view class="goodsList">
|
|
- <view v-for="item in list" :key="item.id" class="goodsItem">
|
|
|
|
|
|
+ <view
|
|
|
|
+ v-for="item in list"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ class="goodsItem"
|
|
|
|
+ @click="getGoodsList(item)"
|
|
|
|
+ >
|
|
<text class="money">{{ item.cashbackAmount }}元</text>
|
|
<text class="money">{{ item.cashbackAmount }}元</text>
|
|
<text class="content"
|
|
<text class="content"
|
|
>满{{ item.thresholdAmount }}返{{ item.cashbackAmount }}</text
|
|
>满{{ item.thresholdAmount }}返{{ item.cashbackAmount }}</text
|
|
@@ -88,6 +93,7 @@
|
|
v-model:show="showDesc"
|
|
v-model:show="showDesc"
|
|
:description="aData.description"
|
|
:description="aData.description"
|
|
></activity-desc-popup>
|
|
></activity-desc-popup>
|
|
|
|
+ <goods-popup v-model:show="showGoods" :list="goodsList"></goods-popup>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -102,6 +108,7 @@ import UploadReceptPopop from "./components/uploadReceptPopop.vue";
|
|
import WinRecordPopup from "./components/winRecordPopup.vue";
|
|
import WinRecordPopup from "./components/winRecordPopup.vue";
|
|
import UploadRecordPopup from "./components/uploadRecordPopup.vue";
|
|
import UploadRecordPopup from "./components/uploadRecordPopup.vue";
|
|
import ActivityDescPopup from "./components/activityDescPopup.vue";
|
|
import ActivityDescPopup from "./components/activityDescPopup.vue";
|
|
|
|
+import GoodsPopup from "./components/goodsPopup.vue";
|
|
import {
|
|
import {
|
|
getActivity,
|
|
getActivity,
|
|
rewardList,
|
|
rewardList,
|
|
@@ -114,6 +121,7 @@ let showUpload = ref<boolean>(false);
|
|
let showWiner = ref<boolean>(false);
|
|
let showWiner = ref<boolean>(false);
|
|
let showRecord = ref<boolean>(false);
|
|
let showRecord = ref<boolean>(false);
|
|
let showDesc = ref<boolean>(false);
|
|
let showDesc = ref<boolean>(false);
|
|
|
|
+let showGoods = ref<boolean>(false);
|
|
// const appid = uni.getStorageSync("appid");
|
|
// const appid = uni.getStorageSync("appid");
|
|
const backImage = ref<string>("");
|
|
const backImage = ref<string>("");
|
|
// const statusBarHeight = uni.getWindowInfo().statusBarHeight * 2;
|
|
// const statusBarHeight = uni.getWindowInfo().statusBarHeight * 2;
|
|
@@ -138,6 +146,12 @@ const winParams = reactive({
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+const goodsParams = reactive({
|
|
|
|
+ pageSize: 10,
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ currentPage: 1,
|
|
|
|
+});
|
|
|
|
+
|
|
const getList = () => {
|
|
const getList = () => {
|
|
const appid = uni.getAccountInfoSync().miniProgram.appId;
|
|
const appid = uni.getAccountInfoSync().miniProgram.appId;
|
|
getActivity(appid)
|
|
getActivity(appid)
|
|
@@ -164,6 +178,21 @@ const getList = () => {
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+const goodsList: any = ref([]);
|
|
|
|
+
|
|
|
|
+const getGoodsList = (data: any) => {
|
|
|
|
+ goodsList.value = data.products;
|
|
|
|
+ showGoods.value = true;
|
|
|
|
+ // rewardList({
|
|
|
|
+ // openid: uni.getStorageSync("openid"),
|
|
|
|
+ // marketingActivityId: aData.id,
|
|
|
|
+ // ...goodsParams,
|
|
|
|
+ // }).then((res: any) => {
|
|
|
|
+ // goodsParams.currentPage = Math.ceil(res.total / goodsParams.pageSize);
|
|
|
|
+ // goodsList.value = [...goodsList.value, ...res.rows];
|
|
|
|
+ // });
|
|
|
|
+};
|
|
|
|
+
|
|
const rewardData: any = ref([]);
|
|
const rewardData: any = ref([]);
|
|
//获取上传记录
|
|
//获取上传记录
|
|
const getRewardList = () => {
|
|
const getRewardList = () => {
|
|
@@ -338,12 +367,12 @@ onLoad(() => {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
- ::v-deep .uni-noticebar {
|
|
|
|
- width: 478rpx!important;
|
|
|
|
- background-color: transparent!important;
|
|
|
|
- padding: 0!important;
|
|
|
|
- margin-bottom: 0!important;
|
|
|
|
- }
|
|
|
|
|
|
+::v-deep .uni-noticebar {
|
|
|
|
+ width: 478rpx !important;
|
|
|
|
+ background-color: transparent !important;
|
|
|
|
+ padding: 0 !important;
|
|
|
|
+ margin-bottom: 0 !important;
|
|
|
|
+}
|
|
.winnerContent {
|
|
.winnerContent {
|
|
width: 100%;
|
|
width: 100%;
|
|
min-height: 2524rpx;
|
|
min-height: 2524rpx;
|