<template>
  <view class="rich-text-detail">
    <rich-text :nodes="text" :preview="true"></rich-text>
  </view>
</template>

<script>
export default {
  props: {
    productDetail: {
      type: [Array, String],
      required: true
    }
  },
  data() {
    return {
        text:"<img src='http://image.douhuomall.com/storage/goods/ee4f85676490bf3987b425476ddc028b5eda0dcf.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/8847192345356ff44eb653538d031be1497ae568.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/baf4a1e7758bde92bd3da5aca2c126cb6a487cb1.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/af7bbc3c1e425abe1c37a142dddf1777f8e98edf.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/909522a0048d75f0baa2419b4c8581f271d9a07a.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/6fdf404aaa829a2705016972a04809e65c99a9ed.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/8f93d917a8c582ce812fec037c85cacb2bbbc992.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/86d19192ac8740380d76d5750b16509ef5b16bf7.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/ea7e5ee6169abc6398fdfb7f955c6a7bdecc75aa.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/7bc0a59be71491d2b41d23afdd888c7bb5c763e1.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/a015b168173f1309e2942fec8d388ed327dacbec.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/8b7f165140fca81fbc116e8266c8d0bf7e998c80.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/72478e0d44a292c2c9acd7efc67615c9f6ca23c6.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/676189d67ed5d59c99049bc0fc5b05476a6f17fa.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/0807029caf4689a93a28dda0753c515c8edaa81f.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/38c59fb9ca59130eefd677a9c4ab3a8dc8ecda63.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/287a70580059c20a9d7a473a5b0af894cb7da62b.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/1ced861dbab394b007e3cb85231b4709e1958440.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/989bd3946b3559c5807c5b5583e1d95551ae3060.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/e2ee79e7291bdbbbc0418e6991838248ae9a0092.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/77c08e97b7976bb882a5067a7b44c6482326fe88.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/0bf82043625bb4b27d1d621537005c1db3d7e7ec.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/9d35b6ff8d0e0ef75762adf0ce8d3194f59d1dc6.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/e9d560d3d4b36c9c22c6ae6b41137f6503abcef7.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'><img src='http://image.douhuomall.com/storage/goods/afdb32dc485eb7fc334ba8df7f8605ab470c393d.jpg?XJDdKxXNTZsL8UIsYtPqSA&zZrCmUNYAk9HuhRFaxxACQ'>"
    };
  }
};
</script>

<style lang="scss" scoped>
.rich-text-detail {
  background-color: #ffffff;
  border-radius: 10rpx;
  box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
  padding: 30rpx;
  overflow: auto;
  
}
</style>