ソースを参照

upload

product
HolyKnightIX 2年前
コミット
3bb3912f72
10個のファイルの変更58行の追加36行の削除
  1. +2
    -2
      app.json
  2. +2
    -1
      components/banner/index.js
  3. +0
    -8
      ext.json
  4. +11
    -1
      pages/bannerdetail/bannerdetail.js
  5. +28
    -23
      pages/bannerdetail/bannerdetail.ttml
  6. +9
    -0
      pages/freeBannerDetail/freeBannerDetail.js
  7. +3
    -0
      pages/freeBannerDetail/freeBannerDetail.json
  8. +1
    -0
      pages/freeBannerDetail/freeBannerDetail.ttml
  9. +1
    -0
      pages/freeBannerDetail/freeBannerDetail.ttss
  10. +1
    -1
      project.private.config.json

+ 2
- 2
app.json ファイルの表示

@@ -40,12 +40,12 @@
"pages/coupon/instructions/instructions", "pages/coupon/instructions/instructions",
"ext://microapp-trade-plugin/order-confirm", "ext://microapp-trade-plugin/order-confirm",
"ext://microapp-trade-plugin/refund-apply", "ext://microapp-trade-plugin/refund-apply",
"ext://microapp-trade-plugin/refund-detail"
"ext://microapp-trade-plugin/refund-detail",
"pages/freeBannerDetail/freeBannerDetail"
], ],
"window": { "window": {
"backgroundTextStyle": "light", "backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff", "navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
} }

} }

+ 2
- 1
components/banner/index.js ファイルの表示

@@ -44,6 +44,7 @@ Component({
url: `/${e.currentTarget.dataset.data.pagePath}`, url: `/${e.currentTarget.dataset.data.pagePath}`,
}) })
} else if (type == "wj") { } else if (type == "wj") {

tt.navigateTo({ tt.navigateTo({
url: `/pages/questionnaire/questionnaire?id=` + id.split("=")[2], url: `/pages/questionnaire/questionnaire?id=` + id.split("=")[2],
}) })
@@ -56,7 +57,7 @@ Component({
console.log('freeBannerDetail'); console.log('freeBannerDetail');
// 自由图文 // 自由图文
tt.navigateTo({ tt.navigateTo({
url: `/pages/freeBannerDetail/index?id=${e.currentTarget.dataset.id}`
url: `/pages/freeBannerDetail/freeBannerDetail?id=${e.currentTarget.dataset.id}`
}); });
} else if (e.currentTarget.dataset.data.type == 4) { } else if (e.currentTarget.dataset.data.type == 4) {
tt.navigateToMiniProgram({ tt.navigateToMiniProgram({


+ 0
- 8
ext.json ファイルの表示

@@ -11,14 +11,6 @@
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#fff" "navigationBarBackgroundColor": "#fff"
}, },
"ttPlugins": {
"dependencies": {
"microapp-trade-plugin": {
"version": "1.1.2",
"isDynamic": true
}
}
},
"extAppid": "tt620e14b3fd30264101", "extAppid": "tt620e14b3fd30264101",
"extEnable": true, "extEnable": true,
"directCommit": false, "directCommit": false,


+ 11
- 1
pages/bannerdetail/bannerdetail.js ファイルの表示

@@ -15,12 +15,22 @@ Page({
hour: "", hour: "",
wmhome: imgurl.wmhome.url, wmhome: imgurl.wmhome.url,
minute: "", minute: "",
nodes: ''
nodes: '',
mallTenantId: ""
}, },
onLoad(options) { onLoad(options) {
this.setData({ this.setData({
mouldType: app.globalData.mouldType, mouldType: app.globalData.mouldType,
}) })

const mallTenantId = tt.getStorageSync('mallTenantId');

if (mallTenantId) {
this.setData({
mallTenantId: mallTenantId
})
}

let that = this; let that = this;
if (options.id) { if (options.id) {
Http.get({ Http.get({


+ 28
- 23
pages/bannerdetail/bannerdetail.ttml ファイルの表示

@@ -2,31 +2,32 @@
<!-- <navbar back home text="详情" background="#fff"></navbar> --> <!-- <navbar back home text="详情" background="#fff"></navbar> -->
<!-- <view style="height:{{navigationBarHeight}} "></view> --> <!-- <view style="height:{{navigationBarHeight}} "></view> -->
<!-- banner活动详情页面 --> <!-- banner活动详情页面 -->
<view class='coupons' >
<view class='coupons'>
<view class="coupons-body"> <view class="coupons-body">
<view class='banner'> <view class='banner'>
<image src='{{data.coverImg}}' mode="widthFix"></image> <image src='{{data.coverImg}}' mode="widthFix"></image>
</view> </view>
</view> </view>
<view class='act'> <view class='act'>
<text class='txt001'>{{data.title}}</text>
<text class='txt002'>{{data.subTitle}}</text>
<view class="proct">
<text>活动说明</text>
<text>{{data.detail}}</text>
</view>
<text class='txt001'>{{data.title}}</text>
<text class='txt002'>{{data.subTitle}}</text>
<view class="proct">
<text>活动说明</text>
<text>{{data.detail}}</text>
</view> </view>
<view class='notes' style='display:none;'>
<view>
<text>活动详情</text>
</view>
<view>
<text><text class='spot'></text>{{data.detail}}</text>
</view>
</view>
<view class='notes' style='display:none;'>
<view>
<text>活动详情</text>
</view>
<view>
<text><text class='spot'></text>{{data.detail}}</text>
</view> </view>
</view>
<view class='contain clearfix'> <view class='contain clearfix'>
<!-- 优惠券 --> <!-- 优惠券 -->
<navigator tt:for="{{data.coupons}}" tt:key="{{index}}" url="/pages/coupon/detail/index?couponChannelId={{item.id}}">
<navigator tt:for="{{data.coupons}}" tt:key="{{index}}"
url="/pages/coupon/detail/index?couponChannelId={{item.id}}&mallTenantId={{mallTenantId}}">
<!-- 首页优惠券列表页面 --> <!-- 首页优惠券列表页面 -->
<view class="coupons1" style="{{mouldType==1?'height: 540rpx;':''}}"> <view class="coupons1" style="{{mouldType==1?'height: 540rpx;':''}}">
<view class="coupons1-img" style="{{mouldType==1?'height: 344rpx;':''}}"> <view class="coupons1-img" style="{{mouldType==1?'height: 344rpx;':''}}">
@@ -40,7 +41,8 @@
<view class="coupons-info-manjian" style="margin-top:10rpx;font-size:28rpx;" tt:if="{{item.type == 1}}"> <view class="coupons-info-manjian" style="margin-top:10rpx;font-size:28rpx;" tt:if="{{item.type == 1}}">
满¥{{item.usePriceStr}}可用 满¥{{item.usePriceStr}}可用
</view> </view>
<view class="coupons-info-manjian" style="font-size:28rpx;" tt:if="{{item.type == 2||item.type == 3||item.type==4||item.type==5||item.type==6||item.type==7}}">
<view class="coupons-info-manjian" style="font-size:28rpx;"
tt:if="{{item.type == 2||item.type == 3||item.type==4||item.type==5||item.type==6||item.type==7}}">
仅限本店使用 仅限本店使用
</view> </view>
</view> </view>
@@ -54,19 +56,22 @@
<view class="coupons-info-manjian" style="margin-top:10rpx;font-size:28rpx;" tt:if="{{item.type == 1}}"> <view class="coupons-info-manjian" style="margin-top:10rpx;font-size:28rpx;" tt:if="{{item.type == 1}}">
满¥{{item.usePriceStr}}可用 满¥{{item.usePriceStr}}可用
</view> </view>
<view class="coupons-info-manjian" style="font-size:28rpx;" tt:if="{{item.type == 2||item.type == 3||item.type==4||item.type==5||item.type==6||item.type==7}}">
<view class="coupons-info-manjian" style="font-size:28rpx;"
tt:if="{{item.type == 2||item.type == 3||item.type==4||item.type==5||item.type==6||item.type==7}}">
仅限本店使用 仅限本店使用
</view> </view>
</view> </view>
</view> </view>
<!-- <view class="coupons1-info-name subtitle sy">剩余{{item.remainInventory}}</view> -->
<!-- <view class="coupons1-info-name subtitle sy">剩余{{item.remainInventory}}</view> -->
<view class="coupons1-btn"> <view class="coupons1-btn">
<!-- 优惠券价格 --> <!-- 优惠券价格 -->
<i-button class="{{mouldType!=1?'buy':'buyX'}}" hover-class='active' tt:if="{{item.salePriceStr==0}}" data-date='{{data}}'>免费领</i-button>
<i-button class="{{mouldType!=1?'buy':'buyX'}}" hover-class='active' tt:elif="{{item.salePriceStr!=0}}" data-date='{{data}}'>马上购</i-button>
<i-button class="{{mouldType!=1?'buy':'buyX'}}" hover-class='active' tt:if="{{item.salePriceStr==0}}"
data-date='{{data}}'>免费领</i-button>
<i-button class="{{mouldType!=1?'buy':'buyX'}}" hover-class='active' tt:elif="{{item.salePriceStr!=0}}"
data-date='{{data}}'>马上购</i-button>


</view> </view>
<!-- <view class="coupons1-border"></view> --> <!-- <view class="coupons1-border"></view> -->
</view> </view>


+ 9
- 0
pages/freeBannerDetail/freeBannerDetail.js ファイルの表示

@@ -0,0 +1,9 @@
// c:\Users\Holy-Knight-IX\Desktop\Working Space\4.TikTok-MiniPro\ttc\pages\freeBannerDetail\freeBannerDetail.js
Page({
data: {

},
onLoad: function (options) {

}
})

+ 3
- 0
pages/freeBannerDetail/freeBannerDetail.json ファイルの表示

@@ -0,0 +1,3 @@
{
"usingComponents": {}
}

+ 1
- 0
pages/freeBannerDetail/freeBannerDetail.ttml ファイルの表示

@@ -0,0 +1 @@
<!-- \pages\freeBannerDetail\freeBannerDetail.ttml -->

+ 1
- 0
pages/freeBannerDetail/freeBannerDetail.ttss ファイルの表示

@@ -0,0 +1 @@
/* c:\Users\Holy-Knight-IX\Desktop\Working Space\4.TikTok-MiniPro\ttc\pages\freeBannerDetail\freeBannerDetail.ttss */

+ 1
- 1
project.private.config.json ファイルの表示

@@ -52,7 +52,7 @@
"id": 1685600905887, "id": 1685600905887,
"name": "pages/coupon/detail/index", "name": "pages/coupon/detail/index",
"pathName": "pages/coupon/detail/index", "pathName": "pages/coupon/detail/index",
"query": "couponChannelId=823002244776124416&couponId=822994443689451520&mallTenantId=1032",
"query": "couponChannelId=823002244776124416&couponId=822994443689451520",
"scene": "011007", "scene": "011007",
"launchFrom": "scan", "launchFrom": "scan",
"location": "audit" "location": "audit"


読み込み中…
キャンセル
保存