notScanned.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. <template>
  2. <!-- 内容区域 -->
  3. <scroll-view scroll-y>
  4. <view class="guide-title" data-text="卖书攻略手册"></view>
  5. <!-- 第一步 -->
  6. <view class="step-box">
  7. <view class="flex-a">
  8. <image src="/static/img/step1.png" class="step-img"></image>
  9. <view class="flex-col flex-1">
  10. <view class="step-icon-wrap">
  11. <image src="/static/img/logo2.png" class="logo-icon"></image>
  12. <text class="step-text">第一步</text>
  13. </view>
  14. <view class="step-title">扫描ISBN</view>
  15. <view class="step-desc">看看您的图书价值多少</view>
  16. <view class="collapse-header" @click="toggleCollapse('step1')">
  17. <text class="collapse-title">什么书不收?</text>
  18. <u-icon :name="collapseState.step1 ? 'arrow-up' : 'arrow-down'" size="14"
  19. color="#999999"></u-icon>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="rule-list" v-if="collapseState.step1">
  24. <text class="rule-item">1、不收盗版书、复印书、非法出版物。</text>
  25. <text class="rule-item">2、不收破损、污渍、发霉、脱胶、笔记杂乱、老化泛黄、附件缺失、浸水留痕的书。</text>
  26. <text class="rule-item">3、练习册、习题册书写完成度过高拒收。</text>
  27. <text class="rule-item">4、扫码提示不收的书籍暂时不收</text>
  28. </view>
  29. </view>
  30. <!-- 第二步 -->
  31. <view class="step-box">
  32. <view class="flex-a">
  33. <view class="flex-col flex-1">
  34. <view class="step-icon-wrap">
  35. <image src="/static/img/logo2.png" class="logo-icon"></image>
  36. <text class="step-text">第二步</text>
  37. </view>
  38. <view class="step-title">等待快递取书</view>
  39. <view class="step-desc">寄书邮费由书嗨承担</view>
  40. </view>
  41. <image src="/static/img/step2.png" class="step-img"></image>
  42. </view>
  43. </view>
  44. <!-- 第三步 -->
  45. <view class="step-box">
  46. <view class="flex-a">
  47. <image src="/static/img/step3.png" class="step-img"></image>
  48. <view class="flex-col flex-1">
  49. <view class="step-icon-wrap">
  50. <image src="/static/img/logo2.png" class="logo-icon"></image>
  51. <text class="step-text">第三步</text>
  52. </view>
  53. <view class="step-title">审核到账</view>
  54. <view class="step-desc">到账后15天内卖方必赔</view>
  55. <view class="collapse-header" @click="toggleCollapse('step3')">
  56. <text class="collapse-title">什么是审核?</text>
  57. <u-icon :name="collapseState.step3 ? 'arrow-up' : 'arrow-down'" size="14"
  58. color="#999999"></u-icon>
  59. </view>
  60. </view>
  61. </view>
  62. <view class="rule-list" v-if="collapseState.step3">
  63. <text class="rule-item">1、书嗨会在收到您寄的卖书快递包裹后对书籍进行审核,审核的内容包裹卖书本的数量、种类和品相。</text>
  64. <text class="rule-item">2、书的品相将被分为品相良好和品相不通过</text>
  65. <text class="rule-item">3、品相不通过的书籍会被拒收,首单可以在收到书款后48小时内申请免费退回拒收书籍,后续订单需要自付邮费。</text>
  66. </view>
  67. </view>
  68. <view class="link-wrap flex-a">
  69. <text class="link-btn flex-1" @click="goToScannedBooks">扫过的书 ></text>
  70. <text class="link-btn flex-1" @click="goToRules">卖书规则 ></text>
  71. </view>
  72. </scroll-view>
  73. </template>
  74. <script>
  75. export default {
  76. data() {
  77. return {
  78. collapseState: {
  79. step1: false,
  80. step3: false
  81. }
  82. }
  83. },
  84. methods: {
  85. toggleCollapse(step) {
  86. this.$set(this.collapseState, step, !this.collapseState[step])
  87. },
  88. goToScannedBooks() {
  89. uni.navigateTo({
  90. url: '/pages-home/pages/scaned-book'
  91. })
  92. },
  93. goToRules() {
  94. uni.navigateTo({
  95. url: '/pages/rules/index'
  96. })
  97. },
  98. }
  99. }
  100. </script>
  101. <style lang="scss" scoped>
  102. .guide-title {
  103. position: relative;
  104. margin: 40rpx auto;
  105. margin-top: 20rpx;
  106. height: 60rpx;
  107. &::before,
  108. &::after {
  109. content: attr(data-text);
  110. font-family: Source Han Sans CN;
  111. font-weight: 600;
  112. font-size: 42rpx;
  113. color: #33BA44;
  114. text-align: center;
  115. position: absolute;
  116. top: 0;
  117. left: 33%;
  118. }
  119. &::before {
  120. -webkit-text-stroke: 2rpx #ffffff;
  121. }
  122. }
  123. .step-box {
  124. border-radius: 12rpx;
  125. position: relative;
  126. margin-bottom: 20rpx;
  127. }
  128. .flex-col {
  129. padding-left: 8%;
  130. }
  131. .step-icon-wrap {
  132. display: flex;
  133. align-items: center;
  134. margin-bottom: 20rpx;
  135. .logo-icon {
  136. width: 48rpx;
  137. height: 48rpx;
  138. margin-right: 12rpx;
  139. }
  140. .step-text {
  141. font-family: Source Han Sans CN;
  142. font-weight: 400;
  143. font-size: 24rpx;
  144. color: #999999;
  145. }
  146. }
  147. .step-title {
  148. font-family: Source Han Sans CN;
  149. font-weight: bold;
  150. font-size: 32rpx;
  151. color: #37C148;
  152. line-height: 41rpx;
  153. }
  154. .step-desc {
  155. font-family: Source Han Sans CN;
  156. font-weight: 450;
  157. font-size: 26rpx;
  158. color: #37C148;
  159. line-height: 41rpx;
  160. }
  161. .step-img {
  162. width: 375rpx;
  163. height: 252rpx;
  164. display: block;
  165. }
  166. .collapse-header {
  167. display: flex;
  168. align-items: center;
  169. justify-content: flex-start;
  170. margin-top: 20rpx;
  171. .collapse-title {
  172. font-family: Source Han Sans CN;
  173. font-weight: 400;
  174. font-size: 24rpx;
  175. color: #999999;
  176. }
  177. }
  178. .rule-list {
  179. background: #f8f8f8;
  180. border-radius: 8rpx;
  181. padding: 20rpx;
  182. box-sizing: border-box;
  183. margin-top: 16rpx;
  184. width: calc(100% - 60rpx);
  185. margin-left: 30rpx;
  186. display: flex;
  187. flex-direction: column;
  188. .rule-item {
  189. font-family: Source Han Sans CN;
  190. font-weight: 400;
  191. font-size: 24rpx;
  192. color: #999999;
  193. line-height: 36rpx;
  194. &:last-child {
  195. margin-bottom: 0;
  196. }
  197. }
  198. }
  199. .link-wrap {
  200. padding: 0 20rpx;
  201. gap: 20rpx;
  202. box-sizing: border-box;
  203. .link-btn {
  204. height: 80rpx;
  205. background: #F8F8F8;
  206. border-radius: 10rpx;
  207. display: flex;
  208. align-items: center;
  209. justify-content: center;
  210. font-family: PingFang SC;
  211. font-weight: 500;
  212. font-size: 32rpx;
  213. color: #666666;
  214. }
  215. }
  216. </style>