Browse Source

书券修改,首页书仓替换投资导引图

master
shaojing 2 years ago
parent
commit
bb30f9b474
  1. 2
      app.js
  2. 19
      pages/index/index.wxml
  3. 2
      pages/index/index.wxss
  4. 7
      pages/order/pay/index.js
  5. 3
      pages/order/scene/index.js

2
app.js

@ -21,7 +21,7 @@ App({
unique_key: "wechatxcx" unique_key: "wechatxcx"
}).then(res => { }).then(res => {
let data = JSON.parse(res.data); let data = JSON.parse(res.data);
data.isTest = data.isTest123? true : false; data.isTest = data.isTest124? true : false;
this.globalData.configJson = data this.globalData.configJson = data
}).then(() => { }).then(() => {
// 获取ui配置文件 // 获取ui配置文件

19
pages/index/index.wxml

@ -295,14 +295,11 @@
<image src="https://static.ticket.sz-trip.com/uploads/20240606/5b0b1be9942bfae84ddbd218421e098f.png" mode="widthFix"></image> <image src="https://static.ticket.sz-trip.com/uploads/20240606/5b0b1be9942bfae84ddbd218421e098f.png" mode="widthFix"></image>
<view class="text">文旅单位</view> <view class="text">文旅单位</view>
</view> </view>
<view bindtap="gotoPath" data-event="book_click" data-title="书仓" data-path="/pages/pbService/library/index" <!-- <view bindtap="gotoPath" data-event="book_click" data-title="书仓" data-path="/pages/pbService/library/index"
class="pbservice-item"> class="pbservice-item">
<!-- <image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb5.png" mode="widthFix"></image>
<view>书香借阅</view> -->
<!-- 元旦修改 -->
<image src="https://static.ticket.sz-trip.com/uploads/20240606/92ddf619960de959f760d5690ed5007a.png" mode="widthFix"></image> <image src="https://static.ticket.sz-trip.com/uploads/20240606/92ddf619960de959f760d5690ed5007a.png" mode="widthFix"></image>
<view class="text">书仓</view> <view class="text">书仓</view>
</view> </view> -->
<view bindtap="gotoPath" style="margin-left: 20rpx;" data-event="book_click" data-title="苏影通" data-path="/pages/list/movieticket/index" <view bindtap="gotoPath" style="margin-left: 20rpx;" data-event="book_click" data-title="苏影通" data-path="/pages/list/movieticket/index"
class="pbservice-item"> class="pbservice-item">
<!-- <image src="https://static.ticket.sz-trip.com/jundaosuzhou/images/syt.png" mode="widthFix"></image> <!-- <image src="https://static.ticket.sz-trip.com/jundaosuzhou/images/syt.png" mode="widthFix"></image>
@ -342,14 +339,16 @@
<image src="https://static.ticket.sz-trip.com/uploads/20220810/ceb07b75aa3df20d7f1de22e2588332a.png" mode="widthFix"></image> <image src="https://static.ticket.sz-trip.com/uploads/20220810/ceb07b75aa3df20d7f1de22e2588332a.png" mode="widthFix"></image>
<view>云上文博会</view> <view>云上文博会</view>
</view> --> </view> -->
<view bindtap="gotoUrl" data-event="investment_click" data-title="投资导引图" data-url="https://hot-map.sz-trip.com/" <view bindtap="gotoPath" data-event="book_click" data-title="书仓" data-path="/pages/pbService/library/index"
class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/uploads/20240606/92ddf619960de959f760d5690ed5007a.png" mode="widthFix"></image>
<view class="text">书仓</view>
</view>
<!-- <view bindtap="gotoUrl" data-event="investment_click" data-title="投资导引图" data-url="https://hot-map.sz-trip.com/"
class="pbservice-item"> class="pbservice-item">
<!-- <image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb1.png" mode="widthFix"></image>
<view>投资导引图</view> -->
<!-- 元旦修改 -->
<image src="https://static.ticket.sz-trip.com/uploads/20240606/c66d07e172fe3dd66afc0c69340a7b7d.png" mode="widthFix"></image> <image src="https://static.ticket.sz-trip.com/uploads/20240606/c66d07e172fe3dd66afc0c69340a7b7d.png" mode="widthFix"></image>
<view class="text">投资导引图</view> <view class="text">投资导引图</view>
</view> </view> -->
<!-- <view bindtap="gotoUrl" data-title="数字文物" <!-- <view bindtap="gotoUrl" data-title="数字文物"
data-url="https://foxnut-gffcu6t2.pai.tcloudbase.com/suzhouguobao/index.html#/" class="pbservice-item"> data-url="https://foxnut-gffcu6t2.pai.tcloudbase.com/suzhouguobao/index.html#/" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb12.png" mode="widthFix"></image> <image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb12.png" mode="widthFix"></image>

2
pages/index/index.wxss

@ -358,7 +358,7 @@ page {
.pbservice { .pbservice {
/* width: calc(175rpx * 6); */ /* width: calc(175rpx * 6); */
/* 元旦修改 */ /* 元旦修改 */
width: calc(190rpx * 8); width: calc(190rpx * 7);
display: flex; display: flex;
margin-top: 20rpx; margin-top: 20rpx;
flex-wrap: wrap; flex-wrap: wrap;

7
pages/order/pay/index.js

@ -84,9 +84,10 @@ Page({
order_id:this.data.id order_id:this.data.id
}).then(res=>{ }).then(res=>{
// 书券产品 // 书券产品
if(res.data.order_product_list[0].product_id == 75012 || res.data.order_product_list[0].product_id == 75013 || res.data.order_product_list[0].product_id == 420265){ if(res.data.order_product_list[0].product_id == 75012 || res.data.order_product_list[0].product_id == 75013 || res.data.order_product_list[0].product_id == 420265|| res.data.order_product_list[0].product_id == 421929){
this.setData({ this.setData({
isBook:true isBook:true,
payIndex:1
}) })
} }
if(res.data.create_time && res.data.auto_close_time && res.data.state=='UNPAID'){ if(res.data.create_time && res.data.auto_close_time && res.data.state=='UNPAID'){
@ -227,7 +228,7 @@ Page({
}) })
setTimeout(()=>{ setTimeout(()=>{
wx.redirectTo({ wx.redirectTo({
url: '../payresult/index?tid='+this.data.id+'&ids='+_this.data.ids.join(',') url: '../payresult/index?tid='+this.data.id+'&ids='+this.data.ids.join(',')
}) })
},1000) },1000)
} }

3
pages/order/scene/index.js

@ -78,8 +78,9 @@ Page({
product: app.globalData.product, product: app.globalData.product,
singlePrice: this.data.gp_id ? app.globalData.product.sku.event_price : app.globalData.product.sku.price singlePrice: this.data.gp_id ? app.globalData.product.sku.event_price : app.globalData.product.sku.price
}) })
console.log(this.data.singlePrice);
this.showAllPrice()
this.getNewCoupon() this.getNewCoupon()
// this.showAllPrice()
// console.log('********',this.data.product); // console.log('********',this.data.product);
if (!this.data.kjId && !this.data.gp_id && this.data.product.isGroup != 1 && this.data.type!='museum') { if (!this.data.kjId && !this.data.gp_id && this.data.product.isGroup != 1 && this.data.type!='museum') {
this.couponCom = this.selectAllComponents("#coupon")[0]; this.couponCom = this.selectAllComponents("#coupon")[0];

Loading…
Cancel
Save