diff --git a/api/farmer.js b/api/farmer.js index 324d8c5..34316e7 100644 --- a/api/farmer.js +++ b/api/farmer.js @@ -21,4 +21,7 @@ export function setFarmerShopCollection(data) { return request.post("/collection/farmerShop/add", data) } +export function removeFarmerShopCollection(data) { + return request.post("/collection/farmerShop/remove", data) +} diff --git a/api/inn.js b/api/inn.js index 9af877d..928a72f 100644 --- a/api/inn.js +++ b/api/inn.js @@ -241,3 +241,30 @@ export function hotelNewsView(data) { export function getFarmerShop(id) { return request.get("/api/countyFamous/farmerShop/" + id) } + +export function getAncientTownIcon() { + return request.get("/ancientTown/icon") +} + +export function getAncientTownList(params) { + return request.get("/ancientTown", params) +} + +export function getAncientTownInfo(id) { + return request.get("/ancientTown/" + id) +} + +export function getAncientTownActive(params) { + return request.get("/ancientTown/activity", params) +} + +export function watchTownActive(data) { + return request.post("/ancientTown/activity/view", data, {login: true}) +} + +export function shareTown(id) { + return request.get("/ancientTown/poster/" + id, {login: true}) +} + + + diff --git a/api/qianxian.js b/api/qianxian.js index 8dab74b..499c22d 100644 --- a/api/qianxian.js +++ b/api/qianxian.js @@ -99,3 +99,7 @@ export function getCountyFamousVillageNews(param) { export function getShareImg(id) { return request.get('/countyFamous/poster/' + id, {login: true}) } + +export function getSaleList(params) { + return request.get('/countyFamous/village/category', params, {login: true}) +} diff --git a/assets/css/v12-style.less b/assets/css/v12-style.less index 3191b86..a27ff1f 100644 --- a/assets/css/v12-style.less +++ b/assets/css/v12-style.less @@ -169,7 +169,9 @@ each(@colors, { display: grid; grid-template-columns: 1fr 1fr; } - +.v12-gap-10{ + grid-gap: 20rpx 20rpx; +} .v12-text-right{ text-align: right; diff --git a/components/CouponsPopup.vue b/components/CouponsPopup.vue index 2c7adf5..be18a8a 100644 --- a/components/CouponsPopup.vue +++ b/components/CouponsPopup.vue @@ -75,6 +75,9 @@ @change="selectCoupon" v-if="index !== maxIndex" /> + + 暂无更多可使用优惠券,快去抽奖去吧~ + \ No newline at end of file diff --git a/pages/town/components/information.vue b/pages/town/components/information.vue new file mode 100644 index 0000000..392db92 --- /dev/null +++ b/pages/town/components/information.vue @@ -0,0 +1,294 @@ + + + + + diff --git a/pages/town/components/projects.vue b/pages/town/components/projects.vue new file mode 100644 index 0000000..b8b4637 --- /dev/null +++ b/pages/town/components/projects.vue @@ -0,0 +1,287 @@ + + + + + \ No newline at end of file diff --git a/pages/town/components/service.vue b/pages/town/components/service.vue new file mode 100644 index 0000000..a236cb8 --- /dev/null +++ b/pages/town/components/service.vue @@ -0,0 +1,131 @@ + + + + + \ No newline at end of file diff --git a/pages/town/index.vue b/pages/town/index.vue new file mode 100644 index 0000000..76d8e9d --- /dev/null +++ b/pages/town/index.vue @@ -0,0 +1,313 @@ + + + + + \ No newline at end of file diff --git a/pages/user/History/index.vue b/pages/user/History/index.vue index 82f2f6e..ba30e72 100644 --- a/pages/user/History/index.vue +++ b/pages/user/History/index.vue @@ -43,9 +43,9 @@ {{ historyItem.couponName }} - + - {{ historyItem.price }} + {{ historyItem.price }} {{ historyItem.otPrice }} @@ -254,8 +254,9 @@ export default { padding: 12rpx 12rpx 20rpx 12rpx; .price { line-height: 34rpx; + align-items: flex-end; .ot-price { - margin: 0 0 0 10rpx; + // margin: 0 0 0 10rpx; color: #CBCBCB; position: relative; } diff --git a/pagesInn/inn/farmerStore.vue b/pagesInn/inn/farmerStore.vue index 89b5e42..9884f6f 100644 --- a/pagesInn/inn/farmerStore.vue +++ b/pagesInn/inn/farmerStore.vue @@ -32,7 +32,9 @@ :loop="false" object-fit="contain" play-btn-position="center" + id="coverVideo" class="video" + @play="coverPlay" /> @@ -79,14 +81,14 @@ :src="webUrl + '/icon/icon-star-on.png'" mode="scaleToFill" class="icon" - @click="doneFavorite" + @click="doneFavorite(store.hasFavorite)" /> {{ store.favoriteCount }} @@ -230,7 +232,8 @@ play-btn-position="center" :show-fullscreen-btn="false" class="video-item" - @play="infoItemViewClick(item)" + :id="'video-item' + index" + @play="infoItemViewClick(item, index)" /> @@ -337,7 +340,7 @@ - + \ No newline at end of file + diff --git a/pkg_product/views/heritage/details.vue b/pkg_product/views/heritage/details.vue index d0135b6..f4f0c7a 100644 --- a/pkg_product/views/heritage/details.vue +++ b/pkg_product/views/heritage/details.vue @@ -28,11 +28,9 @@ - 《 - + {{ item.imageText }} - 》 @@ -49,7 +47,8 @@ - + + {{ item.content || '' }} @@ -156,7 +155,7 @@ export default { line-height: 70rpx; } .p-name{ - max-width: 200rpx; + // max-width: 200rpx; text-align: center; } .card-footer{ diff --git a/pkg_product/views/heritage/index.vue b/pkg_product/views/heritage/index.vue index 88e6770..2f3abd6 100644 --- a/pkg_product/views/heritage/index.vue +++ b/pkg_product/views/heritage/index.vue @@ -27,7 +27,7 @@ - +