景徳镇旅游微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

300 lines
5.9 KiB

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
8 months ago
8 months ago
9 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. <template>
  2. <!-- '遗产讲述', '达人同游' 我要跟拍 的共同详情页面 -->
  3. <view class="page">
  4. <navbar :title="titles[type]" leftClick @leftClick="$utils.navigateBack" />
  5. <view class="info">
  6. <!-- 上面 -->
  7. <view class="top">
  8. <image :src="detail.roleHead" mode="aspectFill"></image>
  9. <view class="left">
  10. <view class="title">
  11. {{ detail.roleName }}
  12. </view>
  13. <view class="left-list">
  14. <view
  15. @click="addCollection">
  16. <button
  17. class="share">
  18. <uv-icon
  19. name="star"
  20. size="50rpx"
  21. ></uv-icon>
  22. 收藏
  23. </button>
  24. </view>
  25. <view>
  26. <button
  27. open-type="share"
  28. class="share">
  29. <uv-icon
  30. name="share"
  31. size="50rpx"
  32. ></uv-icon>
  33. 分享
  34. </button>
  35. </view>
  36. <view
  37. @click="$refs.contactActionSheet.open()">
  38. <button
  39. class="share">
  40. <uv-icon
  41. name="server-man"
  42. size="50rpx"
  43. ></uv-icon>
  44. 客服
  45. </button>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. <!-- 下面 -->
  51. <view class="bottom">
  52. <view>
  53. <image src="../static/reservationDetail/1.png" mode=""></image>
  54. <view>
  55. {{ $dayjs(detail.preTime).format('YYYY-MM-DD') }}
  56. </view>
  57. </view>
  58. <view>
  59. <image src="../static/reservationDetail/2.png" mode=""></image>
  60. <view>
  61. {{ detail.price }}
  62. </view>
  63. </view>
  64. <view
  65. @click="toUrl(detail, type)">
  66. <image v-if="type == 2" src="../static/reservationDetail/3.png" mode=""></image>
  67. <image v-else src="../static/reservationDetail/4.png" mode=""></image>
  68. <view>
  69. 预约
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. <view class="detail">
  75. <view class="content">
  76. <view class="thumb-up">
  77. <uv-icon
  78. name="thumb-up"
  79. size="40rpx"
  80. color="#B12731"
  81. ></uv-icon>
  82. <text>推荐度</text> <text>{{ detail.recommend }}</text>
  83. </view>
  84. <view class="text">
  85. <view class="line">
  86. <view class="left">
  87. 专业擅长
  88. </view>
  89. <view class="right">
  90. {{ detail.skill }}
  91. </view>
  92. </view>
  93. <view class="line">
  94. <view class="left">
  95. 个人简介
  96. </view>
  97. <view class="right">
  98. {{ detail.brief }}
  99. </view>
  100. </view>
  101. </view>
  102. </view>
  103. <view class="video-list">
  104. <view class="title">
  105. {{ video_list_titles[type] }}
  106. </view>
  107. </view>
  108. <videoList ref="videoList" :roleId="id"/>
  109. </view>
  110. <contactActionSheet ref="contactActionSheet"/>
  111. <tabber/>
  112. </view>
  113. </template>
  114. <script>
  115. import videoList from '@/components/list/videoList.vue'
  116. import contactActionSheet from '@/components/base/contactActionSheet.vue'
  117. export default {
  118. components : {
  119. videoList,
  120. contactActionSheet,
  121. },
  122. data() {
  123. return {
  124. titles: ['遗产讲述', '达人同游', '我要跟拍'],
  125. video_list_titles: ['讲解现场', '同游现场', '跟拍现场'],
  126. collectType : [0, 1, 3],
  127. type: 0,
  128. id : 0,
  129. detail : {},
  130. }
  131. },
  132. onLoad(args) {
  133. this.type = args.type
  134. this.id = args.id
  135. },
  136. onShow() {
  137. this.$nextTick(() => {
  138. this.$refs.videoList.queryVideoList()
  139. })
  140. this.getData()
  141. },
  142. onPullDownRefresh(){
  143. this.$refs.videoList.queryVideoList()
  144. this.getData()
  145. },
  146. //滚动到屏幕底部
  147. onReachBottom() {
  148. this.$refs.videoList.loadMoreData()
  149. },
  150. onShareAppMessage(res) {
  151. return {
  152. title: this.titles[this.type],
  153. desc: this.detail.roleName,
  154. path: '/pages_order/service/reservationDetail?id=' + this.id
  155. }
  156. },
  157. methods: {
  158. addCollection(){
  159. this.$api('addCollection', {
  160. collectionItmeId : this.detail.id,
  161. collectionType : this.collectType[this.type],
  162. }, res => {
  163. if(res.code == 200){
  164. this.getData()
  165. }
  166. })
  167. },
  168. getData(){
  169. this.$api('queryRoleInfoById', {
  170. roleInfoId : this.id,
  171. }, res => {
  172. uni.stopPullDownRefresh()
  173. if(res.code == 200){
  174. this.detail = res.result
  175. }
  176. })
  177. },
  178. toUrl(detail, type){
  179. uni.navigateTo({
  180. url: `/pages_order/order/orderSubscribe?id=${detail.id}&payType=${parseInt(type) + 1}`
  181. })
  182. },
  183. }
  184. }
  185. </script>
  186. <style scoped lang="scss">
  187. .page{
  188. .info{
  189. .top{
  190. display: flex;
  191. padding: 40rpx;
  192. image{
  193. width: 240rpx;
  194. height: 280rpx;
  195. border-radius: 20rpx;
  196. margin-right: 40rpx;
  197. }
  198. .left{
  199. .title{
  200. font-size: 32rpx;
  201. margin-top: 20rpx;
  202. }
  203. .left-list{
  204. display: flex;
  205. font-size: 26rpx;
  206. background-color: #fff;
  207. border-radius: 20rpx;
  208. padding: 20rpx;
  209. margin-top: 50rpx;
  210. box-shadow: 0 0 10rpx 10rpx #00000010;
  211. >view{
  212. margin: 20rpx 30rpx;
  213. display: flex;
  214. flex-direction: column;
  215. justify-content: center;
  216. align-items: center;
  217. }
  218. }
  219. }
  220. }
  221. .bottom{
  222. display: flex;
  223. justify-content: space-around;
  224. image{
  225. width: 80rpx;
  226. height: 80rpx;
  227. margin-bottom: 10rpx;
  228. }
  229. >view{
  230. background-color: #fff;
  231. box-shadow: 0 0 10rpx 10rpx #00000010;
  232. border-radius: 20rpx;
  233. height: 180rpx;
  234. width: 180rpx;
  235. display: flex;
  236. justify-content: center;
  237. align-items: center;
  238. flex-direction: column;
  239. color: $uni-color;
  240. font-size: 28rpx;
  241. }
  242. }
  243. }
  244. .detail{
  245. width: 100%;
  246. background-color: #fff;
  247. .content{
  248. padding: 40rpx;
  249. .thumb-up{
  250. background-color: #F6F2E7;
  251. color: $uni-color;
  252. font-size: 28rpx;
  253. font-weight: 900;
  254. padding: 10rpx 25rpx;
  255. display: flex;
  256. width: fit-content;
  257. border-radius: 30rpx;
  258. text{
  259. margin-left: 10rpx;
  260. }
  261. }
  262. .text{
  263. .line{
  264. margin-top: 40rpx;
  265. display: flex;
  266. line-height: 50rpx;
  267. .left{
  268. width: 180rpx;
  269. flex-shrink: 0;
  270. color: $uni-color;
  271. font-weight: 900;
  272. }
  273. }
  274. }
  275. }
  276. .video-list{
  277. padding: 15rpx;
  278. .title{
  279. font-weight: 900;
  280. color: $uni-color;
  281. padding: 15rpx;
  282. }
  283. }
  284. }
  285. }
  286. </style>