diff --git a/app.js b/app.js
index 9035caf..f8afd78 100644
--- a/app.js
+++ b/app.js
@@ -38,7 +38,7 @@ App({
// 获取前端配置文件
commonApi._post("pbservice/Other/getClientConfig", {unique_key: "wechatxcx"}).then(res => {
let data = JSON.parse(res.data);
- data.isTest = data.isTest134? true : false;
+ data.isTest = data.isTest142? true : false;
data.indexSeason = null
this.globalData.configJson = data
}).then(() => {
diff --git a/app.json b/app.json
index a23c41d..0847ea2 100644
--- a/app.json
+++ b/app.json
@@ -1,283 +1,279 @@
{
- "pages": [
- "pages/index/index",
- "pages/map/index",
- "pages/pbService/aiHelpYou/index",
- "pages/search/index",
- "pages/search/list/index",
- "pages/login/index",
- "pages/old/index",
- "pages/old/user/index",
- "pages/old/profile/index",
- "pages/old/nickname/index",
- "pages/old/linkman/index",
- "pages/old/linkman/add/index",
- "pages/order/comment/index",
- "pages/order/coupon/index",
- "pages/order/pay/index",
- "pages/order/payresult/index",
- "pages/order/showSeat/index",
- "pages/order/show/index",
- "pages/order/road/index",
- "pages/order/roadOrder/index",
- "pages/order/movie/index",
- "pages/order/food/index",
- "pages/order/scene/index",
- "pages/order/sceneCart/index",
- "pages/order/hotel/index",
- "pages/order/card/index",
- "pages/order/joinOrder/index",
- "pages/order/joinOrder/success/index",
- "pages/order/joinOrder/history/index",
- "pages/order/postOrder/index",
- "pages/order/showOrder/index",
- "pages/info/newsInfo/index",
- "pages/info/hotelProductInfo/index",
- "pages/info/museumInfo/index",
- "pages/info/sceneProductInfo/index",
- "pages/info/sceneProductInfoNew/index",
- "pages/info/foodInfo/index",
- "pages/info/roadInfo/index",
- "pages/info/cardInfo/index",
- "pages/info/foodProductInfo/index",
- "pages/info/postProductInfo/index",
- "pages/info/sceneInfo/index",
- "pages/info/hotelInfo/index",
- "pages/info/activityInfo/index",
- "pages/info/showInfo/index",
- "pages/info/strategyInfo/index",
- "pages/info/guideInfo/index",
- "pages/info/groupOrderInfo/index",
- "pages/info/culturalUnitInfo/index",
- "pages/info/redmapInfo/index",
- "pages/user/user",
- "pages/user/retail/index",
- "pages/user/retail/apply/index",
- "pages/user/retail/goods/index",
- "pages/user/retail/list/index",
- "pages/user/retail/order/index",
- "pages/user/coupon/index",
- "pages/user/videoCoupon/index",
- "pages/user/verify/index",
- "pages/user/cartlist/list",
- "pages/user/couponCenter/index",
- "pages/user/order/list",
- "pages/user/order/team/list",
- "pages/user/order/sceneOrderInfo/index",
- "pages/user/order/foodOrderInfo/index",
- "pages/user/order/lineOrderInfo/index",
- "pages/user/order/couponOrderInfo/index",
- "pages/user/order/hotelOrderInfo/index",
- "pages/user/order/postOrderInfo/index",
- "pages/user/order/expressInfo/index",
- "pages/user/order/movieOrderInfo/index",
- "pages/user/order/activityOrderInfo/index",
- "pages/user/order/museumOrderInfo/index",
- "pages/user/order/refundInfo/index",
- "pages/user/service/index",
- "pages/user/service/list/index",
- "pages/user/service/info/index",
- "pages/user/address/index",
- "pages/user/profile/index",
- "pages/user/bindtel/index",
- "pages/user/nickname/index",
- "pages/user/likes/index",
- "pages/user/email/index",
- "pages/supplier/index",
- "pages/supplier/apply/index",
- "pages/supplier/good/index",
- "pages/list/mayday/index",
- "pages/list/feiyi/index",
- "pages/list/haoxing/index",
- "pages/list/culturalUnit/index",
- "pages/list/food/index",
- "pages/list/techan/index",
- "pages/list/museum/index",
- "pages/list/store/index",
- "pages/list/activity/index",
- "pages/list/activitynew/index",
- "pages/list/road/index",
- "pages/list/hotel/index",
- "pages/list/strategy/index",
- "pages/list/night/index",
- "pages/list/sale/index",
- "pages/list/movieticket/index",
- "pages/list/movieticket/list/seats/index",
- "pages/list/movieticket/list/cinema/index",
- "pages/list/movieticket/list/ticket/index",
- "pages/list/movieticket/list/web/index",
- "pages/list/movieticket/list/info/index",
- "pages/list/theatre/index",
- "pages/list/card/index",
- "pages/list/six/index",
- "pages/list/scene/index",
- "pages/list/comments/index",
- "pages/list/message/index",
- "pages/list/minitrip/index",
- "pages/list/oneday/index",
- "pages/list/daysu/index",
- "pages/list/daysu/detail/index",
- "pages/pbService/index",
- "pages/pbService/activity/index",
- "pages/pbService/museum/index",
- "pages/pbService/museum/info/index",
- "pages/pbService/PRpark/index",
- "pages/pbService/sceneComfort/index",
- "pages/pbService/gym/index",
- "pages/pbService/gym/info/index",
- "pages/pbService/bus/index",
- "pages/pbService/bus/search/index",
- "pages/pbService/bus/lineinfo/index",
- "pages/pbService/security/index",
- "pages/pbService/web/index",
- "pages/pbService/feiyi/index",
- "pages/pbService/bike/index",
- "pages/pbService/feiyi/info/index",
- "pages/pbService/appreciate/index",
- "pages/pbService/appreciate/info/index",
- "pages/pbService/library/index",
- "pages/pbService/library/bookinfo/index",
- "pages/pbService/library/getpoint/index",
- "pages/pbService/library/mybook/index",
- "pages/pbService/wbdw/index",
- "pages/pbService/wbdw/info/index",
- "pages/pbService/wwcx/index",
- "pages/pbService/wwcx/info/index",
- "pages/pbService/wwcx/search/index",
- "pages/pbService/group/index",
- "pages/ask/index",
- "pages/ask/info/index",
- "pages/ask/my/index",
- "pages/activity/graduate/index",
- "pages/activity/year2020/index",
- "pages/activity/suyear/index",
- "pages/activity/spring2021/index",
- "pages/activity/springten/list/index",
- "pages/activity/autumnten/list/index",
- "pages/activity/springten/index",
- "pages/activity/autumnten/index",
- "pages/activity/newarrival/index",
- "pages/activity/artfestival/index",
- "pages/activity/redlist/index",
- "pages/activity/subway/index",
- "pages/activity/tenscenic/index",
- "pages/activity/huawei/index",
- "pages/activity/huawei/form/index",
- "pages/activity/huawei/result/index",
- "pages/activity/huawei/upload/index",
- "pages/activity/huawei/uploadres/index",
- "pages/activity/huawei/list/index",
- "pages/kj/index",
- "pages/kj/his/index",
- "pages/kj/info/index",
- "pages/kj/mine/index",
- "pages/group/index",
- "pages/group/apply/index",
- "pages/group/mine/index",
- "pages/group/info/index",
- "pages/culture/index",
- "pages/culture/info/index",
- "pages/user/logout/index",
- "pages/order/orderList/index",
- "pages/user/linkman/add/index",
- "pages/user/address/add/index",
- "pages/user/linkman/index",
- "pages/user/userPrivacy/index",
- "pages/user/personalInfo/index",
- "pages/info/luggageInfo/index",
- "pages/order/WineSceneOrder/index",
- "pages/order/showOrderNew/index",
- "pages/user/order/showOrderInfo/index",
- "pages/user/suggest/suggest"
- ],
- "subpackages": [
+ "pages": [
+ "pages/index/index",
+ "pages/map/index",
+ "pages/pbService/aiHelpYou/index",
+ "pages/search/index",
+ "pages/search/list/index",
+ "pages/login/index",
+ "pages/old/index",
+ "pages/old/user/index",
+ "pages/old/profile/index",
+ "pages/old/nickname/index",
+ "pages/old/linkman/index",
+ "pages/old/linkman/add/index",
+ "pages/order/comment/index",
+ "pages/order/coupon/index",
+ "pages/order/pay/index",
+ "pages/order/payresult/index",
+ "pages/order/showSeat/index",
+ "pages/order/show/index",
+ "pages/order/road/index",
+ "pages/order/roadOrder/index",
+ "pages/order/movie/index",
+ "pages/order/food/index",
+ "pages/order/scene/index",
+ "pages/order/sceneCart/index",
+ "pages/order/hotel/index",
+ "pages/order/card/index",
+ "pages/order/joinOrder/index",
+ "pages/order/joinOrder/success/index",
+ "pages/order/joinOrder/history/index",
+ "pages/order/postOrder/index",
+ "pages/order/showOrder/index",
+ "pages/info/newsInfo/index",
+ "pages/info/hotelProductInfo/index",
+ "pages/info/museumInfo/index",
+ "pages/info/sceneProductInfo/index",
+ "pages/info/sceneProductInfoNew/index",
+ "pages/info/foodInfo/index",
+ "pages/info/roadInfo/index",
+ "pages/info/cardInfo/index",
+ "pages/info/foodProductInfo/index",
+ "pages/info/postProductInfo/index",
+ "pages/info/sceneInfo/index",
+ "pages/info/hotelInfo/index",
+ "pages/info/activityInfo/index",
+ "pages/info/showInfo/index",
+ "pages/info/strategyInfo/index",
+ "pages/info/guideInfo/index",
+ "pages/info/groupOrderInfo/index",
+ "pages/info/culturalUnitInfo/index",
+ "pages/info/redmapInfo/index",
+ "pages/user/user",
+ "pages/user/retail/index",
+ "pages/user/retail/apply/index",
+ "pages/user/retail/goods/index",
+ "pages/user/retail/list/index",
+ "pages/user/retail/order/index",
+ "pages/user/coupon/index",
+ "pages/user/videoCoupon/index",
+ "pages/user/verify/index",
+ "pages/user/cartlist/list",
+ "pages/user/couponCenter/index",
+ "pages/user/order/list",
+ "pages/user/order/team/list",
+ "pages/user/order/sceneOrderInfo/index",
+ "pages/user/order/foodOrderInfo/index",
+ "pages/user/order/lineOrderInfo/index",
+ "pages/user/order/couponOrderInfo/index",
+ "pages/user/order/hotelOrderInfo/index",
+ "pages/user/order/postOrderInfo/index",
+ "pages/user/order/expressInfo/index",
+ "pages/user/order/movieOrderInfo/index",
+ "pages/user/order/activityOrderInfo/index",
+ "pages/user/order/museumOrderInfo/index",
+ "pages/user/order/refundInfo/index",
+ "pages/user/service/index",
+ "pages/user/service/list/index",
+ "pages/user/service/info/index",
+ "pages/user/address/index",
+ "pages/user/profile/index",
+ "pages/user/bindtel/index",
+ "pages/user/nickname/index",
+ "pages/user/likes/index",
+ "pages/user/email/index",
+ "pages/supplier/index",
+ "pages/supplier/apply/index",
+ "pages/supplier/good/index",
+ "pages/list/mayday/index",
+ "pages/list/feiyi/index",
+ "pages/list/haoxing/index",
+ "pages/list/culturalUnit/index",
+ "pages/list/food/index",
+ "pages/list/techan/index",
+ "pages/list/museum/index",
+ "pages/list/store/index",
+ "pages/list/activity/index",
+ "pages/list/activitynew/index",
+ "pages/list/road/index",
+ "pages/list/hotel/index",
+ "pages/list/strategy/index",
+ "pages/list/night/index",
+ "pages/list/sale/index",
+ "pages/list/movieticket/index",
+ "pages/list/movieticket/list/seats/index",
+ "pages/list/movieticket/list/cinema/index",
+ "pages/list/movieticket/list/ticket/index",
+ "pages/list/movieticket/list/web/index",
+ "pages/list/movieticket/list/info/index",
+ "pages/list/theatre/index",
+ "pages/list/card/index",
+ "pages/list/six/index",
+ "pages/list/scene/index",
+ "pages/list/comments/index",
+ "pages/list/message/index",
+ "pages/list/minitrip/index",
+ "pages/list/oneday/index",
+ "pages/list/daysu/index",
+ "pages/list/daysu/detail/index",
+ "pages/pbService/index",
+ "pages/pbService/activity/index",
+ "pages/pbService/museum/index",
+ "pages/pbService/museum/info/index",
+ "pages/pbService/PRpark/index",
+ "pages/pbService/sceneComfort/index",
+ "pages/pbService/gym/index",
+ "pages/pbService/gym/info/index",
+ "pages/pbService/bus/index",
+ "pages/pbService/bus/search/index",
+ "pages/pbService/bus/lineinfo/index",
+ "pages/pbService/security/index",
+ "pages/pbService/web/index",
+ "pages/pbService/feiyi/index",
+ "pages/pbService/bike/index",
+ "pages/pbService/feiyi/info/index",
+ "pages/pbService/appreciate/index",
+ "pages/pbService/appreciate/info/index",
+ "pages/pbService/library/index",
+ "pages/pbService/library/bookinfo/index",
+ "pages/pbService/library/getpoint/index",
+ "pages/pbService/library/mybook/index",
+ "pages/pbService/wbdw/index",
+ "pages/pbService/wbdw/info/index",
+ "pages/pbService/wwcx/index",
+ "pages/pbService/wwcx/info/index",
+ "pages/pbService/wwcx/search/index",
+ "pages/pbService/group/index",
+ "pages/ask/index",
+ "pages/ask/info/index",
+ "pages/ask/my/index",
+ "pages/activity/graduate/index",
+ "pages/activity/year2020/index",
+ "pages/activity/suyear/index",
+ "pages/activity/spring2021/index",
+ "pages/activity/springten/list/index",
+ "pages/activity/autumnten/list/index",
+ "pages/activity/springten/index",
+ "pages/activity/autumnten/index",
+ "pages/activity/newarrival/index",
+ "pages/activity/artfestival/index",
+ "pages/activity/redlist/index",
+ "pages/activity/subway/index",
+ "pages/activity/tenscenic/index",
+ "pages/kj/index",
+ "pages/kj/his/index",
+ "pages/kj/info/index",
+ "pages/kj/mine/index",
+ "pages/group/index",
+ "pages/group/apply/index",
+ "pages/group/mine/index",
+ "pages/group/info/index",
+ "pages/culture/index",
+ "pages/culture/info/index",
+ "pages/user/logout/index",
+ "pages/order/orderList/index",
+ "pages/user/linkman/add/index",
+ "pages/user/address/add/index",
+ "pages/user/linkman/index",
+ "pages/user/userPrivacy/index",
+ "pages/user/personalInfo/index",
+ "pages/info/luggageInfo/index",
+ "pages/order/WineSceneOrder/index",
+ "pages/order/showOrderNew/index",
+ "pages/user/order/showOrderInfo/index",
+ "pages/user/suggest/suggest"
+ ],
+ "subpackages": [
+ {
+ "root": "subPackages",
+ "pages": [
+ "indexs/index",
+ "index/index",
+ "techanNew/index",
+ "techanCart/index",
+ "feiyiNew/index",
+ "postSearch/index",
+ "gwcOrder/index",
+ "indexGQ/index",
+ "transferPage/transferPage",
+ "password/overview/overview",
+ "password/setting/setting",
+ "goods/oneCardTour/info/index",
+ "feiyiNew/CGCIndex/index",
+ "feiyiNew/CGCLetter/index",
+ "feiyiNew/CGCTime/index",
+ "foodListNew/index",
+ "foodNew/index"
+ ]
+ },
+ {
+ "root": "subPackageCheckPoint",
+ "pages": [
+ "pages/index/index",
+ "pages/scopemap/index",
+ "pages/detailsmap/index",
+ "pages/content/index",
+ "pages/web/index"
+ ]
+ }
+ ],
+ "plugins": {
+ "live-player-plugin": {
+ "version": "1.3.5",
+ "provider": "wx2b03c6e691cd7370"
+ }
+ },
+ "requiredPrivateInfos": [
+ "getLocation",
+ "choosePoi",
+ "chooseAddress"
+ ],
+ "permission": {
+ "scope.userLocation": {
+ "desc": "你的位置信息将用于小程序位置接口的效果展示"
+ }
+ },
+ "window": {
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#fff",
+ "navigationBarTitleText": "君到苏州(文化旅游总入口)",
+ "navigationBarTextStyle": "black",
+ "navigationStyle": "custom"
+ },
+ "lazyCodeLoading": "requiredComponents",
+ "style": "v2",
+ "sitemapLocation": "sitemap.json",
+ "tabBar": {
+ "color": "#000000",
+ "selectedColor": "#000000",
+ "borderStyle": "white",
+ "list": [
{
- "root": "subPackages",
- "pages": [
- "indexs/index",
- "index/index",
- "techanNew/index",
- "techanCart/index",
- "feiyiNew/index",
- "postSearch/index",
- "gwcOrder/index",
- "indexGQ/index",
- "transferPage/transferPage",
- "password/overview/overview",
- "password/setting/setting",
- "goods/oneCardTour/info/index",
- "feiyiNew/CGCIndex/index",
- "feiyiNew/CGCLetter/index",
- "feiyiNew/CGCTime/index"
- ]
+ "pagePath": "pages/index/index",
+ "iconPath": "/images/index.png",
+ "selectedIconPath": "/images/index_seld.png",
+ "text": "首页",
+ "shareTimeline": true
},
{
- "root": "subPackageCheckPoint",
- "pages": [
- "pages/index/index",
- "pages/scopemap/index",
- "pages/detailsmap/index",
- "pages/content/index",
- "pages/web/index"
- ]
- }
- ],
- "plugins": {
- "live-player-plugin": {
- "version": "1.3.5",
- "provider": "wx2b03c6e691cd7370"
- }
- },
- "requiredPrivateInfos": [
- "getLocation",
- "choosePoi",
- "chooseAddress"
- ],
- "permission": {
- "scope.userLocation": {
- "desc": "你的位置信息将用于小程序位置接口的效果展示"
+ "pagePath": "pages/pbService/aiHelpYou/index",
+ "iconPath": "/images/ai.png",
+ "selectedIconPath": "/images/ai_seld.png",
+ "text": "AI"
+ },
+ {
+ "pagePath": "pages/map/index",
+ "iconPath": "/images/map.png",
+ "selectedIconPath": "/images/map_seld.png",
+ "text": "图游"
+ },
+ {
+ "pagePath": "pages/user/user",
+ "iconPath": "/images/user.png",
+ "selectedIconPath": "/images/user_seld.png",
+ "text": "我的"
}
- },
- "window": {
- "backgroundTextStyle": "light",
- "navigationBarBackgroundColor": "#fff",
- "navigationBarTitleText": "君到苏州(文化旅游总入口)",
- "navigationBarTextStyle": "black",
- "navigationStyle": "custom"
- },
- "lazyCodeLoading": "requiredComponents",
- "style": "v2",
- "sitemapLocation": "sitemap.json",
- "tabBar": {
- "color": "#999999",
- "selectedColor": "#22A3CD",
- "borderStyle": "white",
- "list": [
- {
- "pagePath": "pages/index/index",
- "iconPath": "/images/index.png",
- "selectedIconPath": "/images/index_seld.png",
- "text": "首页",
- "shareTimeline": true
- },
- {
- "pagePath": "pages/pbService/aiHelpYou/index",
- "iconPath": "/images/ai.png",
- "selectedIconPath": "/images/ai_seld.png",
- "text": "AI"
- },
- {
- "pagePath": "pages/map/index",
- "iconPath": "/images/map.png",
- "selectedIconPath": "/images/map_seld.png",
- "text": "图游"
- },
- {
- "pagePath": "pages/user/user",
- "iconPath": "/images/user.png",
- "selectedIconPath": "/images/user_seld.png",
- "text": "我的"
- }
- ]
- }
- }
\ No newline at end of file
+ ]
+ }
+}
\ No newline at end of file
diff --git a/app.wxss b/app.wxss
index 9467548..5d7cb40 100644
--- a/app.wxss
+++ b/app.wxss
@@ -124,7 +124,7 @@ page{
text-overflow: ellipsis;
}
.sz-xcx-fwb-img {
- max-width: 100%;
+ max-width: 100% !important;
height: auto;
object-fit: cover;
}
diff --git a/images/ai.png b/images/ai.png
index 8ed8e01..6f71749 100644
Binary files a/images/ai.png and b/images/ai.png differ
diff --git a/images/ai_seld.png b/images/ai_seld.png
index 6e00ec9..aaefadc 100644
Binary files a/images/ai_seld.png and b/images/ai_seld.png differ
diff --git a/images/aindex_seld.png b/images/aindex_seld.png
deleted file mode 100644
index 7e422ec..0000000
Binary files a/images/aindex_seld.png and /dev/null differ
diff --git a/images/amap_seld.png b/images/amap_seld.png
deleted file mode 100644
index d4af3f5..0000000
Binary files a/images/amap_seld.png and /dev/null differ
diff --git a/images/auser_seld.png b/images/auser_seld.png
deleted file mode 100644
index 2cd9a43..0000000
Binary files a/images/auser_seld.png and /dev/null differ
diff --git a/images/index.png b/images/index.png
index 3ad0a3b..08d6d28 100644
Binary files a/images/index.png and b/images/index.png differ
diff --git a/images/index_seld.png b/images/index_seld.png
index 97f97e0..a039bcb 100644
Binary files a/images/index_seld.png and b/images/index_seld.png differ
diff --git a/images/map.png b/images/map.png
index b8f45d8..5c7769e 100755
Binary files a/images/map.png and b/images/map.png differ
diff --git a/images/map_seld.png b/images/map_seld.png
index 60b9cb5..93c018b 100644
Binary files a/images/map_seld.png and b/images/map_seld.png differ
diff --git a/images/place1.png b/images/place1.png
index 0c65781..a8f4016 100755
Binary files a/images/place1.png and b/images/place1.png differ
diff --git a/images/place2.png b/images/place2.png
index 0bf09ad..c0d693f 100755
Binary files a/images/place2.png and b/images/place2.png differ
diff --git a/images/user.png b/images/user.png
index 73eb192..be15404 100755
Binary files a/images/user.png and b/images/user.png differ
diff --git a/images/user_seld.png b/images/user_seld.png
index 8996d2a..b422702 100644
Binary files a/images/user_seld.png and b/images/user_seld.png differ
diff --git a/pages/activity/huawei/form/index.js b/pages/activity/huawei/form/index.js
deleted file mode 100644
index 194363b..0000000
--- a/pages/activity/huawei/form/index.js
+++ /dev/null
@@ -1,162 +0,0 @@
-// pages/activity/huawei/form/index.js
-import commonApi from "../../../../utils/https/common"
-import userApi from "../../../../utils/https/user"
-Page({
-
- /**
- * 页面的初始数据
- */
- data: {
- multiArray:[],
- multiIndex:[],
- areaList:[],
- info:{},
- brands:[],
- brandIndex:-1,
- id:null,
- info:{}
- },
-
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad: function (options) {
- commonApi.user_post('actonline/act_online/getActDetail',{
- id:options.id
- }).then(res=>{
- this.setData({
- info:res.data
- })
- })
- commonApi.user_post('actonline/act_online/getMobileBrand',{}).then(res=>{
- let brands = []
- for(let i in res.data){
- brands.push({
- name:res.data[i],
- id:i
- })
- }
- this.setData({
- brands:brands,
- id:options.id
- })
- })
- },
- changeBrand:function(e){
- this.setData({
- brandIndex:e.detail.value
- })
- },
-
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady: function () {
-
- },
- changeName:function(e){
- let info = this.data.info
- info.name = e.detail.value
- this.setData({
- info:info
- })
- },
- changeTel:function(e){
- let info = this.data.info
- info.mobile = e.detail.value
- this.setData({
- info:info
- })
- },
- changeCard:function(e){
- let info = this.data.info
- info.card_number = e.detail.value
- this.setData({
- info:info
- })
- },
- submit:function(e){
- let info = this.data.info;
-
- if(!info.name){
- wx.showToast({
- title: '请输入姓名',
- icon:'none'
- })
- return;
- }
- if(info.mobile.length!=11){
- wx.showToast({
- title: '请输入正确的手机号',
- icon:'none'
- })
- return;
- }
- if(info.card_number.length!=18){
- wx.showToast({
- title: '请输入正确的身份证号码',
- icon:'none'
- })
- return;
- }
- if(this.data.brandIndex==-1){
- wx.showToast({
- title: '请选择手机品牌',
- icon:'none'
- })
- return;
- }
- info.id = this.data.id
- info.mobile_type = Number(this.data.brands[this.data.brandIndex].id)
- commonApi.user_post("actonline/act_online/actSign",info).then(res=>{
- if(res.code==1){
- wx.navigateTo({
- url: '../result/index?id='+this.data.id,
- })
- }
- })
-
- },
-
- /**
- * 生命周期函数--监听页面显示
- */
- onShow: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload: function () {
-
- },
-
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh: function () {
-
- },
-
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom: function () {
-
- },
-
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage: function () {
-
- }
-})
\ No newline at end of file
diff --git a/pages/activity/huawei/form/index.json b/pages/activity/huawei/form/index.json
deleted file mode 100644
index 35cf02f..0000000
--- a/pages/activity/huawei/form/index.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "usingComponents": {
- "title":"/pages/component/TitleHeader"
- }
-}
\ No newline at end of file
diff --git a/pages/activity/huawei/form/index.wxml b/pages/activity/huawei/form/index.wxml
deleted file mode 100644
index e4a0c2e..0000000
--- a/pages/activity/huawei/form/index.wxml
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
-
-
- 姓名
-
-
-
- 联系方式
-
-
-
- 身份证
-
-
-
- 手机品牌
-
-
- {{brandIndex==-1?'请选择':brands[brandIndex].name}}
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/activity/huawei/form/index.wxss b/pages/activity/huawei/form/index.wxss
deleted file mode 100644
index cacec9b..0000000
--- a/pages/activity/huawei/form/index.wxss
+++ /dev/null
@@ -1,72 +0,0 @@
-/* pages/activity/huawei/form/index.wxss */
-.topimg {
- display: block;
- width: 100%;
-}
-page {
- background: #003323;
-}
-.input-box {
- margin: 0 42rpx;
- position: relative;
- z-index: 1;
- margin-top: -130rpx;
- background: white;
- border-radius: 16rpx;
- font-size: 31rpx;
- padding: 30rpx 52rpx;
-}
-.input-box image {
- display: block;
- width: 264rpx;
- height: 68rpx;
-}
-.input-box image.submit-btn {
- display: block;
- width: 561rpx;
- height: 104rpx;
- margin: 0 auto;
- margin-top: 35rpx;
-}
-.input-box input {
- display: block;
- padding: 10rpx 30rpx;
- width: 420rpx;
- height: 71rpx;
- line-height: 71rpx;
- background: #FFFFFF;
- border: 1rpx solid #CCCCCC;
- border-radius: 10rpx;
- box-sizing: border-box;
- color: #333;
- font-size: 32rpx;
- font-weight: 500;
- flex-shrink: 0;
-}
-.input-item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- font-weight: 500;
- font-size: 32rpx;
- color: #333333;
- margin-top: 45rpx;
- margin-bottom: 45rpx;
-}
-.picker {
- padding: 0 30rpx;
- width: 420rpx;
- height: 71rpx;
- line-height: 71rpx;
- background: #FFFFFF;
- border: 1rpx solid #CCCCCC;
- border-radius: 10rpx;
- box-sizing: border-box;
- color: #333;
- font-size: 32rpx;
- font-weight: 500;
- flex-shrink: 0;
- display: flex;
- align-items: center;
- justify-content: space-between;
-}
\ No newline at end of file
diff --git a/pages/activity/huawei/index.js b/pages/activity/huawei/index.js
deleted file mode 100644
index 20e1d98..0000000
--- a/pages/activity/huawei/index.js
+++ /dev/null
@@ -1,107 +0,0 @@
-// pages/activity/huawei/index.js
-const sys = wx.getSystemInfoSync(),rect = wx.getMenuButtonBoundingClientRect();
-let height = sys.screenHeight - (rect.top - sys.statusBarHeight) * 2 - rect.height - sys.statusBarHeight;
-import commonApi from "../../../utils/https/common"
-Page({
-
- /**
- * 页面的初始数据
- */
- data: {
- height:height,
- isReg:false,
- id:null,
- info:{},
- showRuleFlag:false
- },
-
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad: function (options) {
- // 判断是否报名
- this.setData({
- id:options.id
- })
- commonApi.user_post("actonline/act_online/isSign",{id:options.id}).then(res=>{
- this.setData({
- isReg:res.data
- })
- })
- commonApi.user_post("actonline/act_online/getActDetail",{
- id:options.id
- }).then(res=>{
- if(res.data){
- for(let i in res.data){
- if(i.indexOf('time')!=-1 && res.data[i]){
- res.data[i] = res.data[i].replace(/-/g,'.')
- res.data[i] = res.data[i].substr(0,res.data[i].length-3)
- }
- }
- this.setData({
- info:res.data
- })
- }
- })
- },
- showRule:function(){
- this.setData({
- showRuleFlag:!this.data.showRuleFlag
- })
- },
- gotoPath:function(e){
- let path = e.currentTarget.dataset.path;
- wx.navigateTo({
- url: path
- })
- },
-
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面显示
- */
- onShow: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload: function () {
-
- },
-
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh: function () {
-
- },
-
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom: function () {
-
- },
-
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage: function () {
-
- }
-})
\ No newline at end of file
diff --git a/pages/activity/huawei/index.json b/pages/activity/huawei/index.json
deleted file mode 100644
index 35cf02f..0000000
--- a/pages/activity/huawei/index.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "usingComponents": {
- "title":"/pages/component/TitleHeader"
- }
-}
\ No newline at end of file
diff --git a/pages/activity/huawei/index.wxml b/pages/activity/huawei/index.wxml
deleted file mode 100644
index e4be85a..0000000
--- a/pages/activity/huawei/index.wxml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
- 规则
- 线上报名时间:{{info.sign_begin_time}} - {{info.sign_end_time}}
- 线上投票时间:{{info.begin_time}} - {{info.end_time}}
-
-
-
- {{info.sub_title}}
-
-
-
-
-
- • 活动规则 •
-
-
-
\ No newline at end of file
diff --git a/pages/activity/huawei/index.wxss b/pages/activity/huawei/index.wxss
deleted file mode 100644
index 54b74f3..0000000
--- a/pages/activity/huawei/index.wxss
+++ /dev/null
@@ -1,71 +0,0 @@
-/* pages/activity/huawei/index.wxss */
-.info-box {
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- background: url(https://static.ticket.sz-trip.com/xcxImages/huawei/bg.png);
- background-size: 100% 100%;
- background-repeat: no-repeat;
- display: flex;
- flex-direction: column;
- justify-content: flex-end;
- align-items: center;
-}
-.bg {
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- top: 0;
-}
-.btnimg {
- display: block;
- width: 558rpx;
- height: 104rpx;
- margin-bottom: 23rpx;
-}
-.bottomtext {
- color: #fff;
- text-align: center;
- font-size: 24rpx;
- margin-bottom: 45rpx;
-}
-.rule-btn {
- font-size: 27rpx;
- color: #fff;
- font-weight: 500;
- width: 73rpx;
- height: 73rpx;
- border: 1rpx solid;
- border-radius: 50%;
- position: absolute;
- right: 30rpx;
- top: 30rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- box-sizing: border-box;
-}
-.tiptext {
- color: #fff;
- font-size: 25rpx;
- margin-top: 20rpx;
-}
-.rule-box {
- height: 50%;
- overflow-y: auto;
- font-size: 27rpx;
- color: #010101;
- padding: 0 50rpx;
- width: 500rpx;
- padding-bottom: 30rpx;
- line-height: 46rpx;
-}
-.rule-title {
- text-align: center;
- font-size: 32rpx;
- color: #000;
- font-weight: 500;
- line-height: 100rpx;
-}
\ No newline at end of file
diff --git a/pages/activity/huawei/list/index.js b/pages/activity/huawei/list/index.js
deleted file mode 100644
index b97fc66..0000000
--- a/pages/activity/huawei/list/index.js
+++ /dev/null
@@ -1,209 +0,0 @@
-// pages/activity/huawei/list/index.js
-import commonApi from "../../../../utils/https/common"
-let app = getApp()
-Page({
-
- /**
- * 页面的初始数据
- */
- data: {
- id:null,
- types:[],
- typeIndex:0,
- list:[],
- detail:{},
- showRuleFlag:false,
- user_id:null,
- isReg:false
- },
-
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad: function (options) {
- this.setData({
- id:options.id
- })
- if(options.user_id){
- let user_id = wx.getStorageSync('jstrip_userid');
- if(user_id!=options.user_id){
- app.globalData.weburl = 'https://m.cloud.sz-trip.com/photoWorksDetail?id='+options.id+'&type_id='+options.type_id
- wx.redirectTo({
- url: '/pages/pbService/web/index'
- })
- return;
- }
- }
- commonApi.user_post("actonline/act_online/isSign",{id:options.id}).then(res=>{
- if(res.code==1){
- this.setData({
- isReg:res.data
- })
- }
- })
- commonApi.user_post("actonline/act_online/getActDetail",{id:options.id}).then(res=>{
- this.setData({
- detail:res.data
- })
- })
- commonApi.user_post("actonline/act_online/getActTypeList",{
- act_id:this.data.id
- }).then(res=>{
- this.setData({
- types:res.data
- })
- if(res.data.length>0){
- this.getList()
- }
-
- })
- },
- showRule:function(){
- this.setData({
- showRuleFlag:!this.data.showRuleFlag
- })
- },
- reUpload:function(){
- let that = this;
- wx.showModal({
- title:"提示",
- content:"一个分类的作品多次提交,平台只保留最近上传的作品。",
- cancelText:"否",
- confirmText:"是",
- success:function(res){
- if(res.confirm){
- that.gotoUpload()
- }
- }
- })
- },
- changeType:function(e){
- this.setData({
- typeIndex:e.currentTarget.dataset.type,
- list:[]
- })
- this.getList()
- },
- getList:function(){
- commonApi.user_post("actonline/act_online/myWork",{
- type_id:this.data.types[this.data.typeIndex].id,
- id:this.data.id,
- page:1,
- limit:100,
- user_id:this.data.user_id || null
- }).then(res=>{
- if(this.data.user_id && res.data.data[0].status!=1){
- res.data.data = []
- }
- this.setData({
- list:res.data.data
- })
-
- this.onShareAppMessage()
- })
- },
- gotoUpload:function(){
- if(this.data.isReg){
- wx.navigateTo({
- url: '../upload/index?id='+this.data.id
- })
- }
- else {
- wx.navigateTo({
- url: '../index?id='+this.data.id
- })
- }
- },
- vote:function(e){
- let that = this
- commonApi.user_post("actonline/act_online/vote",{
- id:this.data.list[0].id
- }).then(res=>{
- if(res.code==1){
- wx.showToast({
- title: '投票成功',
- icon:'success'
- })
- let list = this.data.list;
- list[0].votes = Number(list[0].votes) + 1;
- }
- else if(res.code==-1){
- wx.showModal({
- title:"提示",
- content:res.msg,
- confirmText:"关闭",
- cancelText:"前往报名",
- success:function(res){
- if(!res.confirm){
- wx.navigateTo({
- url: '/pages/activity/huawei/index?id='+that.data.id
- })
- }
- }
- })
- }
- })
- },
-
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面显示
- */
- onShow: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload: function () {
-
- },
-
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh: function () {
-
- },
-
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom: function () {
-
- },
-
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage: function () {
- if(this.data.list.length>0){
- return {
- title:"帮我投一票吧~",
- path:'/pages/activity/huawei/list/index?id='+this.data.list[0].act_online_id+'&type_id='+this.data.list[0].act_online_type+'&user_id='+this.data.list[0].user.id+'&did='+this.data.list[0].id,
- imageUrl:this.data.list[0].img
- }
- }
- else {
- return {
- title:"君到苏州摄影大赛作品",
- path:"/pages/pbService/web/index?url="+encodeURIComponent('https://m.cloud.sz-trip.com/photoWorksList?id=6'),
- imageUrl:"https://m.cloud.sz-trip.com/static/images/logobai.png"
- }
- }
- }
-})
\ No newline at end of file
diff --git a/pages/activity/huawei/list/index.json b/pages/activity/huawei/list/index.json
deleted file mode 100644
index 35cf02f..0000000
--- a/pages/activity/huawei/list/index.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "usingComponents": {
- "title":"/pages/component/TitleHeader"
- }
-}
\ No newline at end of file
diff --git a/pages/activity/huawei/list/index.wxml b/pages/activity/huawei/list/index.wxml
deleted file mode 100644
index dbb0d71..0000000
--- a/pages/activity/huawei/list/index.wxml
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
- {{item.title}}
-
-
- {{list[0].title}}
-
-
- {{list[0].user.nickname}}
- 作品id:{{list[0].id}}
-
-
- 作品id:{{list[0].id}}
- 作品状态:
- {{list[0].status_text}}
-
- 拒绝理由:{{list[0].refund_msg}}
-
-
- 当前得票:{{list[0].votes}}
- 投票
-
-
- {{list[0].desc}}
-
- 规则
-
-
-
-
-
- 投票已开始,无法上传作品!
-
-
-
-
-
- • 活动规则 •
-
-
-
\ No newline at end of file
diff --git a/pages/activity/huawei/list/index.wxss b/pages/activity/huawei/list/index.wxss
deleted file mode 100644
index 6ceb225..0000000
--- a/pages/activity/huawei/list/index.wxss
+++ /dev/null
@@ -1,163 +0,0 @@
-/* pages/activity/huawei/list/index.wxss */
-.tabs {
- display: flex;
- align-items: center;
- flex-wrap: nowrap;
- overflow-x: auto;
- margin: 0 27rpx;
- height: 92rpx;
- border-bottom: 1rpx solid #cccccc;
- color: #666;
- font-size: 31rpx;
- padding: 0 28rpx;
-}
-.tab {
- margin-right: 140rpx;
- position: relative;
- line-height: 92rpx;
- flex-shrink: 0;
-}
-.tab:last-child {
- margin-right: 0;
-}
-.tab.active {
- color: #000;
- font-weight: 500;
-}
-.tab.active::after {
- content: "1";
- font-size: 0;
- display: block;
- position: absolute;
- width: 60rpx;
- left: 50%;
- margin-left: -30rpx;
- bottom: 0;
- height: 7rpx;
- background: linear-gradient(0deg, rgba(251, 197, 34, 0.93), rgba(255, 252, 0, 0.93));
- border-radius: 3rpx;
-}
-.title {
- text-align: center;
- padding: 39rpx 30rpx;
- margin-top: 12rpx;
- font-size: 36rpx;
- color: #333;
- font-weight: bold;
-}
-.mainimg {
- display: block;
- margin: 0 auto;
- width: 625rpx;
- border: 13rpx solid #FEE5C6;
- margin-bottom: 50rpx;
-}
-.content {
- margin: 0 52rpx;
- padding-bottom: 30rpx;
- font-size: 27rpx;
- color: #333333;
-}
-.emptyimg {
- display: block;
- margin: 91rpx auto;
- width: 414rpx;
- height: 193rpx;
-}
-.tip1 {
- text-align: center;
- font-size: 35rpx;
- color: #000000;
-}
-.btnimg {
- width: 558rpx;
- margin: 0 auto;
- margin-top: 86rpx;
- display: block;
-}
-.work-tips-my {
- display: flex;
- justify-content: space-between;
- align-items: center;
- font-size: 31rpx;
- color: #666;
- margin: 0 53rpx;
- padding: 20rpx 0;
-}
-.work-tips-my view {
- flex: 1;
-}
-.work-tips-my .status {
- color: #CC0000;
-}
-.work-tips-my .status.active {
- color: #169900;
-}
-.count-num {
- color: #333;
- font-size: 31rpx;
- font-weight: 500;
-}
-.rule-btn {
- width: 143rpx;
- position: fixed;
- text-align: center;
- line-height: 66rpx;
- background: #FFFC00;
- border-top-left-radius: 33rpx;
- border-bottom-left-radius: 33rpx;
- font-size: 31rpx;
- color: #333333;
- padding-right: 10rpx;
- right: 0;
- bottom: 246rpx;
-}
-.rule-box {
- height: 50%;
- overflow-y: auto;
- font-size: 27rpx;
- color: #010101;
- padding: 0 50rpx;
- width: 500rpx;
- padding-bottom: 30rpx;
- line-height: 46rpx;
-}
-.rule-title {
- text-align: center;
- font-size: 32rpx;
- color: #000;
- font-weight: 500;
- line-height: 100rpx;
-}
-.vote-box {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin: 0 53rpx;
- padding-bottom: 50rpx;
-}
-.vote-btn {
- width: 175rpx;
- line-height: 64rpx;
- background: linear-gradient(0deg, rgba(251, 197, 34, 0.93), rgba(255, 252, 0, 0.93));
- border-radius: 32rpx;
- text-align: center;
- color: #333333;
- font-size: 31rpx;
- font-weight: 500;
-}
-.work-tips-my image {
- display: block;
- width: 53rpx;
- height: 53rpx;
- border-radius: 50%;
-}
-.work-tips-my view.nickname {
- font-size: 28rpx;
- margin: 0 20rpx;
-}
-.refund-msg {
- color: #CC0000;
- margin: 30rpx 53rpx;
- margin-top: 10rpx;
-}
\ No newline at end of file
diff --git a/pages/activity/huawei/result/index.js b/pages/activity/huawei/result/index.js
deleted file mode 100644
index 11a206b..0000000
--- a/pages/activity/huawei/result/index.js
+++ /dev/null
@@ -1,73 +0,0 @@
-// pages/activity/huawei/result/index.js
-Page({
-
- /**
- * 页面的初始数据
- */
- data: {
- id:null
- },
-
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad: function (options) {
- this.setData({
- id:options.id
- })
- },
- upload:function(e){
- wx.navigateTo({
- url: '../upload/index?id='+this.data.id
- })
- },
-
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面显示
- */
- onShow: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload: function () {
-
- },
-
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh: function () {
-
- },
-
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom: function () {
-
- },
-
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage: function () {
-
- }
-})
\ No newline at end of file
diff --git a/pages/activity/huawei/result/index.json b/pages/activity/huawei/result/index.json
deleted file mode 100644
index 35cf02f..0000000
--- a/pages/activity/huawei/result/index.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "usingComponents": {
- "title":"/pages/component/TitleHeader"
- }
-}
\ No newline at end of file
diff --git a/pages/activity/huawei/result/index.wxml b/pages/activity/huawei/result/index.wxml
deleted file mode 100644
index c322998..0000000
--- a/pages/activity/huawei/result/index.wxml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-恭喜您已报名成功!
-点击下方按钮开始进行作品上传
-
-
diff --git a/pages/activity/huawei/result/index.wxss b/pages/activity/huawei/result/index.wxss
deleted file mode 100644
index 8961d11..0000000
--- a/pages/activity/huawei/result/index.wxss
+++ /dev/null
@@ -1,30 +0,0 @@
-/* pages/activity/huawei/result/index.wxss */
-.logo {
- margin: 64rpx auto;
- width: 415rpx;
- height: 393rpx;
- display: block;
-}
-page {
- text-align: center;
- color: #666666;
- font-size: 28rpx;
-}
-.uploadimg {
- display: block;
- width: 558rpx;
- height: 104rpx;
- margin: 0 auto;
-}
-.arrowimg {
- display: block;
- margin: 35rpx auto;
- width: 42rpx;
- height: 58rpx;
-}
-.text {
- font-size: 45rpx;
- font-weight: 500;
- color: #000000;
- margin-bottom: 20rpx;
-}
\ No newline at end of file
diff --git a/pages/activity/huawei/upload/index.js b/pages/activity/huawei/upload/index.js
deleted file mode 100644
index b638fdc..0000000
--- a/pages/activity/huawei/upload/index.js
+++ /dev/null
@@ -1,234 +0,0 @@
-// pages/activity/huawei/upload/index.js
-import commonApi from "../../../../utils/https/common"
-Page({
-
- /**
- * 页面的初始数据
- */
- data: {
- id:null,
- types:[],
- typeIndex:-1,
- title:"",
- img:null,
- desc:"",
- date:null,
- address:""
- },
-
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad: function (options) {
- this.setData({
- id:options.id
- })
- commonApi.user_post('actonline/act_online/getActTypeList',{
- act_id:options.id
- }).then(res=>{
- this.setData({
- types:res.data
- })
- })
- },
- changeType:function(e){
- this.setData({
- typeIndex:e.detail.value
- })
- },
- changeTitle:function(e){
- this.setData({
- title:e.detail.value
- })
- },
- changeContent:function(e){
- this.setData({
- desc:e.detail.value
- })
- },
- uploadImg:function(){
- let that = this;
- wx.chooseImage({
- count: 1,
- sizeType: ['original', 'compressed'],
- sourceType: ['album', 'camera'],
- success (res) {
- // tempFilePath可以作为img标签的src属性显示图片
- const tempFilePaths = res.tempFilePaths[0]
- if(tempFilePaths.substr(tempFilePaths.length-4,4)=='.gif'){
- wx.showToast({
- title: '图片格式错误',
- icon:'none'
- })
- return;
- }
- wx.showLoading({
- title: '图片上传中,请稍后'
- })
- wx.uploadFile({
- url: 'https://api.cloud.sz-trip.com/api/pbservice.other/upload', //这里是上传的服务器地址
- filePath: tempFilePaths,
- header:{
- token: wx.getStorageSync('jstrip_token'),
- },
- name: "file",
- success: function (res) {
- var res = JSON.parse(res.data);
- let img = res.data.url;
- that.setData({
- img:img
- })
- wx.hideLoading();
- },
- fail:function(res){
- wx.hideLoading();
- }
- })
- }
- })
- },
- bindDateChange:function(e){
- this.setData({
- date:e.detail.value
- })
- },
- changeAddress:function(e){
- this.setData({
- address:e.detail.value
- })
- },
- submit:function(){
- if(!this.data.title){
- wx.showToast({
- title: '请输入作品标题',
- icon:'none'
- })
- return;
- }
- if(this.getCNLen(this.data.title)>30){
- wx.showToast({
- title: '作品标题过长',
- icon:'none'
- })
- return;
- }
- if(this.data.typeIndex==-1){
- wx.showToast({
- title: '请选择分类',
- icon:'none'
- })
- return;
- }
- if(!this.data.date){
- wx.showToast({
- title: '请选择拍摄时间',
- icon:'none'
- })
- return;
- }
- if(!this.data.address){
- wx.showToast({
- title: '请输入您所上传照片的拍摄地点',
- icon:'none'
- })
- return;
- }
- if(!this.data.img){
- wx.showToast({
- title: '请上传图片',
- icon:'none'
- })
- return;
- }
- if(!this.data.desc){
- wx.showToast({
- title: '请输入作品描述',
- icon:'none'
- })
- return;
- }
- if(this.getCNLen(this.data.desc)>600){
- wx.showToast({
- title: '作品描述过长',
- icon:'none'
- })
- return;
- }
- commonApi.user_post("actonline/act_online/uploadWork",{
- title:this.data.title,
- img:this.data.img,
- desc:this.data.desc,
- type_id:this.data.types[this.data.typeIndex].id,
- id:this.data.id,
- shot_time:this.data.date,
- shot_address:this.data.address
- }).then(res=>{
- if(res.code==1){
- wx.navigateTo({
- url: '../uploadres/index?id='+this.data.id
- })
- }
- })
-
- },
- getCNLen:function(str){
- var len = 0;
- for (var i=0; i127 || str.charCodeAt(i)==94) {
- len += 2;
- } else {
- len ++;
- }
- }
- return len;
- },
-
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面显示
- */
- onShow: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload: function () {
-
- },
-
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh: function () {
-
- },
-
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom: function () {
-
- },
-
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage: function () {
-
- }
-})
\ No newline at end of file
diff --git a/pages/activity/huawei/upload/index.json b/pages/activity/huawei/upload/index.json
deleted file mode 100644
index 35cf02f..0000000
--- a/pages/activity/huawei/upload/index.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "usingComponents": {
- "title":"/pages/component/TitleHeader"
- }
-}
\ No newline at end of file
diff --git a/pages/activity/huawei/upload/index.wxml b/pages/activity/huawei/upload/index.wxml
deleted file mode 100644
index f35bff1..0000000
--- a/pages/activity/huawei/upload/index.wxml
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
-
- 作品标题
-
-
-
- 选择分类
-
-
- {{typeIndex==-1?'请选择':types[typeIndex].title}}
-
-
-
-
-
- 拍摄时间
-
-
- {{!date?'请选择':date}}
-
-
-
-
-
- 拍摄地点
-
-
-
-上传图片
-
-
-作品描述
-
-
-一个分类的作品多次提交,平台只保留最近上传的作品
\ No newline at end of file
diff --git a/pages/activity/huawei/upload/index.wxss b/pages/activity/huawei/upload/index.wxss
deleted file mode 100644
index 7eb9cd8..0000000
--- a/pages/activity/huawei/upload/index.wxss
+++ /dev/null
@@ -1,112 +0,0 @@
-/* pages/activity/huawei/upload/index.wxss */
-.topimg {
- display: block;
- width: 100%;
-}
-page {
- background: #F7F7F7;
-}
-.input-box {
- margin: 0 24rpx;
- margin-top: -60rpx;
- position: relative;
- z-index: 1;
- border-radius: 7rpx;
- background: white;
- padding: 32rpx 28rpx;
- font-size: 31rpx;
- color: #333333;
-}
-.input-item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- font-size: 24rpx;
- margin-bottom: 27rpx;
-}
-.input-box text {
- margin-right: 20rpx;
- flex-shrink: 0;
- font-size: 31rpx;
-}
-.input-box input {
- width: 483rpx;
- height: 80rpx;
- line-height: 80rpx;
- box-sizing: border-box;
- display: block;
- padding: 0 15rpx;
- border: 1rpx solid #CCCCCC;
- border-radius: 4rpx;
-}
-.input-box .input-item:last-child{
- margin-bottom: 0;
-}
-.picker {
- display: flex;
- width: 483rpx;
- height: 80rpx;
- box-sizing: border-box;
- padding-left: 15rpx;
- border: 1rpx solid #CCCCCC;
- border-radius: 4rpx;
- align-items: center;
- justify-content: space-between;
-}
-.picker .iconfont {
- width: 80rpx;
- text-align: center;
- line-height: 80rpx;
- border-left: 1rpx solid #CCCCCC;
- flex-shrink: 0;
-}
-.picker .areatext {
- flex: 1;
-}
-.tip1 {
- font-size: 36rpx;
- padding-left: 52rpx;
- margin-top: 46rpx;
- margin-bottom: 26rpx;
- position: relative;
- line-height: 33rpx;
-}
-.tip1::before {
- content:"1";
- font-size: 0;
- position: absolute;
- width: 10rpx;
- height: 33rpx;
- left: 24rpx;
- top: 0;
- background: linear-gradient(0deg, rgba(251, 197, 34, 0.93), rgba(255, 252, 0, 0.93));
-}
-.uploadimg {
- display: block;
- margin-left: 24rpx;
- width: 249rpx;
- height: 191rpx;
- margin-bottom: 50rpx;
-}
-.textarea {
- font-size: 24rpx;
- margin: 24rpx;
- padding: 20rpx 30rpx;
- border-radius: 7rpx;
- background: white;
- display: block;
- height: 230rpx;
- width: 640rpx;
-}
-.uploadbtn {
- display: block;
- margin: 40rpx auto;
- width: 558rpx;
- height: 104rpx;
-}
-.tip2 {
- text-align: center;
- font-size: 24rpx;
- color: #b2b2b2;
- padding-bottom: 40rpx;
-}
\ No newline at end of file
diff --git a/pages/activity/huawei/uploadres/index.js b/pages/activity/huawei/uploadres/index.js
deleted file mode 100644
index 4fd04e0..0000000
--- a/pages/activity/huawei/uploadres/index.js
+++ /dev/null
@@ -1,78 +0,0 @@
-// pages/activity/huawei/uploadres/index.js
-Page({
-
- /**
- * 页面的初始数据
- */
- data: {
- id:null
- },
-
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad: function (options) {
- this.setData({
- id:options.id
- })
- },
- gotoPath:function(e){
- wx.navigateTo({
- url: e.currentTarget.dataset.path,
- })
- },
- backhome:function(){
- wx.switchTab({
- url: '/pages/index/index'
- })
- },
-
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面显示
- */
- onShow: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload: function () {
-
- },
-
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh: function () {
-
- },
-
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom: function () {
-
- },
-
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage: function () {
-
- }
-})
\ No newline at end of file
diff --git a/pages/activity/huawei/uploadres/index.json b/pages/activity/huawei/uploadres/index.json
deleted file mode 100644
index 35cf02f..0000000
--- a/pages/activity/huawei/uploadres/index.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "usingComponents": {
- "title":"/pages/component/TitleHeader"
- }
-}
\ No newline at end of file
diff --git a/pages/activity/huawei/uploadres/index.wxml b/pages/activity/huawei/uploadres/index.wxml
deleted file mode 100644
index 76a59da..0000000
--- a/pages/activity/huawei/uploadres/index.wxml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-恭喜您的作品已上传完成!
-
-
-通过第一轮评审的摄影作品将在9月1号后
-进行线上展示,请注意查看平台通知
\ No newline at end of file
diff --git a/pages/activity/huawei/uploadres/index.wxss b/pages/activity/huawei/uploadres/index.wxss
deleted file mode 100644
index 3c5cf0f..0000000
--- a/pages/activity/huawei/uploadres/index.wxss
+++ /dev/null
@@ -1,26 +0,0 @@
-/* pages/activity/huawei/uploadres/index.wxss */
-.logo {
- display: block;
- margin: 64rpx auto;
- width: 414rpx;
- height: 393rpx;
-}
-.tip1 {
- font-size: 45rpx;
- color: #000000;
- font-weight: 500;
- margin-bottom: 90rpx;
- text-align: center;
-}
-.btnimg {
- display: block;
- margin: 24rpx auto;
- width: 558rpx;
- height: 104rpx;
-}
-.tip2 {
- text-align: center;
- font-size: 28rpx;
- color: #666;
- margin-bottom: 20rpx;
-}
\ No newline at end of file
diff --git a/pages/component/kefu/index.js b/pages/component/kefu/index.js
new file mode 100644
index 0000000..c3f255b
--- /dev/null
+++ b/pages/component/kefu/index.js
@@ -0,0 +1,58 @@
+// pages/component/kefu/index.js
+import commonApi from "../../../utils/https/common.js"
+Component({
+
+ /**
+ * 组件的属性列表
+ */
+ properties: {
+
+ },
+ data: {
+ show: false,
+ showPhone: false,
+ info: "",
+ phones: []
+ },
+ lifetimes: {
+ attached() {
+ console.log('组件已挂载到页面');
+ this.initData();
+ }
+ },
+ /**
+ * 组件的初始数据
+ */
+
+
+
+ /**
+ * 组件的方法列表
+ */
+ methods: {
+ initData () {
+ commonApi._post("kefu_tips/getTips", {platform:'miniapp'}).then(res=>{
+ if (res.data) {
+ this.setData({
+ showPhone: res.data.is_online,
+ info: res.data.content,
+ phones: res.data.emergency_phones
+ })
+ }
+ })
+ },
+
+ hideModal: function () {
+ this.setData({
+ show: false,
+ })
+ this.triggerEvent('hideModal');
+ },
+ phoneCall:function(e){
+ let phone = e.currentTarget.dataset.phone;
+ wx.makePhoneCall({
+ phoneNumber: phone,
+ })
+ },
+ }
+})
\ No newline at end of file
diff --git a/pages/component/kefu/index.json b/pages/component/kefu/index.json
new file mode 100644
index 0000000..e8cfaaf
--- /dev/null
+++ b/pages/component/kefu/index.json
@@ -0,0 +1,4 @@
+{
+ "component": true,
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/component/kefu/index.wxml b/pages/component/kefu/index.wxml
new file mode 100644
index 0000000..5cb1074
--- /dev/null
+++ b/pages/component/kefu/index.wxml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item}}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/component/kefu/index.wxss b/pages/component/kefu/index.wxss
new file mode 100644
index 0000000..493b418
--- /dev/null
+++ b/pages/component/kefu/index.wxss
@@ -0,0 +1,88 @@
+.bg{
+ width: 100%;
+ height: 100%;
+ position: fixed;
+ top: 0;
+ left: 0;
+ overflow: hidden;
+ box-sizing: border-box;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+.modal-mask {
+ width: 100%;
+ height: 100%;
+ position: fixed;
+ top: 0;
+ left: 0;
+ background: #000;
+ opacity: 0.5;
+ overflow: hidden;
+ z-index: 200;
+ color: #fff;
+}
+
+.modal-dialog {
+ width: 540rpx;
+ overflow: hidden;
+ position: relative;
+ z-index: 9999;
+ background: #FFFFFF;
+ border-radius: 20rpx;
+}
+.modal-content{
+ padding: 38rpx 26rpx;
+}
+
+
+.modal-footer {
+ display: flex;
+ flex-direction: row;
+ height: 112rpx;
+ border-top: 1px solid #dedede;
+
+
+ color: #000000;
+ padding: 30rpx 0;
+ box-sizing: border-box;
+}
+
+
+
+
+.btn-confirms {
+ flex: 1;
+ text-align: center;
+ font-weight: normal !important;
+ box-sizing: border-box;
+ width: 50% !important;
+ padding: 0 !important;
+ line-height: 50rpx;
+ background: none;
+ color: #0C898F;
+ font-weight: 500;
+ font-size: 32rpx;
+}
+.btn-confirms.two {
+ color: #000000;
+}
+
+.icon-close{
+ position: absolute;
+ width: 27.33rpx;
+ height: 27.33rpx;
+ top: 39rpx;
+ right: 26rpx;
+}
+.icon-close image{
+ width: 100%;
+ height: 100%;
+}
+.phone-container{
+ text-align: center;
+ font-weight: 500;
+font-size: 27rpx;
+color: #0C898F;
+line-height: 1.8;
+}
\ No newline at end of file
diff --git a/pages/component/proRec/proRec.js b/pages/component/proRec/proRec.js
index e76f3c7..cb14dc9 100644
--- a/pages/component/proRec/proRec.js
+++ b/pages/component/proRec/proRec.js
@@ -113,10 +113,10 @@ Component({
if (item.type == 'travels') {
// 游记做特殊处理 其他都按照原来的来
wx.navigateTo({
- url: '/pages/info/strategyInfo/index?id=' + item.s_id,
+ url: '/pages/info/strategyInfo/index?id=' + item.s_id+"&sourceFrom=recommend",
})
} else {
- util.gotoDetail(item);
+ util.gotoDetail(item, false, "&sourceFrom=recommend");
}
},
},
diff --git a/pages/index/index.js b/pages/index/index.js
index 4ac7827..f15e290 100644
--- a/pages/index/index.js
+++ b/pages/index/index.js
@@ -7,6 +7,7 @@ import commonApi from "../../utils/https/common"
import userApi from "../../utils/https/user"
import util from "../../utils/util"
import https from "../../utils/https.js"
+import { unix } from "dayjs"
Page({
data: {
@@ -403,7 +404,10 @@ Page({
repurchaseList: [],
canGetrepurchase: true,
- urltopage: {},
+ urltopage: {},
+
+ cityIndex: 0,
+ scrollItem: "scrollItem-0",
// ---------------2025-5-26改版没用到的------------------
fourProduct: [],
@@ -592,9 +596,12 @@ Page({
getShowMore () {
commonApi._post("multimedia/detail", {id: 2462}).then(res => {
- this.setData({
- showMore: res.data.company_name ==1?true:false
- })
+ if (res && res.data) {
+ this.setData({
+ showMore: res.data.company_name ==1?true:false
+ })
+ }
+
})
},
@@ -796,8 +803,7 @@ Page({
url: "/pages/pbService/web/index?weburl=" + encodeURIComponent(item.weburl)
})
return
- }
-
+ }
},
// 后台配置数据跳转
mainNavClick:function (e) {
@@ -860,6 +866,16 @@ Page({
})
return
}
+ if (item.jump_type == "text") {
+ setTimeout(() => {
+ wx.showToast({
+ title: item.text,
+ icon:'none',
+ duration: 2000,
+ })
+ }, 200);
+
+ }
},
// 其他平台配置数据的跳转
@@ -926,7 +942,10 @@ Page({
tag_id: 85,offset: 0,limit: 5,
}).then(res=>{
let resData = res.data.list || []
- resData.forEach(v=>{ v.pagePoint = {classification: 'hot', key_number: v.id} })
+ resData.forEach(v=>{
+ v.pagePoint = {classification: 'hot', key_number: v.id};
+ v.display_tags_arr = v.display_tags?v.display_tags.split(",") : []
+ })
this.setData({ list: resData})
})
},
@@ -1004,7 +1023,22 @@ Page({
this.setData({
videoPlay: true
})
- },
+ },
+
+ changeSimpleVal (e) {
+ let keyname = e.currentTarget.dataset.keyname;
+ let val = e.currentTarget.dataset.val;
+ let param = {}
+ param[keyname] = val
+ if (keyname == "cityIndex") {
+ let scrollIndex = val-2
+ if (scrollIndex<0) { scrollIndex = 0 }
+ param.scrollItem = "scrollItem-"+scrollIndex
+ }
+
+ this.setData(param)
+ console.log(this.data)
+ },
onShow: function() {
this.pagePoint({event: 'home_view'}, 1)
@@ -1013,7 +1047,17 @@ Page({
wx.showTabBar()
}
util.clearGlobalPagePoint()
- },
+
+ if (app.globalData.innerAudioContext) {
+ app.globalData.innerAudioContext.stop()
+ }
+ },
+
+ goAIUrl () {
+ wx.switchTab({
+ url: '/pages/pbService/aiHelpYou/index',
+ })
+ },
/**
* 用户点击右上角分享
diff --git a/pages/index/index.wxml b/pages/index/index.wxml
index 7cd195b..c69fb11 100644
--- a/pages/index/index.wxml
+++ b/pages/index/index.wxml
@@ -1,22 +1,7 @@
-
-
-
+
-
-
-
-
-
-
-
-
-
-
+
@@ -26,10 +11,24 @@
src="https://static.ticket.sz-trip.com/uploads/20250714/1f3ac6a7144c6e6849edad89289061cc.png" mode="aspectFill">
-
+
搜索您想要的
+
+
+
+
+
+
+
+
+
+
@@ -40,16 +39,8 @@
-
-
-
+
+
+
+
+ {{item.menu_name}}
+
+
+
+
+
-
@@ -85,28 +84,36 @@
-
+
+
+
+
+
-
-
-
-
+
+
+
-
+
-
+
{{item.title}}
+
+ {{tag}}
+
¥{{item.price/100}}起
@@ -118,7 +125,7 @@
-
+
@@ -134,7 +141,7 @@
-
@@ -149,10 +156,30 @@
-->
+
+
+
+
+
+ {{list[0].subtitle}}
+
+
+
+
+
+ {{list[1].subtitle}}
+
+
+
+ {{list[2].subtitle}}
+
+
+
+
-
@@ -169,14 +196,14 @@
-
+
更多 >
-
+
@@ -185,10 +212,10 @@
-
+
-
+
@@ -206,7 +233,7 @@
-
+
@@ -227,17 +254,31 @@
-
-
+
+
-
-
+
+
+
+
+
+
+
+
+ {{item.menu_name}}
+
+
+
-
+
@@ -249,10 +290,10 @@
-
+
-
+
@@ -286,7 +327,7 @@
-
+
@@ -315,13 +356,16 @@
+
+
+
-
+
-
-
+
@@ -347,7 +391,7 @@
-
@@ -361,7 +405,7 @@
-
diff --git a/pages/index/index.wxss b/pages/index/index.wxss
index 8f9ea1c..0e33f6c 100644
--- a/pages/index/index.wxss
+++ b/pages/index/index.wxss
@@ -2,18 +2,28 @@
/* 元旦修改 */
.bg{
- height: 100vh;
+ min-height: 100vh;
overflow-x: hidden;
overflow-y: auto;
background-size: 100% 100%;
background-repeat: no-repeat;
+ padding-bottom: 220rpx;
/* background-color:#E8F9FA; */
+
}
-.swiper,.swiper image {
- width: 100%;
- display: block;
- height: 908rpx;
+.swiper{
+ display: block;
+ width: 697rpx;
+ height: 340rpx;
+ margin: 0 auto;
}
+.swiper image {
+ display: block;
+ width: 100%;
+ height: 100%;
+ border-radius: 20rpx;
+}
+
.top-box {
display: flex;
@@ -45,7 +55,7 @@
font-size: 25rpx;
padding: 2rpx 5rpx;
box-sizing: border-box;
- background: rgba(255, 255, 255, 0.6);
+ background: #FFEEAD;
}
.search-box .iconfont {
font-size: 30rpx;
@@ -55,21 +65,17 @@
}
.banner-main{
- position: absolute;
- z-index: 3;
+
width: 100%;
- left: 0;
- bottom: 0rpx;
- right: 0;
display: flex;
justify-content: space-between;
- padding: 0rpx 20rpx 30rpx;
+ padding: 26rpx 20rpx 30rpx;
box-sizing: border-box;
/* background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.2)) */
}
.banner-main image{
- width: 173.33rpx;
- height: 173.33rpx;
+ width: 156rpx;
+ height: 156rpx;
}
.swiper .wx-swiper-dots.wx-swiper-dots-horizontal {
@@ -88,19 +94,22 @@
/* padding-top: 63rpx; */
}
+
.top-icons {
display: flex;
- padding:0 20rpx;
- align-items: center;
+ flex-wrap: wrap;
+ border-radius: 20rpx;
+ background: #FFEEAD;
+ padding-top: 13rpx;
}
.top-icon-item {
- margin-bottom: 20rpx;
+ margin-bottom: 37rpx;
line-height: 37rpx;
font-size: 25rpx;
color: #000;
text-align: center;
flex-shrink: 0;
- width: 20%;
+ width: 25%;
display: flex;
align-items: center;
justify-content: center;
@@ -110,8 +119,8 @@
margin-right: 0;
}
.top-icon-item image {
- width: 93.33rpx;
- height: 93.33rpx;
+ width: 66.33rpx;
+ height: 66.33rpx;
display: block;
transition: all 0.2s;
/* margin: 0 auto; */
@@ -131,7 +140,7 @@
margin: 0 25rpx;
}
.common-header-img{
- height: 106.67rpx;
+ width: 220.67rpx;
}
.small-swiper {
@@ -156,7 +165,7 @@
.sale-road-boxes {
display: flex;
justify-content: space-between;
- margin-top: 40rpx;
+ margin-top: 48rpx;
position: relative;
align-items: flex-end;
}
@@ -185,6 +194,7 @@
flex-direction: column;
justify-content: space-between;
}
+
.season-hot{
display: flex;
}
@@ -218,6 +228,23 @@
height: 100%;
border-radius: 0;
}
+ .season-hot .tags{
+ width: 100%;
+ display: flex;
+ flex-wrap: nowrap;
+ overflow-x: hidden;
+ }
+ .season-hot .tag{
+ height: 27rpx;
+ border: 1px solid #FF8623;
+ line-height: 27rpx;
+ padding: 0 10rpx;
+ font-weight: 500;
+ font-size: 20rpx;
+ color: #FF8623;
+ margin-right: 8rpx;
+ flex-shrink: 0;
+ }
.xsth-more {
margin-top: 19.33rpx;
@@ -398,9 +425,8 @@
flex-wrap: wrap;
}
.new-pic {
- width: 340rpx;
- height: 146.67rpx;
- margin-bottom: 20rpx;
+ width: 157.33rpx;
+ height: 226.67rpx;
}
.title-more {
@@ -472,13 +498,13 @@
justify-content: space-between;
}
.hot-list-item {
- width: 337rpx;
+ width: 340rpx;
}
.hot-item {
background: white;
/* box-shadow: -1rpx 1rpx 16rpx 0px rgba(6, 0, 1, 0.1); */
border-radius: 15rpx;
- margin-bottom: 15rpx;
+ margin-bottom: 20rpx;
height: 498rpx;
}
.hot-item image:nth-child(1) {
@@ -761,14 +787,14 @@
.ggfw-list {
display: grid;
- grid-template-columns: repeat(4, 166rpx);
+ grid-template-columns: repeat(4, 157.33rpx);
row-gap: 23rpx;
justify-content: space-between;
}
.ggfw-list .ggfw {
- width: 166rpx;
- height: 133rpx;
+ width: 157.33rpx;
+ height: 130.67rpx;
/* margin-bottom: 23rpx; */
}
.ggfw image{
@@ -777,26 +803,95 @@
}
.six-box-new {
- width: 697rpx;
+ width: 100%;
/* background: linear-gradient(-90deg, #FF9B6A, #D02E25); */
border-radius: 20rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- overflow: scroll;
- margin: 32rpx 0 53.33rpx;
+ margin: -40rpx 0 53.33rpx;
z-index: 1;
position: relative;
}
-.six-box-new image {
- width: 333.33rpx;
- height: 200rpx !important;
- /* background: #FFE7C0; */
- border-radius: 20rpx;
- flex-shrink: 0;
- margin-right: 13.33rpx;
+.six-box-new .big-image-box {
+ width: 100%;
+ height: 346rpx;
+ position: relative;
+
+}
+.six-box-new .big-image-box image{
+ width: 100%;
+ height: 100%;
+ border-radius: 20rpx 20rpx 0 0;
+}
+.six-box-new .big-image-box .text-container{
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ font-weight: 500;
+ font-size: 24rpx;
+ color: #FFFFFF;
+ display: flex;
+ flex-direction: column;
+ justify-content: flex-end;
+ padding: 16rpx;
+ box-sizing: border-box;
+}
+.six-box-new .small-image-box{
+ width: 100%;
+ padding: 10rpx 16rpx;
+ overflow-x: auto;
+ background: white;
+ display: flex;
+ flex-wrap: nowrap;
+ border-radius: 0 0 20rpx 20rpx;
+ box-sizing: border-box;
+ height: 120rpx;
}
+.six-box-new .small-image-box .small-image-item{
+ width: 120rpx;
+ height: 100rpx;
+ background: #FF8623;
+ border-radius: 13rpx;
+ flex-shrink: 0;
+ margin-right: 27rpx;
+ position: relative;
+ box-sizing: border-box;
+ overflow: hidden;
+}
+.six-box-new .small-image-box .small-image-item.active{
+ border: 2px solid #000;
+}
+.six-box-new .small-image-box .small-image-item:last-of-type{
+ margin-right: 0rpx;
+}
+.six-box-new .small-image-box image{
+ width: 100%;
+ height: 100%;
+ border-radius: 13rpx;
+}
+.six-box-new .small-image-box .small-image-item .text-box{
+ width: 100%;
+ height: 40rpx;
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ background: #FFC543;
+ font-weight: 500;
+ font-size: 23rpx;
+ color: #000000;
+ text-align: center;
+ line-height: 40rpx;
+ border-radius: 0 0 13rpx 13rpx;
+}
+.six-box-new .small-image-box .small-image-item.active .text-box{
+ background: #FF8623;
+ color: #FFFFFF;
+}
+
/* 春节金刚区字体颜色样式更换 */
.top-icon-text {
color: #111111;
@@ -944,4 +1039,67 @@
margin-top: 20rpx;
margin-left: -6rpx;
margin-right: 0rpx;
+ }
+
+ .ai-fix{
+ position: fixed;
+ width: 150.33rpx;
+ height: 200rpx;
+ bottom: 30rpx;
+ right: 24rpx;
+ z-index: 100;
+ }
+ .hot-prod-new{
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ width: 100%;
+ }
+ .hot-prod-left{
+ width: 400rpx;
+ height: 350rpx;
+ position: relative;
+ }
+ .hot-prod-left .prod-img{
+ width: 100%;
+ height: 100%;
+ border-radius: 20rpx;
+ }
+ .hot-prod-left .xpth-item-title{
+ position: absolute;
+ width: 100%;
+ font-weight: 500;
+ font-size: 28rpx;
+ color: #FFFFFF;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ top: 0;
+ height: 100%;
+ width: 100%;
+ background: linear-gradient(to bottom, rgba(0,0,0,0),rgba(0,0,0,0.5)) ;
+ display: flex;
+ border-radius: 20rpx;
+ padding: 0 8rpx 6rpx;
+ box-sizing: border-box;
+ overflow: hidden;
+ align-items: flex-end;
+ }
+
+ .hot-prod-right{
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ height: 350rpx;
+ align-items: flex-end;
+ flex: 1;
+ width: 100rpx;
+ padding-left: 14rpx;
+ }
+
+ .hot-prod-right .hot-right-item{
+
+ height: 167rpx;
+ width: 100%;
+
}
\ No newline at end of file
diff --git a/pages/info/foodProductInfo/index.js b/pages/info/foodProductInfo/index.js
index d1af35f..105a45f 100644
--- a/pages/info/foodProductInfo/index.js
+++ b/pages/info/foodProductInfo/index.js
@@ -1,158 +1,907 @@
-// pages/info/sceneProductInfo/index.js
+// pages/info/roadInfo/index.js
+let device = wx.getSystemInfoSync();
+const ratio = device.windowWidth / 750;
import commonApi from "../../../utils/https/common"
+import QRCode from '../../../utils/weapp-qrcode.js'
+import util from '../../../utils/util'
let app = getApp()
Page({
- /**
- * 页面的初始数据
- */
- data: {
- info:{},
- number:['一','二','三','四','五','六','七','八','九','十','十一','十二'],
- skuIndex:0,
- bookingInfo:null,
- skuName:"",
- retailId:''
- },
-
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad: function (options) {
- let api = commonApi._post
- if(wx.getStorageSync("jstrip_token")){
- api = commonApi.user_post
- }
- if(options.retailId){
- this.setData({
- retailId:options.retailId
- })
- }
- api("product/get_product_detail",{
- id:options.id
- }).then(res=>{
- let tags = res.data.display_tags?res.data.display_tags.split(","):[];
- res.data.tags = tags.splice(0,2);
- // 如果带有指定skuid的话 那么取指定的sku展示
- if(options.skuid){
- for(let i = 0;i{
- item.display_tags = (item.display_tags?item.display_tags.split(','):[]).splice(0,2)
- })
- // res.data.listimg = res.data.listimg?res.data.listimg.split(","):[];
- this.setData({
- info:res.data
- })
- this.BroswerRecord()
- console.log(res)
- })
- },
- BroswerRecord:function(){
- setTimeout(()=>{
- if(app.globalData.uuid){
- commonApi._post('browse/browse_record',{
- type:"goods",
- title:this.data.info.title,
- drive:"mini",
- source_id:this.data.info.id,
- url:"/pages/info/foodProductInfo/index?id="+this.data.info.id,
- uuid:app.globalData.uuid
- }).then(res=>{
- })
- }
- else {
- this.BroswerRecord();
- }
- },500)
- },
- changeSku:function(e){
- this.setData({
- skuIndex:e.currentTarget.dataset.index
- })
- },
- showNotice:function(e){
- let sku = e.currentTarget.dataset.sku;
- this.setData({
- skuName:sku.sku_name,
- bookingInfo:sku.sku_model
- })
- },
- closeMask:function(){
- this.setData({
- skuName:"",
- bookingInfo:null
- })
- },
- gotoLocation:function(){
- let info = this.data.info;
- if(info && info.lat && info.lon){
- wx.openLocation({
- latitude: Number(info.lat),
- longitude: Number(info.lon)
- })
- }
- },
- order:function(e){
- app.globalData.couponInfo = null;
- app.globalData.retailId = this.data.retailId;
- app.globalData.product = e.currentTarget.dataset;
- wx.navigateTo({
- url: '/pages/order/food/index',
- })
- },
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady: function () {
+ if (options.retailId) {
+ this.setData({
+ retailId: options.retailId
+ })
+ }
+ commonApi._post("product/get_product_detail", {
+ id: options.id
+ }).then(res => {
+ if (res.code == 0) {
+ wx.showToast({
+ title: res.msg,
+ icon:'none'
+ })
+ setTimeout(() => {
+ wx.navigateBack()
+ }, 1500);
+ return
+ }
+ res.data.display_tags = (res.data.display_tags ? res.data.display_tags.split(",") : []).splice(0, 2);
+ if (options.skuid) {
+ let sku = res.data.sku.find(item => item.id == options.skuid);
+ res.data.sku = [sku];
+ }
+ res.data.flag = res.data.sku.find(item => item.flag == 'on') ? res.data.flag : 0
- },
+ let resData = res.data
+ try {
+ if (resData.product_data && resData.is_package==1) {
+ for(let key in resData.product_data) {
+ resData.product_data[key] = JSON.parse(resData.product_data[key])
+ }
+ // if (resData.product_data["住"]) {
+ // resData.product_data["住"] = JSON.parse(resData.product_data["住"])
+ // }
+ // if (resData.product_data["游"]) {
+ // resData.product_data["游"] = JSON.parse(resData.product_data["游"])
+ // }
+ // if (resData.product_data["食"]) {
+ // resData.product_data["食"] = JSON.parse(resData.product_data["食"])
+ // }
+ }
- /**
- * 生命周期函数--监听页面显示
- */
- onShow: function () {
+ resData.shipment_tag_arr = []
+ if (resData.shipment_tag) {
+ resData.shipment_tag_arr = resData.shipment_tag.split(',')
+ resData.shipment_tag_str = resData.shipment_tag_arr.join(' | ')
+ }
+ if (resData.service_tag) {
+ resData.service_tag_str = resData.service_tag.split(',').join(' | ')
+ }
+ if (resData.parameter_tag) {
+ resData.parameter_tag_str = resData.parameter_tag.split(',').join(' | ')
+ }
- },
+ if (resData.supplier_headimg) {
+ resData.supplier_headimg = that.showImg(resData.supplier_headimg)
+ }
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide: function () {
+ } catch(e) {}
- },
+ let swiperRange = this.data.swiperRange;
+ swiperRange.video = resData.videourl? { min: 0, max: 0 } : { min: -1, max: -1 }
+ swiperRange.picture = {min:swiperRange.video.max+1, max:swiperRange.video.max+1+resData.listimg.length-1}
+ swiperRange.sku = {min:swiperRange.picture.max+1,max:swiperRange.picture.max+1+resData.sku.length-1}
+ console.log(swiperRange)
+ this.setData({
+ info: resData,
+ supplierId: res.data.scene_id,
+ iShop: res.data.scene_id ? true : false,
+ swiperRange: swiperRange,
+ })
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload: function () {
+ // 获取补贴
+ // commonApi.user_post("product/getProductAllowancePrice", {
+ // product_code: res.data.product_code
+ // }).then(resTwo => {
+ // if (resTwo && resTwo.code == 1) {
+ // this.setData({
+ // allowance_data: resTwo.data
+ // })
+ // }
+ // })
+ this.BroswerRecord()
+ })
+ // 获取评价列表
+ commonApi._post("product/product_comment_list", {
+ product_id: options.id,
+ offset: 0,
+ limit: 3
+ }).then(res => {
+ res.data.list.map(item => {
+ item.rate = Number(item.rate)
+ item.create_time = item.create_time.substring(0, 10)
- },
+ })
+ this.setData({
+ comment: res.data.list.splice(0, 5),
+ commentTotal: res.data.total
+ })
+ let arr = this.data.comment
+ arr.map((item) => {
+ if (item.img_list) {
+ item.img_list = item.img_list.split(',')
+ } else {
+ item.img_list = []
+ }
+ })
+ this.setData({
+ comment: arr
+ })
+ })
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh: function () {
+ commonApi._post("search/product_recommend", {
+ offset: 0,
+ limit: 4,
+ rand: true,
+ type: 'post',
+ product_ids:options.id,
+ }).then(res => {
+ try {
+ this.setData({
+ tjList: res.data.list.slice(0,4)
+ })
+ } catch (error) {
+ console.log(error);
+ }
+ })
+ },
- },
+ showImg (img) {
+ if (!img) { return img }
+ if (img.indexOf('https://') != -1 || img.indexOf('http://') != -1) {
+ return img;
+ } else {
+ // return "https://test.api.cloud.sz-trip.com"+img
+ return "https://static.ticket.sz-trip.com" + img;
+ }
+ },
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom: function () {
+ gotolocation: function () {
+ let info = this.data.info;
+ wx.openLocation({
+ latitude: Number(info.scene_lat),
+ longitude: Number(info.scene_lon),
+ name:info.scene_name,
+ address:info.scene_address
+ })
+ },
- },
+ callPhone :function () {
+ wx.makePhoneCall({
+ phoneNumber: this.data.info.scene_tel,
+ })
+ },
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage: function () {
+ changeAllowance: function () {
+ this.setData({
+ showAllowance: !this.data.showAllowance
+ })
+ },
+ BroswerRecord: function () {
+ setTimeout(() => {
+ if (app.globalData.uuid) {
+ commonApi._post('browse/browse_record', {
+ type: "goods",
+ title: this.data.info.title,
+ drive: "mini",
+ source_id: this.data.info.id,
+ url: "/pages/info/postProductInfo/index?id=" + this.data.info.id,
+ uuid: app.globalData.uuid
+ }).then(res => {})
+ } else {
+ this.BroswerRecord();
+ }
+ }, 500)
+ },
+ like: function () {
+ let id = this.data.id,
+ isLike = this.data.isLike;
+ commonApi.user_post("product/" + (isLike == 1 ? "product_cancel_collection" : "product_collection"), {
+ product_id: id
+ }).then(res => {
+ if (res.code == 1) {
+ this.setData({
+ isLike: isLike == 1 ? 0 : 1
+ })
+ }
+ })
+ },
+ changeMenu: function (e) {
+ let index = e.currentTarget.dataset.index,
+ that = this;
+ const query = wx.createSelectorQuery(); //创建节点查询器
+ query.select("#box" + index).boundingClientRect() //选择toViewid获取位置信息
+ query.selectViewport().scrollOffset() //获取页面查询位置的
+ query.exec(function (res) {
+ let scrollTop = res[0].top + res[1].scrollTop - 110 * ratio - that.data.top;
+ wx.pageScrollTo({
+ scrollTop: scrollTop + 4,
+ duration: 0
+ })
+ that.setData({
+ type: index
+ })
+ })
+ },
+ // onPageScroll: function (e) {
+ // let that = this,
+ // height = this.data.top;
+ // let topHeight = height;
+ // wx.createSelectorQuery().select('#menus').boundingClientRect(function (rect) {
+ // if (rect.top <= topHeight) {
+ // // 此时应该把menus固定在顶部
+ // that.setData({
+ // fixed: true
+ // })
+ // } else {
+ // that.setData({
+ // fixed: false
+ // })
+ // }
+ // // 滚动时判断滚动到哪个部分了
+ // const query = wx.createSelectorQuery(); //创建节点查询器
+ // query.select("#box1").boundingClientRect() //选择toViewid获取位置信息
+ // query.select("#box2").boundingClientRect() //选择toViewid获取位置信息
+ // query.select("#box3").boundingClientRect() //选择toViewid获取位置信息
+ // query.select("#box4").boundingClientRect() //选择toViewid获取位置信息
+ // let minHeight = that.data.fixed ? (110 * ratio + height) : topHeight;
+ // query.exec(function (res) {
+ // if (res[3].top < minHeight) {
+ // that.setData({
+ // type: 4
+ // })
+ // } else if (res[2].top < minHeight) {
+ // that.setData({
+ // type: 3
+ // })
+ // }else if (res[1].top < minHeight) {
+ // that.setData({
+ // type: 2
+ // })
+ // } else {
+ // that.setData({
+ // type: 1
+ // })
+ // }
+ // })
+ // }).exec()
- }
+ // },
+ showCart: function () {
+ commonApi.user_post('wx/get_user_keep', {
+ jumpurl: '/pages/info/postProductInfo/index?id=' + this.data.id,
+ title: this.data.info.title,
+ type: 'mini'
+ }).then(res => {
+ if (res.data.subscribe == 0) {
+ this.setData({
+ wxqrcode: res.data.qrcode,
+ showQrCode: true
+ })
+ } else {
+ if (this.data.info.sku.length == 0) {
+ wx.showToast({
+ title: '该产品未设置规格,不能加购',
+ icon: 'none'
+ })
+ return;
+ }
+ this.setData({
+ skuFlag: "cart"
+ })
+ let that = this
+ wx.createSelectorQuery().select('#skuImg').boundingClientRect(function (res) {
+ console.log(res)
+ that.setData({
+ cartImgInfo: 'top:' + res.top + 'px;left:' + res.left + 'px;'
+ })
+ }).exec()
+ }
+ })
+ },
+ hideSku: function () {
+ this.setData({
+ skuFlag: null,
+ cartImgInfo: null
+ })
+ },
+ minus: function () {
+ if (this.data.producNum == 1) return;
+ this.setData({
+ producNum: this.data.producNum - 1
+ })
+ },
+ add: function () {
+ this.setData({
+ producNum: this.data.producNum + 1
+ })
+ },
+ selectSku: function (e) {
+ let index = e.currentTarget.dataset.index;
+ this.setData({
+ skuIndex: index,
+ swiperCurrent: index+this.data.swiperRange.picture.max+1
+ })
+ },
+ showOrder: function () {
+ commonApi.user_post('wx/get_user_keep', {
+ jumpurl: '/pages/info/postProductInfo/index?id=' + this.data.id,
+ title: this.data.info.title,
+ type: 'mini'
+ }).then(res => {
+ if (res.data.subscribe == 0) {
+ this.setData({
+ wxqrcode: res.data.qrcode,
+ showQrCode: true
+ })
+ } else {
+ if (this.data.info.sku.length == 0) {
+ wx.showToast({
+ title: '该产品未设置规格,不能购买',
+ icon: 'none'
+ })
+ return;
+ }
+ let swiperCurrent = this.data.swiperCurrent;
+ let skuIndex = swiperCurrent - this.data.swiperRange.sku.min
+ console.log(swiperCurrent, skuIndex)
+ if (skuIndex<0) {skuIndex=0}
+ this.setData({
+ skuFlag: 'order',
+ skuIndex: skuIndex,
+ swiperCurrent: skuIndex+this.data.swiperRange.picture.max+1
+ })
+ }
+ })
+ },
+ order: function (e) {
+ let buy_type = e.currentTarget.dataset.type
+ app.globalData.postProduct = []
+ app.globalData.list = []
+ commonApi.user_post("/product/checkStock", {
+ sku_id: this.data.info.sku[this.data.skuIndex].id,
+ }).then(res => {
+ if (res && res.code != 1) {
+ return;
+ } else {
+ if (buy_type == 'order') {
+ // util.pagePoint({
+ // event: 'product_order',
+ // param: {
+ // id: this.data.info.id,
+ // type: this.data.info.type
+ // }
+ // }, 1)
+ // wx.setStorageSync('login_from', 'product_order_login')
+ // wx.setStorageSync('order_from', 'product_order_submit')
+ app.globalData.couponInfo = null;
+ // 购买
+ let product = [{
+ product: {...this.data.info,ZTPoint:this.data.ZTPoint},
+ sku: this.data.info.sku[this.data.skuIndex],
+ productNum: this.data.producNum
+ }];
+ app.globalData.retailId = this.data.retailId;
+ app.globalData.listName = null
+ app.globalData.product = product[0];
+ wx.navigateTo({
+ url: '/pages/order/food/index',
+ })
+ } else {
+ let tag_id = this.data.info.tag_id,type = ''
+ if (tag_id.includes(20) || tag_id.includes(19)) { //文创
+ type = '1'
+ }else if (tag_id.includes(5)) { //非遗
+ type = '2'
+ }else {
+ type = ''
+ }
+ commonApi.user_post("cart/add_sku", {
+ sku_id: this.data.info.sku[this.data.skuIndex].id,
+ num: this.data.producNum,
+ type:type
+ }).then(res => {
+ if (res.code == 1) {
+ commonApi.user_post('cart/get_list', {}).then(res => {
+ this.setData({
+ cartCount: res.data.length
+ })
+ })
+ // 加动效
+ this.setData({
+ skuFlag: null,
+ aniSkuIndex: this.data.skuIndex,
+ cartImgInfo: null
+ })
+ setTimeout(() => {
+ this.setData({
+ aniSkuIndex: -1
+ })
+ wx.showModal({
+ title: "提示",
+ content: "去购物车结算?",
+ success: function (res) {
+ if (res.confirm) {
+ wx.navigateTo({
+ url: '/pages/user/cartlist/list',
+ })
+ }
+ }
+ })
+ }, 650)
+ }
+ })
+ }
+ }
+ })
+
+ },
+ // 分享
+ share: function () {
+ if (!wx.getStorageSync("jstrip_token")) {
+ util.pagePoint({
+ event: 'product_share_login',
+ type: this.data.info.type,
+ id: this.data.info.id
+ }, 1)
+ commonApi.user_post("user/getMyInfo", {}).then(res => {
+
+ })
+ return;
+ }
+ if (!this.data.shareImg) {
+ wx.showToast({
+ title: '图片生成中,稍后再试',
+ icon: 'none'
+ })
+ return;
+ }
+ this.setData({
+ showShareFlag: !this.data.showShareFlag
+ })
+ },
+ // 保存
+ save() {
+ let url = this.data.shareImg,
+ that = this;
+ wx.authorize({
+ /* 这个就是保存相册的 */
+ scope: 'scope.writePhotosAlbum',
+ success() {
+ wx.saveImageToPhotosAlbum({
+ filePath: url,
+ success(res) {
+ wx.showToast({
+ title: '保存成功',
+ icon: "success"
+ })
+ that.setData({
+ showShareFlag: !this.data.showShareFlag
+ })
+ util.pagePoint({
+ event: 'product_share_save',
+ type: that.data.info.type,
+ id: that.data.info.id
+ }, 1)
+ },
+ fail(res) {
+ wx.showToast({
+ title: '保存失败',
+ icon: 'none'
+ })
+ }
+ })
+ },
+ complete(res) {
+ console.log(res);
+ /* 这里判断一下如果没有授权重新打开设置选项 */
+ wx.getSetting({
+ success(res) {
+ if (!res.authSetting['scope.writePhotosAlbum']) {
+ /* 打开设置的方法 */
+ // opensit();
+ wx.showToast({
+ title: '请打开权限后再试',
+ icon: 'none'
+ })
+ }
+ }
+ });
+ }
+ });
+
+ },
+ pagePoint: function (e) {
+ util.pagePoint(e)
+ },
+ // 绘制海报
+ drawImg: function () {
+ var that = this,
+ userinfo = wx.getStorageSync('jstrip_userInfo');
+ if (!userinfo) {
+ // 去登录
+ return false;
+ }
+ const ctx = wx.createCanvasContext('imageCanvas');
+ // const device = wx.getSystemInfoSync();
+ // const ratio = device.screenWidth / 750;
+
+ // 先获取到图片信息
+ let promise2 = new Promise(function (resolve, reject) {
+ wx.getImageInfo({
+ src: that.data.info.headimg,
+ success: function (res) {
+ resolve(res);
+ },
+ fail: function (res) {
+ reject(res);
+ }
+ })
+ })
+ let promise3 = new Promise(function (resolve, reject) {
+ let userid = wx.getStorageSync('jstrip_userid')
+ new QRCode('myQrcode', {
+ text: 'https://m.cloud.sz-trip.com/MailMerchandiseDetail?id=' + that.data.info.id + '&sharedUserId=' + userid + '&channel=-1',
+ width: 500,
+ height: 500,
+ padding: 12, // 生成二维码四周自动留边宽度,不传入默认为0
+ correctLevel: QRCode.CorrectLevel.H, // 二维码可辨识度
+ callback: (res) => {
+ resolve(res);
+ }
+ })
+ })
+ //成功得到图片信息后,开始绘图
+ Promise.all([promise2, promise3]).then(imgs => {
+ ctx.save();
+ ctx.beginPath(); //开始绘制
+ that.handleBorderRect(ctx, 0, 0, 551 * ratio, 407 * ratio, 25 * ratio, '#ccc')
+ ctx.clip(); //画好了圆 剪切 原始画布中剪切任意形状和尺寸。一旦剪切了某个区域,则所有之后的绘图都会被限制在被剪切的区域内 这也是我们要save上下文的原因
+ ctx.drawImage(imgs[0].path, 0, 0, 551 * ratio, 407 * ratio);
+ ctx.restore();
+ ctx.save();
+ that.handleBorderRect2(ctx, 0, 407 * ratio, 551 * ratio, 236 * ratio, 25 * ratio, '#fff')
+ ctx.restore();
+ // 绘制二维码
+ ctx.drawImage(imgs[1].path, 373 * ratio, 495 * ratio, 137 * ratio, 137 * ratio);
+ // 开始文字绘制
+ ctx.setFillStyle("#000");
+ ctx.setFontSize(30 * ratio); //字大小
+ ctx.setTextAlign('left'); //是否居中显示,参考点画布中线
+ that.drawText(ctx, that.data.info.title, 25 * ratio, 450 * ratio, 480 * ratio, ratio);
+ // 售价
+ ctx.setFillStyle("#D62828");
+ ctx.setFontSize(40 * ratio); //字大小
+ ctx.setTextAlign('left'); //是否居中显示,参考点画布中线
+ let price = "¥" + (that.data.info.price / 100);
+ let width = ctx.measureText(price).width;
+ ctx.fillText(price, 25 * ratio, 620 * ratio);
+ // 副标题
+ ctx.setFillStyle("#999999");
+ ctx.setFontSize(28 * ratio); //字大小
+ ctx.setTextAlign('left'); //是否居中显示,参考点画布中线
+ let subtitle = that.data.info.subtitle;
+ if (that.data.info.subtitle.length > 10) {
+ subtitle = that.data.info.subtitle.substr(0, 10) + '...'
+ }
+ ctx.fillText(subtitle, 25 * ratio, 540 * ratio);
+ // ctx.draw();
+ // 划线价
+ ctx.setFillStyle("#999999");
+ ctx.setFontSize(32 * ratio); //字大小
+ ctx.setTextAlign('left'); //是否居中显示,参考点画布中线
+ let market_price = "¥" + (that.data.info.market_price / 100)
+ ctx.fillText(market_price, 40 * ratio + width, 620 * ratio);
+ let market_price_width = ctx.measureText(market_price).width;
+ // 划线
+ ctx.beginPath()
+ ctx.setLineWidth(1)
+ ctx.moveTo(40 * ratio + width, 608 * ratio)
+ ctx.lineTo(45 * ratio + width + market_price_width, 608 * ratio)
+ ctx.stroke();
+ // 长按识别二维码
+ // ctx.setFillStyle("#666");
+ // ctx.setFontSize(22 * ratio); //字大小
+ // ctx.setTextAlign('left'); //是否居中显示,参考点画布中线
+ // ctx.fillText("长按识别二维码", 404*ratio, 710*ratio);
+ // 长按图片转发或保存
+ // ctx.setFillStyle("#000");
+ // ctx.setFontSize(24 * ratio); //字大小
+ // ctx.setTextAlign('left'); //是否居中显示,参考点画布中线
+ // ctx.fillText("长按图片保存到本地",(592*ratio - ctx.measureText("长按图片保存到本地").width)/2, 740*ratio);
+ ctx.draw();
+ // 转为图片
+ setTimeout(() => {
+ wx.canvasToTempFilePath({
+ x: 0,
+ y: 0,
+ canvasId: 'imageCanvas',
+ success: function (res) {
+ that.setData({
+ shareImg: res.tempFilePath
+ })
+ },
+ fail(err) {
+ console.log('agdgjgdajhg', err)
+ }
+ })
+ }, 500)
+ return false;
+ }).catch(err => {
+ console.log("this err", err)
+ })
+ },
+ // 圆角矩形
+ handleBorderRect(ctx, x, y, w, h, r, color) {
+ ctx.beginPath();
+ ctx.moveTo(x + w, y + h);
+ ctx.lineTo(x, y + h)
+ // 左上角
+ ctx.arc(x + r, y + r, r, Math.PI, 1.5 * Math.PI);
+ ctx.moveTo(x + r, y);
+ ctx.lineTo(x + w - r, y);
+ ctx.lineTo(x + w, y + r);
+ // 右上角
+ ctx.arc(x + w - r, y + r, r, 1.5 * Math.PI, 2 * Math.PI);
+ ctx.lineTo(x + w, y + h);
+ ctx.lineTo(x + w - r, y + h);
+ ctx.fillStyle = color;
+ ctx.fill();
+ ctx.closePath();
+ },
+ handleBorderRect2(ctx, x, y, w, h, r, color) {
+ ctx.beginPath();
+ ctx.moveTo(x, y);
+ ctx.lineTo(x + w, y)
+ // 右下角
+ ctx.arc(x + w - r, y + h - r, r, 0, 0.5 * Math.PI);
+ ctx.lineTo(x + r, y + h);
+ ctx.lineTo(x, y + h - r);
+ // 左下角
+ ctx.arc(x + r, y + h - r, r, 0.5 * Math.PI, Math.PI);
+ ctx.lineTo(x, y);
+ ctx.lineTo(x, y);
+ ctx.fillStyle = color;
+ ctx.fill();
+ ctx.closePath();
+ },
+ // 绘制两行文字
+ drawText: function (ctx, str, x, y, canvasWidth, ratio) {
+ let row = [],
+ temp = "",
+ chr = str.split("");
+ for (var a = 0; a < chr.length; a++) {
+ if (ctx.measureText(temp).width < canvasWidth) {
+ temp += chr[a];
+ } else {
+ a--; //这里添加了a-- 是为了防止字符丢失,效果图中有对比
+ row.push(temp);
+ temp = "";
+ }
+ }
+ row.push(temp);
+
+ //如果数组长度大于2 则截取前两个
+ if (row.length > 2) {
+ var rowCut = row.slice(0, 2);
+ var rowPart = rowCut[1];
+ var test = "";
+ var empty = [];
+ for (var a = 0; a < rowPart.length; a++) {
+ if (ctx.measureText(test).width < canvasWidth - 30 * ratio) {
+ test += rowPart[a];
+ } else {
+ break;
+ }
+ }
+ empty.push(test);
+ var group = empty[0] + "..." //这里只显示两行,超出的用...表示
+ rowCut.splice(1, 1, group);
+ row = rowCut;
+ }
+ for (var b = 0; b < row.length; b++) {
+ ctx.fillText(row[b], x, y + b * 40 * ratio, canvasWidth);
+ }
+ },
+ gotoDetail: function (e) {
+ let item = e.currentTarget.dataset.item;
+ util.pagePoint({
+ event: 'recommend_click',
+ param: {
+ id: item.id,
+ type: item.type
+ }
+ }, 1)
+ if (item.type == 'travels') {
+ // 游记做特殊处理 其他都按照原来的来
+ wx.navigateTo({
+ url: '/pages/info/strategyInfo/index?id=' + item.s_id,
+ })
+ } else {
+ util.gotoDetail(item);
+ }
+ },
+
+ gotolocation: function () {
+ let info = this.data.info;
+ wx.openLocation({
+ latitude: Number(info.scene_lat),
+ longitude: Number(info.scene_lon),
+ name:info.scene_name,
+ address:info.scene_address
+ })
+ },
+
+ viewImg:function(e){
+ let item = e.currentTarget.dataset.item;
+ if (item.img_list.length>0) {
+ wx.previewImage({
+ urls: item.img_list
+ })
+ }
+ },
+
+ swiperChange (e) {
+ if(e.detail.source == "touch") {
+ let index = e.detail.current
+ this.setData({
+ swiperCurrent: index
+ })
+ }
+ console.log(e, this.data.swiperCurrent)
+ },
+ changeSwiperCurrent (e) {
+ let index = e.currentTarget.dataset.index
+ this.setData({
+ swiperCurrent: index
+ })
+ },
+ changeSimpleVal (e) {
+ let keyname = e.currentTarget.dataset.keyname;
+ let val = e.currentTarget.dataset.val;
+ let param = {}
+ param[keyname] = val
+ this.setData(param)
+ console.log(this.data)
+ },
+
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+ app.globalData.postProduct = []
+ if (!wx.getStorageSync('jstrip_token')) {
+ return;
+ }
+ if (this.data.info && this.data.info.id) {
+ commonApi.user_post("product/is_product_collection", {
+ product_id: this.data.info.id
+ }).then(res => {
+ this.setData({
+ isLike: res.data
+ })
+ this.drawImg()
+ })
+ // commonApi.user_post('cart/get_list', {}).then(res => {
+ // this.setData({
+ // cartCount: res.data.length
+ // })
+ // })
+ commonApi.user_post('cart/get_count', {noLogin: true}).then(res => {
+ this.setData({
+ cartCount: res.data //1
+ })
+ })
+ } else {
+ setTimeout(() => {
+ this.onShow()
+ }, 200)
+ }
+ },
+ playVideo() {
+ // 播放视频需要把autoplay暂停
+ this.setData({
+ autoPlay: false
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
})
\ No newline at end of file
diff --git a/pages/info/foodProductInfo/index.json b/pages/info/foodProductInfo/index.json
index b5d8d8b..ab4ec76 100644
--- a/pages/info/foodProductInfo/index.json
+++ b/pages/info/foodProductInfo/index.json
@@ -1,6 +1,7 @@
{
"usingComponents": {
"title":"/pages/component/TitleHeader",
- "notice":"/pages/component/notice/notice"
+ "code":"../../order/components/wxqrCode/index"
+
}
}
\ No newline at end of file
diff --git a/pages/info/foodProductInfo/index.wxml b/pages/info/foodProductInfo/index.wxml
index 16afd14..3491c6f 100644
--- a/pages/info/foodProductInfo/index.wxml
+++ b/pages/info/foodProductInfo/index.wxml
@@ -1,79 +1,285 @@
-
+
-
-
-
-
-
-
-
-
-
- {{info.title}}
-
- {{item}}
- ¥{{info.price/100}}起
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{swiperCurrent+1}}/{{swiperRange.sku.max+1}}
+
+
+
+
+ 补贴价
+ ¥{{ allowance_data.mini_price / 100 }}起
+ 单品最高补贴{{ allowance_data.max_price / 100 }}元
+
+
+
+
+
+ {{info.price/100}}优惠前¥{{info.market_price/100}}
+ 已售{{info.sales_number>1000?"1000+":(info.sales_number||0)}}
+
+
+
+
+ 热{{info.title}}
+
+ {{info.subtitle}}
+
+
+
+
+
+ {{info.shipment_tag_str}}
+
+
+
+
+ {{info.service_tag_str}}
+
+
+
+
+ {{info.parameter_tag_str}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 店铺
+
+
+
+ 客服
+
+
+
-
-
- {{info.title}}
+
+
+
+ 加入购物车
+ 立即购买
+ 该商品已下架
-
- {{item.sku_name}}
-
-
-
- {{item}}
+
+
+
+
+ {{cartCount}}
+
+
+
+
+
+
+
+
+
+ {{info.sku[skuIndex].price/100}}
+
+
+ 已选择:{{info.sku[skuIndex].sku_name}}
+
+
+
+
+ {{producNum}}
+
+
+ 限购{{info.sku[skuIndex].sku_model.traveller_limit_num}}件
- 预订须知>>
-
- ¥{{item.price/100}}起
- 立即预订
- 立即预订
+
+ 产品分类({{info.sku.length}})
+
+
+
+ {{item.sku_name}}
+
+
+
+
+
+
+ {{skuFlag=='cart'?'确认':'立即购买'}}
+ 该商品已下架
-
-
-
- 商家信息
-
-
- 商家电话:{{info.supplier_tel}}
-
-
-
- 商家地址:{{info.supplier_address}}
-
-
-
- 购买须知
-
-
- 套餐{{number[index]}}
-
-
-
-
-
-
-
-
-
-
- 产品详情
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存图片到相册
+
+
+
+
+
+
+
+
+ 微信识别二维码
+
+
+
+
+
+ 保存到相册
-
-
+
+
+
+
+ {{allowance_data.title}}
+
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+ {{otherInfoShow==3?"产品参数":otherInfoShow==2?"服务说明":"发货说明"}}
+
+
+
+
+
+
+
+
+
+
+
+
+ 确定
+
+
+
\ No newline at end of file
diff --git a/pages/info/foodProductInfo/index.wxss b/pages/info/foodProductInfo/index.wxss
index 4c609ce..90c2938 100644
--- a/pages/info/foodProductInfo/index.wxss
+++ b/pages/info/foodProductInfo/index.wxss
@@ -1,69 +1,96 @@
-/* pages/info/sceneProductInfo/index.wxss */
+/* pages/info/hotelProductInfo/index.wxss */
page {
- background: #f2f2f2;
+ background: #F7F7F7;
}
+
.swiper {
width: 100%;
- height: 400rpx;
+ height: 466.67rpx;
}
-.swiper image {
- height: 400rpx;
+.swiper image,.swiper video {
+ height: 466.67rpx;
display: block;
width: 100%;
}
+.swiper-bottom{
+ position: absolute;
+ /* top: 750rpx; */
+ bottom: 77rpx;
+ right: 0;
+ width: 90rpx;
+ height: fit-content;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ font-weight: 500;
+ font-size: 24rpx;
+ color: rgba(255,255,255,0.5);
+ z-index: 1;
+}
+.swuper-bottom-bg{
+ background: rgba(1, 0, 0, 0.6);
+ border-radius: 20rpx 0rpx 0rpx 20rpx;
+ display: flex;
+ flex-direction: column;
+ width: 100%;
+ padding: 8rpx 0;
+ margin-bottom: 12rpx;
+}
+.swiper-bottom-item{
+ width: 100%;
+ text-align: center;
+ padding: 14rpx 0;
+}
+.swiper-bottom-item.active{
+ color: #fff;
+}
+.swiper-bottom-item.bottom-number{
+ max-width: 100%;
+ width: fit-content;
+ background: rgba(1, 0, 0, 0.6);
+ border-radius: 13rpx;
+ height: 40rpx;
+ line-height: 40rpx;
+ padding: 0 10rpx;
+ overflow: hidden;
+ box-sizing: border-box;
+}
+
.top-info {
- border-radius: 20rpx 20rpx 0 0;
background: white;
position: relative;
z-index: 1;
- margin-top: -20rpx;
- padding: 20rpx 40rpx;
}
+
.top-info .title {
- font-size: 32rpx;
- font-weight: 500;
- color: #000;
+ font-weight: bold;
+ font-size: 33rpx;
+ color: #000000;
}
+
.tags-box {
- margin-top: 10rpx;
display: flex;
align-items: center;
+ font-weight: 500;
+ font-size: 25rpx;
color: #0B898E;
- font-size: 27rpx;
- height: 50rpx;
}
+
.tags-box .tag {
- position: relative;
- line-height: 20rpx;
- font-size: 20rpx;
- font-weight: 500;
- line-height: 50rpx;
- margin-right: 10rpx;
-}
-.tags-box .tag .line {
- content: "1";
- display: block;
- font-size: 0;
- position: absolute;
- left: 0;
- right: 0;
- background: #DAF3E9;
- height: 8rpx;
- top: 30rpx;
- z-index: -1;
-}
-.tags-text {
- flex: 1;
- text-align: right;
-}
-.tags-box .iconfont {
- margin-left: 4rpx;
- font-size: 24rpx;
+ margin-top: 27rpx;
+ height: 40rpx;
+ line-height: 40rpx;
+ margin-right: 15rpx;
+ padding: 0 14rpx;
+ background: rgba(11, 137, 142, 0.1);
+ border-radius: 4rpx;
}
+
.address-box {
justify-content: space-between;
margin-top: 0;
}
+
.info-address {
color: #666;
font-size: 27rpx;
@@ -71,57 +98,114 @@ page {
height: 30rpx;
line-height: 30rpx;
}
+
.address-box .iconfont {
font-size: 34rpx;
}
-.box {
- margin: 20rpx;
- padding: 0 20rpx;
- background: white;
- border-radius: 13rpx;
-}
-.box-top {
- line-height: 120rpx;
- border-top: 1rpx solid #d9d9d9;
- font-weight: 500;
- color: #000;
- font-size: 35rpx;
-}
-.info-address {
+
+.date-all-box {
+ margin: 24rpx 20rpx;
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: 30rpx;
- color: #999;
- font-size: 29rpx;
-}
-.info-address .iconfont {
- color: #0B898E;
+ height: 80rpx;
+ border-radius: 13rpx;
+ background: #0B898E;
font-size: 31rpx;
+ color: #fff;
+ font-weight: 500;
+ padding: 0 37rpx;
}
-.product-item {
- margin: 0 20rpx;
- padding: 27rpx 0;
- border-bottom: 1rpx solid #ccc;
+
+.days {
+ text-align: center;
+ font-size: 400;
+ width: 84rpx;
+ line-height: 34rpx;
+ height: 34rpx;
+ border-radius: 18rpx;
+ border: 1px solid white;
+ font-size: 23rpx;
}
-.skutitle {
- font-size: 29rpx;
- color: #333;
- font-weight: 500;
+
+.picker text {
+ font-weight: 400;
+ font-size: 21rpx;
+ margin-left: 13rpx;
}
-.product-box {
+
+.product-item {
display: flex;
align-items: flex-end;
justify-content: space-between;
- margin-top: 20rpx;
+ margin: 20rpx;
+ padding: 24rpx 20rpx;
+ background: white;
+ border-radius: 13rpx;
}
-.product-left {
+
+.product-item image {
+ width: 201rpx;
+ height: 201rpx;
+ border-radius: 10rpx;
+ margin-right: 26rpx;
+ flex-shrink: 0;
+}
+
+.product-item .product-info {
flex: 1;
}
+
+.product-item .product-info .title {
+ font-size: 32rpx;
+ color: #000;
+ font-weight: 500;
+}
+
+.product-right {
+ flex-shrink: 0;
+ margin-left: 20rpx;
+}
+
+.product-right .price {
+ color: #D62828;
+ font-size: 40rpx;
+ font-weight: 500;
+}
+
+.product-right .price::before {
+ content: "¥";
+ font-size: 27rpx;
+ font-weight: 400;
+}
+
+.product-right .btn {
+ color: #fff;
+ width: 120rpx;
+ line-height: 80rpx;
+ background: #D62828;
+ border-radius: 13rpx;
+ font-size: 31rpx;
+ font-weight: 500;
+ text-align: center;
+ margin-top: 20rpx;
+}
+
+.product-info .subtitle {
+ font-size: 24rpx;
+ line-height: 36rpx;
+ height: 72rpx;
+ margin-top: 10rpx;
+ margin-bottom: 20rpx;
+ color: #999;
+ white-space: normal;
+}
+
.product-tags {
display: flex;
align-items: center;
}
+
.product-tag {
font-size: 20rpx;
color: #0B898E;
@@ -131,57 +215,57 @@ page {
padding: 0 15rpx;
margin-right: 13rpx;
}
+
.product-tags .product-tags:last-child {
margin-right: 0;
}
-.order-tip-text {
- margin-top: 33rpx;
- font-size: 24rpx;
- color: #666;
+
+.box {
+ /* margin: 20rpx; */
+ /* background: white; */
+ /* border-radius: 13rpx; */
+ background: #f2f2f2;
+ padding: 20rpx;
}
-.product-right {
- text-align: center;
- flex-shrink: 0;
+.comment-box{
+ background: #fff;
+ margin: 20rpx 0;
+ width: 100%;
+ box-sizing: border-box;
}
-.product-right .price {
- color: #D62828;
- font-size: 24rpx;
- margin-bottom: 20rpx;
+.comment-box .no-comment{
+ font-weight: 500;
+ font-size: 30rpx;
+ color: #999999;
+ padding-left: 18rpx;
}
-.product-right .price text:nth-child(2){
+
+.box-top {
+ line-height: 95rpx;
+ border-bottom: 1rpx solid #d9d9d9;
font-weight: 500;
+ color: #000;
font-size: 33rpx;
+ padding: 0 20rpx;
+ background: #fff;
+ border-radius: 13rpx 13rpx 0 0;
}
-.product-right .price text:nth-child(3){
- color: #8D8D8D;
- font-size: 20rpx;
-}
-.product-right .btn {
- background: #D62828;
- color: #fff;
- border-radius: 30px;
- line-height: 60rpx;
- font-size: 29rpx;
- font-weight: 500;
- width: 176rpx;
-}
-.product-right .btn.disable {
- background: #ccc;
-}
-.box .product-item:last-child {
- border-bottom: none;
-}
+
.box-top .iconfont {
color: #0B898E;
font-size: 33rpx;
margin-right: 16rpx;
}
+
.empty-box {
text-align: center;
padding: 40rpx 0;
font-size: 23rpx;
color: #333;
+ background: #fff;
+ border-radius: 0 0 13rpx 13rpx;
}
+
.empty-btn {
margin: 0 auto;
margin-top: 30rpx;
@@ -193,69 +277,385 @@ page {
font-size: 32rpx;
margin-bottom: 10rpx;
}
+
.box-top .score {
color: #D62828;
font-size: 30rpx;
font-weight: 400;
margin-left: 11rpx;
}
+
.product-comment {
- margin: 0 20rpx;
+ /* margin: 0 20rpx; */
border-bottom: 1rpx solid #ccc;
- padding: 33rpx 0;
+ /* padding: 33rpx 0; */
+ padding: 28rpx 0rpx;
+ background: #fff;
+ width: 100%;
+ box-sizing: border-box;
+}
+.product-comment:last-of-type{
+ border-bottom: none;
}
+
.product-comment-top {
display: flex;
justify-content: space-between;
color: #999999;
- align-items: center;
+ align-items: flex-start;
font-size: 24rpx;
}
-.product-comment-top image {
+
+.product-comment-top .avator-img {
flex-shrink: 0;
width: 57rpx;
height: 57rpx;
border-radius: 50%;
}
+.product-comment-top .comment-container{
+ flex: 1;
+ width: 10rpx;
+ padding: 0 45rpx 0 15rpx;
+}
.product-comment-top .comment-info {
- flex: 1;
- margin: 0 15rpx;
- color: #666;
- font-size: 21rpx;
+ width: 100%;
+ height: 57rpx;
+ font-weight: bold;
+ font-size: 24rpx;
+ color: #666666;
+ display: flex;
+ align-items: center;
}
+
.product-comment-top .comment-info .iconfont {
color: #D62828;
font-size: 22rpx;
}
-.product-comment-top .comment-info .iconfont text {
+
+.product-comment-top .comment-info .iconfont text {
margin-right: 6rpx;
}
+
.comment-content {
- margin-left: 72rpx;
- margin-top: 36rpx;
- font-size: 28rpx;
- color: #000;
+ width: 100%;
+ padding-top: 12rpx;
+ font-size: 27rpx;
+ color: #000;
+ font-weight: 500;
}
+
.more-comment-btn {
line-height: 93rpx;
- margin-right: 20rpx;
+ /* margin-right: 20rpx; */
text-align: right;
color: #999;
font-size: 27rpx;
font-weight: 500;
+ padding-right: 20rpx;
+ background: #fff;
+ border-radius: 0 0 13rpx 13rpx;
}
+
.more-comment-btn .iconfont {
margin-left: 6rpx;
font-size: 24rpx;
}
+
.all-comment-num {
float: right;
color: #999999;
font-size: 27rpx;
font-weight: 400;
}
-.icon-xin,.icon-shoucang {
+
+.scroll-all-box {
+ margin: 24rpx 0;
+ background: white;
+}
+
+.scroll-menus {
+ padding: 0 40rpx;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ font-size: 29rpx;
+ color: #333;
+ height: 84rpx;
+ border-bottom: 1rpx solid #d9d9d9;
+}
+
+.scroll-menu-item {
+ position: relative;
+ line-height: 84rpx;
+}
+
+.scroll-menu-item.active::after {
+ content: "1";
+ font-size: 0;
+ display: block;
+ position: absolute;
+ width: 46rpx;
+ height: 6rpx;
+ border-radius: 3rpx;
+ background: #0B898E;
+ left: 50%;
+ margin-left: -23rpx;
+ bottom: 0rpx;
+}
+
+.fixed-menus {
+ position: fixed;
+ left: 0;
+ right: 0;
+ background: white;
+ z-index: 1;
+}
+
+.info-title {
+ font-size: 35rpx;
+ font-weight: bold;
+ color: #000;
+ margin-bottom: 30rpx;
+}
+
+.info-box {
+ padding: 20rpx 40rpx;
+}
+
+.fixed-bottom {
+ position: fixed;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ height: 140rpx;
+ background: white;
+ display: flex;
+ align-items: center;
+ box-shadow: 0px 0px 16rpx 0px rgba(6, 0, 1, 0.1);
+ padding: 0 40rpx;
+ color: #666666;
+ font-size: 23rpx;
+ justify-content: space-between;
+ text-align: center;
+ padding-left: 0;
+}
+
+.fixed-bottom .iconfont {
+ font-size: 34rpx;
+ line-height: 40rpx;
+}
+
+.btns {
+ color: #fff;
+ font-size: 32rpx;
+ font-weight: 500;
+ border-radius: 39rpx;
+ text-align: center;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+.btns .btn {
+ width: 216rpx;
+ line-height: 78rpx;
+ background: #D62828;
+}
+
+.btns .btn:nth-child(1) {
+ /* margin-right: 3rpx; */
+ border-radius: 39rpx 0 0 39rpx;
+ background: #FD7601;
+}
+
+.btns .btn:nth-child(2) {
+ border-radius: 0 39rpx 39rpx 0;
+}
+
+.btns .btn.disable {
+ background: #ccc;
+}
+
+.mask-content {
+ position: absolute;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ width: 100%;
+}
+
+.mask-content .icon-close {
+ position: absolute;
+ right: 40rpx;
+ top: 40rpx;
+}
+
+.sku-info-box {
+ margin: 50rpx 25rpx;
+ display: flex;
+ justify-content: space-between;
+}
+
+.sku-info-box image {
+ width: 173rpx;
+ height: 173rpx;
+ border-radius: 13rpx;
+ display: block;
+ margin-right: 15rpx;
+ flex-shrink: 0;
+}
+
+.sku-info {
+ flex: 1;
+ width: 100rpx;
+ height: 173rpx;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+}
+
+.sku-price {
+ font-size: 40rpx;
+ font-weight: bold;
+ color: #F84A56;
+}
+
+.sku-price::before {
+ content: "¥";
+ font-size: 24rpx;
+ vertical-align: baseline;
+}
+
+.sku-price view {
+ font-size: 24rpx;
+ color: #FFFFFF;
+ background-color: #D62828;
+ border-radius: 22rpx;
+ line-height: 44rpx;
+ margin-left: 7rpx;
+ padding: 0 20rpx;
+}
+
+.sku-name {
+ font-size: 27rpx;
+ color: #666666;
+}
+
+.sku-names {
+ display: flex;
+ font-weight: 500;
+ font-size: 27rpx;
+ color: #333333;
+ margin: 0 25rpx;
+ flex-wrap: wrap;
+ margin-bottom: 20rpx;
+ justify-content: space-between;
+ max-height: 800rpx;
+ min-height: 400rpx;
+ align-content: flex-start;
+}
+
+.sku-name-item {
+ min-height: 67rpx;
+ border-radius: 13rpx;
+ margin-bottom: 34rpx;
+ max-width: 100%;
+ padding-right:15rpx;
+ min-width: 340rpx;
+ background: #EFEFEF;
+ display: flex;
+ align-items: center;
+ box-sizing: border-box;
+}
+.sku-name-item>image{
+ width: 67rpx;
+ height: 100%;
+ border-radius: 13rpx;
+ flex-shrink: 0;
+}
+.sku-name-item .sku-name{
+ flex:1;
+ /* width: 100rpx; */
+ padding-left: 15rpx;
+ color: #333;
+}
+
+.sku-name-item.active{
+ color: #0B898E;
+ border: 1px solid #0B898E;
+ background: rgba(11, 137, 142, 0.1);
+}
+.sku-name-item.active .sku-name{
+ color: #0B898E;
+ }
+
+.number-box {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ background: #EFEFEF;
+border-radius: 13rpx;
+padding: 10rpx 0;
+box-sizing: border-box;
+height: 53rpx;
+width: 250rpx;
+
+}
+
+.number-box text {
+ flex: 1;
+ font-size: 29rpx;
+ color: #333;
+}
+
+.number-box view {
+ text-align: center;
+ width: 80rpx;
+ height: 33rpx;
+ line-height: 33rpx;
+ font-size: 31rpx;
+ color: #000;
+}
+
+.number-box view.number {
+ width: 94rpx;
+ border-left: 1px solid #ccc;
+ border-right: 1px solid #ccc;
+}
+.limit-number{
+ font-weight: 500;font-size: 27rpx;color: #666666;padding-left:20rpx;
+}
+
+.btn-box {
+ height: 138rpx;
+ background: #FFFFFF;
+ box-shadow: 0px 0px 16rpx 0px rgba(6, 0, 1, 0.1);
+ display: flex;
+ align-items: center;
+ justify-content: center;
position: fixed;
+ left: 0;
+ right: 0;
+ bottom: 0;
+}
+
+.mask-btn {
+ width: 670rpx;
+ line-height: 78rpx;
+ background: #D62828;
+ border-radius: 39rpx;
+ color: #fff;
+ text-align: center;
+ font-size: 33rpx;
+ font-weight: 500;
+}
+
+.mask-btn.disable {
+ background: #ccc;
+}
+
+/* .icon-xin,.icon-shoucang {
+ position: absolute;
right: 20rpx;
margin-top: 20rpx;
width: 60rpx;
@@ -265,48 +665,660 @@ page {
text-align: center;
color: #fff;
font-size: 36rpx;
- z-index: 3;
+ z-index: 1;
+} */
+.share-icon {
+ position: absolute;
+ right: 20rpx;
+ margin-top: 20rpx;
+ width: 60rpx;
+ height: 60rpx;
+ z-index: 1;
+ background-image: url("https://static.ticket.sz-trip.com/uploads/20250826/81287df192b80ea03318e06b2b19ebe1.png");
+ background-size: 100% 100%;
}
+
.icon-shoucang {
color: #D62828;
+ font-size: 40rpx !important;
+
}
-.tags-price {
- flex: 1;
- text-align: right;
- color: #D62828;
+
+/* 购物车 */
+.cart-box {
+ position: fixed;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 80rpx;
+ height: 80rpx;
+ background: #FFFFFF;
+ box-shadow: 0px 0px 20rpx 0px rgba(0, 0, 0, 0.2);
+ border-radius: 50%;
+ right: 20rpx;
+ bottom: 166rpx;
+ z-index: 15;
}
-.tags-price text:nth-child(1){
- font-size: 27rpx;
+
+.cart-box image {
+ display: block;
+ width: 49rpx;
}
-.tags-price text:nth-child(2){
- font-size: 40rpx;
- font-weight: bold;
+
+.cart-num {
+ width: 26rpx;
+ border: 1rpx solid;
+ border-radius: 50%;
+ line-height: 26rpx;
+ text-align: center;
+ font-size: 23rpx;
+ color: #D20000;
+ position: absolute;
+ right: -2rpx;
+ top: -5rpx;
}
-.tags-price text:nth-child(3){
+
+.headimg {
+ position: fixed;
+ z-index: 3;
+ left: -218rpx;
+ width: 218rpx;
+ height: 180rpx;
+ top: 0;
+}
+
+.headimg.active {
+ transition: left .6s linear, top .6s cubic-bezier(0.5, -0.5, 1, 1), width .6s ease, height .6s ease;
+ width: 80rpx;
+ height: 80rpx;
+ left: 650rpx;
+ border-radius: 50%;
+}
+
+.share-img-box {
+ /* width: 551rpx; */
+ position: static;
+ background: none;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+}
+
+.share-img {
+ display: block;
+ width: 551rpx;
+}
+
+.share-tips {
+ width: 426rpx;
+ height: 150rpx;
+ background: #FFFFFF;
+ border-radius: 25rpx;
+ margin-top: 25rpx;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 0 65rpx;
+ color: #999;
+ font-size: 24rpx;
+ text-align: center;
+ line-height: 40rpx;
+}
+
+.share-tips .img {
+ display: block;
+ width: 55rpx;
+ margin: 0 auto;
+ margin-bottom: 4rpx;
+}
+
+.tipimg {
+ position: absolute;
+ left: 50%;
+ margin-left: 16rpx;
+ width: 24rpx;
+ height: 24rpx;
+ background: #D62828;
+ border-radius: 50%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ top: 34rpx;
+}
+
+.tipimg image {
+ width: 21rpx;
+ display: block;
+
+}
+
+.save-btn {
+ width: 403rpx;
+ line-height: 77rpx;
+ background: #D62828;
+ border-radius: 39rpx;
+ text-align: center;
+ color: #fff;
+ font-size: 31rpx;
+ font-weight: 500;
+ margin-top: 50rpx;
+}
+
+.allowance-box {
+ height: 113rpx;
+ background: url("https://static.ticket.sz-trip.com/uploads/20220602/7762b9c4be5adac1f3d0ab5228569821.png");
+ background-size: 100% auto;
+ background-repeat: no-repeat;
+ padding: 30rpx 30rpx 10rpx;
+ font-size: 24rpx;
+ color: #FFFFFF;
+ margin-top: -60rpx;
+ position: relative;
+ display: flex;
+ justify-content: start;
+ align-items: baseline;
+}
+
+.allowance-box .com-price {
+ font-size: 30rpx;
+ color: #FFFFFF;
+}
+
+.allowance-box .com-price:before {
+ font-size: 18rpx;
+ color: #FFFFFF;
+}
+
+.allowance-box .com-price:after {
+ font-size: 18rpx;
+ color: #FFFFFF;
+}
+
+.allowance-box .yellow {
+ color: #DF2115;
+ padding: 8rpx 14rpx;
+ background-color: #FDEDD4;
+ margin-left: 20rpx;
+ border-radius: 30rpx;
+}
+
+.mask-allowance .mask-content {
+ margin: auto;
+ width: auto;
+ top: initial;
+ bottom: initial;
+ padding: 20rpx;
+ width: 80%;
+}
+
+.mask-allowance .mask-content .rule-title {
+ text-align: center;
+ margin-bottom: 20rpx;
+}
+.imgs{
+ width: 133rpx;
+ height: 133rpx;
+ border-radius: 13rpx;
+}
+.img-box{
+ width: 133rpx;
+height: 133rpx;
+ position: relative;
+ overflow: hidden;
+}
+.img-box .more-img{
+ height: 37rpx;
+ line-height: 37rpx;
+ background: #000;
+ border-radius: 13rpx 0rpx 13rpx 0rpx;
+ box-sizing: border-box;
+ padding: 0 5rpx;
+ font-weight: 500;
+ font-size: 23rpx;
+ color: #FFFFFF;
+ position: absolute;
+ bottom: 0;
+ right: 0;
+ opacity: 0.8;
+}
+.all{
+ color: #fff;
+ position:absolute;
+ bottom: 17rpx;
+ right: 10rpx;
+ width: 200rpx;
+ height: 200rpx;
+ border-radius: 8rpx;
+ background-color: rgba(0, 0, 0, .5);
+}
+.all view{
+ text-align: center;
+}
+.all view:first-child{
+ font-size: 45rpx;
+ margin-top: 40rpx;
+}
+.all view:last-child{
+ margin-top: 10rpx;
+}
+.sku{
+ margin-left: 10rpx;
+ color: #666;
+ font-size: 24rpx;
+ margin-top: 8rpx;
+}
+.proad{
+ margin: 20rpx;
+}
+.proad-title{
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-bottom: 16rpx;
+}
+.proad-title image{
+ width: 292rpx;
+ height: 34rpx;
+}
+.pro-list{
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ flex-wrap: wrap;
+}
+.proitem{
+ width: 334rpx;
+ height: 497rpx;
+ background: #FFFFFF;
+ border-radius: 10rpx;
+ margin-top: 20rpx;
+}
+.item-hd image{
+ width: 334rpx;
+ height: 342rpx;
+ border-radius: 13rpx 13rpx;
+}
+.item-bm{
+ padding: 8rpx 12rpx;
+}
+.protitle{
+ font-size: 28rpx;
+ font-family: PingFang SC;
+ font-weight: 400;
+ color: #000000;
+}
+.pro-price{
+ color: #D62828;
+ font-weight: 500;
+ font-size: 30rpx;
+}
+.pro-price:before {
+ display: inline-block;
+ content:"¥";
+ color: #D62828;
font-size: 20rpx;
+}
+
+.pro-price:after {
+ display: inline-block;
+ content:'起';
color: #999999;
- margin-left: 4rpx;
+ font-size: 10px;
+}
+.icon-shop{
+ width: 34rpx;
+ height: 36rpx;
}
-.sku-items {
+.left-img{
display: flex;
+ width: 290rpx;
+ flex-shrink: 0;
+ justify-content: space-between;
+ padding: 0 40rpx;
+ box-sizing: border-box;
+}
+.no-shop{
+ width: 230rpx;
+}
+.shop-box{
+ display:flex;
+ flex-direction: column;
align-items: center;
- flex-wrap: wrap;
- margin-bottom: 1rpx;
+ justify-content: space-between;
+ height: 70rpx;
}
-.sku-item {
- padding: 0 46rpx;
- font-size: 29rpx;
- color: #666;
- border: 1rpx solid #999;
- line-height: 58rpx;
- margin-right: 40rpx;
- margin-bottom: 25rpx;
+
+ .wineScene-price-container {
+ width: 750rpx;
+ height: 100rpx;
+ /* background: linear-gradient(-90deg,#FF413B, #FFAB2E); */
+ background: #FD3856;
+ /* border-radius: 20rpx 20rpx 0rpx 0rpx; */
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 0 26rpx;
+ box-sizing: border-box;
+ color: #FFFFFF;
+ font-size: 24rpx;
+ }
+
+ .wineScene-price-container .wineSecne-price {
+ font-weight: bold;
+ font-size: 48rpx;
+ color: #FFFFFF;
}
-.sku-item.active {
- background: #0B898E;
- border-color: #0B898E;
- color: #fff;
+.wineScene-price-container .wineSecne-money {
+ font-size: 24rpx;
+ font-weight: 500;
+ /* text-decoration-line: line-through; */
+ padding-left: 14rpx;
+}
+.wineScene-price-container .wineSecne-price::before {
+ font-size: 24rpx;
+ content: '¥';
+}
+
+.hotel-custom-detail{
+ display: flex;
+ /* justify-content: space-between; */
+ height: fit-content;
+ font-family: PingFang SC;
+ font-weight: 500;
+ font-size: 24rpx;
+ color: #666666;
+ margin-bottom: 20rpx;
+}
+.hotel-custom-detail .tip-info{
+ width: 33rpx;
+ position: relative;
+ display: flex;
+ justify-content: center;
+ flex-shrink: 0;
+}
+.hotel-custom-detail .tip-info .tip{
+ font-family: PingFang SC;
+ font-weight: 500;
+ font-size: 23rpx;
+ color: #FFFFFF;
+ width: 33rpx;
+ height: 33rpx;
+ background: #6394FD;
+ border-radius: 50%;
+ position: absolute;
+ top: 0;
+ left: 0;
+ text-align: center;
+ line-height: 33rpx;
+}
+.hotel-custom-detail .tip-info .info{
+ width: 11rpx;
+ height: 100%;
+ background: #D0DFFE;
+ border-radius: 5rpx;
+}
+
+.hotel-custom-right>view{
+ margin-bottom: 20rpx;
+}
+.hotel-custom-right>view:last-of-type{
+ margin-bottom: 0;
+}
+.map-container{
+ background-image: url('https://static.ticket.sz-trip.com/jundaosuzhou/images/wineScene/locationBg.png');
+ background-size: 100% 100%;
+ width: 100%;
+ height: 128rpx;
+ padding: 30rpx 26rpx;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ font-family: PingFang SC;
+ font-weight: 500;
+ font-size: 24rpx;
+ color: #666666;
+ box-sizing: border-box;
+}
+.map-container image{
+ width: 29rpx;
+ height: 29rpx;
+}
+
+.select-img{
+ display: flex;
+ height: 80rpx;
+ position: relative;
+ margin-bottom: 26rpx;
+}
+.select-img image{
+ width: 80rpx;
+ height: 80rpx;
+ border-radius: 13rpx;
+ margin-right:20rpx;
+ flex-shrink: 0;
+ box-sizing: border-box;
+}
+.select-img image.active{
+ border: 2px solid #DC2525;
+}
+.select-img image.no-stock{
+ border: none;
+ opacity: 0.5;
+}
+.select-img .select-img-text{
+ font-weight: bold;
+ font-size: 24rpx;
+ color: #000000;
+ width: 51rpx;
+ height: 80rpx;
+ margin-right:20rpx;
+ display: flex;
+ align-items: center;
+}
+.select-img .other-imgs{
+ flex: 1;
+ width: 100rpx;
+ overflow-x: auto;
+ display: flex;
+}
+.select-img .select-sku{
+ position: absolute;
+ top: 0;
+ right: 0;
+ width: 25rpx;
+ height: 80rpx;
+ line-height: 80rpx;
+ text-align: center;
+ background: white;
+ font-family: fangsong;
+ color: #999;
+}
+.sku-tips{
+ width: 100%;
+ position: absolute;
+ bottom: 73rpx;
+ left: 0;
+ right: 0;
+ display: flex;
+ justify-content: center;
+}
+.sku-tips>view{
+ width: fit-content;
+ max-width: 533rpx;
+ height: 53rpx;
+ background: rgba(1, 0, 0, 0.6);
+ border-radius: 27rpx;
+ padding: 0 28rpx;
+ line-height: 53rpx;
+ font-weight: 500;
+ font-size: 24rpx;
+ color: #FFFFFF;
+ margin: 0 auto;
+}
+
+.shop-container{
+ display: flex;
+ align-items: center;
+ margin-top: 20rpx;
+ padding: 32rpx 23rpx;
+ width: 100%;
+ background: white;
+ box-sizing: border-box;
+}
+.shop-container .shop-img{
+ width: 113rpx;
+ height: 113rpx;
+ flex-shrink: 0;
+}
+.shop-container .shop-btn{
+ width: 135rpx;
+height: 57rpx;
+border-radius: 13rpx;
+border: 1px solid #0B898E;
+font-weight: 500;
+font-size: 31rpx;
+color: #0B898E;
+text-align: center;
+line-height: 57rpx;
+flex-shrink: 0;
+}
+.shop-container .textOver2{
+ flex: 1;
+ width: 100rpx;
+ padding: 0 50rpx 0 20rpx;
+ font-weight: bold;
+font-size: 32rpx;
+color: #010101;
+}
+
+
+
+.other-info-box{
+}
+.other-info-box .other-info-item{
+ display: flex;
+ align-items: center;
+ font-weight: 500;
+ font-size: 27rpx;
+ color: #666666;
+ margin-top: 30rpx;
+}
+.other-info-box .other-info-item image{
+ width: 32rpx;
+ height: 32rpx;
+ flex-shrink: 0;
+}
+.other-info-box .view-arrow{
+ font-family: fangsong;
+ color: #999;
+ width: 25rpx;
+ flex-shrink: 0;
+}
+.other-info-box .other-content{
+ padding: 0 20rpx;
+ overflow: hidden;
+ flex: 1;
+ width: 100rpx;
+
+}
+
+.other-info-content{
+ min-height: 600rpx;
+ padding: 32rpx 23rpx;
+}
+.other-info-content .title{
+ font-weight: bold;
+ font-size: 33rpx;
+ color: #060001;
+ text-align: center;
+ margin-bottom: 36rpx;
+}
+.other-info-content .key-title{
+ color: #060001;
+ font-size: 27.67rpx;
+ line-height: 40rpx;
+ font-weight: bold;
+}
+.other-info-content .key-content{
+ color: #666;
+ font-size: 27.67rpx;
+ line-height: 40rpx;
+ margin-top: 6rpx;
+}
+.prod-param{
+ display: flex;
+ align-items: flex-start;
+ margin-bottom: 45rpx;
+}
+.prod-param .prod-key{
+ flex: 1;
+ flex-shrink: 0;
+ font-weight: 500;
+ font-size: 27rpx;
+ color: #666666;
+}
+.prod-param .prod-content{
+ flex: 1;
+ flex-shrink: 0;
+ font-weight: 500;
+font-size: 27rpx;
+color: #000000;
+}
+
+.hot-font{
+ width: 31rpx;
+ height: 31rpx;
+ background: linear-gradient(-30deg, #FF4000, #FF8D23);
+ border-radius: 7rpx;
+ text-align: center;
+ line-height: 31rpx;
+ font-weight: 500;
+font-size: 23rpx;
+color: #FFFFFF;
+display: inline-block;
+margin-right: 10rpx;
+}
+
+.shop-info{
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ background: white;
+ padding:30rpx 28rpx;
+ box-sizing: border-box;
+ word-break: break-all;
+}
+.shop-info .supplier-headImg{
+ width: 113rpx;
+ height: 113rpx;
+ background: #BCBCBC;
+ border-radius: 13rpx;
+ flex-shrink: 0;
+}
+.shop-info .content{
+ flex: 1;
+ height: 113rpx;
+ width: 1rpx;
+ padding-left: 12rpx;
+ font-weight: bold;
+ font-size: 31rpx;
+ color: #010101;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+}
+.shop-info .content .address{
+ font-weight: 500;
+ font-size: 24rpx;
+ color: #999999;
+}
+.shop-info .icon-phone{
+ width: 47.33rpx;
+ height: 46.67rpx;
+ flex-shrink: 0;
}
-.details {
- padding-bottom: 30rpx;
+.shop-info .shop-com-width{
+ width: 100rpx;
+ flex: 1;
}
\ No newline at end of file
diff --git a/pages/map/index.wxml b/pages/map/index.wxml
index 1f467da..473e478 100644
--- a/pages/map/index.wxml
+++ b/pages/map/index.wxml
@@ -24,18 +24,23 @@
场馆
-
-