jiazhipeng 1 year ago
parent
commit
075616121a
  1. 14
      pages/info/showInfo/index.js
  2. 2
      pages/info/showInfo/index.wxml
  3. 6
      pages/info/showInfo/index.wxss
  4. 6
      pages/list/theatre/index.js
  5. 2
      pages/list/theatre/index.wxml
  6. 5
      pages/order/show/index.js
  7. 4
      utils/https.js

14
pages/info/showInfo/index.js

@ -292,13 +292,13 @@ Page({
}) })
}, },
showOrder: function () { showOrder: function () {
// if(this.data.info.sku.length==0){ if(this.data.info.sku.length<=0){
// wx.showToast({ wx.showToast({
// title: '该演出暂时无法预约', title: '暂无绑定演出具体信息',
// icon:'none' icon:'none'
// }) })
// return; return;
// } }
// app.globalData.couponInfo = null; // app.globalData.couponInfo = null;
// app.globalData.productShow = this.data.info; // app.globalData.productShow = this.data.info;
// app.globalData.retailId = this.data.retailId; // app.globalData.retailId = this.data.retailId;

2
pages/info/showInfo/index.wxml

@ -107,7 +107,7 @@
<view style="height:140rpx"></view> <view style="height:140rpx"></view>
<view class="fixed-bottom"> <view class="fixed-bottom">
<view class="['left-img',{{!iShop?'no-shop':''}}]"> <view class="['left-img',{{!iShop?'no-shop':''}}]">
<navigator url="/pages/index/index" class="shop-box"> <navigator url="/pages/index/index" open-type="switchTab" class="shop-box">
<view class="shop-box"> <view class="shop-box">
<image class="icon-shop" src="https://static.ticket.sz-trip.com/uploads/20241119/868addcaedbc5d63ebdfa150fcace34d.png" mode="aspectFill"/> <image class="icon-shop" src="https://static.ticket.sz-trip.com/uploads/20241119/868addcaedbc5d63ebdfa150fcace34d.png" mode="aspectFill"/>
<view>首页</view> <view>首页</view>

6
pages/info/showInfo/index.wxss

@ -754,12 +754,16 @@ margin-right: 29rpx;
} }
.pro-list{ .pro-list{
display: flex; display: flex;
justify-content: space-between; /* justify-content: space-between; */
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
} }
.proitem{ .proitem{
width: 213rpx; width: 213rpx;
margin-right: 15rpx;
}
.proitem:last-of-type{
margin-right: 0;
} }
.item-hd image{ .item-hd image{
width: 213rpx; width: 213rpx;

6
pages/list/theatre/index.js

@ -9,9 +9,9 @@ Page({
*/ */
data: { data: {
list:[], list:[],
tagList: [], // 父标签278 tagList: [], // 父标签477
total:1, total:1,
type:278, type:477,
sort:["","weight","distance","weight","price"], sort:["","weight","distance","weight","price"],
order:['','desc',"asc","desc","asc"], order:['','desc',"asc","desc","asc"],
lat:"", lat:"",
@ -107,7 +107,7 @@ Page({
// 获取子标签 // 获取子标签
getTags () { getTags () {
commonApi._post("product/tag_list",{ commonApi._post("product/tag_list",{
pid:"278", pid:"477",
}).then(res=>{ }).then(res=>{
let resData = res.data || [] let resData = res.data || []
this.setData({ this.setData({

2
pages/list/theatre/index.wxml

@ -5,7 +5,7 @@
<image class="heaimg" src="https://static.ticket.sz-trip.com/uploads/20241118/5540525af7880d15a3899f56f9000237.png" mode="widthFix"></image> <image class="heaimg" src="https://static.ticket.sz-trip.com/uploads/20241118/5540525af7880d15a3899f56f9000237.png" mode="widthFix"></image>
<view class="sale-types no-scrollbar"> <view class="sale-types no-scrollbar">
<view class="sale-type{{type==278?' active':''}}" bindtap="changeType" data-type="278">全部</view> <view class="sale-type{{type==477?' active':''}}" bindtap="changeType" data-type="477">全部</view>
<view wx:for="{{tagList}}" wx:key="id" class="sale-type{{type==item.id?' active':''}}" <view wx:for="{{tagList}}" wx:key="id" class="sale-type{{type==item.id?' active':''}}"
bindtap="changeType" data-type="{{item.id}}">{{item.name}}</view> bindtap="changeType" data-type="{{item.id}}">{{item.name}}</view>

5
pages/order/show/index.js

@ -255,9 +255,10 @@ Page({
// app.globalData.retailId = this.data.retailId; // app.globalData.retailId = this.data.retailId;
app.globalData.product = { app.globalData.product = {
product: product, product: {...product, price: skuSelect.price},
sku: sku sku: sku
} }
date.price = skuSelect.price date.price = skuSelect.price
app.globalData.product.date = date app.globalData.product.date = date
app.globalData.product.time = time app.globalData.product.time = time

4
utils/https.js

@ -1,8 +1,8 @@
var app = getApp(); var app = getApp();
import util from "../utils/util" import util from "../utils/util"
// import userApi from "../utils/https/user.js"; // import userApi from "../utils/https/user.js";
const baseUrl = "https://test.api.cloud.sz-trip.com/api/"; // const baseUrl = "https://test.api.cloud.sz-trip.com/api/";
// let baseUrl = "https://api.cloud.sz-trip.com/api/"; let baseUrl = "https://api.cloud.sz-trip.com/api/";
const env = wx.getAccountInfoSync().miniProgram.envVersion const env = wx.getAccountInfoSync().miniProgram.envVersion
if (env == 'develop1') { if (env == 'develop1') {
baseUrl = "https://test.api.cloud.sz-trip.com/api/" baseUrl = "https://test.api.cloud.sz-trip.com/api/"

Loading…
Cancel
Save